/**
 * WOH Account — My Account layout and components.
 *
 * Scope: every rule sits under `body.woh-account`, so nothing here can leak
 * into the shop, cart or checkout.
 *
 * Why the !important flags exist: /my-account/ is rendered by the Elementor
 * Pro "My Account" widget, which prints its own styles at a specificity of
 * `.elementor-9 .elementor-element.elementor-element-d17d70c ...`. Those rules
 * set the navy tab blocks, uppercase transform and 16px size that this
 * redesign replaces. Rather than chase Elementor's generated selectors (which
 * change if the widget id changes), the handful of properties Elementor
 * actually sets are overridden explicitly. Every other rule here is plain
 * specificity.
 */

body.woh-account {
	--woh-navy: #00224b;
	--woh-blue: #00377a;
	--woh-orange: #f26838;
	--woh-orange-hi: #f67e55;
	--woh-green: #73d4bc;

	--woh-ink: #14243f;
	--woh-ink-2: #4a5a75;
	--woh-ink-3: #7b89a1;

	--woh-bg: #f5f7fa;
	--woh-card: #ffffff;
	--woh-line: #e2e7ef;
	--woh-line-soft: #eef1f6;
	--woh-tint: #f0f4fa;

	--woh-r-sm: 8px;
	--woh-r-md: 12px;
	--woh-r-lg: 16px;

	--woh-shadow: 0 1px 2px rgba(0, 34, 75, .05), 0 8px 24px -16px rgba(0, 34, 75, .22);
	--woh-shadow-hi: 0 2px 4px rgba(0, 34, 75, .06), 0 16px 32px -18px rgba(0, 34, 75, .3);

	--woh-focus: 0 0 0 3px rgba(0, 55, 122, .18);
}

/* --------------------------------------------------------------------------
 * Page shell
 * ----------------------------------------------------------------------- */

/*
 * The account shell markup is:
 *   .e-my-account-tab > .woocommerce > nav.woocommerce-MyAccount-navigation
 *                                    + div.woocommerce-MyAccount-content
 * `woocommerce-account` is a body class, not an ancestor, so the grid is
 * attached to the .woocommerce wrapper both inside and outside the Elementor
 * widget (the widget is what renders it today; the second selector keeps this
 * working if the page is ever switched to the plain shortcode).
 */
body.woh-account .e-my-account-tab > .woocommerce,
body.woh-account.woocommerce-account .woocommerce-MyAccount-content,
body.woh-account.woocommerce-account .woocommerce-MyAccount-navigation {
	box-sizing: border-box;
}

/*
 * Only the logged-in shell is a two-column grid. Logged out, the same
 * wrapper holds the notices div and the login/register block, and a grid
 * would drop them into a 264px sidebar track.
 */
body.woh-account .e-my-account-tab > .woocommerce:has(> .woocommerce-MyAccount-navigation),
body.woh-account.woocommerce-account > .woocommerce:has(> .woocommerce-MyAccount-navigation),
body.woh-account .elementor-widget-woocommerce-my-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(0, 264px) minmax(0, 1fr);
	align-items: start;
	gap: 28px;
}

/*
 * WooCommerce's stylesheet gives .woocommerce a ::before/::after clearfix
 * pair. Harmless while the wrapper is a block, but as a grid container they
 * become real grid items and take the first and last cells, which pushed the
 * navigation into column 2 and the content onto a second row.
 */
body.woh-account .e-my-account-tab > .woocommerce::before,
body.woh-account .e-my-account-tab > .woocommerce::after,
body.woh-account .elementor-widget-woocommerce-my-account .woocommerce::before,
body.woh-account .elementor-widget-woocommerce-my-account .woocommerce::after {
	display: none;
}

body.woh-account .woocommerce-MyAccount-navigation {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	position: sticky;
	top: 24px;
}

body.woh-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	min-width: 0;
	color: var(--woh-ink);
}

body.woh-account .woocommerce-MyAccount-content > p:first-child:empty {
	display: none;
}

