/* ==========================================================================
   Product cards

   Shared by every WooCommerce product loop: the shop archive, product
   category archives and single product upsells.
   ========================================================================== */

/* Same panel as .boxed in style.css, which is what every other card on the
   site uses: #f9f9f9 on a #e5e5e5 hairline, 4px corners, 20px of padding. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product
{
	display: flex;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
	background-color: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 25px;
	overflow: hidden;
}

/* A product card is a link, so it gets an affordance .boxed has no need for.
   The resting state is left identical. */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover
{
	border-color: #b9c2d6;
}

/*
 * The thumbnail, title and price all sit inside one link. Letting it grow
 * pushes the price to the bottom of the card, so prices line up across a row
 * even where a title wraps onto a second line.
 *
 * .product_wrapper is the parent theme's old loop markup. functions.php now
 * falls through to WooCommerce's own content-product.php so it no longer
 * renders, but it is matched here too in case that override ever comes back.
 */
.woocommerce ul.products li.product > a.woocommerce-loop-product__link,
.woocommerce ul.products li.product .product_wrapper
{
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* 18px matches .boxed h3, the card heading everywhere else on the site.
   WooCommerce's own rule sets 1em, which landed at 14px — no bigger than the
   body copy. The theme gives every heading line-height 1.0em, too tight for a
   product name that wraps. */
.woocommerce ul.products li.product .woocommerce-loop-product__title
{
	padding: 8px 0 0;
	font-size: 18px;
	line-height: 1.25;
	/* Splits a two-line title evenly, so a phone shows "Michael Hill: Don't /
	   Think About It »" rather than leaving "It »" alone on the second line.
	   Browsers without it wrap as before. */
	text-wrap: balance;
}

/* "Title »", the site's own link cue: the gallery archive's card titles and
   the "Read more »" style buttons end the same way (Trent, 30 November 2026).
   Added here rather than in the product names, so it stays out of the cart,
   order emails and search results. The leading \00a0 is a non-breaking space,
   so a title that wraps keeps » on the same line as its last word. The second
   declaration gives it empty alt text so screen readers skip it; a browser
   that can't read that syntax drops it and keeps the first. */
.woocommerce ul.products li.product .woocommerce-loop-product__title::after
{
	content: "\00a0»";
	content: "\00a0»" / "";
}

.woocommerce ul.products li.product .price
{
	margin-top: auto;
	margin-bottom: 0.75em;
	padding-top: 4px;
	color: #081f7b;
	font-size: 1.15em;
	font-weight: 700;
}

.woocommerce ul.products li.product .price del
{
	display: inline-block;
	padding-right: 5px;
	color: #767676;
	font-weight: 400;
}

.woocommerce ul.products li.product .price ins
{
	display: inline-block;
	color: #081f7b;
	text-decoration: none;
}

/*
 * Add to cart. functions.php adds the `blue` class, so the gradient, border,
 * text colour and shadows all come from a.blue in style.css — the same rule
 * behind every `<a class="blue button">` on the site. Only the geometry lives
 * here, because WooCommerce's own a.button rules are specific enough to
 * outrank a.blue on width, padding and corner radius.
 *
 * Once added, WooCommerce hides this button and reveals .added_to_cart in its
 * place. Both are full-width blocks, so the swap does not shift the layout.
 */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart
{
	display: block;
	/* !important to beat `width: auto !important` in a.blue. */
	width: 100% !important;
	box-sizing: border-box;
	margin: auto 0 0;
	padding: 4px 10px;
	text-align: center;
	/* !important to beat `.woocommerce .button` further down this file, which
	   sets 1.2em !important for the cart and checkout. */
	font-size: 14px !important;
	font-weight: 700;
	line-height: 20px;
	border-radius: 2px;
}

/* The "View cart" link that replaces it reads as a secondary button. It gets
   no `blue` class, so its colours are set here. */
.woocommerce ul.products li.product .added_to_cart
{
	background: #fff;
	border: 1px solid #115290;
	color: #09217a;
	text-shadow: none;
}

/* The tick is \e017 from WooCommerce's own icon font — the glyph its
   .added::after would have shown, which never appears because the button is
   hidden further down this file. woocommerce.css declares the @font-face and
   only loads on shop pages, which is the only place this button exists. */
.woocommerce ul.products li.product .added_to_cart::before
{
	content: "\e017";
	font-family: WooCommerce;
	font-weight: 400;
	margin-right: 6px;
	vertical-align: -1px;
}

.woocommerce ul.products li.product .added_to_cart:hover,
.woocommerce ul.products li.product .added_to_cart:focus
{
	background: #eef3ff;
	color: #09217a;
}

/*
 * Loading, while the AJAX add is in flight.
 *
 * WooCommerce sets opacity:.25 on .loading, which on this button's navy
 * gradient leaves a pale lavender block with an unreadable label — it reads as
 * disabled rather than busy. Hold the button at full strength and let the
 * spinner carry the state.
 *
 * WooCommerce also reserves room for the spinner with padding-right:2.618em,
 * but the geometry rule above outranks it, so the glyph would otherwise land on
 * top of the centred label. Pad both sides equally instead: the label stays
 * optically centred and nothing shifts when the state changes.
 */
.woocommerce ul.products li.product a.button.loading
{
	opacity: 1;
	padding-right: 30px;
	padding-left: 30px;
	/* add-to-cart.js queues a second click rather than ignoring it, so a
	   double-click adds the item twice. This stops the mouse path; js/shop.js
	   covers the keyboard one, which pointer-events cannot reach. */
	pointer-events: none;
	cursor: default;
}

.woocommerce ul.products li.product a.button.loading::after
{
	top: 50%;
	right: 10px;
	margin-top: -7px; /* half the 14px glyph box */
	font-size: 14px;
	line-height: 1;
	/* a.blue sets text-shadow with !important, which a spinning glyph wears as a
	   smear. A declaration on the pseudo-element beats the inherited value
	   regardless of importance, so this needs no !important of its own. */
	text-shadow: none;
	animation-duration: 1s; /* WooCommerce's 2s barely reads as motion */
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product a.button.loading::after
	{
		animation: none;
	}
}

/* Sale badge, in the theme's gold accent rather than WooCommerce's red. */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale
{
	top: 20px;
	right: 20px;
	left: auto;
	margin: 0;
	padding: 4px 8px;
	min-height: 0;
	line-height: 1.4;
	border-radius: 2px;
	background-color: #f5ad0f;
	color: #09164d;
	font-weight: 700;
}

/* ==========================================================================
   Shop archive layout

   An even three-column grid, replacing the floated percentage widths. Cards in
   a row now share a height, so their buttons line up.

   The same grid lays out "You might also like" (related products) under each
   product, so that row matches the shop page (Trent, 30 November 2026). It
   replaces the original theme's 22.05% related-product width.

   The [class*="columns-"] attribute selector is here to outrank
   woocommerce-smallscreen.css, which forces width, float and margin back onto
   these items below 768px.
   ========================================================================== */

body.post-type-archive-product ul.products[class*="columns-"],
body.tax-product_cat ul.products[class*="columns-"],
body.single-product .related ul.products[class*="columns-"]
{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	margin-bottom: 25px;
}

/* WooCommerce clearfixes ul.products with ::before/::after. Both become grid
   items once the list is a grid, leaving an empty cell at the start of the
   first row and pushing every card along one. */
body.post-type-archive-product ul.products[class*="columns-"]::before,
body.post-type-archive-product ul.products[class*="columns-"]::after,
body.tax-product_cat ul.products[class*="columns-"]::before,
body.tax-product_cat ul.products[class*="columns-"]::after,
body.single-product .related ul.products[class*="columns-"]::before,
body.single-product .related ul.products[class*="columns-"]::after
{
	display: none;
}

body.post-type-archive-product ul.products[class*="columns-"] li.product,
body.tax-product_cat ul.products[class*="columns-"] li.product,
body.single-product .related ul.products[class*="columns-"] li.product
{
	width: auto;
	margin: 0;
	float: none;
	clear: none;
}

@media only screen and (max-width: 767px) {
	body.post-type-archive-product ul.products[class*="columns-"],
	body.tax-product_cat ul.products[class*="columns-"],
	body.single-product .related ul.products[class*="columns-"]
	{
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (max-width: 450px) {
	body.post-type-archive-product ul.products[class*="columns-"],
	body.tax-product_cat ul.products[class*="columns-"],
	body.single-product .related ul.products[class*="columns-"]
	{
		grid-template-columns: 1fr;
	}
}

/* Pagination and result count, in brand colours instead of WooCommerce grey. */
.woocommerce nav.woocommerce-pagination ul
{
	border: 0;
	margin: 1em 0;
}

.woocommerce nav.woocommerce-pagination ul li
{
	border: 0;
	margin: 0 3px;
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers
{
	display: block;
	padding: 6px 12px;
	border: 1px solid #c8cfe4;
	border-radius: 2px;
	color: #09217a;
	font-weight: 700;
	line-height: 20px;
}

.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus
{
	background: #eef3ff;
	border-color: #0d31b5;
	color: #09217a;
}

.woocommerce nav.woocommerce-pagination ul li span.current
{
	background: #09217a;
	border-color: #115290;
	color: #fff;
}

.woocommerce-result-count
{
	color: #5a6070;
	margin-bottom: 1em;
}

/* Full-width WooCommerce content. The parent theme hard-codes col-620 on this
   wrapper in core/includes/hooks.php; the sidebar that used to fill the rest is
   unhooked in functions.php. Only the shop, product category and single product
   templates emit #content-woocommerce. */
#content-woocommerce
{
	width:100%;
	margin-right:0;
}

.woocommerce div.product form.cart, .woocommerce div.product p.price, .woocommerce div.product span.price
{
	margin:1em 0;
}

.single_add_to_cart_button i
{
	margin-right:5px;
}

.single-product #content-woocommerce .product .onsale
{
	border-radius:0;
	margin: -1em 0 0 0;
	line-height:1.5;
	min-height:1em;
	background-color:#f5ad0f;
	color:#040f45;
    	top: 2em;
    	padding:7px;
    	left:0;
}

.single-product #content-woocommerce .product h1
{
	font-size:1.625em;
}

.single-product #content-woocommerce .product .price
{
	font-size:1.5em;
}

/* A little more room above "You might also like", so the related row reads as
   its own section: 44px from the photo and summary rather than 28px (Trent,
   30 November 2026). Padding, not margin: the section clears the floated photo
   and summary, and clearance would swallow a top margin. */
.single-product #content-woocommerce .product .related.products
{
	padding-top:16px;
}

/* The theme's h2 is 31.5px, which put "You might also like…" above the
   product's own title (22.75px). 20px sits between that title and the 18px
   card titles below it. */
.single-product #content-woocommerce .product .related.products > h2
{
	font-size:20px;
	line-height:1.25;
}

.single-product #content-woocommerce .product .related .price
{
	font-size:1.1em;
	display:inline-grid;
}

.single-product #content-woocommerce .product .related .onsale
{
	left:auto;
}

/* WooCommerce styles this at
   `.woocommerce-cart table.cart td.actions .coupon .input-text` — (0,4,3), with
   border:1px solid #cfc8d8, which is 1.5:1 and fails WCAG 1.4.11. The rule that
   used to sit here was (0,4,2) and therefore lost the border fight outright.
   Mirror the plugin's own selector shape to tie, and let source order settle it. */
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout table.cart td.actions .coupon .input-text {
	box-sizing:border-box;
	width:180px;
	margin:0 4px 0 0;
	padding:var(--field-padding-y) var(--field-padding-x);
	font-size:var(--field-font-size);
	line-height:var(--field-line-height);
	color:var(--field-color);
	border:var(--field-border-width) solid var(--field-border);
	border-radius:var(--field-radius);
	box-shadow:none;
	text-align:center;
}

.woocommerce-cart table.cart td.actions .coupon .input-text:hover {
	border-color:var(--field-hover-border);
}

.woocommerce-cart table.cart td.actions .coupon .input-text:focus {
	border-color:var(--field-focus);
	outline:2px solid var(--field-focus);
	outline-offset:1px;
	box-shadow:0 0 0 4px var(--field-focus-ring);
}

/* Shop buttons follow the site's standard blue gradient button
   (style.css `a.blue`), so the shop reads as part of the site rather than
   stock WooCommerce green. Written with the correct `to bottom` syntax —
   style.css still uses the invalid `linear-gradient(top, …)` form and only
   paints via its -webkit- fallback. */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .cart .button,
.woocommerce-cart .woocommerce .cart input.button
{
	background: #09164d;
	background-image: -webkit-linear-gradient(top, #113dde, #09217a);
	background-image: linear-gradient(to bottom, #113dde, #09217a);
	border: 1px solid #115290;
	border-radius: 2px;
	box-shadow: 0 1px 0 rgb(255 255 255 / 30%) inset;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-shadow: 0 -1px 0 #115290;
	text-transform: none;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .cart .button:hover,
.woocommerce-cart .woocommerce .cart input.button:hover
{
	background: #09164d;
	background-image: -webkit-linear-gradient(top, #3460ff, #040f45);
	background-image: linear-gradient(to bottom, #3460ff, #040f45);
	/* Full shorthand rather than just border-color: the parent theme sets
	   `border: none` on `.woocommerce a.button.alt:hover` and
	   `.woocommerce-cart-form input[type="submit"]:hover`
	   (responsive/core/css/style.css:3212). That zeroes border-style, so the
	   1px border vanishes and Proceed to checkout loses 2px of height on
	   hover — a visible jump. Restating width and style holds the box. */
	border: 1px solid #115290;
	color: #fff;
	text-shadow: 0 -1px 0 #115290;
}

/*
 * Disabled, which on the cart page is the state the Update cart button loads
 * in — cart.js disables it on init and only re-enables it once a quantity
 * changes, so this is what every visitor sees on arrival.
 *
 * WooCommerce sets `opacity:.5` AND `color:inherit`, so the white label falls
 * back to the body's #222 and then both text and background fade toward the
 * white page. The label lands at ~1.2:1 against its own background — not dim,
 * unreadable. Same failure the `.loading` rules above already fix for the
 * add-to-cart button.
 *
 * Flat muted slate at full opacity instead. Dropping the gradient, the inset
 * highlight and the text-shadow is what reads as inactive; the label stays at
 * 5.9:1 and the button stays visible against the page at 5.9:1.
 *
 * The `[disabled]` duplicates are load-bearing: WooCommerce's rule is
 * `…button.button:disabled[disabled]` (0,4,1), which a plain `:disabled`
 * selector (0,3,1) loses to. Matching its form ties, and this file loads after
 * woocommerce.css, so source order settles it without !important.
 *
 * The :hover half is load-bearing too — WooCommerce has a separate
 * `:disabled:hover` rule that would otherwise flip the button to #e9e6ed with
 * dark text on mouseover.
 */
.woocommerce #respond input#submit:disabled,
.woocommerce #respond input#submit:disabled[disabled],
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled,
.woocommerce input.button:disabled[disabled],
.woocommerce #respond input#submit:disabled:hover,
.woocommerce #respond input#submit:disabled[disabled]:hover,
.woocommerce a.button.disabled:hover,
.woocommerce button.button.disabled:hover,
.woocommerce button.button:disabled:hover,
.woocommerce button.button:disabled[disabled]:hover,
.woocommerce input.button:disabled:hover,
.woocommerce input.button:disabled[disabled]:hover
{
	background: #5a6480;
	background-image: none;
	border-color: #4a5470;
	box-shadow: none;
	text-shadow: none;
	color: #fff;
	opacity: 1;
	cursor: not-allowed;
}

.woocommerce a.remove
{
	border:1px solid;
}

/*
 * Cart, checkout and account headings deliberately carry no overrides: they
 * inherit h1/h2/h3 from style.css so the shop reads like every other page.
 * They used to be set to font-weight:normal with a centred h1, which made the
 * shop the only place on the site with light, centred headings.
 */

/*
 * The cart, checkout and account pages used to restyle the site breadcrumb as a
 * centred grey bar. Left out so they inherit .breadcrumb-list from style.css and
 * match every other page.
 */

/* Table cells follow the site's default left alignment; money and quantity
   columns are right-aligned so figures line up on the decimal. Scoped to
   th/td inside .shop_table so the checkout review table's nested
   <strong class="product-quantity"> is not caught. `product-total` is the
   checkout review table's money column, `product-subtotal` the cart's. */
.woocommerce table.shop_table th.product-price,
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table th.product-quantity,
.woocommerce table.shop_table td.product-quantity,
.woocommerce table.shop_table th.product-subtotal,
.woocommerce table.shop_table td.product-subtotal,
.woocommerce table.shop_table th.product-total,
.woocommerce table.shop_table td.product-total
{
	text-align: right;
}

/* The review table's tfoot (Subtotal / Shipment / Total) shares the money column
   with the product totals above it, so its values right-align to the same edge.
   The th labels stay left, matching the "Product" header. Scoped to the checkout
   table: the cart's totals table has the same markup and is left as is. */
.woocommerce-checkout-review-order-table tfoot td
{
	text-align: right;
}

/* The Shipment row holds radio options rather than a plain value. Flex moves each
   radio and its label to the right edge as a pair, which text-align cannot do —
   it would right-align each line independently. #shipping_method is also used by
   the cart's totals table, hence the table scope. */
.woocommerce-checkout-review-order-table #shipping_method li
{
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
}

/* Centre the radio on the label's FIRST line, not on the whole block: with
   align-items:center a two-line option ("Pick up from the school office…") sat
   10.5px low, halfway between its two lines. The offset is the label's 2px
   padding (style.css `label { padding:2px 0 }`) plus half the difference between
   the 21px line-height and the 13px radio — 2 + (21-13)/2 = 6px. Recompute if
   the line-height changes. */
.woocommerce-checkout-review-order-table #shipping_method li input[type="radio"]
{
	margin-top: 6px;
}

@media screen and (max-width:767px)
{
	/* The parent drops table.shop_table to font-size:10px here
	   (responsive/core/css/style.css), so the label's line-height falls from 21px
	   to 15px and the offset must be recomputed: 2 + (15-13)/2 = 3px. The radio
	   itself stays 13px, so this cannot be expressed as a scaling em value. */
	.woocommerce-checkout-review-order-table #shipping_method li input[type="radio"]
	{
		margin-top: 3px;
	}
}

/*
 * The parent theme sets `word-break: break-all` on every `table.shop_table`
 * (responsive/core/css/style.css:2772), which breaks at any character rather
 * than at word boundaries — "Whangarei" becomes "Wha/ngarei". It pairs that
 * with `hyphens: auto`, which would also hyphenate mid-word.
 *
 * Wrap at word boundaries instead, keeping `overflow-wrap: break-word` as a
 * safety net so a genuinely unbreakable string (a long SKU or email address)
 * still cannot overflow the cell. Left outside the media query below because
 * the parent's rule applies at every width, including phones.
 *
 * The `.woocommerce` prefix takes this to (0,2,1) against the parent's
 * (0,1,1), and this file loads after both the parent stylesheet and
 * WooCommerce's own.
 */
.woocommerce table.shop_table
{
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: manual;
}

/*
 * Cart line-items table: give the columns real widths.
 *
 * The parent's `table-layout: fixed` with no width on any column splits the
 * table into six equal 152px shares, so the 23px remove control and the
 * thumbnail each got as much room as the product name. Fixed layout takes its
 * widths from the first row, so these land on the `th`.
 *
 * Numbers come from measured content plus the 12px cell padding either side:
 * 23px remove control, 60px thumbnail, 64px quantity input. product-name is
 * left auto so it absorbs the remainder (~473px).
 *
 * `box-sizing: border-box` is required, not tidiness. Table cells are
 * content-box by default, so each declared width would have the 24px of cell
 * padding added on top — every column came out 24px wider than asked for.
 *
 * Desktop-only: below 768px WooCommerce stacks the whole table to
 * `display: block` and hides the thumbnail column outright.
 */
@media only screen and (min-width: 769px) {

	.woocommerce table.cart th.product-remove,
	.woocommerce table.cart th.product-thumbnail,
	.woocommerce table.cart th.product-price,
	.woocommerce table.cart th.product-quantity,
	.woocommerce table.cart th.product-subtotal
	{
		box-sizing: border-box;
	}

	.woocommerce table.cart th.product-remove    { width: 48px; }
	.woocommerce table.cart th.product-thumbnail { width: 84px; }
	.woocommerce table.cart th.product-price     { width: 100px; }
	.woocommerce table.cart th.product-quantity  { width: 100px; }
	.woocommerce table.cart th.product-subtotal  { width: 110px; }
}

/*
 * The thumbnail itself. WooCommerce ships `width: 32px` at (0,2,1); this is
 * (0,3,2) and this file loads later, so no !important. `height` and
 * `object-fit` are belt-and-braces: the `thumbnail` derivative is already a
 * square crop, but this keeps the row from jumping if a non-square image ever
 * reaches the cart.
 */
.woocommerce-cart table.cart td.product-thumbnail img
{
	width: 60px;
	height: 60px;
	object-fit: cover;
}

/*
 * Cart totals: reclaim the empty left half.
 *
 * WooCommerce floats the totals block at 48% and reserves the other half for
 * cross-sells, which this site has never configured — so half the row is dead
 * space while the value column squeezes a shipping address into 260px. Widen
 * the block to 65% and rebalance the split from 35/65 to 25/75, which takes
 * the value column to ~421px: enough for "Pick up from the school office
 * (Kent Road)" and the shipping destination line to each sit on one line.
 *
 * `table-layout: fixed` from the parent is deliberately kept — the cart
 * line-items table relies on it for stable columns, and with word-break fixed
 * a rigid 25/75 is predictable.
 *
 * The desktop-only guard is load-bearing. WooCommerce stacks this block to
 * `width:100%; float:none` in woocommerce-smallscreen.css, enqueued with
 * media="only screen and (max-width: 768px)". Media queries add no
 * specificity and this file loads later, so an unguarded 65% would leak into
 * the phone layout and break that stacking.
 */
@media only screen and (min-width: 769px) {

	.woocommerce .cart-collaterals .cart_totals,
	.woocommerce-page .cart-collaterals .cart_totals
	{
		width: 65%;
	}

	.woocommerce-cart .cart-collaterals .cart_totals table th,
	.woocommerce-checkout .cart-collaterals .cart_totals table th
	{
		width: 25%;
	}
}

.checkout-button.button.alt.wc-forward {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

/* ==========================================================================
   Field deltas

   style.css sets the site-wide field look and redefines --wc-form-color-*,
   --wc-form-border-* and --wc-form-border-radius, which hands WooCommerce this
   theme's background, text colour, border and radius for free: a custom property
   resolves against whichever :root won the cascade no matter which stylesheet
   the var() sits in, so those need no override even though woocommerce.css
   prints first.

   What is left is the four things WooCommerce hard-codes at
   `.woocommerce form .form-row .input-text` (0,3,1) — padding, line-height, the
   textarea height, and `:focus { border-color:currentColor }`. Too specific for
   a type selector in style.css to reach. Matching WooCommerce's own selector
   shape ties on specificity, and this file loads after woocommerce.css, so
   source order settles it without a single !important — the same reasoning as
   the :disabled[disabled] block further up.

   The focus ring is declared here in full, not inherited. style.css's field
   rules are scoped to .wpcf7-form / #ws-plugin--s2member-profile so that the
   search box, comment form and widgets keep the parent theme's chrome — which
   also means they do not reach WooCommerce. The parent's `outline:none`
   (responsive/core/css/style.css:524) does reach these fields, so without the
   outline below a focused checkout field would show only a 1px border shift and
   a glow: no ring, nothing in forced-colors mode, and nothing carrying WCAG
   1.4.11. If style.css is ever unscoped, drop the outline here rather than
   letting both fire.
   ========================================================================== */
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea
{
	padding:var(--field-padding-y) var(--field-padding-x);
	font-size:var(--field-font-size);
	line-height:var(--field-line-height);
	/* The parent theme's inset highlight (responsive/core/css/style.css:506)
	   reaches these at (0,1,1) and WooCommerce never clears it for inputs — only
	   for textarea. Without this, checkout text fields keep the old pressed-in
	   look while the CF7 fields beside them are flat. */
	box-shadow:none;
}

.woocommerce form .form-row select
{
	padding-right:2.5em;
	background-position:calc(100% - var(--field-padding-x)) 50%;
}

/* WooCommerce ships height:4em here, which at 16px is 64px — two lines for the
   order notes box. */
.woocommerce form .form-row textarea
{
	height:auto;
	min-height:90px;
	line-height:1.5;
}

.woocommerce form .form-row .input-text:hover,
.woocommerce form .form-row select:hover,
.woocommerce form .form-row textarea:hover
{
	border-color:var(--field-hover-border);
}

/* Ties WooCommerce's own `:focus { border-color:currentColor }` at (0,4,1) and
   wins on source order. Note this deliberately does NOT outrank
   `.form-row.woocommerce-invalid input.input-text` at (0,4,2): a focused invalid
   field keeps its red border and still gets the blue ring from style.css. */
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus
{
	border-color:var(--field-focus);
	outline:2px solid var(--field-focus);
	outline-offset:1px;
	box-shadow:0 0 0 4px var(--field-focus-ring);
}

/* Select2 (the Region/State control) is still left to WooCommerce's own
   normalisation for border, radius and colour — those now arrive through the
   --wc-form-* aliases in style.css, which is why the old standalone
   `__rendered { color:#000 }` patch is gone.

   What WooCommerce cannot give us is the size. .select2-container is a sibling
   <span>, not the <select>, so it inherits the body's 14px and has to be told.
   The arithmetic is the same as a text input's — 1 + 9 + 20 + 9 + 1 = 40px — and
   that is the whole point: change a --field-* token and this block follows for
   free, so Region cannot go out of step with the row again. It has before: the
   theme once forced border:#cfcfcf and height:40px here, which is what made
   Region taller and paler than its neighbours.

   (0,4,0) beats both WooCommerce's :where(.woocommerce)-prefixed (0,3,0) — the
   :where() contributes nothing — and select2.css's .select2-container--default. */
.woocommerce .select2-container .select2-selection--single
{
	/* select2.css ships margin:0 0 -4px, which pulls the next form row up. */
	margin-bottom:0;

	/* height/border/background are restated here rather than left to WooCommerce
	   because both sheets declare them at (0,2,0) — select2.css as
	   `.select2-container--default .select2-selection--single`, WooCommerce as
	   `:where(.woocommerce) .select2-container .select2-selection`, whose :where()
	   contributes nothing. The tie is broken purely by which plugin stylesheet
	   prints first, and WooCommerce only wins because it enqueues select2 at
	   class-wc-frontend-scripts.php:493 and woocommerce-general at :561. Lose that
	   race and Region silently reverts to select2's 28px box with a #aaa border,
	   which is the drift this whole section exists to prevent. (0,3,0) settles it
	   here and stops depending on a plugin's internal enqueue order. */
	height:auto;
	background-color:var(--field-bg);
	border:var(--field-border-width) solid var(--field-border);
	border-radius:var(--field-radius);
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered
{
	padding:var(--field-padding-y) var(--field-padding-x);
	padding-right:2.5em;
	font-size:var(--field-font-size);
	line-height:var(--field-line-height);
	/* Restated as insurance against select2.css's own (0,3,0) `color:#444`. */
	color:var(--field-color);
}

/* WooCommerce offsets the chevron with top:2px against height:100%, and its
   .5em from the right no longer matches --field-padding-x. */
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow
{
	top:0;
	right:var(--field-padding-x);
}

.woocommerce .select2-container:hover .select2-selection--single
{
	border-color:var(--field-hover-border);
}

/* select2.css defines a focus style only for multi-selects, so a focused Region
   box would otherwise show nothing at all. Mirror the text inputs exactly, ring
   included — this is why the fields use :focus rather than :focus-visible: a
   mouse click on Region has to ring like its neighbours, and a <select> does not
   match :focus-visible on click. */
.woocommerce .select2-container--focus .select2-selection--single,
.woocommerce .select2-container--open .select2-selection--single
{
	border-color:var(--field-focus);
	outline:2px solid var(--field-focus);
	outline-offset:1px;
	box-shadow:0 0 0 4px var(--field-focus-ring);
}

/* WooCommerce wraps this toggle in an <h3>, so the label renders at heading
   size. Flexing the label does three jobs at once: `gap` gives the checkbox
   breathing room (WooCommerce's .input-checkbox margin never lands here — the
   checkbox sits in an h3, not a .form-row), align-items centres the box on the
   text, and the label's height collapses to a single line box so this heading is
   exactly as tall as the plain "Billing details" h3 in the other column. That
   last part is what makes the first field of each column start on the same line.
   Deliberately no fixed height: the label wraps in narrower columns and must be
   free to grow, which is where a fixed height puts the text over the checkbox. */
#ship-to-different-address
{
	line-height:1em;
}

#ship-to-different-address label
{
	display:flex;
	align-items:center;
	gap:12px;
	padding:0;
}

@media screen and (max-width:768px)
{
	/* Columns stack here, so there is nothing left to align against and the label
	   wraps — give the wrapped lines room. */
	#ship-to-different-address
	{
		line-height:1.3;
	}
}

/* The order summary is a panel: the heading paints the top half of the box and
   #order_review the bottom half, joined seamlessly by zeroing the gap between
   them. Colours reuse the product-card recipe at the top of this file.
   margin-top only bites below 769px, where the panel sits under the form rather
   than beside it. */
#order_review_heading
{
	clear:both;
	margin-top:1.5em;
	margin-bottom:0;
	background:#f9f9f9;
	border:1px solid #e5e5e5;
	border-bottom:0;
	border-radius:4px 4px 0 0;
	padding:20px 20px 0;
}

#order_review
{
	background:#f9f9f9;
	border:1px solid #e5e5e5;
	border-top:0;
	border-radius:0 0 4px 4px;
	padding:18px 20px 20px;
}

/* Inside the panel the review table must not draw its own box: WooCommerce's
   1px outline would sit a few pixels inside the panel border and read as two
   nested boxes. The row separators on its cells stay, so the table keeps its
   structure. */
#order_review .shop_table
{
	border:0;
	margin-bottom:0;
}

/* WooCommerce tints the payment block lavender (rgba(129,110,153,.14)), which
   clashes inside a neutral grey panel. Neutral tint, slightly darker than the
   panel, so it reads as a subsection rather than a foreign element. */
#order_review #payment
{
	background:#f0f0f0;
	border-radius:4px;
}

/* WooCommerce splits these four blocks across .col-1 and .col-2, which puts
   "Create an account?" and "Order notes" in the wrong order once both columns
   stack. display:contents drops those two wrappers so all four become flex items
   of #customer_details, which is what lets `order` sequence them. The wrappers
   carry no styling beyond the float/width the grid below replaces, so removing
   their boxes costs nothing. Flex items also establish their own formatting
   context, which contains the float WooCommerce puts on
   h3#ship-to-different-address. */
#customer_details
{
	display:flex;
	flex-direction:column;
}

#customer_details .col-1,
#customer_details .col-2
{
	display:contents;
}

#customer_details .woocommerce-billing-fields    { order:1; }
#customer_details .woocommerce-additional-fields { order:2; }
#customer_details .woocommerce-shipping-fields   { order:3; }
#customer_details .woocommerce-account-fields    { order:4; }

/* "Deliver to a different address?" is a heading opening a new section, but these
   flex items carry no margins of their own, so it sat just 9px under the
   order-notes textarea. 18px matches the h3 bottom-margin rhythm used site-wide
   (0.7em = 18.375px), giving 27px above the heading against 18.4px below it. */
#customer_details .woocommerce-shipping-fields
{
	margin-top:18px;
}

/* Form fields left, order summary right. Only above the 768px breakpoint where
   WooCommerce already abandons its own two-column layout; below it everything
   stacks in DOM order, which the `order` rules above have already put right. */
@media screen and (min-width:769px)
{
	.woocommerce-checkout form.checkout
	{
		display:grid;
		grid-template-columns:1fr 1fr;
		/* min-content keeps row 1 to the heading's height. With `auto` the tall
		   left column's height is shared across both rows, dropping a 136px hole
		   between "Your order" and the table. */
		grid-template-rows:min-content 1fr;
		column-gap:36px;
		row-gap:0;
		align-items:start;
	}

	.woocommerce-checkout form.checkout #customer_details
	{
		grid-column:1;
		grid-row:1 / 3;
		/* Drop the column by the panel's 1px border + 20px padding so "Billing
		   details" lands on the same line as the "Your order" text inside the
		   panel. Pushing this column down rather than pulling the panel up keeps
		   the panel clear of .woocommerce-notices-wrapper, which sits directly
		   above the form and gains height when validation fails. Recompute if the
		   panel's padding changes. */
		padding-top:21px;
	}

	.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;
	}
}

#place_order, .woocommerce-account .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    padding-left: 1em;
    padding-right:1em;
}

#add_payment_method #payment ul.payment_methods li input, .woocommerce-cart #payment ul.payment_methods li input, .woocommerce-checkout #payment ul.payment_methods li input, .woocommerce-checkout label, .woocommerce-account .woocommerce-form__input.woocommerce-form__input-checkbox
{
	vertical-align:middle;
}

#add_payment_method #payment ul.payment_methods li img, .woocommerce-cart #payment ul.payment_methods li img, .woocommerce-checkout #payment ul.payment_methods li img
{
	margin-top:20px;
}

/* Match the shipping rows' radio spacing. As a list-item the whitespace text node
   between <input> and <label> added 3.5px on top of WooCommerce's 1em margin,
   giving a 17.5px gap against shipping's 6.1px; flex drops whitespace-only nodes
   so the margin becomes the whole gap. Gateway logos are rendered inside the
   <label>, so they never become flex items and the img rule above still applies
   unchanged. .payment_box wraps onto its own line unaided — no flex-basis needed. */
.woocommerce-checkout #payment ul.payment_methods li
{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

/* 2px label padding + (28px line-height - 13px radio) / 2 = 9.5px — same
   reasoning as the shipping radio above. The attribute selector clears
   WooCommerce's own `…payment_methods li input { margin:0 1em 0 0 }`. */
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]
{
	margin-right: .4375em;
	margin-top: 9.5px;
}

/* The card fields live in a js.stripe.com iframe whose internal layout — including
   whether expiry and CVC share a line — Stripe decides from the element's width.
   Three nested paddings were cutting 397px down to 302px; removing the two
   redundant boxes below gives it 369.5px.

   WooCommerce wraps each method in .payment_box with 1em padding, a lavender tint
   and a ::before arrow. Inside the grey panel that tint reads as a stray third
   surface, so it goes; the vertical padding stays to keep the form off the method
   label. Applied to every method, not just Stripe, so the panel reads as one. */
.woocommerce-checkout #payment div.payment_box
{
	background: transparent;
	padding: 1em 0;
	margin: .5em 0 0;
}

.woocommerce-checkout #payment div.payment_box::before
{
	display: none;
}

/* The inner box is this theme's own doing: style.css:229 gives every fieldset
   `padding:15px 20px 10px` and the parent's style.css:500 adds a 1px border. The
   Stripe plugin emits <fieldset id="wc-stripe-upe-form"> with no styling of its
   own, so those generic rules drew a box around the card form and stole 42px of
   width from it. Unscoped by page — that ID only ever belongs to Stripe's form,
   and the theme rule it corrects is wrong wherever the form renders. */
#wc-stripe-upe-form
{
	border: 0;
	padding: 0;
	margin: 0;
}

.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register
{
	width:50%;
	margin:0 auto;
}

@media only screen and (max-width: 767px) {
	.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register
	{
		/* border-box because WooCommerce gives these forms 20px padding and a
		   1px border, which would otherwise push them past the column. */
		box-sizing:border-box;
		width:100%;
	}
}

/* ==========================================================================
   My Account

   The menu itself wears the site's shared `.subnav` skin — those rules live in
   style.css so the account menu, the home page's "What would you like to do?"
   box and the shop category list all read from one place. Only the two-column
   layout belongs here. WooCommerce's own woocommerce-layout.css already floats
   the nav at 30% and the content at 68%.
   ========================================================================== */

/* WooCommerce already floats these two forms inside 48% columns (#customer_login
   in myaccount/form-login.php), so the `form.login`/`form.register` width:50%
   above — which is meant for the standalone checkout coupon and login panels —
   halves them a second time, down to ~24% of the page. Fill the column instead.
   border-box because WooCommerce gives these forms 20px padding and a 1px
   border, which would otherwise push them past the column. margin:0 keeps the
   current vertical spacing (the rule above zeroes WooCommerce's `margin:2em 0`;
   the gap under each heading comes from the h2). */
#customer_login form.login,
#customer_login form.register
{
	box-sizing:border-box;
	width:100%;
	margin:0;
}

.woocommerce-MyAccount-navigation
{
	margin-bottom:20px;
}

/* No divider between the columns: the menu is a bordered, filled block in its
   own right, so a rule beside it just doubles up the boundary. box-sizing stays
   — WooCommerce floats this column at width:68% and border-box is what keeps
   the padding inside that rather than pushing the column past it. */
.woocommerce-MyAccount-content
{
	padding-left:2%;
	box-sizing:border-box;
}

/* Below 768px woocommerce-smallscreen.css stacks the two columns, so the indent
   would leave the content sitting offset from the menu above it. */
@media only screen and (max-width: 767px) {
	.woocommerce-MyAccount-content
	{
		padding-left:0;
	}
}

/* The legend renders natively — it sits on the fieldset's top border — so the global
   15px `fieldset` padding-top in style.css lands *under* the legend instead of above it,
   leaving the heading jammed to the border with a ~24px hole beneath. WooCommerce's own
   `.form-row label{line-height:2}` already supplies the leading, so only a few px is
   needed here. The bottom margin is the other half: that same global rule sets
   `margin:8px 0 0 0`, so the Save changes button's paragraph (margin-top:0) butts
   straight up against the fieldset's bottom border. */
.woocommerce-EditAccountForm fieldset
{
	margin-top:28px;
	padding-top:4px;
	margin-bottom:20px;
}

/* Edit address: the Save address button sits in a bare <p> straight after the
   field wrapper, and p is margin-top:0 site-wide (style.css), so it lands 9px
   under the last field. Space it off the fields the same way the account form's
   fieldset is. */
.woocommerce-address-fields__field-wrapper
{
	margin-bottom:20px;
}

/* The Addresses screen moves its edit link out of the address header and below
   the address itself — see woocommerce/myaccount/my-address.php. <address> is
   margin-zeroed by the reset, so the link needs its own breathing room, and
   inline-block keeps the hit area to the text rather than the whole column. */
.woocommerce-account .woocommerce-Address .edit
{
	display:inline-block;
	margin-top:1em;
}

.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2
{
	box-sizing:border-box;
}

.woocommerce div.product div.summary h1
{
	margin-top: 0;
}

	
@media screen and (max-width:400px) {
	#content-woocommerce .related ul.products li.product
	{
		width:100%;
	}
}

.single-product .tagged_as {
    display: list-item;
    list-style: outside none none;
}


/* related products */
.single-product .related .products > li:nth-of-type(2n+1), .single-product .related .products > div > div > li:nth-of-type(2n+1)
{
	clear:none;
}
.single-product .related
{
	clear: both;
}
@media only screen and (max-width: 480px) {
	.single-product #content-woocommerce .related ul.products li.product
	{
		width:100%;
	}
}
@media all and (min-width:481px) and (max-width:991px)
{
	.single-product #content-woocommerce .related ul.products li.product
	{
		width:46%;
	}
	.single-product .related .products > li:nth-of-type(2n+1), .single-product .related .products > div > div > li:nth-of-type(2n+1)
	{
		clear:both;
	}
}

/* Hide the Add to cart button once it has been used, leaving .added_to_cart
   ("View cart") in its place. Both are styled as full-width buttons at the top
   of this file, so the swap keeps the card the same height. */
.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.added
{
	display:none;
}


.upsells ul.products li.product
{
	width:22.05%;
}



/* ---------------------------------------------------------------------------
   Single product
   --------------------------------------------------------------------------- */

/* WooCommerce's default price is mustard (#958e09). Use the site's primary
   blue so it sits with the navy headings instead of fighting them.
   The loop price is set with the product cards at the top of this file. */
.woocommerce div.product p.price,
.woocommerce div.product span.price
{
	color:#0d31b5;
	font-weight:700;
}

.woocommerce div.product p.price del
{
	color:#8a8f9e;
	font-weight:400;
}

.woocommerce div.product p.price ins
{
	text-decoration:none;
}

/* WooCommerce's own `div.images img { width:100% }` stretches whatever file it
   is handed. The single image size is 600px wide (wp_options
   `woocommerce_single_image_width`, Customizer > WooCommerce > Product Images),
   so photos now arrive wide enough to fill this 48% column on their own.
   Capping at natural size keeps the few products whose originals are narrower
   than the column sharp and centred instead of stretched and soft. */
.single-product div.product div.images img
{
	width:auto;
	max-width:100%;
	height:auto;
	margin:0 auto;
}

/* Hover zoom (functions.php, wbhsoba_product_gallery_support) lays a full-size
   copy, .zoomImg, over the photo's link. Clicks landed on that copy, so only
   the magnifier icon opened the lightbox. Letting clicks through to the link
   lets the photo itself open it too. The zoom still follows the mouse: it
   listens on the surrounding div, which the events reach either way. */
.single-product div.product div.images .zoomImg
{
	pointer-events:none;
}

.single-product div.product div.images .woocommerce-product-gallery__image a
{
	cursor:zoom-in;
}

/* Quantity and Add to cart on one row, matched to the same 40px height.
   Flex replaces WooCommerce's floats so the two line up without clearfixes.
   :not(.variations_form) leaves a variable product's table.variations alone —
   every product is simple today, but the guard costs nothing. */
.single-product div.product form.cart:not(.variations_form)
{
	display:flex;
	align-items:stretch;
	gap:8px;
	margin:1.25em 0;
}

/* WooCommerce's clearfix gives form.cart an empty ::before and ::after. In a
   flex row they count as items, so the gap after ::before pushed the quantity
   box (or the Code products' only button) 8px in from the description's left
   edge. Flex needs no clearfix, so drop both. */
.single-product div.product form.cart:not(.variations_form)::before,
.single-product div.product form.cart:not(.variations_form)::after
{
	content:none;
}

/* div.quantity, not .quantity: WooCommerce's own
   `.woocommerce div.product form.cart div.quantity { margin:0 4px 0 0 }` is one
   element more specific, so it outranked .quantity here and added 4px to the
   8px gap before Add to cart. This stylesheet loads after WooCommerce's, so
   matching its specificity is enough. */
.woocommerce div.product form.cart div.quantity,
.woocommerce div.product form.cart .button
{
	float:none;
	margin:0;
}

/* 40px to match a checkout field, so the qty box and Add to cart read as one
   row. Padding stays symmetrical rather than tokenised — this box is 64px wide
   and centre-aligned, so --field-padding-x would crowd a three-digit quantity. */
.woocommerce .quantity input.qty
{
	box-sizing:border-box;
	height:40px;
	width:64px;
	padding:0 4px;
	border:var(--field-border-width) solid var(--field-border);
	border-radius:var(--field-radius);
	background:var(--field-bg);
	color:var(--field-color);
	font-size:var(--field-font-size);
	text-align:center;
	cursor:auto;
	transition:border-color .12s ease, box-shadow .12s ease;
}

.woocommerce .quantity input.qty:hover
{
	border-color:var(--field-hover-border);
}

/* This rule carried `outline:0`, which killed the keyboard ring on the one Woo
   field style.css cannot reach from an earlier stylesheet. The ring is declared
   here in full for that reason. */
.woocommerce .quantity input.qty:focus
{
	border-color:var(--field-focus);
	outline:2px solid var(--field-focus);
	outline-offset:1px;
	box-shadow:0 0 0 4px var(--field-focus-ring);
}

.woocommerce div.product form.cart .single_add_to_cart_button
{
	box-sizing:border-box;
	height:40px;
	padding:0 18px;
	line-height:38px; /* 40px less the 1px borders */
}

/* The same loading state as the archive button, sized for this one's 40px box.
   Applied by js/shop.js on submit — this button is a plain form POST, so
   WooCommerce never adds the class itself. */
.woocommerce div.product form.cart .single_add_to_cart_button.loading
{
	opacity: 1;
	padding-right: 34px;
	padding-left: 34px;
	pointer-events: none;
	cursor: default;
}

.woocommerce div.product form.cart .single_add_to_cart_button.loading::after
{
	top: 50%;
	right: 12px;
	margin-top: -7px;
	font-size: 14px;
	line-height: 1;
	text-shadow: none;
	animation-duration: 1s;
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce div.product form.cart .single_add_to_cart_button.loading::after
	{
		animation: none;
	}
}
