/*
--------------------------------------
Bannière (composant standard partials/banner/banner.php) — sur "Mon compte"
la page n'a pas de champs Pods (banner_img, banner_first_line_title...)
renseignés, on la stylise donc façon shop-hero : fond forêt, hauteur réduite,
titre centré. Scoped à la page compte (body.woocommerce-account) pour ne pas
impacter les autres pages qui utilisent ce même composant.
--------------------------------------
*/

.woocommerce-account .banner-container {
	height: auto;
	background: var(--forest);
	padding-block: 3rem 0;
}

.woocommerce-account .banner-background-container {
	display: none;
}

.woocommerce-account .banner-text-container {
	position: relative;
	top: auto;
	left: auto;
	transform: none;
}

.woocommerce-account .banner-text-inner {
	align-items: center;
	text-align: center;
	max-width: 100%;
}

.woocommerce-account .banner-title {
	color: var(--cream);
	font-family: var(--font-display);
	font-weight: 400;
}

.hero-banner__wave {
	position: relative;
	bottom: -1px;
}

/*
--------------------------------------
Containers
--------------------------------------
*/

.account-content-wrap {
	padding-block: 2.5rem 3rem;
}

.bwa-account-card {
	background: var(--card);
	border-radius: var(--radius-2xl);
	padding: 1.5rem;
	display: grid;
	gap: 2rem;
}

.bwa-account-card .woocommerce-MyAccount-navigation,
.bwa-account-card .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

@media (min-width: 768px) {
	.bwa-account-card {
		grid-template-columns: 220px 1fr;
		padding: 2rem;
	}
}

/*
--------------------------------------
Navigation (sidebar à gauche)
--------------------------------------
*/

.bwa-account-card .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1rem;
}

.bwa-account-card .woocommerce-MyAccount-navigation li {
	margin: 0;
}

.bwa-account-card .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.4rem 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted-foreground);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.bwa-account-card .woocommerce-MyAccount-navigation a:hover {
	color: var(--forest);
}

.bwa-account-card .woocommerce-MyAccount-navigation li.is-active a {
	color: var(--forest);
}

@media (min-width: 768px) {
	.bwa-account-card .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		gap: 0.15rem;
		border-bottom: none;
		padding-bottom: 0;
		border-right: 1px solid var(--border);
		padding-right: 1.5rem;
	}

	.bwa-account-card .woocommerce-MyAccount-navigation a {
		border-radius: var(--radius-md);
		padding: 0.6rem 0.75rem;
	}

	.bwa-account-card .woocommerce-MyAccount-navigation li.is-active a {
		background: var(--secondary);
	}
}

/*
--------------------------------------
Content
--------------------------------------
*/

.woocommerce-MyAccount-content {
	font-size: 0.85rem;
	line-height: 1.6;
}

.woocommerce-MyAccount-content a {
	color: var(--forest);
}

/*
--------------------------------------
Adresses
--------------------------------------
*/

.woocommerce-Address-title {
	display: flex;
	flex-direction: column;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--foreground);
	margin: 0;
}

.woocommerce-Address-title .edit {
	background: var(--forest);
	color: var(--primary-foreground);
	border: 1px solid var(--forest);
	border-radius: 5px;
	float: none !important;
	font-size: 0.8rem;
	white-space: nowrap;
	transition: all 0.35s ease-in-out;
	padding: 5px;
}

.woocommerce-Address-title .edit:hover {
	background: var(--primary-foreground);
	color: var(--forest);
}

.woocommerce-Address address {
	font-style: normal;
	line-height: 1.6;
}

/*
--------------------------------------
Formulaires (Détails du compte, adresses, connexion...)
--------------------------------------
*/

.woocommerce-MyAccount-content form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--foreground);
	margin-bottom: 0.35rem;
}

.woocommerce-MyAccount-content form .input-text,
.woocommerce-MyAccount-content form select {
	width: 100%;
	font-size: 0.85rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--background);
}

.woocommerce-MyAccount-content form fieldset {
	border: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.woocommerce-MyAccount-content form legend {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--foreground);
	padding: 0;
}

.woocommerce-MyAccount-content form .woocommerce-Button,
.woocommerce-MyAccount-content form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.75rem;
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--cream);
	background: var(--forest);
	cursor: pointer;
	transition: background-color var(--transition-normal);
}

.woocommerce-MyAccount-content form .woocommerce-Button:hover,
.woocommerce-MyAccount-content form button[type="submit"]:hover {
	background: color-mix(in oklch, var(--forest) 90%, white);
}
