/**
 * Studio Tabs - espace client.
 *
 * Deux colonnes en desktop, la navigation a gauche. En mobile, cette navigation
 * devient une rangee de pastilles qui defile : un menu vertical de six entrees
 * repousse sinon le contenu de la page sous la ligne de flottaison.
 */

.woocommerce-account .woocommerce {
	margin-bottom: var(--st-space-lg);
}

/* Le clearfix de WooCommerce pose un ::before et un ::after sur ce conteneur.
   Dans une grille, ce sont deux cellules de plus : la navigation partait en
   deuxieme colonne et le contenu passait a la ligne. */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
	content: none;
}

/* WooCommerce fait flotter sa navigation a 25 % et son contenu a 75 %. Dans une
   grille, ces pourcentages se recalculent sur la piste et non sur le conteneur :
   les deux colonnes se retrouvent comprimees au quart de leur place. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	margin: 0;
}

@media (min-width: 1025px) {
	.woocommerce-account .woocommerce {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: var(--st-space-lg);
		align-items: start;
	}

	/* La page de connexion n'a pas de navigation : elle reprend toute la largeur. */
	.woocommerce-account:not(.logged-in) .woocommerce {
		display: block;
	}
}

/**
 * Navigation.
 */
.st-account-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-account-nav a {
	display: block;
	padding: 12px 0;
	color: var(--st-ink, #3d1e14);
	font-family: var(--st-font-ui, "Figtree", sans-serif);
	font-size: 0.9375rem;
	text-decoration: none;
	border-bottom: 1px solid var(--st-line, #e4ded9);
	transition: color 0.2s ease;
}

.st-account-nav a:hover {
	color: var(--st-accent, #a3280a);
}

.st-account-nav .is-active a {
	font-weight: 600;
	color: var(--st-accent, #a3280a);
}

.st-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--st-muted, #7a6a5f);
}

@media (max-width: 1024px) {
	.st-account-nav {
		margin-bottom: var(--st-space-sm);
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.st-account-nav ul {
		display: flex;
		gap: 8px;
		width: max-content;
	}

	.st-account-nav a {
		padding: 0 16px;
		line-height: 40px;
		border: 1px solid var(--st-line, #e4ded9);
		border-radius: var(--st-radius-pill, 999px);
		white-space: nowrap;
	}

	.st-account-nav .is-active a {
		background-color: var(--st-ink, #3d1e14);
		border-color: var(--st-ink, #3d1e14);
		color: #ffffff;
	}
}

/**
 * Connexion.
 */
.st-account-login {
	display: grid;
	gap: var(--st-space-md);
	align-items: start;
}

@media (min-width: 768px) {
	.st-account-login {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--st-space-lg);
	}
}

.st-account-login__title {
	margin: 0 0 var(--st-space-sm);
	font-family: var(--st-font, "Cabin", sans-serif);
	font-size: 1.5rem !important;
	line-height: 1.2 !important;
	color: var(--st-ink, #3d1e14);
}

.st-account-login__aside {
	padding: var(--st-space-sm);
	background-color: var(--st-surface, #f6f6f6);
	border-radius: 0 0 0 var(--st-radius-md, 15px);
}

.st-account-login__intro {
	margin: 0 0 var(--st-space-sm);
	color: var(--st-muted, #7a6a5f);
	font-size: 0.9375rem;
}

.st-account-login__facts {
	margin: 0 0 var(--st-space-sm);
	padding: 0;
	list-style: none;
	color: var(--st-ink, #3d1e14);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.st-account-login__facts li {
	position: relative;
	margin-bottom: 8px;
	padding-left: 18px;
}

.st-account-login__facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--st-accent, #a3280a);
}

.st-account-login__note {
	margin: 0 0 var(--st-space-sm);
	color: var(--st-muted, #7a6a5f);
	font-size: 0.8125rem;
}

.st-account-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--st-space-xs);
	margin-bottom: var(--st-space-sm);
}

.st-account-login__lost {
	color: var(--st-muted, #7a6a5f);
	font-size: 0.875rem;
	text-decoration: underline;
}

.st-account-login__lost:hover {
	color: var(--st-accent, #a3280a);
}

/* WooCommerce encadre ses formulaires de connexion d'un trait gris a coins
   arrondis, herite de son theme d'origine. Il flotte ici sans rapport avec le
   reste de la page, et le bouton debordait par le bas. */
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
}

/**
 * Champs de formulaire, communs a toutes les pages du compte.
 */
.st-field,
.woocommerce-account .woocommerce-form-row,
.woocommerce-account .form-row {
	display: block;
	margin: 0 0 var(--st-space-sm);
	padding: 0;
}

.st-field label,
.woocommerce-account .form-row label {
	display: block;
	margin-bottom: 6px;
	color: var(--st-ink, #3d1e14);
	font-family: var(--st-font-ui, "Figtree", sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
}

.st-field input,
.woocommerce-account .woocommerce input.input-text,
.woocommerce-account .woocommerce textarea,
.woocommerce-account .woocommerce select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--st-line, #e4ded9);
	border-radius: 8px;
	background-color: #ffffff;
	color: var(--st-ink, #3d1e14);
	font-family: var(--st-font-ui, "Figtree", sans-serif);
	font-size: 1rem;
}

.st-field input:focus,
.woocommerce-account .woocommerce input.input-text:focus,
.woocommerce-account .woocommerce select:focus {
	outline: 0;
	border-color: var(--st-ink, #3d1e14);
}

.st-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--st-ink, #3d1e14);
	font-size: 0.9375rem;
	cursor: pointer;
}

.st-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--st-accent, #a3280a);
}

/* La mise en forme automatique de WordPress s'applique a la sortie du
   shortcode du compte et transforme chaque retour a la ligne de nos gabarits en
   <br>. Aucun n'a de sens ici ; les adresses de WooCommerce, elles, gardent les
   leurs puisque cette regle ne vise que nos propres blocs. */
.st-account-dash > br,
.st-account-card br,
.st-account-links br,
.st-account-login br {
	display: none;
}

/**
 * Tableau de bord.
 */
.st-account-dash__hello {
	margin: 0 0 var(--st-space-sm);
	color: var(--st-ink, #3d1e14);
}

.st-account-card {
	padding: var(--st-space-sm);
	margin-bottom: var(--st-space-md);
	background-color: var(--st-surface, #f6f6f6);
	border-radius: 0 0 0 var(--st-radius-md, 15px);
}

.st-account-card__label {
	margin: 0 0 10px;
	color: var(--st-muted, #7a6a5f);
	font-family: var(--st-font-ui, "Figtree", sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.st-account-card__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--st-space-sm);
	flex-wrap: wrap;
	margin-bottom: var(--st-space-sm);
}

.st-account-card__ref {
	margin: 0;
	font-family: var(--st-font, "Cabin", sans-serif);
	font-size: 1.125rem;
	color: var(--st-ink, #3d1e14);
}

.st-account-card__meta {
	margin: 4px 0 0;
	color: var(--st-muted, #7a6a5f);
	font-size: 0.875rem;
}

.st-account-status {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	border-radius: var(--st-radius-pill, 999px);
	background-color: #ffffff;
	color: var(--st-ink, #3d1e14);
	font-family: var(--st-font-ui, "Figtree", sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
}

.st-account-status--processing,
.st-account-status--completed {
	background-color: var(--st-accent, #a3280a);
	color: #ffffff;
}

/* Dans une carte, le bouton se dimensionne sur son libelle : etire sur toute
   la largeur, il prend le poids d'une action principale de page. */
.st-account-card .st-btn-solid,
.st-account-card .st-btn-outline,
.st-account-login__aside .st-btn-outline {
	width: auto;
}

.st-account-links {
	display: grid;
	gap: var(--st-space-xs);
}

@media (min-width: 768px) {
	/* Dans une carte, le bouton se dimensionne sur son libelle : etire sur toute
   la largeur, il prend le poids d'une action principale de page. */
.st-account-card .st-btn-solid,
.st-account-card .st-btn-outline,
.st-account-login__aside .st-btn-outline {
	width: auto;
}

.st-account-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.st-account-link {
	display: block;
	padding: var(--st-space-sm);
	border: 1px solid var(--st-line, #e4ded9);
	border-radius: 0 0 0 var(--st-radius-md, 15px);
	color: var(--st-ink, #3d1e14);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.st-account-link:hover {
	border-color: var(--st-ink, #3d1e14);
}

.st-account-link strong {
	display: block;
	margin-bottom: 4px;
	font-family: var(--st-font, "Cabin", sans-serif);
	font-size: 1rem;
	font-weight: 500;
}

.st-account-link span {
	color: var(--st-muted, #7a6a5f);
	font-size: 0.8125rem;
}

/**
 * Tableaux de commandes et blocs d'adresses.
 */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .shop_table {
	border: 0;
	border-collapse: collapse;
	width: 100%;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .shop_table th {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--st-line, #e4ded9);
	color: var(--st-muted, #7a6a5f);
	font-family: var(--st-font-ui, "Figtree", sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: left;
}

.woocommerce-account .woocommerce-orders-table td,
.woocommerce-account .shop_table td {
	padding: 14px 12px 14px 0;
	border-bottom: 1px solid var(--st-line, #e4ded9);
	color: var(--st-ink, #3d1e14);
	font-size: 0.9375rem;
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	gap: var(--st-space-sm);
}

/* Meme clearfix que sur le conteneur du compte : ses deux pseudo-elements
   occupaient deux cellules et decalaient les blocs d'adresse en diagonale. */
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	content: none;
}

@media (min-width: 768px) {
	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.woocommerce-account .woocommerce-Address {
	width: auto;
	float: none;
	padding: var(--st-space-sm);
	background-color: var(--st-surface, #f6f6f6);
	border-radius: 0 0 0 var(--st-radius-md, 15px);
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0 0 10px;
	font-family: var(--st-font, "Cabin", sans-serif);
	font-size: 1.125rem !important;
	line-height: 1.2 !important;
	color: var(--st-ink, #3d1e14);
}

.woocommerce-account .woocommerce-Address address {
	color: var(--st-muted, #7a6a5f);
	font-size: 0.9375rem;
	font-style: normal;
	line-height: 1.6;
}

/* Les messages de WooCommerce gardent la langue graphique du site. */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info {
	border-top-color: var(--st-accent, #a3280a);
	background-color: var(--st-surface, #f6f6f6);
	color: var(--st-ink, #3d1e14);
	font-size: 0.9375rem;
}