/*
 * Cart, checkout and thank-you (boards Cart, Checkout, ThankYou and their D- versions).
 * Phone first (390 boards); desktop from 1024px (1440 boards). Interaction rules: INTERACTIONS §1–§6.
 */

/* ---------- Shared ---------- */
:where(.tc-cart, .ts-checkout, .ts-thankyou) .h2 { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 800; font-stretch: 125%; }
:where(.tc-cart, .ts-checkout, .ts-thankyou) .fit { font-size: 12px; line-height: 16px; font-weight: 700; color: #0B2E2F; background: #E3EBE6; border-radius: 4px; padding: 2px 8px; align-self: flex-start; }
.tc-row { display: flex; justify-content: space-between; gap: 12px; }
.tc-row > span:last-child { white-space: nowrap; }
.tc-sub { color: #3D4A49; }
.tc-total { font-size: 18px; line-height: 24px; font-weight: 800; }
.tc-total strong { font-weight: inherit; }
.tc-sp { flex-grow: 1; }
.tc-thumb { display: block; width: 80px; height: 80px; border-radius: 8px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px #E3EBE6; flex-shrink: 0; }
.tc-thumb--none { background: #0F3D3E; display: flex; align-items: center; justify-content: center; }
.sline { display: flex; gap: 12px; align-items: center; }
.sline .tc-thumb { width: 48px; height: 48px; }
.sline-n { flex-grow: 1; min-width: 0; }
.sline-p { white-space: nowrap; font-weight: 700; }

/* Phone header bar (Cart, Checkout): back, title, note. */
.tc-mhd .mhd-row { padding: 8px 4px; gap: 4px; }
.tc-mhd-h { flex-grow: 1; margin: 0; font-size: 18px; line-height: 24px; font-weight: 800; color: #fff; }
.tc-mhd-note { font-size: 12px; line-height: 16px; opacity: .88; padding-right: 12px; white-space: nowrap; }

/* Desktop page heading. */
.tc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tc-h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }

/* One notice pattern (G-19): Ink on Tint, an icon, no red bars, no Undo. */
.tc-notices:empty { display: none; }
.tc-notices { display: flex; flex-direction: column; gap: 8px; }
.tc-notice { margin: 0; list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #E3EBE6; color: #101A1A; font-size: 14px; line-height: 20px; }
.tc-notice p { margin: 0; }
/* wc_print_notices() runs the whole template through wc_kses_notice(), which drops the svg's class,
   fill and stroke: style the icon by position so it stays the 20px stroke icon at every width. */
.tc-notice > svg, .tc-notice .ico { flex: none; width: 20px; height: 20px; margin-top: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-notice--ok > svg, .tc-notice--ok .ico { color: #0E7A3F; }
.tc-notice a { color: inherit; font-weight: 700; }
ul.tc-notice--err { flex-direction: column; gap: 4px; padding-left: 20px; box-shadow: inset 4px 0 0 #101A1A; font-weight: 700; }
ul.tc-notice--err li { margin: 0; }
/* After a refused submit checkout.js turns each line into a link to its field: whole-line links, so
   each one is a 44px row (INTERACTIONS §1). */
ul.tc-notice--err:has(li > a) { gap: 0; padding-top: 4px; padding-bottom: 4px; }
ul.tc-notice--err li > a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }
.woocommerce-NoticeGroup-checkout ul.tc-notice--err { margin: 0; }

/* WhatsApp text link (INTERACTIONS §3 .ask). */
:where(.tc-cart, .ts-checkout, .ts-thankyou) .ask { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0E7A3F; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; align-self: flex-start; }
:where(.tc-cart, .ts-checkout, .ts-thankyou) .ask:active { color: #095A2E; }

/* Ink and green buttons. */
.tc-go, .ty-home { height: 56px; border-radius: 12px; background: #101A1A; color: #FFC23C; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; font-stretch: 112%; font-size: 17px; text-decoration: none; padding: 0 20px; }
.tc-go:active, .ty-home:active { background: #000; }
.tc-wa-wide, .ty-wa-btn { min-height: 56px; border-radius: 12px; background: #0E7A3F; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px; text-decoration: none; padding: 0 16px; flex-grow: 1; text-align: center; }
.tc-wa-wide:active, .ty-wa-btn:active { background: #095A2E; }

@media (hover: hover) and (pointer: fine) {
	:where(.tc-cart, .ts-checkout, .ts-thankyou) .ask:hover { color: #0B6634; text-decoration-thickness: 2px; }
	.tc-go:hover, .ty-home:hover { background: #1E2B2B; }
	.tc-wa-wide:hover, .ty-wa-btn:hover { background: #0B6634; }
}

/* ---------- Cart ---------- */
.tc-cart-wrap { padding: 16px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.tc-cgrid { display: flex; flex-direction: column; gap: 12px; }
.tc-lines-form { margin: 0; }
.tc-lines { display: flex; flex-direction: column; gap: 12px; }
.tc-line {
	background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 12px;
	display: grid; grid-template-columns: 80px auto minmax(0, 1fr);
	grid-template-areas: "thumb info info" "thumb qty price" "thumb rm rm";
	column-gap: 12px; row-gap: 8px; align-items: center;
}
.tc-lthumb { grid-area: thumb; align-self: start; }
.tc-linfo { grid-area: info; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-lname { font-size: 14px; line-height: 20px; text-decoration: none; padding: 12px 0; margin: -12px 0; color: inherit; overflow-wrap: anywhere; }
a.tc-lname:active { color: #0F3D3E; }
.tc-lnote { margin: 0; font-size: 14px; line-height: 20px; }
.tc-lnote--gone { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.tc-lnote .ask { min-height: 44px; }
.tc-stepper { grid-area: qty; display: flex; align-items: center; border: 2px solid #7B8483; border-radius: 12px; background: #fff; justify-self: start; }
.tc-step { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #101A1A; padding: 0; }
.tc-step[aria-disabled="true"] { color: #C9D1CF; }
.tc-step:focus-visible { outline-offset: -3px; }
.tc-qty { min-width: 28px; text-align: center; font-size: 16px; font-weight: 800; }
.tc-ltotal { grid-area: price; justify-self: end; font-size: 18px; line-height: 24px; font-weight: 800; white-space: nowrap; }
.tc-line--gone .tc-ltotal { grid-row: 2; color: #3D4A49; }
.tc-remove { grid-area: rm; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; margin-left: -4px; font-size: 14px; font-weight: 700; color: #101A1A; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; justify-self: start; border-radius: 8px; }
.tc-remove:active { color: #0F3D3E; }
.tc-line[aria-busy="true"] { opacity: .6; }

.tc-summary { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 16px; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tc-summary .tc-total { border-top: 1px solid #D5DCD6; padding-top: 12px; margin-top: 4px; }
.tc-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding: 12px; border-radius: 8px; background: #E3EBE6; color: #101A1A; }
.tc-note--strong { font-weight: 700; }
.tc-cod { display: flex; gap: 12px; align-items: center; padding: 4px 12px 0; }
.tc-gone-hint { margin: 4px 0 0; font-weight: 700; }
.tc-summary .tc-wa-wide { margin-top: 8px; }
.tc-msg { margin: 0; font-weight: 700; }
.tc-msg[hidden] { display: none; }

.tc-empty { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px #D5DCD6; padding: 24px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tc-empty p { margin: 0; color: #3D4A49; }
.tc-empty-ic { width: 56px; height: 56px; border-radius: 28px; background: #E3EBE6; display: flex; align-items: center; justify-content: center; }
.tc-empty-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

.tc-more { padding-bottom: 24px; }
/* Phone "You may also need" (Cart board): compact rows, thumb 64, Add on the right. */
.tc-mrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-mrow { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 8px 12px 8px 8px; display: flex; gap: 12px; align-items: center; min-height: 80px; box-sizing: border-box; }
.tc-mrow .tc-thumb { width: 64px; height: 64px; }
.tc-mrow-t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; }
.tc-mrow-n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tc-mrow-p { font-size: 16px; line-height: 20px; font-weight: 800; }
.tc-mrow .pc-add { flex-shrink: 0; }
.tc-mrow .add { height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: #101A1A; color: #FFC23C; font: inherit; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.tc-mrow .add[data-added="true"] { background: #0E7A3F; color: #fff; }
.tc-mrow .add--wa { background: #0E7A3F; color: #fff; }
.tc-mrow .add:active { background: #000; transform: scale(.97); }
.tc-mrow .add--wa:active { background: #095A2E; }
@media (hover: hover) and (pointer: fine) {
	.tc-mrow .add:hover { background: #1E2B2B; }
	.tc-mrow .add--wa:hover { background: #0B6634; }
}
@media (max-width: 1023.98px) {
	/* The section already sits in a .wrap: the heading lines up with the cart lines at x=16. */
	.tc-cart .tc-more .sec-head { padding: 0; }
	.tc-cgrid > .tc-ask { margin-top: -4px; }
}
/* The name's focus ring would cut through the fit tag under it: ring the whole name block instead
   (same pattern as the product card's title). */
a.tc-lname:focus-visible { outline: none; }
.tc-linfo:has(a.tc-lname:focus-visible) { outline: 3px solid var(--ts-ring, #101A1A); outline-offset: 4px; border-radius: 4px; }

/* Phone buy bar (replaces the bottom nav, like Product's). */
.tc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #101A1A; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.tc-wa { flex: 0 0 56px; height: 56px; border-radius: 12px; background: #0E7A3F; display: flex; align-items: center; justify-content: center; }
.tc-wa:active { background: #095A2E; }
.tc-bar .tc-wa-wide { min-height: 56px; }
.tc-buy { flex-grow: 1; min-height: 56px; border: 0; border-radius: 12px; background: #FFC23C; color: #101A1A; font-stretch: 112%; font-weight: 900; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 0 12px; text-align: center; }
.tc-buy:not([aria-disabled="true"]):active { background: #E6A800; }
.tc-buy[aria-disabled="true"] { background: #2E3A3A; color: #C9D1CF; }
@media (max-width: 1023.98px) {
	body:has(.tc-bar) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (hover: hover) and (pointer: fine) {
	.tc-step:not([aria-disabled="true"]):hover { background: #E3EBE6; }
	.tc-remove:hover, a.tc-lname:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
	.tc-wa:hover { background: #0B6634; }
	.tc-buy:not([aria-disabled="true"]):hover { background: #FFD066; }
}

@media (min-width: 1024px) {
	.tc-cart-wrap { padding: 40px 0 0; gap: 24px; }
	.tc-cgrid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; }
	.tc-lines { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px #D5DCD6; gap: 0; }
	.tc-lhead { display: grid; grid-template-columns: 112px minmax(0, 1fr) 148px 120px; gap: 24px; padding: 16px 24px; font-size: 14px; line-height: 22px; color: #3D4A49; border-bottom: 1px solid #D5DCD6; }
	.tc-r { text-align: right; }
	.tc-line { box-shadow: none; border-radius: 0; padding: 24px; grid-template-columns: 112px minmax(0, 1fr) 148px 120px; grid-template-areas: "thumb info qty price" "thumb rm qty price"; column-gap: 24px; row-gap: 8px; align-items: start; }
	.tc-line + .tc-line { border-top: 1px solid #D5DCD6; }
	.tc-line:last-child { border-radius: 0 0 16px 16px; }
	.tc-lthumb .tc-thumb { width: 112px; height: 112px; }
	/* The 44px target reaches 10px above and 6px below the text; the text itself starts at the top of
	   .tc-linfo, so the focus ring (on .tc-linfo, offset 4px) stays clear of a name on several lines. */
	.tc-lname { min-height: 44px; box-sizing: border-box; display: flex; align-items: flex-start; margin: -10px 0 -6px; padding: 10px 0 6px; font-size: 16px; line-height: 24px; font-weight: 700; text-wrap: balance; }
	.tc-stepper { justify-self: stretch; justify-content: space-between; }
	.tc-ltotal { padding-top: 10px; font-size: 20px; line-height: 24px; text-align: right; }
	.tc-line--gone .tc-ltotal { grid-row: 1; }
	.tc-remove { color: #0F3D3E; align-self: start; }
	.tc-remove:active { color: #101A1A; }
	.tc-summary { border-radius: 16px; padding: 28px; gap: 12px; position: sticky; top: 24px; margin-top: 0; }
	.tc-summary .h2 { font-size: 22px; letter-spacing: -.01em; }
	.tc-summary .tc-row { font-size: 16px; line-height: 24px; }
	.tc-summary .tc-total { padding-top: 16px; font-size: 22px; line-height: 28px; }
	.tc-note { font-size: 14px; line-height: 20px; margin-top: 4px; }
	.tc-cod { padding: 0 12px; font-size: 14px; line-height: 20px; }
	.tc-summary .tc-go { margin-top: 8px; font-size: 18px; }
	.tc-summary .tc-ask { align-self: center; }
	.tc-more { margin-top: 64px; padding-bottom: 80px; }
	.tc-empty { padding: 40px; }
}
/* Small desktops: a smaller photo, stepper and gaps give the name column more room (129px -> about 210px at 1024). */
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.tc-lhead, .tc-line { grid-template-columns: 80px minmax(0, 1fr) 132px 120px; column-gap: 16px; padding-left: 20px; padding-right: 20px; }
	.tc-lthumb .tc-thumb { width: 80px; height: 80px; }
}

/* ---------- Checkout ---------- */
.ts-checkout .tc-co-wrap { padding: 16px 0 0; display: flex; flex-direction: column; gap: 16px; }
.ts-checkout .tc-co-wrap > .woocommerce { display: flex; flex-direction: column; gap: 16px; }
.tc-co { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.tc-msum { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; }
.tc-msum-btn { box-sizing: border-box; width: 100%; min-height: 56px; border: 0; background: none; border-radius: 12px; padding: 8px 16px; display: flex; align-items: center; gap: 12px; text-align: left; color: #101A1A; }
.tc-msum-btn:active { background: #E3EBE6; transform: none; }
.tc-msum-l { flex-grow: 1; font-weight: 700; white-space: nowrap; }
.tc-msum-total { font-size: 16px; font-weight: 800; white-space: nowrap; }
.tc-msum-btn .ico { transition: transform var(--wp--custom--open, 160ms) ease-out; }
.tc-msum-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.tc-msum-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #E3EBE6; }
.tc-msum-list[hidden] { display: none; }

.tc-card { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.tc-pay { gap: 12px; }
.tc-card-h { display: flex; flex-direction: column; gap: 4px; }
.tc-card-sub { color: #3D4A49; }

/* Fields (WooCommerce's p.form-row markup). */
.tc-fgrid { display: flex; flex-direction: column; gap: 16px; }
.tc-fgrid .woocommerce-billing-fields, .tc-fgrid .woocommerce-billing-fields__field-wrapper,
.tc-fgrid .woocommerce-additional-fields, .tc-fgrid .woocommerce-additional-fields__field-wrapper { display: contents; }
.tc-co .form-row { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-co .form-row > label { font-size: 14px; line-height: 20px; font-weight: 700; }
.tc-co .form-row .optional { font-weight: 400; color: #3D4A49; }
.tc-co abbr.required { display: none; }
.tc-co .woocommerce-input-wrapper { display: flex; flex-direction: column; gap: 8px; }
.tc-co .input-text { height: 56px; border: 2px solid #7B8483; border-radius: 12px; padding: 0 16px; font-size: 16px; line-height: 24px; font-weight: 400; color: #101A1A; background: #fff; box-sizing: border-box; width: 100%; margin: 0; }
.tc-co textarea.input-text { height: 96px; padding: 14px 16px; resize: none; display: block; }
.tc-co .input-text::placeholder { color: #3D4A49; opacity: 1; }
.tc-co .input-text:focus { border-color: #0F3D3E; box-shadow: 0 0 0 1px #0F3D3E; }
.tc-co .form-row .tc-fdesc { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: #3D4A49; }
#billing_country_field { display: none !important; }
/* Invalid look only with its message (after a submit): WooCommerce also flags an empty required field
   on blur, with no message, which would look stuck. */
.tc-co .input-text[aria-invalid="true"] { border-color: #101A1A; box-shadow: 0 0 0 1px #101A1A; background: #F3F1EA; }
.tc-co .checkout-inline-error-message { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 700; color: #101A1A; }
.tc-co .checkout-inline-error-message::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101A1A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E"); }

/* Tick boxes: the oath and the WhatsApp offers opt-in. */
.tc-co label.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; border-radius: 8px; }
.tc-co .input-checkbox { appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0; width: 24px; height: 24px; border: 2px solid #101A1A; border-radius: 4px; background: #fff center / 18px no-repeat; box-sizing: border-box; cursor: pointer; }
.tc-co .input-checkbox:checked { background-color: #0F3D3E; border-color: #0F3D3E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.talha-optin label.checkbox { font-weight: 400; min-height: 44px; align-items: center; }
.talha-optin .optional { display: none; }

/* Payment: the petrol box with a Sunflower radio dot. */
.tc-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-paym { background: #0F3D3E; color: #fff; border-radius: 12px; padding: 18px 16px; display: flex; gap: 12px; align-items: flex-start; }
.tc-paym label { display: flex; flex-direction: column; gap: 4px; cursor: default; }
.tc-paym-t { font-size: 16px; line-height: 24px; }
.tc-radio { appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; width: 24px; height: 24px; border-radius: 12px; background: #FFC23C; display: grid; place-content: center; }
.tc-radio::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: #101A1A; opacity: 0; }
.tc-radio:checked::before { opacity: 1; }
.tc-radio:active { transform: none; }

/* Totals (the review fragment). On phones only the totals show. */
.tc-review { min-width: 0; }
.tc-review #order_review { margin: 0; }
.tc-sum { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tc-sum-totals { display: flex; flex-direction: column; gap: 8px; }
.tc-sum .tc-total { border-top: 1px solid #D5DCD6; padding-top: 12px; margin-top: 4px; }
.tc-total-l { font-size: 16px; font-stretch: 100%; white-space: nowrap; }
.tc-sum-note { margin: 0; color: #3D4A49; font-size: 12px; line-height: 16px; }
.tc-sum-note > span { line-height: inherit; }
.tc-sum-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.elink { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 700; color: #0F3D3E; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.elink:active { color: #101A1A; }

/* Order confirmation (the oath). */
.tc-oath-card { background: #fff; border-radius: 12px; box-shadow: 0 0 0 2px #0F3D3E; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tc-oath-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tc-req { font-size: 12px; line-height: 16px; font-weight: 800; color: #0F3D3E; background: #E3EBE6; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.talha-oath-fields .form-row { gap: 8px; }
#talha_oath_field label.checkbox { padding: 4px; margin: -4px; min-height: 44px; font-size: 16px; line-height: 24px; font-weight: 700; color: #101A1A; }
#talha_oath { width: 28px; height: 28px; border-color: #0F3D3E; margin-top: 2px; background-size: 22px; }
#talha_oath:active { transform: scale(.92); }
/* After a locked Place order tap, focus lands here without a :focus-visible ring: show one. */
#talha_oath.tc-nudge:focus { outline: 3px solid var(--ts-ring, #101A1A); outline-offset: 2px; }
.tc-onote { margin: 0; font-size: 14px; line-height: 20px; color: #101A1A; background: #E3EBE6; border-radius: 8px; padding: 12px; }

/* Place order: dark band at the end of the form. */
.tc-place { background: #101A1A; color: #fff; margin: 8px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.tc-place .tc-buy { width: 100%; font-family: inherit; cursor: pointer; }
.tc-place .tc-buy[aria-busy="true"] { cursor: progress; }
.tc-buy-busy[hidden], .tc-buy-l[hidden] { display: none; }
/* The padlock belongs to the locked button only (board: no icon once the oath is ticked, none while placing). */
.tc-co:has(#talha_oath:checked) .tc-buy .ico, .tc-buy[aria-disabled="false"] .ico, .tc-buy[aria-busy="true"] .ico { display: none; }
.tc-oath-hint { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: #FFC23C; text-align: center; }
.tc-co:has(#talha_oath:checked) .tc-oath-hint { display: none; }
/* Once the oath box shows its own error after a refused submit, one message is enough: the bar's hint goes. */
/* (For the locked-tap message the bar's hint keeps its line, so the page can scroll by the box's
   growth and the button doesn't move under the finger.) */
.tc-co:has(.tc-oath-msg:not([hidden])) .tc-oath-hint { visibility: hidden; }
.tc-co:has(#talha_oath_field .checkout-inline-error-message) .tc-oath-hint { display: none; }
/* No-JS refused submit: the page reloads at the top, where WooCommerce's error box already says it
   (li[data-id="talha_oath"], printed before the form), so that box is the one message. */
body:has(.woocommerce-error li[data-id="talha_oath"]) .tc-oath-hint { display: none; }
.tc-lost { margin: 0; font-size: 14px; line-height: 20px; color: #fff; text-align: center; }
.tc-lost[hidden] { display: none; }
.tc-lost a { color: #FFC23C; }
.tc-legal { margin: 0; font-size: 12px; line-height: 16px; color: #C9D1CF; text-align: center; text-wrap: balance; }
.plink { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.plink:active { color: #FFC23C; }
.tc-place .blockUI.blockOverlay { display: none !important; }

/* Checkout mini footer (desktop). */
.tc-mini { background: #0F3D3E; color: #fff; }
.tc-mini .wrap { height: 72px; display: flex; align-items: center; gap: 24px; font-size: 14px; }
.tc-mini a { min-height: 44px; display: flex; align-items: center; text-decoration: none; opacity: .92; color: #fff; }
.tc-mini a:active { opacity: 1; }
.tc-mini-c { opacity: .88; }

@media (hover: hover) and (pointer: fine) {
	.tc-msum-btn:hover { background: #E3EBE6; }
	.tc-co .input-text:hover { border-color: #0F3D3E; }
	#talha_oath_field label.checkbox:hover #talha_oath, .talha-optin label.checkbox:hover .input-checkbox { box-shadow: 0 0 0 3px #E3EBE6; }
	.plink:hover { text-decoration-thickness: 2px; }
	.elink:hover { text-decoration-thickness: 2px; }
	.tc-mini a:hover { text-decoration: underline; text-underline-offset: 3px; opacity: 1; }
}

@media (min-width: 1024px) {
	.ts-checkout .tc-co-wrap { padding: 40px 0 80px; gap: 32px; }
	.tc-head--co { justify-content: flex-start; align-items: baseline; gap: 20px; }
	.tc-head-note { font-size: 16px; color: #3D4A49; }
	.tc-co { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; row-gap: 24px; align-items: start; }
	.tc-co > * { grid-column: 1; }
	/* Left column: details, payment, oath, place order (4 rows). A refused submit's notice takes row 1. */
	.tc-co > .tc-review { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 24px; align-self: start; }
	.tc-co:has(> .woocommerce-NoticeGroup) > .tc-review { grid-row: 1 / span 5; }
	.tc-co > .woocommerce-NoticeGroup { grid-row: 1; }
	.tc-co .form-row > label, .tc-co .form-row .optional { font-size: 15px; }
	.tc-req { font-size: 14px; line-height: 20px; }
	#talha_oath_field label.checkbox { font-size: 18px; line-height: 28px; }
	#talha_oath { width: 32px; height: 32px; margin-top: -2px; background-size: 24px; }
	.tc-card { border-radius: 16px; padding: 32px; gap: 20px; }
	.tc-card-sub { font-size: 15px; }
	.tc-pay { gap: 16px; }
	:where(.ts-checkout, .ts-thankyou) .h2 { font-size: 22px; letter-spacing: -.01em; }
	.tc-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
	#billing_address_1_field, #talha_wa_optin_field { grid-column: 1 / -1; }
	.tc-co .form-row .tc-fdesc { font-size: 14px; line-height: 20px; }
	.tc-paym { padding: 20px; }
	.tc-sum { border-radius: 16px; padding: 28px; gap: 16px; }
	.tc-sum-items { display: flex; flex-direction: column; gap: 16px; }
	.tc-sum .sline { gap: 16px; font-size: 15px; line-height: 22px; }
	.tc-sum .sline .tc-thumb { width: 72px; height: 72px; }
	.tc-sum-totals { border-top: 1px solid #D5DCD6; padding-top: 16px; }
	.tc-sum .tc-row { font-size: 16px; line-height: 24px; }
	.tc-sum .tc-total { padding-top: 16px; margin-top: 8px; font-size: 22px; line-height: 28px; }
	.tc-total-l { font-size: 18px; }
	.tc-sum-note { font-size: 14px; line-height: 20px; }
	.tc-oath-card { border-radius: 16px; padding: 32px; gap: 16px; }
	.tc-oath-h { align-items: center; }
	.tc-onote { font-size: 15px; line-height: 22px; padding: 12px 16px; }
	.tc-place { margin: 0; border-radius: 16px; padding: 24px; gap: 12px; }
	.tc-place .tc-buy { min-height: 60px; font-size: 20px; gap: 10px; }
	.tc-oath-hint { font-size: 15px; }
	.tc-legal { font-size: 14px; line-height: 20px; }
}

/* ---------- Thank-you ---------- */
.ty-hero { background: #0F3D3E; color: #fff; }
.ty-hero-in { padding: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.ty-tick { width: 56px; height: 56px; border-radius: 28px; background: #FFC23C; color: #101A1A; display: flex; align-items: center; justify-content: center; }
.ty-h1 { margin: 8px 0 0; font-size: 30px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.ty-lead { margin: 0; font-size: 16px; line-height: 24px; }
.ty-wave { display: block; width: 100%; height: 80px; }
.ty-main { padding: 24px 0 32px; display: flex; flex-direction: column; gap: 24px; }
.ty-col, .ty-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ty-wa { background: #101A1A; border-radius: 16px; padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.ty-wa-h { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; color: #FFC23C; text-wrap: balance; }
.ty-wa-p { margin: 0; max-width: 340px; }
.ty-next { display: flex; flex-direction: column; gap: 16px; }
.ty-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ty-steps li { display: flex; gap: 12px; align-items: flex-start; }
.ty-steps b { flex-shrink: 0; width: 32px; height: 32px; border-radius: 16px; background: #0F3D3E; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ty-steps span { padding-top: 6px; }
.ty-mail { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #E3EBE6; font-size: 14px; line-height: 20px; }
.ty-safe { margin: 0; font-size: 12px; line-height: 16px; color: #3D4A49; }
.ty-od { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ty-status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.ty-status a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: #0F3D3E; }
.ty-totals { border-top: 1px solid #D5DCD6; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ty-totals .tc-total { margin-top: 4px; }
.ty-main--one .ty-col { gap: 8px; }

@media (min-width: 1024px) {
	.ty-hero-in { padding: 56px 0 24px; gap: 16px; }
	.ty-tick { width: 64px; height: 64px; border-radius: 32px; }
	.ty-h1 { font-size: 56px; line-height: 1.02; letter-spacing: -.025em; }
	.ty-facts { display: flex; gap: 16px; margin: 16px 0 0; padding: 0; }
	.ty-facts div { background: #0B2E2F; box-shadow: inset 0 0 0 1px #1F5556; border-radius: 12px; padding: 16px 24px; display: flex; flex-direction: column; gap: 2px; min-width: 248px; box-sizing: border-box; }
	.ty-facts dt { font-size: 14px; line-height: 22px; opacity: .88; }
	.ty-facts dd { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; }
	.ty-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding: 16px 0 80px; }
	.ty-main--one { grid-template-columns: minmax(0, 7fr); padding-top: 40px; }
	.ty-col { gap: 40px; }
	.ty-side { gap: 16px; }
	.ty-wa { padding: 40px; gap: 16px; }
	.ty-wa-h { font-size: 30px; line-height: 1.1; }
	.ty-wa-p { font-size: 17px; line-height: 26px; max-width: 46ch; }
	.ty-wa-btn { min-height: 52px; padding: 0 24px; align-self: flex-start; margin-top: 8px; flex-grow: 0; gap: 10px; }
	.ty-next { gap: 20px; }
	.ty-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.ty-steps li { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #D5DCD6; padding: 20px; flex-direction: column; gap: 12px; font-size: 16px; line-height: 24px; }
	.ty-steps b { width: 36px; height: 36px; border-radius: 18px; font-size: 16px; }
	.ty-steps span { padding-top: 0; }
	.ty-mail { gap: 16px; padding: 20px 24px; font-size: 16px; line-height: 24px; }
	.ty-safe { font-size: 14px; line-height: 20px; }
	.ty-od { padding: 28px; gap: 16px; border-radius: 16px; }
	.ty-od .sline { gap: 16px; font-size: 15px; line-height: 22px; }
	.ty-od .sline .tc-thumb { width: 72px; height: 72px; }
	.ty-od .tc-row { font-size: 16px; line-height: 24px; }
	.ty-totals { padding-top: 16px; }
	.ty-totals .tc-total { font-size: 22px; line-height: 28px; margin-top: 8px; }
	.ty-home { font-size: 18px; }
}

/* WooCommerce's hidden helpers inside the field grid take no cell. */
.tc-fgrid wc-order-attribution-inputs { display: none; }
.woocommerce-notices-wrapper:empty { display: none; }
.tc-co .form-row label .required, .tc-co .form-row label abbr { display: none; }
/* checkout.js hides the radio when there's one method; the board draws it. */
.tc-co .tc-radio { display: grid !important; }
/* WooCommerce's "View cart" button inside a notice reads as a plain link. */
.tc-notice .button, .tc-notice .wc-forward { background: none; border: 0; padding: 0; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-right: 6px; }
.tc-msum-h { margin: 0; font: inherit; }
h2.tc-msum-btn { margin: 0; font-size: inherit; font-stretch: 100%; line-height: inherit; }
.tc-msum-btn .ico { display: none; }
button.tc-msum-btn .ico { display: block; }

/* WooCommerce moves focus to a new error list for screen readers; no ring on a box nobody can press. */
.tc-notice[tabindex="-1"]:focus, .woocommerce-NoticeGroup [tabindex="-1"]:focus { outline: none; }

/* Press states after hover (a held press on a pointer device shows the press colour, not the hover). */
.tc-go:active, .ty-home:active, .tc-go:hover:active, .ty-home:hover:active { background: #000; transform: scale(.97); }
.tc-wa-wide:active, .ty-wa-btn:active, .tc-wa:active, .tc-wa-wide:hover:active, .ty-wa-btn:hover:active, .tc-wa:hover:active { background: #095A2E; transform: scale(.97); }
.tc-buy:not([aria-disabled="true"]):active, .tc-buy:not([aria-disabled="true"]):hover:active { background: #E6A800; transform: scale(.97); }
.tc-step:not([aria-disabled="true"]):active { background: #E3EBE6; transform: scale(.97); }
:where(.tc-cart, .ts-checkout, .ts-thankyou) .ask:hover:active { color: #095A2E; }
.tc-notice .button:hover, .tc-notice .button:active, .tc-notice .wc-forward:hover, .tc-notice .wc-forward:active { background: none !important; color: #0F3D3E !important; text-decoration-thickness: 2px; transform: none; box-shadow: none; }
.tc-notice .button:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.tc-go:active, .ty-home:active, .tc-wa-wide:active, .ty-wa-btn:active, .tc-wa:active, .tc-buy:active, .tc-step:active { transform: none; }
}
.ty-status a:active { color: #101A1A; }
.tc-cart--empty .tc-cart-wrap { padding-bottom: 32px; }
@media (min-width: 1024px) { .tc-cart--empty .tc-cart-wrap { padding-bottom: 80px; } }
/* Locked Place order press: the hint under the oath box (INTERACTIONS §2). Same look as an inline error. */
.tc-oath-msg { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 700; color: #101A1A; }
.tc-oath-msg[hidden] { display: none; }
.tc-oath-msg::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101A1A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E"); }
#talha_oath_field .checkout-inline-error-message + .checkout-inline-error-message { display: none; }
.tc-co:has(#talha_oath_field .checkout-inline-error-message) .tc-oath-msg { display: none; }
.tc-cart-errors p { margin: 0; }
.tc-cart-errors .tc-go { align-self: flex-start; }
/* checkout.js's own error box (lost reply) in the same notice pattern. */
.woocommerce-NoticeGroup-checkout { margin: 0; }
.woocommerce-NoticeGroup-checkout div.woocommerce-error { margin: 0; padding: 12px 16px 12px 20px; border-radius: 12px; background: #E3EBE6; color: #101A1A; box-shadow: inset 4px 0 0 #101A1A; font-size: 14px; line-height: 20px; font-weight: 700; }
/* While placing: WooCommerce dims the form (blockUI, z-index 1000); the Place order band stays above it,
   so "Placing order…" reads clearly instead of a washed-out button. */
.tc-co .tc-place { position: relative; z-index: 1001; }
form.checkout > .blockUI.blockOverlay { background: #F3F1EA !important; }

/* One h1 per page (Cart, Checkout): the phone bar's title is also the desktop page heading, so the
   bar shows at every width and becomes the plain heading row from 1024px (the old .tc-head look). */
@media (min-width: 1024px) {
	.tc-mhd.mhd { background: none; color: #101A1A; --ts-ring: var(--wp--preset--color--ink, #101A1A); }
	.tc-mhd.mhd .mhd-row { width: min(1200px, 100% - 48px); margin-inline: auto; box-sizing: border-box; padding: 40px 0 0; gap: 24px; justify-content: space-between; align-items: flex-end; }
	.tc-mhd.mhd .tc-mhd-h { flex-grow: 0; font-size: 40px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; color: #101A1A; }
	.tc-mhd--co.mhd .mhd-row { justify-content: flex-start; align-items: baseline; gap: 20px; }
	.tc-mhd--co.mhd .tc-mhd-note { font-size: 16px; line-height: 22px; color: #3D4A49; opacity: 1; padding-right: 0; white-space: normal; }
	.tc-cart .tc-cart-wrap { padding-top: 24px; }
	.ts-checkout .tc-co-wrap { padding-top: 32px; }
}
