/*
 * Mijn account (templates/page-mijn-account.html, inc/account.php — 22-09-2026).
 * Uitgelogd: inlogkaart. Ingelogd: menu als pillen links, inhoud in kaarten rechts.
 * Bovenop woocommerce.css (legacy-opmaak van de shortcode): selectors beginnen met .boozt-account.
 */

.boozt-account :is(.boozt-account__hero, .woocommerce) * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ hero */

.boozt-account__hero {
	padding-block: clamp(3.5rem, 8vw, 6rem);
	padding-inline: var(--wp--style--root--padding-left, 1.5rem);
	margin-block: 0 clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

.boozt-account__hero-binnen {
	position: relative;
	z-index: 3; /* boven de filmkorrel */
	max-width: 60rem;
	margin-inline: auto;
}

.boozt-account__kop {
	margin: 0 0 0.25em;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	font-size: clamp(2.5rem, 7vw, 5rem);
	line-height: 0.92;
	text-transform: uppercase;
	text-wrap: balance;
	color: inherit;
}

.boozt-account__lead {
	max-width: 40rem;
	margin: 0 auto;
	font-size: var(--wp--preset--font-size--lg);
}

.boozt-account__inhoud {
	padding-bottom: var(--wp--preset--spacing--60, 5rem); /* main heeft bij has-bleed-hero geen ondermarge */
}

/* ------------------------------------------------- formulieren en knoppen */

.boozt-account .woocommerce :is(input.input-text, select, textarea) {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--wp--preset--color--line, #dccbba);
	border-radius: 0.75rem;
	background: #fff;
	font: inherit;
	color: var(--wp--preset--color--ink, #1b0b09);
}

.boozt-account .woocommerce :is(input.input-text, select, textarea):hover {
	border-color: var(--wp--preset--color--ink-muted, #6b5a52);
}

.boozt-account .woocommerce label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
}

.boozt-account .woocommerce label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 400;
}

.boozt-account .woocommerce .required {
	color: var(--wp--preset--color--wine, #70041c);
	text-decoration: none;
}

.boozt-account .woocommerce .form-row {
	margin: 0 0 1rem;
	padding: 0;
}

.boozt-account .woocommerce .password-input {
	position: relative;
	display: block;
}

.boozt-account .woocommerce :is(.woocommerce-button, button.button, .button) {
	border-radius: 2.5rem;
}

/* Meldingen (fout, info, gelukt) */
.boozt-account .woocommerce :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem 1rem 3rem;
	border: 0;
	border-radius: 1rem;
	background: var(--wp--preset--color--cream, #ebe0d6);
	color: var(--wp--preset--color--ink, #1b0b09);
	list-style: none;
}

.boozt-account .woocommerce .woocommerce-error {
	background: #f6e3e5;
}

.boozt-account .woocommerce :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
	top: 1rem;
	left: 1.1rem;
	color: var(--wp--preset--color--wine, #70041c);
}

/* ------------------------------------------------------------- uitgelogd */

.boozt-account .woocommerce > h2 {
	max-width: 28rem;
	margin: 0 auto 1rem;
	font-size: var(--wp--preset--font-size--xl);
}

.boozt-account .woocommerce :is(form.login, form.lost_reset_password, form.woocommerce-ResetPassword) {
	max-width: 28rem;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border: 1px solid var(--wp--preset--color--line, #dccbba);
	border-radius: 1.25rem;
	background: #fff;
}

.boozt-account .woocommerce form.login > p:last-of-type,
.boozt-account .woocommerce form.lost_reset_password > p:last-of-type {
	margin-bottom: 0;
}

/* Onthouden + inlogknop: "onthouden" erboven, knop over de volle breedte. */
.boozt-account .woocommerce form.login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
}

.boozt-account .woocommerce :is(.woocommerce-form-login__submit, form.lost_reset_password button) {
	width: 100%;
	float: none;
	margin: 0;
}

.boozt-account .woocommerce .lost_password {
	margin: 1rem 0 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--sm);
}

.boozt-account .woocommerce .lost_password a,
.boozt-account__gast {
	color: var(--wp--preset--color--ink-muted, #6b5a52);
}

.boozt-account__gast {
	margin: 1.25rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line, #dccbba);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	text-align: center;
}

/* ------------------------------------------------------------- ingelogd */

.boozt-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

/* Clearfix van woocommerce.css (::before/::after met display: table) zou in het raster twee lege vakjes worden. */
.boozt-account .woocommerce:has(.woocommerce-MyAccount-navigation)::before,
.boozt-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after {
	content: none;
}

.boozt-account .woocommerce-MyAccount-navigation,
.boozt-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.boozt-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: calc(var(--vino2-bar-h, 4.5rem) + 1.5rem);
}

.boozt-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.boozt-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
}

/* woocommerce-blocktheme.css onderstreept de actieve link en hover (.woocommerce-account … li.is-active a): de pil is genoeg. */
.woocommerce-account .boozt-account .woocommerce-MyAccount-navigation li a,
.woocommerce-account .boozt-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .boozt-account .woocommerce-MyAccount-navigation li a:hover {
	text-decoration: none;
}

.boozt-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.7rem 1.1rem;
	border-radius: 2.5rem;
	color: var(--wp--preset--color--ink, #1b0b09);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.boozt-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--cream, #ebe0d6);
}

.boozt-account .woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--ink, #1b0b09);
	color: var(--wp--preset--color--cream, #ebe0d6);
}

.boozt-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wp--preset--color--line, #dccbba);
}

.boozt-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--ink-muted, #6b5a52);
	font-weight: 400;
}

