/* WooCommerce pages (classic cart/checkout/account shortcodes + product blocks) in the Allera style. */

.woocommerce,
.woocommerce-page { --w-line: var(--wp--preset--color--line); --w-surface: var(--wp--preset--color--surface); }

/* Buttons */
.woocommerce :is(a.button, button.button, input.button, #respond input#submit),
.woocommerce :is(a.button.alt, button.button.alt),
.wc-block-components-button:not(.is-link) {
	background: var(--wp--preset--color--navy); /* Secondary actions navy; main actions green (below). */
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	padding: .85rem 1.5rem;
	min-height: 44px;
	line-height: 1.2;
	border: 0;
}
/* Centre the label in the capsule: min-height alone leaves the text at the top of a tall box. */
.woocommerce :is(a.button, button.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: middle;
}
.woocommerce :is(a.button, button.button, input.button):hover,
.woocommerce :is(a.button.alt, button.button.alt):hover { background: var(--wp--preset--color--green-dark); color: #fff; }
.woocommerce :is(button.button.alt, a.checkout-button, #place_order),
.single-product .single_add_to_cart_button {
	background: var(--wp--preset--color--green-dark) !important;
	color: #fff !important;
	font-size: 1.125rem !important;
	width: 100%;
	padding: 1rem 1.5rem !important;
}
.woocommerce :is(button.button.alt, a.checkout-button, #place_order):hover,
.single-product .single_add_to_cart_button:hover { background: #00612C !important; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .55; }

/* Notices */
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
.wc-block-components-notice-banner {
	border-radius: var(--allera-radius-m);
	border: 1px solid var(--w-line);
	border-left-width: 6px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	padding: 1rem 1.25rem 1rem 3rem;
	font-weight: 500;
}
.woocommerce .woocommerce-message { border-left-color: var(--wp--preset--color--green-dark); }
.woocommerce .woocommerce-info { border-left-color: var(--wp--preset--color--navy); }
.woocommerce .woocommerce-error { border-left-color: var(--wp--preset--color--red); }
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { top: 1.05rem; }
.woocommerce .woocommerce-message::before { color: var(--wp--preset--color--green-dark); }
.woocommerce .woocommerce-info::before { color: var(--wp--preset--color--blue); }
.woocommerce .woocommerce-error::before { color: var(--wp--preset--color--red); }
.woocommerce :is(.woocommerce-message, .woocommerce-info) .button { float: none; margin: .5rem 0 0; display: inline-block; }

/* Forms */
.woocommerce form .form-row label { font-weight: 600; margin-bottom: .3rem; }
.woocommerce form .form-row :is(input.input-text, textarea, select),
.woocommerce-page .quantity input.qty,
#coupon_code {
	min-height: 44px;
	border: 1px solid #6B7280;
	border-radius: var(--allera-radius-s);
	padding: .55rem .75rem;
	font: inherit;
	font-size: max(1rem, 16px);
	background: #fff;
	color: var(--wp--preset--color--ink);
}
.woocommerce .select2-container .select2-selection--single { height: 44px; border: 1px solid #6B7280; border-radius: var(--allera-radius-s); }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding: 0 .75rem; color: var(--wp--preset--color--ink); }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.woocommerce form .form-row .required { color: var(--wp--preset--color--red); text-decoration: none; }
.woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) { border-color: var(--wp--preset--color--red); border-width: 2px; }

/* Tables (cart, order review, my account orders) */
.woocommerce table.shop_table {
	border: 1px solid var(--w-line);
	border-radius: var(--allera-radius-m);
	border-collapse: separate;
	overflow: hidden;
	background: #fff;
}
.woocommerce table.shop_table :is(th, td) { padding: .9rem 1rem; border-top-color: var(--w-line); }
.woocommerce table.shop_table thead th { background: var(--w-surface); font-weight: 800; color: var(--wp--preset--color--navy); }
.woocommerce table.shop_table .product-name a { font-weight: 700; text-decoration: none; }
.woocommerce table.shop_table td.product-remove a.remove { color: var(--wp--preset--color--red) !important; width: 32px; height: 32px; line-height: 30px; font-size: 1.5rem; }
.woocommerce table.shop_table td.product-remove a.remove:hover { background: var(--wp--preset--color--red); color: #fff !important; }
.woocommerce td.product-name dl.variation { margin-top: .35rem; font-size: .9375rem; color: var(--wp--preset--color--muted); }
.woocommerce td.product-name dl.variation dd p { margin: 0; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: var(--wp--preset--font-size--x-large); }

/* Checkout layout: details left, summary right on wide screens */
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 2.5rem; align-items: start; }
	.woocommerce-checkout form.checkout > * { grid-column: 1; }
	.woocommerce-checkout form.checkout #customer_details { grid-row: 1 / span 3; }
	.woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
	.woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--allera-header-h) + 1.5rem); }
	.woocommerce-checkout .col2-set { width: 100%; }
	.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
}
.woocommerce-checkout #payment {
	background: var(--w-surface);
	border: 1px solid var(--w-line);
	border-radius: var(--allera-radius-m);
}
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--w-line); padding: 1rem 1.25rem; }
.woocommerce-checkout #payment ul.payment_methods li { margin-block: .35rem; }
.woocommerce-checkout #payment ul.payment_methods li input { width: 1.15rem; height: 1.15rem; accent-color: var(--wp--preset--color--green-dark); }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: var(--allera-radius-s); color: var(--wp--preset--color--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }

