/*!
 * Bhoo Agrocare — My Account (loads on the account pages only, after shop.css).
 *
 * Source order: page frame (hero, body) -> shell (sidebar + panel) -> navigation
 * -> shared panel furniture (sections, status chips, notes, empty states) ->
 * dashboard -> orders -> single order -> downloads -> addresses -> forms ->
 * signed-out screens -> WooCommerce's own tables and notices -> responsive.
 *
 * House rules, the same as the other four stylesheets:
 *  - Tabs for indentation; one banner per section, in render order.
 *  - Each @media condition appears once, in the "Responsive" block at the end
 *    (widest first); everything above it is the desktop default.
 *  - Colours, radii, shadows and the page gutter come from the :root tokens.
 *
 * Woo's stylesheet floats the account navigation and content into a 30/68 pair.
 * Both are overridden back to flow at the top of the shell block so the grid
 * here owns the layout; the Woo class names are kept on the markup because
 * plugins hook their own CSS and JS to them.
 */

/* ==========================================================================
   Page frame — hero and the tinted body it sits on
   ========================================================================== */

.ahero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(142deg, var(--g-950) 0%, var(--g-800) 54%, var(--g-700) 100%);
	color: #fff;
}

/* A lime bloom off the bottom-right corner, and a fine dot field over the
   whole band: both are decoration, both are behind the copy. */
.ahero__glow {
	position: absolute;
	right: -8%;
	bottom: -55%;
	z-index: -1;
	width: min(620px, 72%);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(196, 243, 86, .3) 0%, rgba(196, 243, 86, 0) 68%);
}
.ahero__grain {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
	background-size: 22px 22px;
}

.ahero__inner { padding-block: clamp(24px, 3.4vw, 44px) clamp(26px, 3.6vw, 46px); }
/* Signed out the band carries only the trail and a headline, so it is given the
   calmer proportions of a plain page hero rather than a dashboard header. */
.ahero--out .ahero__inner { padding-block: clamp(28px, 4vw, 54px) clamp(32px, 4.6vw, 62px); }

.ahero .crumbs { margin-bottom: clamp(16px, 2vw, 24px); color: rgba(255, 255, 255, .62); }
.ahero .crumbs a { color: rgba(255, 255, 255, .84); }
.ahero .crumbs a:hover { color: #fff; }
.ahero .crumbs__sep { color: rgba(255, 255, 255, .3); }
.ahero .crumbs [aria-current] { color: #fff; }

.ahero__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 28px;
}

.ahero__who { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 20px); min-width: 0; }

.ahero__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: clamp(58px, 6vw, 74px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: linear-gradient(150deg, var(--g-lime) 0%, var(--g-300) 100%);
	color: var(--g-950);
	font-family: var(--font-head);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	letter-spacing: .02em;
	box-shadow: 0 0 0 4px rgba(196, 243, 86, .16), 0 12px 28px rgba(0, 0, 0, .3);
}

.ahero__id { min-width: 0; }

.ahero__hi {
	margin: 0 0 3px;
	color: var(--g-lime);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.ahero__name { margin: 0; color: #fff; font-size: clamp(26px, 3.4vw, 40px); overflow-wrap: anywhere; }
.ahero__lead {
	max-width: 54ch;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, .78);
	font-size: clamp(15px, 1.6vw, 17px);
	line-height: 1.62;
	text-wrap: pretty;
}

.ahero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ahero__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	padding: 5px 13px 5px 10px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .1);
	color: rgba(255, 255, 255, .88);
	font-size: 13px;
}
.ahero__chip .bhoo-icon { color: var(--g-lime-soft); }
.ahero__chip span { min-width: 0; overflow-wrap: anywhere; }

