/* =========================================================================
   Shop, cart, checkout (README §3, §5, §5b, §6). Mobile first; 900px desktop.
   ========================================================================= */

/* ---- Shop -------------------------------------------------------------- */
.ps-shop { padding: 24px var(--pad-x) 26px; }
.ps-shop .ps-h1 { font-size: 52px; margin-bottom: 4px; }
.ps-shop__sub { font-size: 16px; margin-bottom: 20px; }
.ps-shop__grid { display: flex; flex-direction: column; gap: 16px; }

.ps-card { position: relative; border: 2px solid var(--navy); display: flex; align-items: stretch; }
.ps-card__flag {
	position: absolute; top: 12px; right: 12px; z-index: 1;
	background: var(--lime); color: var(--navy); padding: 6px 12px; border-radius: 999px;
	font-family: var(--font-label); font-weight: 700; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.ps-card__media { width: 130px; flex: 0 0 130px; background: var(--pale); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ps-card__media picture { display: contents; }
.ps-card__media img { width: 100%; height: 100%; object-fit: contain; }
.ps-card__media--contain { padding: 8px; }
.ps-card__media--sub { background: var(--navy); flex-direction: column; gap: 10px; padding: 12px; }
.ps-card__media--sub img { height: 120px; width: auto; }
.ps-card__media--sub span { font-family: var(--font-label); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); text-align: center; }
.ps-card__body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 7px; }
.ps-card__body h3 { font-size: 23px; line-height: 1; }
.ps-card__blurb { font-size: 14px; color: var(--body); }
.ps-card__blurb--desktop { display: none; }
.ps-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ps-card__amount { font-family: var(--font-display); font-size: 26px; color: var(--green); }
.ps-card__amount small { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body); }
.ps-card__save { display: none; font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.ps-card__rating { display: none; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body); }
.ps-card__add { margin-top: auto; height: 48px; font-size: 15px; }
/* Side cards say "Add" on phones (README §3 mobile) */
.ps-card__add--short .ps-add__label { font-size: 0; }
.ps-card__add--short .ps-add__label::before { content: 'Add'; font-size: 15px; }
@media (min-width: 900px) {
	.ps-card__add--short .ps-add__label { font-size: inherit; }
	.ps-card__add--short .ps-add__label::before { content: none; }
}

/* Mobile: the 3-pack leads as a tall card */
.ps-card--lead { order: -1; border-width: 3px; flex-direction: column; }
.ps-card--lead .ps-card__media { width: auto; flex: 0 0 210px; height: 210px; background: none; }
.ps-card--lead .ps-card__media img { object-fit: cover; }
.ps-card--lead .ps-card__body { padding: 18px; gap: 8px; }
.ps-card--lead h3 { font-size: 26px; }
.ps-card--lead .ps-card__blurb { font-size: 15px; }
.ps-card--lead .ps-card__amount { font-size: 30px; }
.ps-card--lead .ps-card__save { display: inline; }
.ps-card--lead .ps-card__add { height: 54px; font-size: 17px; }

.ps-subband { display: none; }