.boozt-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.boozt-account .woocommerce-MyAccount-content h2,
.boozt-account .woocommerce-MyAccount-content h3 {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--xl);
}

/* Dashboard: de hero groet al — WooCommerce' standaardtekst weg, snelkoppelingen als kaarten. */
.boozt-account-dashboard .boozt-account .woocommerce-MyAccount-content > p {
	display: none;
}

/* Onder elkaar (22-09, Victor): brede rijen met icoon links, tekst, pijl rechts. */
.boozt-account__kaarten {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.boozt-account__kaarten li {
	margin: 0;
}

.boozt-account__kaart {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas:
		"icoon titel pijl"
		"icoon tekst pijl";
	column-gap: 1.25rem;
	row-gap: 0.15rem;
	align-items: center;
	padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: 1.25rem;
	background: var(--wp--preset--color--cream, #ebe0d6);
	color: var(--wp--preset--color--ink, #1b0b09);
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.boozt-account__kaart::after {
	content: "→";
	grid-area: pijl;
	font-size: 1.25rem;
	color: var(--wp--preset--color--wine, #70041c);
	transition: transform 0.2s ease;
}

.boozt-account__kaart:hover {
	background: var(--wp--preset--color--line, #dccbba);
}

.boozt-account__kaart:hover::after {
	transform: translateX(4px);
}

.boozt-account__icoon {
	grid-area: icoon;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--base, #f8f5f1);
	color: var(--wp--preset--color--wine, #70041c);
}

.boozt-account__kaart-titel {
	grid-area: titel;
	align-self: end;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
}

.boozt-account__kaart-tekst {
	grid-area: tekst;
	align-self: start;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	color: var(--wp--preset--color--ink-muted, #6b5a52);
}

/* Bestellingen: tabel als kaart */
.boozt-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	margin: 0 0 1.5rem;
	border: 1px solid var(--wp--preset--color--line, #dccbba);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
}

.boozt-account .woocommerce-MyAccount-content table.shop_table :is(th, td) {
	padding: 0.9rem 1.1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line, #dccbba);
	vertical-align: middle;
}

.boozt-account .woocommerce-MyAccount-content table.shop_table thead th {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--ink-muted, #6b5a52);
	background: var(--wp--preset--color--base, #f8f5f1);
}

.boozt-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child :is(th, td),
.boozt-account .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child :is(th, td) {
	border-bottom: 0;
}

.boozt-account .woocommerce-MyAccount-content table.shop_table a:not(.button) {
	color: inherit;
}

.boozt-account .woocommerce-MyAccount-content table.shop_table .button {
	padding: 0.5rem 1rem;
	font-size: var(--wp--preset--font-size--sm);
}

.boozt-account .woocommerce-orders-table__cell-order-status {
	white-space: nowrap;
}

/* Adressen: twee kaarten */
.boozt-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.boozt-account .woocommerce-Addresses::before,
.boozt-account .woocommerce-Addresses::after {
	content: none; /* clearfix van woocommerce.css, in een grid lege cellen */
}

/* woocommerce.css: .woocommerce .col2-set .col-1 { float: left; width: 48% } — met meer klassen overschrijven. */
.boozt-account .woocommerce .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	max-width: none;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--wp--preset--color--line, #dccbba);
	border-radius: 1rem;
	background: #fff;
}

.boozt-account .woocommerce-Address-title {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.boozt-account .woocommerce-Address-title h2 {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--lg);
}

.boozt-account .woocommerce-Address-title .edit {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--wine, #70041c);
}

.boozt-account .woocommerce-Address address {
	margin: 0;
	font-style: normal;
	line-height: 1.7;
}

/* Formulieren (adres, accountgegevens) in een kaart */
.boozt-account .woocommerce-MyAccount-content form:is(.woocommerce-EditAccountForm, .edit-account),
.boozt-account .woocommerce-MyAccount-content .woocommerce-address-fields {
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line, #dccbba);
	border-radius: 1.25rem;
	background: #fff;
}

.boozt-account .woocommerce-MyAccount-content fieldset {
	margin: 1.5rem 0 1rem;
	padding: 1.25rem 0 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line, #dccbba);
}

.boozt-account .woocommerce-MyAccount-content legend {
	padding: 0 0.5rem 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

/* ------------------------------------------------------------------ mobiel */

@media (max-width: 781px) {
	.boozt-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.boozt-account .woocommerce-MyAccount-navigation {
		position: static;
	}

	/* Menu als horizontale, scrollbare pillenrij */
	.boozt-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		gap: 0.5rem;
		overflow-x: auto;
		padding-bottom: 0.25rem;
		scrollbar-width: none;
	}

	.boozt-account .woocommerce-MyAccount-navigation li {
		flex: none;
	}

	.boozt-account .woocommerce-MyAccount-navigation a {
		border: 1px solid var(--wp--preset--color--line, #dccbba);
		white-space: nowrap;
	}

	.boozt-account .woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.boozt-account .woocommerce-Addresses {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Bestellingen: WooCommerce maakt er op mobiel gestapelde rijen van */
	.boozt-account .woocommerce-MyAccount-content table.shop_table_responsive tr {
		display: block;
		border-bottom: 1px solid var(--wp--preset--color--line, #dccbba);
	}

	.boozt-account .woocommerce-MyAccount-content table.shop_table_responsive tr :is(th, td) {
		border-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.boozt-account__kaart,
	.boozt-account__kaart::after,
	.boozt-account .woocommerce-MyAccount-navigation a {
		transition: none;
	}
}