.ahero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ahero__cta { --btn-bg: var(--g-lime); --btn-fg: var(--g-950); }
.ahero__cta:hover { --btn-bg: #d4f97d; --btn-fg: var(--g-950); }

/* ------------------------------------------------------------ counters */

.ahero__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
	gap: 12px;
	margin-top: clamp(22px, 2.8vw, 34px);
}
.astat { display: flex; }
.astat__link {
	display: flex;
	align-items: center;
	gap: 13px;
	flex: 1;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: background-color .18s, border-color .18s, transform .18s var(--ease);
}
a.astat__link:hover {
	background: rgba(255, 255, 255, .15);
	border-color: rgba(196, 243, 86, .5);
	color: #fff;
	transform: translateY(-2px);
}
.astat__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(196, 243, 86, .16);
	color: var(--g-lime);
}
.astat__text { display: flex; flex-direction: column; min-width: 0; }
/* The widest value is the money one; the lower bound is set so a figure like
   "Rs 28,450.00" still clears the icon and the tile's padding at the four-across
   sizes, rather than breaking across lines in the middle of the number. */
.astat__num {
	font-family: var(--font-head);
	font-size: clamp(17px, 1.9vw, 22px);
	font-weight: 700;
	line-height: 1.15;
	overflow-wrap: break-word;
}
.astat__label { color: rgba(255, 255, 255, .7); font-size: 12.5px; }

/* ------------------------------------------------------------- the body */

.acct-body {
	padding-block: clamp(26px, 3.6vw, 48px) var(--section-y);
	background: var(--g-025);
}
/* The tinted panel runs straight into the footer, as the cart and checkout do. */
.woocommerce-account .site-footer { margin-top: 0; }

/* Signed out there is no sidebar, so the sign-in cards keep a readable width. */
.acct-body--out .container { max-width: 980px; }


/* ==========================================================================
   Shell — sticky sidebar beside the panel
   ========================================================================== */

/* Woo floats these two into a 30/68 pair; the grid below owns the layout. */
.woocommerce-account .acct .woocommerce-MyAccount-navigation,
.woocommerce-account .acct .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	margin: 0;
}

.acct {
	display: grid;
	grid-template-columns: 282px minmax(0, 1fr);
	gap: clamp(18px, 2.2vw, 30px);
	align-items: start;
}

.acct__side {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.acct__main { min-width: 0; }

.acct__panel {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
}

.apanel__head {
	padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 30px);
	background: linear-gradient(180deg, var(--g-050) 0%, var(--white) 100%);
	border-bottom: 1px solid var(--line);
	border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.apanel__title { margin: 0; font-size: clamp(19px, 2.2vw, 25px); }
.apanel__sub { max-width: 62ch; margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.apanel__body { padding: clamp(20px, 2.6vw, 30px); }
.apanel__body > :last-child { margin-bottom: 0; }


/* ==========================================================================
   Navigation — icon rows, and the help card beneath them
   ========================================================================== */

.acctnav {
	padding: 10px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-1);
}
/* Scoped one level deeper than the Woo class names on the same elements, so a
   core or plugin rule written for .woocommerce-MyAccount-navigation cannot
   reinstate its own list padding, bullets or link box. */
.acctnav .acctnav__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.acctnav .acctnav__item { margin: 0; padding: 0; border: 0; list-style: none; }

.acctnav .acctnav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px 10px 10px;
	border-radius: 12px;
	color: var(--ink-2);
	font-family: var(--font-head);
	font-size: 14.5px;
	font-weight: 600;
	transition: background-color .18s, color .18s;
}
.acctnav .acctnav__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--g-050);
	color: var(--g-700);
	transition: background-color .18s, color .18s;
}
.acctnav .acctnav__label { flex: 1; min-width: 0; }
.acctnav .acctnav__chev { flex: none; color: var(--g-100); transition: transform .18s var(--ease), color .18s; }

.acctnav .acctnav__link:hover { background: var(--g-025); color: var(--g-900); }
.acctnav .acctnav__link:hover .acctnav__icon { background: var(--g-100); }
.acctnav .acctnav__link:hover .acctnav__chev { color: var(--g-400); transform: translateX(2px); }