/*
 * The page still carries an Elementor heading widget reading "Welcome to your
 * Account Page, Mark." directly above the My Account widget. Every panel now
 * has its own title (the dashboard opens with "Hello, Mark"), so it reads as a
 * duplicate — badly so on mobile, where it costs most of the first screen.
 * Hidden here rather than deleted so the widget is still there in Elementor if
 * it is wanted back; delete it on page 9 to remove it for good.
 */
body.woh-account .elementor-widget-heading:has(~ .e-con .elementor-widget-woocommerce-my-account) {
	display: none;
}

/* --------------------------------------------------------------------------
 * Sidebar navigation
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-nav {
	background: var(--woh-card);
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-lg);
	box-shadow: var(--woh-shadow);
	overflow: hidden;
}

body.woh-account .woh-acc-nav__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 18px 16px;
	border-bottom: 1px solid var(--woh-line-soft);
	background: linear-gradient(180deg, var(--woh-tint), var(--woh-card));
}

body.woh-account .woh-acc-nav__avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--woh-navy);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .02em;
}

body.woh-account .woh-acc-nav__who {
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

body.woh-account .woh-acc-nav__name {
	font-weight: 600;
	color: var(--woh-navy);
	font-size: 15px;
}

body.woh-account .woh-acc-nav__email {
	font-size: 12.5px;
	color: var(--woh-ink-3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.woh-account .woh-acc-nav__toggle {
	display: none;
}

body.woh-account .woh-acc-nav__panel {
	padding: 10px 10px 12px;
}

body.woh-account .woh-acc-nav__group + .woh-acc-nav__group {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--woh-line-soft);
}

body.woh-account .woh-acc-nav__group-label {
	margin: 8px 0 4px;
	padding: 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.woh-account .woh-acc-nav__item {
	margin: 0;
	padding: 0;
	border: 0;
	background: none !important;
}

body.woh-account .woh-acc-nav__item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px !important;
	border-radius: var(--woh-r-sm);
	color: var(--woh-ink-2) !important;
	background: transparent !important;
	font-size: 14.5px !important;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none !important;
	text-decoration: none !important;
	position: relative;
	transition: background-color .15s ease, color .15s ease;
}

body.woh-account .woh-acc-nav__item a:hover,
body.woh-account .woh-acc-nav__item a:focus-visible {
	background: var(--woh-tint) !important;
	color: var(--woh-navy) !important;
}

body.woh-account .woh-acc-nav__item a:focus-visible {
	outline: none;
	box-shadow: var(--woh-focus);
}

body.woh-account .woh-acc-nav__item.is-active a {
	background: var(--woh-tint) !important;
	color: var(--woh-navy) !important;
	font-weight: 600;
}

body.woh-account .woh-acc-nav__item.is-active a::before {
	content: "";
	position: absolute;
	left: -10px;
	top: 8px;
	bottom: 8px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--woh-orange);
}

body.woh-account .woh-acc-nav__icon {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	opacity: .75;
}

body.woh-account .woh-acc-nav__item.is-active .woh-acc-nav__icon {
	opacity: 1;
	color: var(--woh-blue);
}

body.woh-account .woh-acc-nav__item.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--woh-ink-3) !important;
}

/* --------------------------------------------------------------------------
 * Shared building blocks
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-card {
	background: var(--woh-card);
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-lg);
	box-shadow: var(--woh-shadow);
	padding: 22px;
}

body.woh-account .woh-acc-card + .woh-acc-card {
	margin-top: 20px;
}

body.woh-account .woh-acc-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

body.woh-account .woh-acc-card__head h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--woh-navy);
	letter-spacing: 0;
}

body.woh-account .woh-acc-eyebrow {
	margin: 0 0 6px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-pagehead {
	margin: 0 0 22px;
}

body.woh-account .woh-acc-pagehead__title {
	margin: 0;
	font-size: 34px;
	line-height: 1.1;
	font-weight: 400;
	color: var(--woh-navy);
}

body.woh-account .woh-acc-pagehead__sub {
	margin: 8px 0 0;
	max-width: 62ch;
	color: var(--woh-ink-2);
	font-size: 15px;
}

body.woh-account .woh-acc-muted {
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-link {
	color: var(--woh-blue);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

body.woh-account .woh-acc-link:hover {
	border-bottom-color: currentColor;
}

body.woh-account .woh-acc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}

body.woh-account .woh-acc-btn:active {
	transform: translateY(1px);
}

body.woh-account .woh-acc-btn:focus-visible {
	outline: none;
	box-shadow: var(--woh-focus);
}

body.woh-account .woh-acc-btn--primary {
	background: var(--woh-orange);
	border-color: var(--woh-orange);
	color: #fff;
}

body.woh-account .woh-acc-btn--primary:hover {
	background: var(--woh-orange-hi);
	border-color: var(--woh-orange-hi);
	color: #fff;
}

body.woh-account .woh-acc-btn--secondary {
	background: var(--woh-navy);
	border-color: var(--woh-navy);
	color: #fff;
}

body.woh-account .woh-acc-btn--secondary:hover {
	background: var(--woh-blue);
	border-color: var(--woh-blue);
	color: #fff;
}

body.woh-account .woh-acc-btn--ghost {
	background: #fff;
	border-color: var(--woh-line);
	color: var(--woh-navy);
}

body.woh-account .woh-acc-btn--ghost:hover {
	border-color: var(--woh-blue);
	background: var(--woh-tint);
	color: var(--woh-navy);
}

body.woh-account .woh-acc-btn--small {
	min-height: 34px;
	padding: 0 13px;
	font-size: 13px;
}

body.woh-account .woh-acc-btn[disabled],
body.woh-account .woh-acc-btn.is-disabled {
	opacity: .5;
	pointer-events: none;
}

body.woh-account .woh-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

body.woh-account .woh-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

body.woh-account .woh-pill--good { background: #e8f7f1; color: #1a7a5c; }
body.woh-account .woh-pill--active { background: #eaf1fb; color: var(--woh-blue); }
body.woh-account .woh-pill--waiting { background: #fdf0e9; color: #b6501f; }
body.woh-account .woh-pill--bad { background: #fdecec; color: #a32a2a; }
body.woh-account .woh-pill--neutral { background: #f0f2f6; color: var(--woh-ink-2); }

body.woh-account .woh-acc-empty {
	text-align: center;
	padding: 34px 20px;
	color: var(--woh-ink-2);
}

body.woh-account .woh-acc-empty h3 {
	margin: 0 0 6px;
	font-size: 19px;
	color: var(--woh-navy);
	font-weight: 600;
}

body.woh-account .woh-acc-empty p {
	margin: 0 auto 16px;
	max-width: 46ch;
}

/* --------------------------------------------------------------------------
 * Dashboard
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-dash__hero {
	margin-bottom: 22px;
}

body.woh-account .woh-acc-dash__greeting {
	margin: 0;
	font-size: 38px;
	line-height: 1.08;
	font-weight: 400;
	color: var(--woh-navy);
}

body.woh-account .woh-acc-dash__sub {
	margin: 10px 0 0;
	max-width: 60ch;
	color: var(--woh-ink-2);
	font-size: 15.5px;
}

body.woh-account .woh-acc-stats {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}

/*
 * The card treatment lives on the <li> so a tile works whether or not its
 * contents are wrapped in a link (the corporate panel reuses these tiles for
 * figures that have nowhere to link to).
 */