@media (min-width: 900px) {
	.ps-shop { padding: var(--pad-x) var(--pad-wide); }
	.ps-shop .ps-h1 { font-size: 60px; margin-bottom: 6px; }
	.ps-shop__sub { font-size: 17px; margin-bottom: 30px; }
	.ps-shop__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: stretch; }
	.ps-card, .ps-card--lead { order: 0; flex-direction: column; }
	.ps-card__media, .ps-card--lead .ps-card__media { width: auto; flex: 0 0 250px; height: 250px; background: none; padding: 0; }
	.ps-card__media img { object-fit: cover; }
	.ps-card__flag { top: 14px; right: 14px; padding: 5px 12px; font-size: 11px; }
	.ps-card__body, .ps-card--lead .ps-card__body { padding: 22px; gap: 8px; flex: 1; }
	.ps-card__body h3, .ps-card--lead h3 { font-size: 26px; }
	.ps-card__blurb--desktop { display: block; }
	.ps-card__blurb--mobile { display: none; }
	.ps-card__price { margin-top: auto; }
	.ps-card__amount, .ps-card--lead .ps-card__amount { font-size: 30px; }
	.ps-card__save, .ps-card__rating { display: inline; }
	.ps-card__add, .ps-card--lead .ps-card__add { margin-top: 8px; height: auto; padding: 14px; font-size: 16px; }
	.ps-card--sub { display: none; }

	.ps-subband {
		display: flex; align-items: center; justify-content: space-between; gap: 30px;
		margin-top: var(--pad-x); padding: 30px 34px; background: var(--navy); color: var(--white);
	}
	.ps-subband > div { display: flex; flex-direction: column; gap: 8px; }
	.ps-subband h3 { font-size: 34px; line-height: 1; color: var(--white); }
	.ps-subband p { font-size: 15px; line-height: 1.55; color: var(--on-dark); }
	.ps-subband__cta { padding: 16px 30px; font-size: 17px; white-space: nowrap; }
}
@media (min-width: 1200px) {
	.ps-shop__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Cart -------------------------------------------------------------- */
.ps-cartpage { padding: 22px var(--pad-x) 26px; display: flex; flex-direction: column; gap: 18px; }
.ps-cartpage__title { font-size: 44px; line-height: 0.9; }
.ps-cartpage__copy { font-size: 16px; line-height: 1.55; }
.ps-ship-bar { display: flex; flex-direction: column; gap: 8px; }
.ps-ship-bar__label { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.ps-ship-bar__track { height: 10px; background: var(--pale); overflow: hidden; }
.ps-ship-bar__fill { height: 100%; background: var(--lime); transition: width 0.8s ease-out; }

.ps-cart-form { display: flex; flex-direction: column; gap: 18px; }
.ps-cart-form.is-busy { opacity: 0.6; pointer-events: none; }
.ps-cart-form__update { position: absolute; left: -9999px; }
.ps-lines { display: flex; flex-direction: column; gap: 14px; }
.ps-line { border: 3px solid var(--navy); padding: 14px; display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-start; }
.ps-line.is-new { animation: om-tumble 0.9s var(--ease-slam) both; }
.ps-line__thumb { width: 68px; height: 88px; flex: 0 0 68px; background: var(--pale); display: flex; align-items: center; justify-content: center; }
.ps-line__thumb img { height: 78px; width: auto; }
.ps-line__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ps-line__name { font-family: var(--font-display); font-size: 20px; line-height: 1; text-transform: uppercase; color: var(--navy); }
.ps-line__name a { color: inherit; }
.ps-line__name a:hover { color: var(--green); }
.ps-line__thumb { color: inherit; }
.ps-line__meta { font-size: 14px; color: var(--body); }
.ps-line__upsell { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.ps-line__price { font-family: var(--font-display); font-size: 22px; color: var(--green); }
.ps-line__price--mobile { margin-top: 2px; }
.ps-line__price--desktop { display: none; }
.ps-line__controls { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-stepper--line { height: 48px; font-size: 17px; }
.ps-stepper--line .ps-stepper__qty { width: 24px; font-size: 15px; }
.ps-line__remove { min-height: 48px; display: flex; align-items: center; font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.ps-cartpage__lower { display: flex; flex-direction: column; gap: 18px; }
.ps-more { border: 2px solid var(--navy); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ps-more__row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--body); }
.ps-more__row:last-child { border-bottom: 0; }
.ps-more__right { display: flex; align-items: center; gap: 12px; }
.ps-more__price { font-family: var(--font-display); font-size: 18px; color: var(--green); }
.ps-more__add { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--lime); color: var(--navy); font-family: var(--font-display); font-size: 18px; }
.ps-more__add:hover { background: #7db536; color: var(--navy); }

/* Cart page: Stripe's wallet buttons inside the totals panel, above Checkout; hidden until Stripe shows one */
.ps-cart-express { display: none; flex-direction: column; gap: 10px; margin-top: 4px; }
.ps-cart-express .ps-buy__label, .ps-cart-express .ps-co-express__or { color: var(--on-dark-alt); }
.ps-cart-express .ps-co-express__or { padding: 0; }
.ps-cart-express:has(#wc-stripe-express-checkout-element:not([style*="display:none"]):not([style*="display: none"])) { display: flex; }
.ps-cart-express #wc-stripe-express-checkout-element { margin: 0 !important; }

.ps-totals { background: var(--navy); color: var(--white); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ps-totals__row { display: flex; justify-content: space-between; font-size: 15px; color: var(--on-dark-alt); }
.ps-totals__row .amount { color: inherit; }
.ps-totals__ship { color: var(--lime); }
.ps-totals__row--total { font-family: var(--font-display); font-size: 24px; color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 10px; }
.ps-totals__note { font-size: 12px; color: var(--on-dark-alt); }
.ps-totals__checkout { display: none; }

.ps-sticky--cart, .ps-sticky--checkout { flex-direction: column; gap: 8px; align-items: stretch; }
.ps-sticky--cart .ps-sticky__cta, .ps-sticky--checkout .ps-sticky__cta { height: 56px; font-size: 17px; letter-spacing: 0.06em; }
.ps-sticky__note { text-align: center; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
body.woocommerce-cart .ps-footer, body.woocommerce-checkout .ps-footer { padding-bottom: 130px; }

/* Empty cart side card */
.ps-side { border: 3px solid var(--navy); display: flex; align-items: stretch; }
.ps-side__media { width: 130px; flex: 0 0 130px; overflow: hidden; }
.ps-side__media img { width: 100%; height: 100%; object-fit: cover; }
.ps-side__body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 7px; }
.ps-side__body .ps-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
.ps-side__body h3 { font-size: 23px; line-height: 1; }
.ps-side__price { font-family: var(--font-display); font-size: 26px; color: var(--green); }
.ps-side__add { margin-top: auto; height: 48px; font-size: 15px; }

/* Woo notices (added-to-cart, errors) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	margin: 0 0 14px; padding: 14px 16px; list-style: none; background: var(--pale); border-left: 5px solid var(--lime);
	font-size: 15px; color: var(--navy);
}
.woocommerce-error { border-left-color: #b3261e; }
.woocommerce-message .button { display: none; }

@media (min-width: 900px) {
	.ps-cartpage { padding: 30px; max-width: 900px; margin: 0 auto; gap: 20px; }
	.ps-cartpage__copy { font-size: 17px; max-width: 52ch; }
	.ps-line { flex-wrap: nowrap; align-items: center; padding: 18px; gap: 18px; }
	.ps-line__thumb { width: 76px; height: 100px; flex-basis: 76px; }
	.ps-line__thumb img { height: 88px; }
	.ps-line__name { font-size: 22px; }
	.ps-line__price--mobile { display: none; }
	.ps-line__price--desktop { display: block; font-size: 26px; }
	.ps-line__controls { flex: 0 0 auto; gap: 14px; }
	.ps-stepper--line { height: 40px; }
	.ps-cartpage__lower { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
	.ps-more { padding: 20px; }
	.ps-totals { padding: 20px; gap: 11px; }
	.ps-totals__checkout { display: flex; margin-top: 4px; padding: 16px; font-size: 17px; }
	.ps-sticky--cart, .ps-sticky--checkout { display: none; }
	body.woocommerce-cart .ps-footer, body.woocommerce-checkout .ps-footer { padding-bottom: var(--pad-x); }
	.ps-cartpage--empty { max-width: 560px; }
}

/* ---- Checkout ---------------------------------------------------------- */
.ps-checkout { display: flex; flex-direction: column; }
.ps-co-h { font-size: 26px; }
.ps-buy__label { font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.ps-co-summary-toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 60px; padding: 16px var(--pad-x); border: 0; border-bottom: 1px solid var(--border-light);
	background: var(--pale); text-align: left; width: 100%;
}
.ps-co-summary-toggle__thumb { width: 40px; height: 50px; background: var(--white); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ps-co-summary-toggle__thumb img { height: 44px; width: auto; }
.ps-co-summary-toggle__text { flex: 1; font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.ps-co-summary-toggle__text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--body); }
.ps-co-summary-toggle__total { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; color: var(--green); }
.ps-co-summary-toggle__total b { font-size: 14px; font-weight: 400; transition: transform 0.2s; }
.is-summary-open .ps-co-summary-toggle__total b { transform: rotate(180deg); }

.ps-co-form { display: flex; flex-direction: column; }
.ps-co-express { order: 2; display: flex; flex-direction: column; gap: 12px; padding: 0 var(--pad-x) 12px; }
.ps-co-express__wallets { display: none; flex-direction: column; gap: 10px; }
/* Stripe strips the element's inline display:none once a wallet is available */
.ps-co-express__wallets:has(#wc-stripe-express-checkout-element:not([style*="display:none"]):not([style*="display: none"])) { display: flex; }
.ps-co-express #wc-stripe-express-checkout-element { margin: 0 !important; }
.ps-co-express #wc-stripe-express-checkout-button-separator { display: none !important; }
.ps-co-express__or { text-align: center; padding: 4px 0; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--inactive); }

.ps-co-main { padding: 20px var(--pad-x); display: flex; flex-direction: column; gap: 16px; }
.ps-co-steps {
	order: -1; position: sticky; top: 60px; z-index: 30;
	display: flex; gap: 8px; margin: 0; padding: 14px var(--pad-x) 0; list-style: none; background: var(--white);
	font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
@media (min-width: 601px) { .admin-bar .ps-co-steps { top: 106px; } }
@media (min-width: 783px) { .admin-bar .ps-co-steps { top: 92px; } }
.ps-co-steps li { flex: 1; color: var(--inactive); border-bottom: 3px solid var(--pale); padding-bottom: 8px; transition: color 0.2s, border-color 0.2s; }
.ps-co-steps li.is-active { color: var(--navy); border-bottom-color: var(--lime); }

.ps-co-details { display: flex; flex-direction: column; gap: 16px; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { display: none; }
.woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-field { grid-column: span 2; margin: 0; }
.ps-field--first_name, .ps-field--last_name, .ps-field--state, .ps-field--postcode { grid-column: span 1; }
.ps-field label { position: absolute; left: -9999px; }
.ps-field .woocommerce-input-wrapper { display: block; }
.ps-field input, .ps-field select, .ps-field .select2-container .select2-selection--single {
	width: 100%; min-height: 54px; border: 1px solid var(--border-light); border-radius: 0; background: var(--white);
	padding: 0 14px; font: inherit; font-size: 16px; color: var(--navy);
}
.ps-field input::placeholder { color: var(--muted); }
.ps-field input:focus, .ps-field select:focus { outline: 3px solid var(--lime); outline-offset: -1px; }
.ps-field .select2-container .select2-selection--single { display: flex; align-items: center; }
.ps-field .select2-container .select2-selection__rendered { padding: 0; line-height: 1.3; color: var(--navy); }
.ps-field .select2-container .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 8px; }
.ps-field .select2-container .select2-selection__arrow b { border-color: var(--navy) transparent transparent; }
.ps-field .required { display: none; }
/* Canada only; Woo's address-i18n.js .show()s fields inline, hence !important */
.ps-field--country { display: none !important; }
.woocommerce-invalid input { border-color: #b3261e; }

/* Review fragment: display: contents lets shipping, summary, mobile totals
   and #payment sit in different grid cells while checkout.js refreshes it. */
.ps-co-review, .ps-co-review-table { display: contents; }
.ps-co-ship, .woocommerce-checkout-payment, .ps-co-bottom { padding: 0 var(--pad-x) 20px; }
.ps-co-ship { order: 1; display: flex; flex-direction: column; gap: 10px; }
.ps-co-bottom { order: 5; }
.ps-co-totals--bottom { border-top: 2px solid var(--navy); padding-top: 14px; }
.woocommerce-checkout-payment { order: 3; }
.ps-ship__rows { display: flex; flex-direction: column; gap: 8px; }
.ps-ship__row {
	position: relative; display: flex; align-items: center; gap: 12px;
	min-height: 62px; padding: 14px 16px; border: 1px solid var(--border-light); cursor: pointer;
	font-size: 15px; line-height: 1.4; color: var(--body);
}
.ps-ship__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-ship__row:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.ps-ship__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-light); flex: 0 0 auto; }
.ps-ship__text { flex: 1; display: flex; flex-direction: column; }
.ps-ship__cost { font-family: var(--font-display); font-size: 18px; color: var(--green); }
.ps-ship__row:has(input:checked) { border: 3px solid var(--green); padding: 12px 14px; color: var(--navy); }
.ps-ship__row:has(input:checked) .ps-ship__radio { border: 3px solid var(--green); background: var(--lime); }
.ps-ship__row:has(input:checked) .ps-ship__cost--free { color: var(--lime); }

/* Payment (Woo's #payment block) */
.woocommerce-checkout-payment { display: flex; flex-direction: column; gap: 10px; }
.wc_payment_methods { display: flex; flex-direction: column; gap: 8px; }
.wc_payment_method { position: relative; border: 1px solid var(--border-light); padding: 14px 16px; }
.wc_payment_method:has(input:checked) { border: 3px solid var(--green); padding: 12px 14px; }
.wc_payment_method > label { display: flex; align-items: center; gap: 12px; font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.wc_payment_method input[type="radio"] { position: absolute; opacity: 0; }
/* Woo's card-brand strip sits inline after the gateway label text */
.wc_payment_method > label .stripe-icon { display: inline-block; height: 20px; width: auto; max-width: none; margin: 0; flex: 0 0 auto; }
.wc_payment_method .payment_box { margin-top: 10px; font-size: 14px; color: var(--body); }
.wc_payment_method .payment_box p { margin: 0 0 8px; }
.wc_payment_method .payment_box .form-row { margin: 0 0 10px; }
.wc_payment_method .payment_box input.input-text, .wc_payment_method .payment_box .wc-stripe-elements-field {
	width: 100%; min-height: 54px; border: 1px solid var(--border-light); padding: 0 14px; font-size: 16px; background: var(--white);
}
/* Stripe Payment Element (UPE): the iframe draws its own fields from the appearance we pass; no theme frame around it */
.wc_payment_method .payment_box #wc-stripe-upe-form, .wc_payment_method .payment_box .wc-stripe-upe-element, .wc_payment_method .payment_box .wc-stripe-upe-element.StripeElement {
	margin: 0; padding: 0; border: 0; min-height: 0; background: none; box-shadow: none;
}
.wc_payment_method .payment_box .wc-stripe-upe-element { margin-top: 4px; }
.wc_payment_method .payment_box .wc-stripe-upe-element iframe { max-width: 100%; }
.wc_payment_method .payment_box .wc-stripe-save-source, .wc_payment_method .payment_box .woocommerce-SavedPaymentMethods-saveNew { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.wc_payment_method .payment_box .wc-stripe-save-source input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); }
.woocommerce-terms-and-conditions-wrapper { font-size: 14px; }
.place-order { display: flex; flex-direction: column; gap: 10px; }
#place_order {
	display: none; width: 100%; border: 0; padding: 18px; background: var(--green); color: var(--white);
	font-family: var(--font-display); font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase;
}
#place_order:hover { background: #174a29; }

/* Summary: collapsed under the toggle on phones, sticky right column on desktop */
.ps-co-summary { display: none; order: -2; flex-direction: column; gap: 16px; padding: 16px var(--pad-x); background: var(--pale); border-bottom: 1px solid var(--border-light); }
.is-summary-open .ps-co-summary { display: flex; }
.ps-co-items { display: flex; flex-direction: column; gap: 12px; }
.ps-co-item { display: flex; gap: 12px; align-items: center; }
.ps-co-item__thumb { width: 60px; height: 80px; background: var(--white); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ps-co-item__thumb img { height: 70px; width: auto; }
.ps-co-item__text { display: flex; flex-direction: column; gap: 2px; }
.ps-co-item__name { font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.ps-co-item__qty { font-size: 13px; color: var(--body); }
.ps-co-totals { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--body); }
.ps-co-totals__row { display: flex; justify-content: space-between; }
.ps-co-totals__row .amount { color: inherit; }
.ps-co-totals__ship { color: var(--green); font-weight: 600; }
.ps-co-totals__row--total { font-family: var(--font-display); font-size: 24px; color: var(--green); }
.ps-co-trust { display: none; }

/* Order received */
.woocommerce-order { padding: 26px var(--pad-x); display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.woocommerce-order h2 { font-size: 26px; }
.woocommerce-order ul { display: flex; flex-direction: column; gap: 6px; }
.woocommerce-order .woocommerce-order-overview li { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
.woocommerce-order table { width: 100%; border-collapse: collapse; }
.woocommerce-order th, .woocommerce-order td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--hairline); }

@media (min-width: 900px) {
	.ps-checkout { max-width: 900px; margin: 0 auto; }
	.ps-co-summary-toggle { display: none; }
	.ps-co-express { padding: 0 30px 12px; }
	.ps-co-form { display: grid; grid-template-columns: 1.25fr 0.75fr; grid-auto-rows: max-content; }
	.ps-co-steps, .ps-co-main, .ps-co-ship, .ps-co-express, .woocommerce-checkout-payment { grid-column: 1; }
	.ps-co-steps { position: static; padding: 30px 30px 0; background: none; }
	.ps-co-main { padding: 16px 30px 20px; gap: 20px; }
	.ps-co-ship, .woocommerce-checkout-payment { padding: 0 30px 20px; }
	.woocommerce-checkout-payment { padding-bottom: 30px; }
	.ps-co-bottom { display: none; }
	.ps-co-steps { gap: 22px; font-size: 12px; letter-spacing: 0.18em; }
	.ps-co-steps li { flex: 0 0 auto; border-bottom: 0; padding-bottom: 5px; }
	.ps-co-steps li.is-active { border-bottom: 3px solid var(--lime); }
	.ps-co-details { gap: 12px; }
	.woocommerce-billing-fields__field-wrapper { grid-template-columns: 1.2fr 1fr 0.9fr; }
	.ps-field { grid-column: span 3; }
	.ps-field--first_name { grid-column: 1 / span 2; }
	.ps-field--last_name { grid-column: 3 / span 1; }
	.ps-field--city, .ps-field--state, .ps-field--postcode { grid-column: span 1; }
	.ps-field input, .ps-field select, .ps-field .select2-container .select2-selection--single { min-height: 48px; font-size: 15px; }
	.ps-ship__row { min-height: 0; padding: 14px 16px; }
	.ps-ship__row:has(input:checked) { padding: 12px 14px; }
	.ps-ship__radio { display: none; }
	.ps-ship__text { flex-direction: row; gap: 6px; }
	.ps-ship__text span::before { content: '— '; }
	#place_order { display: block; }
	.ps-co-summary {
		grid-column: 2; grid-row: 1 / span 6; order: 0; display: flex; padding: 30px; background: var(--pale); border: 0; margin: 0;
		position: sticky; top: 110px; align-self: start;
	}
	.admin-bar .ps-co-summary { top: 142px; }
	.ps-co-totals { border-top: 1px solid var(--border-light); padding-top: 12px; font-size: 14px; }
	.ps-co-totals__row--total { border-top: 2px solid var(--navy); padding-top: 12px; margin-top: 4px; }
	.ps-co-trust { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
	.woocommerce-order { max-width: 900px; margin: 0 auto; padding: 40px 34px; }
}

/* ---- Mini-cart drawer (every page; markup from inc/mini-cart.php) --------- */
.ps-cart-drawer { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; }
.ps-cart-drawer[hidden] { display: none; }
.ps-cart-drawer__overlay { position: absolute; inset: 0; background: rgba(27, 42, 91, 0.5); opacity: 0; transition: opacity 0.25s; }
.ps-cart-drawer__panel {
	position: relative; width: 100%; max-width: 440px; height: 100%;
	display: flex; flex-direction: column; background: var(--white);
	transform: translateX(100%); transition: transform 0.3s var(--ease-slam);
	box-shadow: -12px 0 32px rgba(27, 42, 91, 0.25);
}
.ps-cart-drawer.is-open .ps-cart-drawer__overlay { opacity: 1; }
.ps-cart-drawer.is-open .ps-cart-drawer__panel { transform: none; }
.ps-cart-drawer.is-busy .ps-cart-drawer__inner { opacity: 0.55; pointer-events: none; }
.ps-cart-drawer__bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 18px; border-bottom: 2px solid var(--navy); flex: 0 0 auto; }
.ps-cart-drawer__title { font-size: 24px; line-height: 1; }
.ps-cart-drawer__close { width: 48px; height: 48px; border: 0; background: none; color: var(--navy); font-family: var(--font-display); font-size: 30px; line-height: 1; cursor: pointer; }
.ps-cart-drawer__inner { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
/* Drawer lines keep the stacked phone layout at every viewport width */
.ps-cart-drawer .ps-line { flex-wrap: wrap; align-items: flex-start; border-width: 2px; padding: 12px; gap: 10px 12px; }
.ps-cart-drawer .ps-line__thumb { width: 56px; height: 72px; flex-basis: 56px; }
.ps-cart-drawer .ps-line__thumb img { height: 64px; }
.ps-cart-drawer .ps-line__info { flex: 1; min-width: 0; }
.ps-cart-drawer .ps-line__name { font-size: 18px; line-height: 1.05; }
.ps-cart-drawer .ps-line__meta { font-size: 13px; }
.ps-cart-drawer .ps-line__price { font-size: 20px; }
.ps-cart-drawer .ps-line__price--mobile { display: inline; margin-top: 2px; }
.ps-cart-drawer .ps-line__price--desktop { display: none; }
.ps-cart-drawer .ps-line__controls { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-cart-drawer .ps-line__remove { min-height: 40px; }
.ps-cart-drawer__sub { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 2px solid var(--navy); font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.ps-cart-drawer__amount { font-family: var(--font-display); font-size: 26px; letter-spacing: 0; color: var(--green); }
.ps-cart-drawer__note { font-size: 12px; color: var(--muted); }
.ps-cart-drawer__empty { display: flex; flex-direction: column; gap: 14px; }
.ps-cart-drawer__empty .ps-cartpage__title { font-size: 36px; line-height: 0.9; }
.ps-cart-drawer__empty .ps-cartpage__copy { font-size: 15px; line-height: 1.5; }
.ps-cart-drawer__empty .ps-side__media { width: 110px; flex-basis: 110px; }
.ps-cart-drawer__foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 2px solid var(--navy); background: var(--white); }
.ps-cart-drawer.is-empty .ps-cart-drawer__foot { display: none; }
.ps-cart-drawer__express { display: none; flex-direction: column; gap: 8px; }
.ps-cart-drawer__express:has(#wc-stripe-express-checkout-element:not([style*="display:none"]):not([style*="display: none"])) { display: flex; }
.ps-cart-drawer__express #wc-stripe-express-checkout-element { margin: 0 !important; }
.ps-cart-drawer__or { text-align: center; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--inactive); }
.ps-cart-drawer__checkout { min-height: 54px; font-size: 17px; }
.ps-cart-drawer__view { align-self: center; min-height: 40px; display: inline-flex; align-items: center; font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); border-bottom: 2px solid var(--lime); }
.admin-bar .ps-cart-drawer { top: 46px; }
@media (min-width: 783px) { .admin-bar .ps-cart-drawer { top: 32px; } }
@media (prefers-reduced-motion: reduce) { .ps-cart-drawer__panel, .ps-cart-drawer__overlay { transition: none; } }