.acctnav .acctnav__link.is-current { background: var(--g-800); color: #fff; box-shadow: var(--sh-1); }
.acctnav .acctnav__link.is-current .acctnav__icon { background: rgba(196, 243, 86, .2); color: var(--g-lime); }
.acctnav .acctnav__link.is-current .acctnav__chev { color: var(--g-lime); }

/* Signing out is not one of the destinations, so it is set apart and tinted
   only on approach. Woo's own per-endpoint class is the hook. */
.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--line);
}
.acctnav .acctnav__link--out { color: var(--muted); }
.acctnav .acctnav__link--out .acctnav__icon { background: #f2f4f1; color: var(--muted); }
.acctnav .acctnav__link--out:hover { background: #fdf0f1; color: var(--c-red); }
.acctnav .acctnav__link--out:hover .acctnav__icon { background: #fbe0e2; color: var(--c-red); }
.acctnav .acctnav__link--out:hover .acctnav__chev { color: var(--c-red); }

.accthelp {
	padding: 18px;
	border-radius: var(--r-lg);
	background: linear-gradient(160deg, var(--g-900) 0%, var(--g-800) 100%);
	color: #fff;
	box-shadow: var(--sh-1);
}
.accthelp__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 6px;
	color: #fff;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
}
.accthelp__title .bhoo-icon { color: var(--g-lime); }
.accthelp__text { margin: 0 0 14px; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.55; }
.accthelp__rows { display: flex; flex-direction: column; gap: 8px; }
.accthelp__rows a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 11px;
	border-radius: 11px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: background-color .18s;
}
.accthelp__rows a:hover { background: rgba(255, 255, 255, .17); color: #fff; }
.accthelp__rows .bhoo-icon { flex: none; color: var(--g-lime-soft); }
.accthelp__label {
	display: block;
	color: rgba(255, 255, 255, .6);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.accthelp__value {
	display: block;
	font-family: var(--font-head);
	font-size: 13.5px;
	font-weight: 600;
	overflow-wrap: anywhere;
}


/* ==========================================================================
   Panel furniture — sections, status chips, notes, empty states
   ========================================================================== */

.asection + .asection { margin-top: clamp(26px, 3.2vw, 38px); }
.asection__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 16px;
}
.asection__title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16.5px; }
.asection__title .bhoo-icon { flex: none; color: var(--g-500); }
.asection__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--g-700);
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 600;
}
.asection__more .bhoo-icon { transition: transform .18s var(--ease); }
.asection__more:hover .bhoo-icon { transform: translateX(3px); }

.astatus {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 13px 5px 11px;
	border-radius: var(--r-pill);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.45;
	white-space: nowrap;
}
.astatus__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.astatus--ok { background: var(--g-100); color: var(--g-800); }
.astatus--info { background: #e3eefb; color: #17497f; }
.astatus--warn { background: #fdf0d3; color: #78520a; }
.astatus--bad { background: #fbe3e5; color: #8b1f2b; }

.anote {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 13px 16px;
	border: 1px solid var(--g-100);
	border-radius: var(--r-md);
	background: var(--g-050);
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.55;
}
.anote .bhoo-icon { flex: none; margin-top: 2px; color: var(--g-600); }

.aempty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(28px, 4vw, 50px) 24px;
	border: 1px dashed var(--g-100);
	border-radius: var(--r-md);
	background: var(--g-025);
	text-align: center;
}
.aempty__icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin-bottom: 18px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--g-500);
	box-shadow: var(--sh-1);
}
.aempty__title { margin: 0 0 8px; font-size: 19px; }
.aempty__text { max-width: 46ch; margin: 0 0 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.aempty__text:last-child { margin-bottom: 0; }


/* ==========================================================================
   Dashboard — shortcut tiles
   ========================================================================== */

.atiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.atiles > li { display: flex; }

.atile {
	display: flex;
	align-items: center;
	gap: 13px;
	flex: 1;
	min-width: 0;
	padding: 15px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
	transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.atile:hover { background: var(--g-025); border-color: var(--g-300); box-shadow: var(--sh-1); transform: translateY(-2px); }
.atile__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--g-mint);
	color: var(--g-700);
	transition: background-color .18s;
}
.atile:hover .atile__icon { background: var(--g-100); }
.atile__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.atile__title { font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--g-900); }
.atile__sub { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.atile__go { flex: none; color: var(--g-100); transition: transform .18s var(--ease), color .18s; }
.atile:hover .atile__go { color: var(--g-500); transform: translateX(3px); }


/* ==========================================================================
   Orders — one card each
   ========================================================================== */

.aorders { display: flex; flex-direction: column; gap: 14px; }

.aorder {
	--aorder-accent: var(--g-400);
	position: relative;
	overflow: hidden;
	padding: 17px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
	transition: border-color .18s, box-shadow .18s;
}
.aorder::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--aorder-accent);
}
.aorder:hover { border-color: var(--g-300); box-shadow: var(--sh-2); }
.aorder--ok { --aorder-accent: var(--g-500); }
.aorder--info { --aorder-accent: #2f7fd0; }
.aorder--warn { --aorder-accent: var(--c-gold); }
.aorder--bad { --aorder-accent: var(--c-red); }

.aorder__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}
.aorder__ident { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.aorder__num { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--g-900); }
a.aorder__num:hover { color: var(--g-600); }
.aorder__date { color: var(--muted); font-size: 13.5px; }