body.woh-account .woh-acc-stat {
	display: flex;
	padding: 18px;
	background: var(--woh-card);
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-md);
	box-shadow: var(--woh-shadow);
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

body.woh-account .woh-acc-stat,
body.woh-account .woh-acc-stat a {
	flex-direction: column;
	gap: 2px;
}

body.woh-account .woh-acc-stat a {
	display: flex;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

body.woh-account .woh-acc-stat:has(a):hover {
	box-shadow: var(--woh-shadow-hi);
	border-color: #d4dcea;
	transform: translateY(-1px);
}

body.woh-account .woh-acc-stat__value {
	font-size: 32px;
	line-height: 1.05;
	font-weight: 500;
	color: var(--woh-navy);
	font-variant-numeric: tabular-nums;
}

body.woh-account .woh-acc-stat__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--woh-ink);
	margin-top: 4px;
}

body.woh-account .woh-acc-stat__meta {
	font-size: 12.5px;
	color: var(--woh-ink-3);
	line-height: 1.35;
}

body.woh-account .woh-acc-orderlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.woh-account .woh-acc-orderlist__row {
	display: grid;
	grid-template-columns: 84px 1fr auto auto auto;
	align-items: center;
	gap: 14px;
	padding: 13px 0;
	border-top: 1px solid var(--woh-line-soft);
}