/* My Account */
/* Woo's block-theme CSS centres the title and content at 1000px; line them up with the logo instead. */
.woocommerce-account main .wp-block-post-title,
.woocommerce-account main .woocommerce { max-width: var(--wp--style--global--wide-size, 1240px); }

/* Sidebar menu + content. Woo's clearfix ::before/::after would otherwise become grid items
   and push the menu into the second column and the content into a narrow first column. */
.woocommerce-account.logged-in .woocommerce { display: grid; gap: 1.5rem 3rem; }
.woocommerce-account.logged-in .woocommerce::before,
.woocommerce-account.logged-in .woocommerce::after { display: none; }
@media (min-width: 782px) {
	.woocommerce-account.logged-in .woocommerce { grid-template-columns: 16rem minmax(0, 1fr); align-items: start; }
	.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-account .woocommerce-MyAccount-navigation { position: sticky; top: 1.5rem; }
}
/* Logged out: sign in and register side by side */
.woocommerce-account:not(.logged-in) .u-columns.col2-set { display: grid; gap: 2rem; }
@media (min-width: 782px) {
	.woocommerce-account:not(.logged-in) .u-columns.col2-set { grid-template-columns: 1fr 1fr; }
}
.woocommerce-account:not(.logged-in) .u-columns.col2-set > .u-column1,
.woocommerce-account:not(.logged-in) .u-columns.col2-set > .u-column2 { float: none; width: auto; }
.woocommerce-account:not(.logged-in) .col2-set::before,
.woocommerce-account:not(.logged-in) .col2-set::after { display: none; }
.woocommerce form .form-row input.input-text { width: 100%; box-sizing: border-box; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: .5rem; background: var(--w-surface); border: 1px solid var(--w-line); border-radius: var(--allera-radius-m); }
.woocommerce-account .woocommerce-MyAccount-navigation li { padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li + li { margin-top: 2px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { text-decoration: none; }
.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: .5rem .9rem;
	border-radius: var(--allera-radius-s);
	text-decoration: none;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}
.woocommerce-MyAccount-navigation li a:hover { background: #fff; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--wp--preset--color--navy); color: #fff; }
@media (max-width: 781px) {
	/* Phones: menu becomes a compact two-column grid above the content. */
	.woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
	.woocommerce-account .woocommerce-MyAccount-navigation li + li { margin-top: 0; }
}
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > :first-child,
.woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty + * { margin-top: 0; }
.woocommerce-MyAccount-content h2 { font-size: var(--wp--preset--font-size--x-large, 1.75rem); line-height: 1.15; margin: 2.5rem 0 1rem; }
.woocommerce-MyAccount-content h3 { font-size: var(--wp--preset--font-size--large, 1.25rem); }
.woocommerce-MyAccount-content .allera-children,
.woocommerce-MyAccount-content .allera-reg { margin-top: 0; }

/* Dashboard */
.allera-dashboard__hello { margin-top: 0 !important; }
.allera-dashboard__intro { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 40em; margin: 0 0 2rem; }
.allera-dashboard__cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.allera-dashboard__card a {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	height: 100%;
	box-sizing: border-box;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--w-line);
	border-top: 4px solid var(--wp--preset--color--blue);
	border-radius: var(--allera-radius-m);
	background: #fff;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
.allera-dashboard__card:nth-child(2) a { border-top-color: var(--wp--preset--color--green); }
.allera-dashboard__card:nth-child(3) a { border-top-color: var(--wp--preset--color--violet); }
.allera-dashboard__card:nth-child(4) a { border-top-color: var(--wp--preset--color--red); }
.allera-dashboard__card a:hover,
.allera-dashboard__card a:focus-visible { box-shadow: 0 8px 24px rgb(12 35 64 / .12); transform: translateY(-2px); }
.allera-dashboard__card-title { font-weight: 800; font-size: 1.2rem; color: var(--wp--preset--color--navy); }
.allera-dashboard__card-title::after { content: " \2192"; }
.allera-dashboard__card-text { color: var(--wp--preset--color--muted); line-height: 1.45; }
.allera-dashboard__help { color: var(--wp--preset--color--muted); }

/* Orders table: compact capsule buttons */
.woocommerce-account .woocommerce-orders-table .button { padding: .5rem 1.15rem; min-height: 40px; font-size: .95rem; margin: .15rem .25rem .15rem 0; }

/* Addresses: one card per address, edit link under the address */
.woocommerce-account .woocommerce-Addresses { display: grid; gap: 1.5rem; }
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { display: none; }
@media (min-width: 782px) {
	.woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr 1fr; }
}
.woocommerce-account .woocommerce-Addresses > .u-column1,
.woocommerce-account .woocommerce-Addresses > .u-column2 { float: none; width: auto; margin: 0; }
.woocommerce-account .woocommerce-Address {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .75rem;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--w-line);
	border-radius: var(--allera-radius-m);
	background: var(--w-surface);
}
.woocommerce-account .woocommerce-Address-title { display: contents; }
.woocommerce-account .woocommerce-Address-title h2 { float: none; margin: 0; font-size: var(--wp--preset--font-size--large, 1.25rem); }
.woocommerce-account .woocommerce-Address address { order: 1; margin: 0; font-style: normal; line-height: 1.5; }
.woocommerce-account .woocommerce-Address-title .edit {
	order: 2;
	float: none;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: .4rem 1.1rem;
	border: 2px solid currentColor;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--blue-dark);
}
.woocommerce-account .woocommerce-Address-title .edit:hover { background: var(--wp--preset--color--blue-dark); border-color: var(--wp--preset--color--blue-dark); color: #fff; }

/* Account details: password box */
.woocommerce-EditAccountForm fieldset {
	margin: 2rem 0 1.5rem;
	padding: 1.5rem 1.5rem .5rem;
	border: 0;
	border-radius: var(--allera-radius-m);
	background: var(--wp--preset--color--green-tint);
}
/* A floated legend sits inside the box like an ordinary heading instead of on its border. */
.woocommerce-EditAccountForm fieldset legend {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-large, 1.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--wp--preset--color--navy);
}
.woocommerce-EditAccountForm fieldset legend + * { clear: both; }
.woocommerce-EditAccountForm fieldset input.input-text { background: #fff; }
.woocommerce-EditAccountForm #password_current { scroll-margin-top: 7rem; } /* "Change password" menu link lands here with the heading in view. */

/* Login / register on My Account */
.woocommerce form.login, .woocommerce form.register {
	border: 1px solid var(--w-line);
	border-radius: var(--allera-radius-m);
	padding: 1.5rem;
	background: #fff;
}

/* Single program page */
.allera-register-box .woocommerce-product-gallery { margin-bottom: 1rem; }
.allera-register-box .woocommerce-product-gallery img { border-radius: var(--allera-radius-m); aspect-ratio: 4 / 3; object-fit: cover; }
.allera-register-box .wc-block-components-product-price { font-weight: 800; color: var(--wp--preset--color--navy); }
.allera-register-box .stock { font-weight: 700; }
.allera-register-box .stock.in-stock { color: var(--wp--preset--color--green-dark); }
.allera-register-box .stock.out-of-stock { color: var(--wp--preset--color--red); }
.single-product .quantity { display: none !important; } /* One child per registration. */
.allera-product .wc-block-components-product-price { font-weight: 800; color: var(--wp--preset--color--navy); }

/* Mini-cart drawer */
.wc-block-mini-cart__drawer .wc-block-components-drawer__content { font-family: inherit; }
.wc-block-mini-cart__badge { background: var(--wp--preset--color--red); color: #fff; }

/* Breadcrumbs */
.woocommerce-breadcrumb, .wc-block-breadcrumbs { color: var(--wp--preset--color--muted); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { color: var(--wp--preset--color--blue-dark); }

/* ==========================================================================
   V2 look: program finder and program cards (Allera Core markup; styles prefixed with
   .allera-v2 because programs.css can print after this file).
   ========================================================================== */
.allera-v2 .allera-finder__filters {
	border-radius: var(--allera-radius-m);
	border-top: 6px solid var(--v2-navy);
}
.allera-v2 .allera-finder__field select { border-radius: var(--allera-radius-s); }
.allera-v2 .allera-finder__count {
	color: var(--v2-navy);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .9375rem;
}

.allera-v2 .allera-card {
	border-radius: var(--allera-radius-m);
	border-top: 6px solid var(--v2-gold);
}
.allera-v2 .allera-card__title a::after { border-radius: var(--allera-radius-m); }
.allera-v2 .allera-card__title a:focus-visible::after { outline-color: var(--v2-navy); }
.allera-v2 .allera-card__bottom { border-top-style: solid; }
.allera-v2 .allera-card__cta { color: var(--v2-green); }
.allera-v2 .allera-card--sold-out .allera-card__cta,
.allera-v2 .allera-card--in-session .allera-card__cta { color: var(--wp--preset--color--muted); }

/* Sport name as a slanted navy tag, the same on every card and on the flyers. */
.allera-v2 .allera-sport-tag {
	padding: .25rem calc(var(--v2-tag-cut) + .5rem);
	border-radius: 0;
	background: var(--v2-navy);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .8125rem;
	clip-path: polygon(var(--v2-tag-cut) 0, 100% 0, calc(100% - var(--v2-tag-cut)) 100%, 0 100%);
}

.allera-v2 .allera-countdown { border-radius: var(--allera-radius-s); }
.allera-v2 .allera-facts__row { border-radius: var(--allera-radius-s); border-left: 4px solid var(--v2-gold); }
.allera-v2 .allera-closed-note { border-radius: var(--allera-radius-s); }
.allera-v2 .allera-finder__empty { border-radius: var(--allera-radius-m); }

/* ==========================================================================
   Class (single program) page
   ========================================================================== */
/* The photo carries the stripes here, so the title band doesn't need its own. */
.single-product .allera-page-hero::after { display: none; }
.single-product .allera-page-hero > * { padding-right: 0; }

/* Class page photo with stripes: photo-stripes.css (offset block, Captain's pick 2026-11-18). */

/* Breadcrumbs: 24px-plus targets (they sit in running text, but they're the main way back). */
.allera-v2 :is(.woocommerce-breadcrumb, .wc-block-breadcrumbs) a { display: inline-block; padding-block: .3rem; }


.allera-v2 .allera-register-box { border-top: 6px solid var(--v2-navy); }
.allera-v2 .allera-closed-note p:last-child a:not(.wp-element-button) { display: inline-flex; align-items: center; min-height: 44px; }

/* ==========================================================================
   WooCommerce: cart, checkout, My Account
   ========================================================================== */
/* Main actions go navy on hover (they are green at rest). */
.allera-v2 .woocommerce :is(button.button.alt, a.checkout-button, #place_order):hover,
.allera-v2.single-product .single_add_to_cart_button:hover { background: var(--v2-navy) !important; }

/* Section headings in the cart and checkout get the gold bar used on the cards. */
.allera-v2 :is(.cart_totals > h2, .woocommerce-checkout h3, #order_review_heading, .woocommerce-MyAccount-content > h2)::before {
	content: "";
	display: block;
	width: 3.25rem;
	height: .45rem;
	margin: 0 0 .6rem .2rem;
	background: var(--v2-gold);
	transform: skewX(var(--v2-skew));
}
.allera-v2 .woocommerce-checkout #payment { border-top: 6px solid var(--v2-navy); }

/* My Account menu: active item navy with a gold slanted edge. */
.allera-v2 .woocommerce-MyAccount-navigation ul { border-top: 6px solid var(--v2-navy); }
.allera-v2 .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--v2-navy);
	color: #fff;
	box-shadow: inset 6px 0 0 var(--v2-gold);
}
.allera-v2 .woocommerce-MyAccount-navigation li a:focus-visible { outline-color: var(--v2-navy); outline-offset: 2px; }
.allera-v2 .woocommerce-MyAccount-navigation li.is-active a:focus-visible { outline-color: var(--v2-gold); }

/* Dashboard shortcut cards: one gold top edge instead of four colours. */
.allera-v2 .allera-dashboard__card a,
.allera-v2 .allera-dashboard__card:nth-child(n) a { border-top: 6px solid var(--v2-gold); border-radius: var(--allera-radius-m); }
.allera-v2 .allera-dashboard__card a:focus-visible { outline: 3px solid var(--v2-navy); outline-offset: 3px; }
/* Form submit buttons (Save changes, Log in, Register) are main actions: green, like every other CTA. */
.allera-v2 .woocommerce :is(button.button, input.button)[type="submit"]:not(.alt) { background: var(--v2-green); }
.allera-v2 .woocommerce :is(button.button, input.button)[type="submit"]:not(.alt):hover { background: var(--v2-navy); }
/* "Show password" eye: 44px target (was 22px), still centred in the field. */
.allera-v2 .woocommerce form .password-input { position: relative; display: block; }
.allera-v2 .woocommerce form .show-password-input {
	top: 50%;
	right: 0;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.allera-v2 .woocommerce form .password-input input { padding-right: 48px; }