.aorder__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 26px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--line);
}

.aorder__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.aorder__thumb {
	position: relative;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--g-025);
}
.aorder__thumb > a { display: block; width: 100%; height: 100%; }
.aorder__thumb img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.aorder__qty {
	position: absolute;
	right: 3px;
	bottom: 3px;
	padding: 1px 6px;
	border-radius: var(--r-pill);
	background: var(--g-800);
	color: #fff;
	font-family: var(--font-head);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.6;
}
.aorder__thumb--more { border-style: dashed; background: var(--white); }
.aorder__thumb--more a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 4px;
	color: var(--g-700);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.aorder__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.aorder__facts > div { min-width: 0; }
.aorder__facts dt {
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.aorder__facts dd { margin: 3px 0 0; color: var(--g-900); font-family: var(--font-head); font-size: 14.5px; font-weight: 600; }
.aorder__total { font-size: 16.5px; }
.aorder__total .amount { font-weight: 700; }
.aorder__total del { color: var(--muted); font-weight: 500; }
.aorder__total ins { text-decoration: none; }

.aorder__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.aorder__foot .btn { padding: 10px 18px; font-size: 14px; }
/* Only the forward arrows travel; a receipt or a cross sliding right reads as
   a glitch. */
.aorder__foot .btn:hover .bhoo-icon { transform: none; }


/* ==========================================================================
   Single order — summary strip and the update timeline
   ========================================================================== */

.aview__summary {
	--aview-accent: var(--g-500);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	margin-bottom: clamp(22px, 2.8vw, 32px);
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--aview-accent);
	border-radius: var(--r-md);
	background: linear-gradient(140deg, var(--g-050) 0%, var(--g-025) 100%);
}
.aview__summary--ok { --aview-accent: var(--g-500); }
.aview__summary--info { --aview-accent: #2f7fd0; }
.aview__summary--warn { --aview-accent: var(--c-gold); }
.aview__summary--bad { --aview-accent: var(--c-red); }

.aview__facts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0; }
.aview__facts dt {
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.aview__facts dd { margin: 4px 0 0; color: var(--g-900); font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.aview__num { font-size: 17px; letter-spacing: .01em; }
.aview__total { font-size: 17px; }
.aview__total .amount { font-weight: 700; }

.aview__back { margin-top: clamp(22px, 2.8vw, 32px); }

.atimeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 28px; }
.atimeline::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	border-radius: 2px;
	background: var(--g-100);
}
.atimeline__item { position: relative; }
.atimeline__dot {
	position: absolute;
	left: -28px;
	top: 16px;
	width: 16px;
	height: 16px;
	border: 3px solid var(--white);
	border-radius: 50%;
	background: var(--g-500);
	box-shadow: 0 0 0 2px var(--g-100);
}
.atimeline__body { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--g-025); }
.atimeline__meta { margin: 0 0 6px; color: var(--muted); font-family: var(--font-head); font-size: 12.5px; font-weight: 600; }
.atimeline__text { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.atimeline__text p:last-child { margin-bottom: 0; }


/* ==========================================================================
   Downloads
   ========================================================================== */

.adls { display: flex; flex-direction: column; gap: 12px; }
.adl {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 16px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
	transition: border-color .18s, box-shadow .18s;
}
.adl:hover { border-color: var(--g-300); box-shadow: var(--sh-1); }
.adl__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--g-mint);
	color: var(--g-700);
}
.adl__text { flex: 1 1 200px; min-width: 0; }
.adl__name { margin: 0; color: var(--g-900); font-family: var(--font-head); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.adl__from { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.adl__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; color: var(--muted); font-size: 12.5px; }
.adl__meta li { display: inline-flex; align-items: center; gap: 6px; }
.adl__meta .bhoo-icon { flex: none; color: var(--g-400); }
.adl__btn { flex: none; padding: 11px 20px; font-size: 14px; }
.adl__btn:hover .bhoo-icon { transform: translateY(2px); }


/* ==========================================================================
   Addresses
   ========================================================================== */

.aaddrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 16px; }