body.woh-account .woh-acc-orderlist__row:first-child {
	border-top: 0;
	padding-top: 0;
}

body.woh-account .woh-acc-orderlist__id a {
	font-weight: 600;
	color: var(--woh-navy);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

body.woh-account .woh-acc-orderlist__date {
	color: var(--woh-ink-3);
	font-size: 14px;
}

body.woh-account .woh-acc-orderlist__total {
	text-align: right;
	font-weight: 600;
	color: var(--woh-navy);
	white-space: nowrap;
}

body.woh-account .woh-acc-orderlist__total small {
	display: block;
	font-weight: 400;
	font-size: 12.5px;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-quick {
	margin-top: 22px;
}

body.woh-account .woh-acc-quick__title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-quick__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

body.woh-account .woh-acc-quick__card {
	display: block;
	padding: 18px;
	background: var(--woh-card);
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-md);
	box-shadow: var(--woh-shadow);
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

body.woh-account .woh-acc-quick__card:hover {
	box-shadow: var(--woh-shadow-hi);
	border-color: #d4dcea;
	transform: translateY(-1px);
}

body.woh-account .woh-acc-quick__card .woh-acc-nav__icon {
	width: 22px;
	height: 22px;
	color: var(--woh-blue);
	opacity: 1;
	margin-bottom: 10px;
}

body.woh-account .woh-acc-quick__name {
	display: block;
	font-weight: 600;
	color: var(--woh-navy);
	margin-bottom: 3px;
}

body.woh-account .woh-acc-quick__desc {
	display: block;
	font-size: 13.5px;
	color: var(--woh-ink-3);
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
 * Orders
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-ordercards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.woh-account .woh-acc-ordercard {
	display: grid;
	/* Fixed tracks, not auto: every card sits in its own grid, so auto widths
	   made the status pills and totals wander from row to row. */
	grid-template-columns: minmax(0, 1fr) 190px 130px 210px;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--woh-card);
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-md);
	box-shadow: var(--woh-shadow);
	margin: 0;
}

body.woh-account .woh-acc-ordercard__number {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--woh-navy);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

body.woh-account .woh-acc-ordercard__date {
	display: block;
	font-size: 13.5px;
	color: var(--woh-ink-3);
	margin-top: 2px;
}

body.woh-account .woh-acc-ordercard__ship {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-ordercard__total {
	text-align: right;
}

body.woh-account .woh-acc-ordercard__amount {
	display: block;
	font-weight: 600;
	color: var(--woh-navy);
	white-space: nowrap;
}

body.woh-account .woh-acc-ordercard__items {
	display: block;
	font-size: 12.5px;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-ordercard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

body.woh-account .woh-acc-ordercard__actions .woh-acc-btn {
	min-height: 36px;
	padding: 0 15px;
	font-size: 13.5px;
}

body.woh-account .woh-acc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 20px;
}

body.woh-account .woh-acc-pagination__count {
	font-size: 13.5px;
	color: var(--woh-ink-3);
}

/* --------------------------------------------------------------------------
 * Addresses
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-addressgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

body.woh-account .woh-acc-addresscard {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}

body.woh-account .woh-acc-addresscard__body {
	font-style: normal;
	line-height: 1.6;
	color: var(--woh-ink-2);
	margin: 0;
}

/* --------------------------------------------------------------------------
 * Forms
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-fieldset__title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 600;
	color: var(--woh-navy);
}

body.woh-account .woh-acc-fieldset__sub {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-fieldgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	border: 0;
	margin: 0;
	padding: 0;
}

body.woh-account .woh-acc-field {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body.woh-account .woh-acc-field--wide {
	grid-column: 1 / -1;
}

body.woh-account .woh-acc-form label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--woh-ink);
}

body.woh-account .woh-acc-form label .required {
	color: var(--woh-orange);
	text-decoration: none;
	border: 0;
}

body.woh-account .woh-acc-form input[type="text"],
body.woh-account .woh-acc-form input[type="email"],
body.woh-account .woh-acc-form input[type="tel"],
body.woh-account .woh-acc-form input[type="password"],
body.woh-account .woh-acc-form input[type="date"],
body.woh-account .woh-acc-form input[type="number"],
body.woh-account .woh-acc-form select,
body.woh-account .woh-acc-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 13px;
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-sm);
	background: #fff;
	color: var(--woh-ink);
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

body.woh-account .woh-acc-form input:focus,
body.woh-account .woh-acc-form select:focus,
body.woh-account .woh-acc-form textarea:focus {
	outline: none;
	border-color: var(--woh-blue);
	box-shadow: var(--woh-focus);
}

body.woh-account .woh-acc-help {
	font-size: 12.5px;
	color: var(--woh-ink-3);
	line-height: 1.4;
}

body.woh-account .woh-acc-help em {
	font-style: normal;
}

body.woh-account .woh-acc-formactions {
	margin: 20px 0 0;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

body.woh-account .woh-acc-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--woh-ink-2);
}

/* --------------------------------------------------------------------------
 * Login / register
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-auth {
	display: grid;
	gap: 20px;
	max-width: 940px;
	margin: 0 auto;
}

body.woh-account .woh-acc-auth--split {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.woh-account .woh-acc-authpanel {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
	padding: 26px;
}

body.woh-account .woh-acc-authpanel__title {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 400;
	color: var(--woh-navy);
	line-height: 1.15;
}

body.woh-account .woh-acc-authpanel__sub {
	margin: 0 0 20px;
	font-size: 14.5px;
	color: var(--woh-ink-3);
}

/*
 * WooCommerce's own stylesheet borders and pads form.login and form.register.
 * Inside the panel cards that reads as a box within a box.
 */
body.woh-account .woh-acc-authpanel form.login,
body.woh-account .woh-acc-authpanel form.register {
	border: 0;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

body.woh-account .woh-acc-authpanel__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 16px;
	flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
 * Tabs we do not template-override: downloads, payment methods, gift cards,
 * favourites, address book, view-order. Give their tables and buttons the same
 * surface treatment so the whole area reads as one design.
 * ----------------------------------------------------------------------- */

body.woh-account .woocommerce-MyAccount-content table.shop_table,
body.woh-account .woocommerce-MyAccount-content table.woocommerce-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--woh-card);
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-md);
	box-shadow: var(--woh-shadow);
	overflow: hidden;
	font-size: 14.5px;
}