.aaddr {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--white);
	box-shadow: var(--sh-1);
}
.aaddr--blank { border-style: dashed; background: var(--g-025); box-shadow: none; }

.aaddr__head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.aaddr__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--g-mint);
	color: var(--g-700);
}
.aaddr__title { margin: 0; font-size: 16px; }
.aaddr__body {
	flex: 1;
	margin: 0 0 18px;
	color: var(--ink-2);
	font-size: 14.5px;
	font-style: normal;
	line-height: 1.72;
}
.aaddr__none { color: var(--muted); }
.aaddr__edit { align-self: flex-start; padding: 10px 18px; font-size: 14px; }
.aaddr__edit:hover .bhoo-icon { transform: none; }


/* ==========================================================================
   Forms — account details, addresses, sign-in
   ========================================================================== */

.aform__title { margin: 0 0 18px; font-size: 17px; }

.aform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
/* Woo emits each field as a <p class="form-row …">; the grid is the only thing
   that positions them, so their own margins go. */
.aform__grid > p,
.aform__grid > .form-row { margin: 0; min-width: 0; }
/* WooCommerce's float layout still sizes .form-row-first / -last at 47%, which
   inside a grid cell shrinks the field to half its column. The grid decides
   the width here. Scoped to .aform so checkout keeps WooCommerce's own layout;
   the extra class outranks `.woocommerce form .form-row-first`. */
.aform .aform__grid > .form-row { width: auto; float: none; }
.aform__grid > .form-row-wide,
.aform__grid > .aform__row--wide,
.aform__grid > .woocommerce-form-row--wide { grid-column: 1 / -1; }
/* Woo's float-clearing spacers have no job inside a grid. */
.aform .clear { display: none; }

.aform label {
	display: block;
	margin-bottom: 7px;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 13.5px;
	font-weight: 600;
}
.aform .required { border: 0; color: var(--c-red); text-decoration: none; }
.aform .optional { color: var(--muted); font-weight: 500; }

.aform input[type="text"],
.aform input[type="email"],
.aform input[type="tel"],
.aform input[type="password"],
.aform input[type="number"],
.aform input[type="search"],
.aform input[type="url"],
.aform textarea,
.aform select {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-sm);
	background-color: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	transition: border-color .18s, box-shadow .18s;
}
.aform textarea { min-height: 112px; resize: vertical; }

/* The arrow is drawn in as a background so the control can carry the theme's
   border; its open list is the shared themed menu (main.js). */
.aform select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2317492a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 16px 16px;
	cursor: pointer;
}