body.woh-account .woocommerce-MyAccount-content table.shop_table th,
body.woh-account .woocommerce-MyAccount-content table.woocommerce-table th {
	background: var(--woh-tint);
	color: var(--woh-navy);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	text-align: left;
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--woh-line);
}

body.woh-account .woocommerce-MyAccount-content table.shop_table td,
body.woh-account .woocommerce-MyAccount-content table.woocommerce-table td {
	padding: 14px 16px;
	border: 0;
	border-top: 1px solid var(--woh-line-soft);
	color: var(--woh-ink-2);
	vertical-align: middle;
}

body.woh-account .woocommerce-MyAccount-content table.shop_table tbody tr:first-child td {
	border-top: 0;
}

body.woh-account .woocommerce-MyAccount-content .woocommerce-message,
body.woh-account .woocommerce-MyAccount-content .woocommerce-info,
body.woh-account .woocommerce-MyAccount-content .woocommerce-error,
body.woh-account .woocommerce-notices-wrapper .woocommerce-message,
body.woh-account .woocommerce-notices-wrapper .woocommerce-info,
body.woh-account .woocommerce-notices-wrapper .woocommerce-error {
	border-radius: var(--woh-r-md);
	border: 1px solid var(--woh-line);
	border-left-width: 4px;
	background: var(--woh-card);
	box-shadow: var(--woh-shadow);
	padding: 14px 18px;
	color: var(--woh-ink);
	font-size: 14.5px;
}

body.woh-account .woocommerce-MyAccount-content .woocommerce-message,
body.woh-account .woocommerce-notices-wrapper .woocommerce-message {
	border-left-color: var(--woh-green);
}

body.woh-account .woocommerce-MyAccount-content .woocommerce-info,
body.woh-account .woocommerce-notices-wrapper .woocommerce-info {
	border-left-color: var(--woh-blue);
}

body.woh-account .woocommerce-MyAccount-content .woocommerce-error,
body.woh-account .woocommerce-notices-wrapper .woocommerce-error {
	border-left-color: #d9534f;
}

/* Generic WooCommerce buttons inside panels we do not template. */
body.woh-account .woocommerce-MyAccount-content .button:not(.woh-acc-btn):not(.woh-co-btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 17px;
	border-radius: 999px;
	background: var(--woh-navy);
	color: #fff;
	border: 1px solid var(--woh-navy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
}

body.woh-account .woocommerce-MyAccount-content .button:not(.woh-acc-btn):not(.woh-co-btn):hover {
	background: var(--woh-blue);
	border-color: var(--woh-blue);
	color: #fff;
}

/* Address edit form (WooCommerce's own form-edit-address.php). */
body.woh-account .woocommerce-address-fields .form-row,
body.woh-account .woocommerce-MyAccount-content .woocommerce-form-row {
	padding: 0;
}

body.woh-account .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

body.woh-account .woocommerce-address-fields__field-wrapper .form-row {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}

body.woh-account .woocommerce-address-fields__field-wrapper .form-row-wide,
body.woh-account .woocommerce-address-fields__field-wrapper .notes {
	grid-column: 1 / -1;
}

body.woh-account .woocommerce-address-fields label,
body.woh-account .woocommerce-MyAccount-content form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--woh-ink);
}

body.woh-account .woocommerce-address-fields input[type="text"],
body.woh-account .woocommerce-address-fields input[type="email"],
body.woh-account .woocommerce-address-fields input[type="tel"],
body.woh-account .woocommerce-address-fields select,
body.woh-account .woocommerce-address-fields .select2-container .select2-selection {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 13px;
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-sm);
	background: #fff;
	font-size: 15px;
}

/* --------------------------------------------------------------------------
 * Responsive
 * ----------------------------------------------------------------------- */

@media (max-width: 1024px) {
	body.woh-account .e-my-account-tab > .woocommerce:has(> .woocommerce-MyAccount-navigation),
	body.woh-account.woocommerce-account > .woocommerce:has(> .woocommerce-MyAccount-navigation),
	body.woh-account .elementor-widget-woocommerce-my-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
		gap: 22px;
	}
}