.aform input:focus,
.aform textarea:focus,
.aform select:focus {
	outline: none;
	border-color: var(--g-400);
	box-shadow: 0 0 0 4px rgba(47, 158, 68, .15);
}
.aform input::placeholder,
.aform textarea::placeholder { color: var(--muted); }

.aform .woocommerce-invalid input.input-text,
.aform .woocommerce-invalid select { border-color: var(--c-red); }
.aform .woocommerce-validated input.input-text { border-color: var(--g-400); }

.aform__hint,
.aform__row span em { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; font-style: normal; }

.aform__card {
	margin: clamp(22px, 2.8vw, 32px) 0 0;
	padding: clamp(18px, 2.2vw, 24px);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--g-025);
}
.aform__legend {
	display: flex;
	align-items: center;
	gap: 9px;
	float: none;
	width: auto;
	padding: 0;
	margin-bottom: 4px;
	color: var(--g-900);
	font-family: var(--font-head);
	font-size: 15.5px;
	font-weight: 700;
}
.aform__legend .bhoo-icon { color: var(--g-600); }
.aform__legend-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

.aform__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: clamp(20px, 2.6vw, 30px) 0 0;
}
/* WooCommerce clears its `.form-row` with ::before/::after. In a flex row those
   become two extra flex items, and space-between then shares the gap with
   them — which pushed "Remember me" into the middle of its row. Woo's own
   selector is `.woocommerce form .form-row::before`, so switching them off
   has to be at least as specific. */
.woocommerce form .form-row.aform__actions::before,
.woocommerce form .form-row.aform__actions::after,
.woocommerce form .form-row.alogin__row::before,
.woocommerce form .form-row.alogin__row::after,
.aform__actions::before,
.aform__actions::after,
.alogin__row::before,
.alogin__row::after { content: none; }
.aform__actions .btn { padding: 12px 24px; }
.aform__actions .btn:hover .bhoo-icon { transform: none; }
.aform__actions .btn--block { flex: 1 1 100%; }
.aform__actions .btn--block:hover .bhoo-icon { transform: translateX(3px); }

/* The element selector in `.aform label` outranks a lone class, so the custom
   checkbox carries both — otherwise it inherits display:block and the box
   stacks above its wording. WooCommerce's own `.woocommerce form .form-row
   label { display: block }` outranks both of those, so any row that also
   carries Woo's `form-row` class (the login form's Remember me) needs the
   third selector below. */
.woocommerce form .form-row label.acheck,
.aform label.acheck,
.acheck {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--ink-2);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}
/* Kept inside the label so the hit area and the focus ring stay on the box. */
.acheck input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.acheck__box {
	display: grid;
	place-items: center;
	flex: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--white);
	color: transparent;
	transition: background-color .16s, border-color .16s, color .16s;
}
.acheck input:checked + .acheck__box { border-color: var(--g-600); background: var(--g-600); color: #fff; }
.acheck input:focus-visible + .acheck__box { outline: 3px solid var(--g-400); outline-offset: 2px; }


/* ==========================================================================
   Signed out — sign in, register, password reset
   ========================================================================== */

.alogin { display: grid; gap: clamp(16px, 2vw, 24px); }
.alogin--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.alogin__card {
	padding: clamp(22px, 2.8vw, 34px);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: var(--sh-1);
}
.alogin__card--register { background: var(--g-025); }

.alogin__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.alogin__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--g-mint);
	color: var(--g-700);
}
.alogin__title { margin: 0 0 5px; font-size: 21px; }
.alogin__sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.alogin__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0 0;
}
.alogin__lost { color: var(--g-700); font-family: var(--font-head); font-size: 14px; font-weight: 600; }
.alogin__lost:hover { text-decoration: underline; }