@media (max-width: 880px) {
	body.woh-account .e-my-account-tab > .woocommerce:has(> .woocommerce-MyAccount-navigation),
	body.woh-account.woocommerce-account > .woocommerce:has(> .woocommerce-MyAccount-navigation),
	body.woh-account .elementor-widget-woocommerce-my-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: block;
	}

	body.woh-account .woocommerce-MyAccount-navigation {
		position: static;
		margin-bottom: 20px !important;
	}

	body.woh-account .woh-acc-nav__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: 10px;
		padding: 14px 18px;
		background: none;
		border: 0;
		border-top: 1px solid var(--woh-line-soft);
		font-size: 14.5px;
		font-weight: 600;
		color: var(--woh-navy);
		cursor: pointer;
	}

	body.woh-account .woh-acc-nav__toggle svg {
		width: 20px;
		height: 20px;
		transition: transform .18s ease;
	}

	body.woh-account .woh-acc-nav__toggle[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	body.woh-account .woh-acc-nav__panel {
		display: none;
		border-top: 1px solid var(--woh-line-soft);
	}

	body.woh-account .woh-acc-nav__panel.is-open {
		display: block;
	}

	body.woh-account .woh-acc-ordercard {
		grid-template-columns: 1fr auto;
		gap: 10px 16px;
	}

	body.woh-account .woh-acc-ordercard__status {
		grid-column: 2;
		grid-row: 1;
		text-align: right;
	}

	body.woh-account .woh-acc-ordercard__total {
		grid-column: 1;
		text-align: left;
	}

	body.woh-account .woh-acc-ordercard__actions {
		grid-column: 2;
	}

	body.woh-account .woh-acc-orderlist__row {
		grid-template-columns: 1fr auto;
		row-gap: 4px;
	}

	body.woh-account .woh-acc-orderlist__date {
		grid-column: 1;
	}

	body.woh-account .woh-acc-orderlist__status {
		grid-column: 2;
		grid-row: 1;
		text-align: right;
	}

	body.woh-account .woh-acc-orderlist__total {
		grid-column: 1;
		text-align: left;
	}

	body.woh-account .woh-acc-orderlist__go {
		grid-column: 2;
		text-align: right;
	}
}

@media (max-width: 640px) {
	body.woh-account .woh-acc-pagehead__title { font-size: 27px; }
	body.woh-account .woh-acc-dash__greeting { font-size: 30px; }
	body.woh-account .woh-acc-card { padding: 18px; }

	body.woh-account .woh-acc-fieldgrid,
	body.woh-account .woocommerce-address-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woh-account .woh-acc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woh-account .woh-acc-stat__value { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	body.woh-account * {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* --------------------------------------------------------------------------
 * Secondary tools panel (bulk address CSV upload, "clear all")
 * ----------------------------------------------------------------------- */

body.woh-account .woh-acc-tools {
	margin-top: 22px;
	background: var(--woh-card);
	border: 1px solid var(--woh-line);
	border-radius: var(--woh-r-lg);
	box-shadow: var(--woh-shadow);
	overflow: hidden;
}

body.woh-account .woh-acc-tools > summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--woh-navy);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

body.woh-account .woh-acc-tools > summary::-webkit-details-marker {
	display: none;
}

body.woh-account .woh-acc-tools > summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--woh-ink-3);
	border-bottom: 2px solid var(--woh-ink-3);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .18s ease;
}

body.woh-account .woh-acc-tools[open] > summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

body.woh-account .woh-acc-tools__body {
	padding: 4px 20px 22px;
	border-top: 1px solid var(--woh-line-soft);
}

body.woh-account .woh-acc-tools__body h3 {
	margin: 18px 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--woh-navy);
}

body.woh-account .woh-acc-tools__body p {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--woh-ink-2);
}

body.woh-account .woh-acc-tools__body input[type="file"] {
	font-size: 14px;
}

body.woh-account .woh-acc-tools__body .button-danger {
	background: #fff !important;
	border-color: #e3b6b1 !important;
	color: #a32a2a !important;
}

body.woh-account .woh-acc-tools__body .button-danger:hover {
	background: #fdecec !important;
	border-color: #d9847c !important;
}

/*
 * Columns a plugin adds through woocommerce_account_orders_columns that are
 * not one of WooCommerce's own five. Rendered as labelled blocks spanning the
 * card so the card layout does not have to know about them in advance.
 */
body.woh-account .woh-acc-ordercard__extras {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	padding-top: 10px;
	border-top: 1px solid var(--woh-line-soft);
	font-size: 13.5px;
	color: var(--woh-ink-2);
}

body.woh-account .woh-acc-ordercard__extra-label {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--woh-ink-3);
}

body.woh-account .woh-acc-ordercard__status-extra {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--woh-ink-3);
}