/* The privacy-policy text WooCommerce hooks into the register form. */
.alogin .woocommerce-privacy-policy-text { margin-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.alogin .woocommerce-privacy-policy-text p:last-child { margin-bottom: 0; }


/* ==========================================================================
   WooCommerce's own output inside the panel — tables, addresses, notices
   ========================================================================== */

.acct__panel .woocommerce-order-details__title,
.acct__panel .woocommerce-column__title,
.acct__panel .woocommerce-customer-details h2,
.acct__panel .woocommerce-MyAccount-content h2 { margin: 0 0 14px; font-size: 16.5px; }

.acct__panel table.shop_table {
	width: 100%;
	margin: 0 0 clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.acct__panel table.shop_table th,
.acct__panel table.shop_table td {
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid var(--line);
	font-size: 14.5px;
	text-align: left;
	vertical-align: top;
}
.acct__panel table.shop_table thead th {
	background: var(--g-025);
	color: var(--muted);
	font-family: var(--font-head);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.acct__panel table.shop_table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.acct__panel table.shop_table tfoot th,
.acct__panel table.shop_table tfoot td { background: var(--g-025); color: var(--g-900); font-family: var(--font-head); font-weight: 600; }
.acct__panel table.shop_table tfoot tr:last-child th,
.acct__panel table.shop_table tfoot tr:last-child td { border-bottom: 0; font-size: 15.5px; }
.acct__panel table.shop_table .product-name a { color: var(--g-800); font-weight: 600; }
.acct__panel table.shop_table .product-name a:hover { color: var(--g-600); }
.acct__panel table.shop_table .wc-item-meta,
.acct__panel table.shop_table .wc-item-meta li { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.acct__panel table.shop_table .wc-item-meta strong { font-weight: 600; }
.acct__panel .table-scroll,
.acct__panel .woocommerce-table__product-table { overflow-x: auto; }

.acct__panel .woocommerce-customer-details { margin-top: clamp(20px, 2.4vw, 28px); }
.acct__panel .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
	gap: 16px;
	margin: 0;
}
.acct__panel .woocommerce-customer-details address {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--g-025);
	color: var(--ink-2);
	font-size: 14.5px;
	font-style: normal;
	line-height: 1.72;
}
.acct__panel .woocommerce-customer-details .woocommerce-customer-details--phone,
.acct__panel .woocommerce-customer-details .woocommerce-customer-details--email { margin: 10px 0 0; overflow-wrap: anywhere; }

.apager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(20px, 2.4vw, 28px); }
.apager .btn { padding: 10px 18px; font-size: 14px; }
.apager .btn:hover .bhoo-icon { transform: none; }
.apager__count { color: var(--muted); font-family: var(--font-head); font-size: 13.5px; font-weight: 600; }

/* Notices: one tinted card with a coloured edge. Woo's icon font glyph is
   dropped — nothing else on the site uses it, and the edge already carries the
   tone. */
.acct-body .woocommerce-message,
.acct-body .woocommerce-error,
.acct-body .woocommerce-info,
.acct-body .woocommerce-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-left-width: 4px;
	border-radius: var(--r-md);
	background: var(--g-050);
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.55;
	list-style: none;
}
.acct-body .woocommerce-message::before,
.acct-body .woocommerce-error::before,
.acct-body .woocommerce-info::before,
.acct-body .woocommerce-notice::before { content: none; }
.acct-body .woocommerce-message { border-left-color: var(--g-500); }
.acct-body .woocommerce-info { border-left-color: #2f7fd0; background: #edf3fb; }
.acct-body .woocommerce-error { border-left-color: var(--c-red); background: #fdeef0; color: #7c1a24; }
.acct-body .woocommerce-error li { list-style: none; }
.acct-body .woocommerce-message .button,
.acct-body .woocommerce-info .button,
.acct-body .woocommerce-error .button { margin-left: auto; }
.acct-body .woocommerce-notices-wrapper:empty { display: none; }


/* ==========================================================================
   Responsive — widest first
   ========================================================================== */

@media (max-width: 1100px) {
	.acct { grid-template-columns: 244px minmax(0, 1fr); }
}

@media (max-width: 900px) {
	/* The sidebar's two cards become siblings of the panel so the nav can lead
	   and the help card can follow the content it supports. */
	.acct { grid-template-columns: minmax(0, 1fr); }
	.acct__side { display: contents; }
	.acctnav { order: 1; padding: 8px; }
	.acct__main { order: 2; }
	.accthelp { order: 3; }

	.acctnav .acctnav__list {
		flex-direction: row;
		gap: 6px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.acctnav .acctnav__list::-webkit-scrollbar { display: none; }
	.acctnav .acctnav__item { flex: none; }
	.acctnav .acctnav__link { padding: 8px 14px 8px 8px; white-space: nowrap; }
	.acctnav .acctnav__icon { width: 30px; height: 30px; }
	.acctnav .acctnav__chev { display: none; }
	.woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0 0 0 2px;
		padding: 0 0 0 8px;
		border-top: 0;
		border-left: 1px solid var(--line);
	}

	.accthelp__rows { flex-direction: row; flex-wrap: wrap; }
	.accthelp__rows li { flex: 1 1 180px; }
	.accthelp__rows a { height: 100%; }
}

@media (max-width: 760px) {
	/* Four across would leave a single tile stranded on its own row here, so the
	   strip squares off into a two-by-two. */
	.ahero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.aview__summary { gap: 16px 24px; }
	.alogin--two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
	.ahero__top { align-items: flex-start; }
	.ahero__actions { width: 100%; }
	.ahero__actions .btn { flex: 1 1 auto; justify-content: center; }
	.ahero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.astat__link { gap: 10px; padding: 12px; }
	.astat__icon { width: 34px; height: 34px; }

	.apanel__body { padding: 18px 16px; }
	.apanel__head { padding: 18px 16px; }

	.aorder { padding: 16px; }
	.aorder__body { gap: 14px; }
	.aorder__facts { gap: 10px 20px; }
	.aorder__foot .btn { flex: 1 1 calc(50% - 5px); justify-content: center; }

	.adl { gap: 12px; }
	.adl__btn { flex: 1 1 100%; justify-content: center; }

	.aform__grid { grid-template-columns: minmax(0, 1fr); }
	.aform__actions .btn { flex: 1 1 100%; justify-content: center; }

	.alogin__card { padding: 20px 16px; }
	.alogin__head { gap: 12px; margin-bottom: 18px; }

	.apager { justify-content: center; }
	.apager__count { order: -1; flex: 1 1 100%; text-align: center; }

	/* The order and payment-method tables are Woo's own responsive ones: each
	   row restacks as label / value pairs. */
	.acct__panel table.shop_table_responsive thead { display: none; }
	.acct__panel table.shop_table_responsive tbody tr,
	.acct__panel table.shop_table_responsive tfoot tr { display: block; border-bottom: 1px solid var(--line); }
	.acct__panel table.shop_table_responsive tbody tr:last-child,
	.acct__panel table.shop_table_responsive tfoot tr:last-child { border-bottom: 0; }
	.acct__panel table.shop_table_responsive td,
	.acct__panel table.shop_table_responsive tfoot th {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
		padding: 9px 14px;
		border-bottom: 0;
		text-align: right;
	}
	.acct__panel table.shop_table_responsive td::before {
		content: attr(data-title) ": ";
		flex: none;
		color: var(--muted);
		font-family: var(--font-head);
		font-size: 12.5px;
		font-weight: 600;
		text-align: left;
	}
}

@media (max-width: 420px) {
	.ahero__who { gap: 12px; }
	/* The counters stay two across at phone width — a single column turns four
	   short facts into half a screen. The figure gives up a little size for it. */
	.astat__num { font-size: 17px; }
	.astat__label { font-size: 12px; }

	/* Five tiles on one line: four thumbnails and the "+n more" chip. */
	.aorder__thumb { width: 48px; height: 48px; border-radius: 10px; }
	.aorder__thumbs { gap: 6px; }

	/* Two actions to a row at this width, so each label has to fit a half-card
	   on one line. */
	.aorder__foot .btn { gap: 7px; padding: 10px 13px; font-size: 13.5px; }

	.atiles { grid-template-columns: minmax(0, 1fr); }
}
