/*
Theme Name: Keepsake
Description: Mobile-first theme for the personalised gift store (shotgun wave 1). Every product page is its own ad landing page.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: keepsake
*/

:root {
	--paper: #f7f2ea;
	--card: #fffdf9;
	--ink: #2b2620;
	--muted: #6b6157;
	--line: #e3d9cc;
	--accent: #b4502c;
	--accent-ink: #fff;
	--sage: #50684f;
	--warn: #8a5a00;
	--error: #a3271b;
	--radius: 14px;
	--serif: "Fraunces", Georgia, serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: 16px;
	--max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6.5vw, 50px); }
h2 { font-size: clamp(23px, 4.4vw, 32px); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--card); padding: 10px 14px; z-index: 10000; }

.ks-eyebrow { font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }

/* Buttons */
.ks-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
	background: var(--ink); color: #fff; border: 0; border-radius: 999px; font: 700 16px/1 var(--sans);
	text-decoration: none; cursor: pointer; transition: background .15s;
}
.ks-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--accent); color: #fff; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled, .woocommerce button.button:disabled[disabled] { opacity: .45; padding: 0 26px; color: #fff; }
.ks-button--quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* Christmas strip + header */
.ks-strip { margin: 0; background: var(--sage); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 8px var(--gutter); }
.ks-strip a { text-decoration: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.site-logo { font: 600 21px/1 var(--serif); text-decoration: none; margin-right: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }
.site-basket { text-decoration: none; font-weight: 700; font-size: 15px; }
.site-basket__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; margin-left: 4px; }
.site-header__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; order: 3; }
.site-header__toggle span[aria-hidden] { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink); }
@media (max-width: 860px) {
	.site-header__toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.site-nav li:last-child a { border-bottom: 0; }
	.site-header__toggle[aria-expanded="true"] span[aria-hidden] { position: relative; background: transparent; box-shadow: none; }
	.site-header__toggle[aria-expanded="true"] span[aria-hidden]::before, .site-header__toggle[aria-expanded="true"] span[aria-hidden]::after { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 2px; background: var(--ink); transform: rotate(45deg); }
	.site-header__toggle[aria-expanded="true"] span[aria-hidden]::after { transform: rotate(-45deg); }
}

/* Home */
.ks-hero { padding-top: 40px; padding-bottom: 28px; }
.ks-hero > * { max-width: 820px; }
.ks-cards__title { grid-column: 1 / -1; margin: 8px 0 0; }
.ks-hero__lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.ks-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding-bottom: 48px; }
@media (min-width: 900px) { .ks-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ks-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ks-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(43, 38, 32, .09); }
.ks-card__img { aspect-ratio: 4 / 5; background: #ece4d8; overflow: hidden; }
.ks-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ks-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.ks-card__title { font: 600 21px/1.2 var(--serif); }
.ks-card__price { color: var(--muted); font-weight: 500; margin-top: 4px; }
.ks-honest { padding-top: 24px; padding-bottom: 56px; }
.ks-honest > * { max-width: 760px; }
.ks-honest p { color: var(--muted); }

/* Steps (home + product) */
.ks-steps { padding-top: 32px; padding-bottom: 32px; }
.ks-steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ks-steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.ks-steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 99px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ks-steps li span { color: var(--muted); font-size: 15px; }

/* Pages */
.ks-page { max-width: 760px; padding-top: 36px; padding-bottom: 64px; }
.ks-prose h2 { margin-top: 1.4em; font-size: 24px; }
.ks-prose li { margin-bottom: .4em; }
.ks-prose [id] { scroll-margin-top: 84px; }

/* Shop + product */
.ks-shop { padding-top: 24px; padding-bottom: 64px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { position: sticky !important; top: 84px; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce div.product .flex-control-thumbs { display: flex; gap: 8px; margin-top: 8px !important; }
.woocommerce div.product .flex-control-thumbs li { width: 64px !important; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 8px; }
.woocommerce div.product .product_title { font-size: clamp(28px, 5.5vw, 42px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 22px; font-weight: 700; }
.woocommerce-product-details__short-description { color: var(--muted); font-size: 17px; }
.woocommerce div.product form.cart { margin: 18px 0 0; scroll-margin-top: 90px; }
.woocommerce div.product form.cart .variations { margin-bottom: 14px; border: 0; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
.woocommerce div.product form.cart .variations th label { font-weight: 700; font-size: 15px; }
.woocommerce div.product form.cart .variations td { padding-bottom: 14px; }
.woocommerce div.product form.cart .variations select, .ks-field input[type=text], .ks-field textarea, .ks-field select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row textarea.input-text, .woocommerce form .form-row select, .ks-proofpage textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cdbfae; border-radius: 10px; background-color: #fff;
	font: 400 16px/1.4 var(--sans); color: var(--ink); margin: 0;
}
.ks-field textarea, .ks-proofpage textarea, .woocommerce form .form-row textarea.input-text { min-height: 96px; resize: vertical; }
/* One chevron for every select (WooCommerce's own arrow was lost under the white background). */
.woocommerce div.product form.cart .variations select, .ks-field select, .woocommerce form .form-row select {
	-webkit-appearance: none; appearance: none; padding-right: 40px; text-overflow: ellipsis;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232b2620' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.woocommerce div.product form.cart .variations select:focus, .ks-field :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.woocommerce div.product form.cart div.quantity { display: none !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; font-size: 17px; min-height: 56px; }
.woocommerce-variation-price { margin-bottom: 12px; }
.woocommerce-variation-price .price { font-size: 22px !important; }
.ks-sticky { display: none; }

@media (max-width: 860px) {
	.single-product .ks-shop { padding-top: 0; }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 18px; }
	.woocommerce div.product div.images { position: relative !important; top: 0; margin: 0 calc(var(--gutter) * -1) !important; }
	.woocommerce div.product div.images img { border-radius: 0; }
	.woocommerce div.product .flex-control-thumbs { padding: 0 var(--gutter); }
	.ks-sticky:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(43,38,32,.08); font-size: 14px; }
	.ks-sticky span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ks-sticky .ks-button { min-height: 44px; padding: 0 20px; flex: none; }
}

/* Personalisation fields */
.ks-fields { display: flex; flex-direction: column; gap: 18px; margin: 4px 0 20px; }
.ks-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ks-optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.ks-help { margin: -2px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ks-drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px; border: 2px dashed #c9b9a5; border-radius: var(--radius); background: var(--card); cursor: pointer; overflow: hidden; }
.ks-drop:hover, .ks-drop:focus-within { border-color: var(--accent); }
.ks-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ks-drop img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.ks-drop__text { font-weight: 700; color: var(--accent); }
.ks-drop:not(.has-file) .ks-drop__text::before { content: "+"; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 12px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 24px; font-weight: 400; vertical-align: middle; }
.ks-drop.has-file { border-style: solid; border-color: var(--sage); }
.ks-drop.has-file .ks-drop__text { color: var(--sage); }
.ks-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line); }
.ks-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.ks-msg { margin: 6px 0 0; font-size: 14px; }
.ks-msg:empty { display: none; }
.ks-msg.is-error { color: var(--error); font-weight: 500; }
.ks-msg.is-warn { color: var(--warn); }
.ks-promise { list-style: none; margin: 0; padding: 14px 16px; background: #efe7da; border-radius: var(--radius); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.ks-promise li { padding-left: 22px; position: relative; }
.ks-promise li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.ks-live { position: relative; margin: 8px 0 20px; container-type: inline-size; }
.ks-live img { width: 100%; border-radius: var(--radius); }
.ks-live__text { position: absolute; left: 4%; right: 4%; text-align: center; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.25); overflow-wrap: anywhere; pointer-events: none; }
.ks-live figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ks-cart-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }

/* Product story */
.ks-story { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.ks-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ks-pair--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.ks-pair figure { margin: 0; position: relative; }
.ks-pair img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.ks-tag { position: absolute; top: 10px; left: 10px; background: rgba(255,253,249,.92); padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .04em; z-index: 1; }
.ks-pair__caption { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }
.ks-about, .ks-faq { max-width: 760px; padding-top: 16px; }
.ks-about p { color: #4a423a; }
.ks-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.ks-faq summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.ks-faq summary::-webkit-details-marker { display: none; }
.ks-faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; font-weight: 400; color: var(--accent); }
.ks-faq details[open] summary::after { content: "–"; }
.ks-faq details p { margin: 10px 0 0; color: var(--muted); }

/* Basket + checkout */
.woocommerce-cart .ks-page, .woocommerce-checkout .ks-page, .woocommerce-account .ks-page { max-width: var(--max); }
.woocommerce table.shop_table { border-radius: var(--radius); background: var(--card); border-color: var(--line); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--sage) !important; background: var(--card) !important; border-radius: 10px; }
.woocommerce-error { border-top-color: var(--error) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--sage) !important; }
.woocommerce .cross-sells h2, .woocommerce .cart_totals h2 { font-size: 22px; }
.woocommerce-checkout #payment { background: var(--card) !important; border-radius: var(--radius); }
.woocommerce form .form-row .ks-ack, .ks-ack { background: #efe7da; padding: 12px 14px !important; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.ks-ack label, .woocommerce form .form-row.ks-ack label { display: block !important; position: relative; padding-left: 32px; margin: 0; line-height: 1.45; }
.ks-ack input { position: absolute; left: 0; top: 1px; margin: 0 !important; width: 20px; height: 20px; }
.ks-next { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 28px; }
.ks-next ol { margin: 0; padding-left: 20px; }
.ks-next li { margin-bottom: 8px; }

/* Basket table: discount code, quantity, remove, update */
.woocommerce table.cart td.actions .coupon { display: flex; gap: 8px; align-items: center; float: left; }
.woocommerce table.cart td.actions .coupon #coupon_code, .woocommerce form.checkout_coupon #coupon_code {
	float: none; width: 220px; min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid #cdbfae; border-radius: 999px; background: #fff; font: 400 15px/1.2 var(--sans); color: var(--ink);
}
.woocommerce table.cart td.actions .button, .woocommerce form.checkout_coupon .button { float: none; min-height: 44px; padding: 0 22px; font-size: 15px; white-space: nowrap; width: auto; }
.woocommerce-cart table.cart button[name="update_cart"] { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.woocommerce-cart table.cart button[name="update_cart"]:hover { background: var(--ink); color: #fff; }
.woocommerce-cart table.cart button[name="update_cart"]:disabled { display: none; }
.woocommerce .quantity .qty { width: 64px; min-height: 40px; padding: 4px 6px; border: 1px solid #cdbfae; border-radius: 10px; background: #fff; font: 400 16px/1 var(--sans); color: var(--ink); text-align: center; }
.woocommerce table.cart .product-thumbnail img { width: 72px; border-radius: 8px; }
.woocommerce table.cart .product-name a { text-decoration: none; font-weight: 700; }
.woocommerce a.remove { color: var(--muted) !important; font-weight: 400; }
.woocommerce a.remove:hover { background: var(--error); color: #fff !important; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); }
.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button { width: 100%; font-size: 17px; min-height: 56px; }
/* (jQuery slides this form open with an inline display: block, so no flex on the form itself.) */
.woocommerce form.checkout_coupon { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.woocommerce form.checkout_coupon .form-row { display: inline-block; vertical-align: middle; float: none; width: auto; margin: 0 8px 0 0; padding: 0; }
@media (max-width: 768px) {
	.woocommerce table.cart td.actions .coupon { float: none; padding-bottom: 10px; }
	.woocommerce table.cart td.actions .coupon #coupon_code { flex: 1; min-width: 0; width: auto !important; }
	.woocommerce table.cart td.actions .coupon .button { flex: none; width: auto !important; }
	.woocommerce table.cart td.actions > .button { width: 100%; }
}

/* Checkout */
.woocommerce-checkout h3 { font-size: 22px; }
#ship-to-different-address { font: 500 16px/1.4 var(--sans); letter-spacing: 0; margin: 4px 0 14px; }
#ship-to-different-address label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
#ship-to-different-address input { width: 20px; height: 20px; margin: 0; flex: none; }
#order_review_heading { margin-top: 28px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--line); }
.woocommerce-checkout #payment div.payment_box { background: #efe7da; color: var(--ink); border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #efe7da; }
.woocommerce-checkout #payment #place_order { width: 100%; font-size: 17px; min-height: 56px; float: none; }
@media (min-width: 960px) {
	/* Details on the left, the order and payment on the right. */
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 48px; align-items: start; }
	.woocommerce-checkout form.checkout > * { grid-column: 1 / -1; }
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-row: 1; }
	.woocommerce-checkout form.checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; }
	.woocommerce-checkout form.checkout > #order_review_heading { grid-column: 2; grid-row: 2; margin-top: 0; }
	.woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 3; }
	.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
}

/* Proof page */
.ks-proofpage { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.ks-proofpage__images { display: flex; flex-direction: column; gap: 16px; margin: 20px 0 26px; }
.ks-proofpage__images img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ks-proofpage__approve .ks-button { width: 100%; min-height: 58px; font-size: 18px; }
.ks-proofpage__change { margin-top: 18px; }
.ks-proofpage__change summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 10px 0; }
.ks-proofpage__change label { display: block; font-weight: 700; margin: 8px 0 6px; }
.ks-proofpage__change .ks-button { margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 90px; font-size: 14px; color: var(--muted); }
.site-footer__promise { font: 600 19px/1.3 var(--serif); color: var(--ink); }
.site-footer__nav ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__cookies { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Cookie notice */
.ks-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999; display: flex; justify-content: center; pointer-events: none; }
.ks-consent[hidden] { display: none; }
.ks-consent__inner { pointer-events: auto; max-width: 540px; width: 100%; background: var(--ink); color: #f7f2ea; padding: 18px 20px; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.ks-consent__title { font-weight: 700; margin: 0 0 4px; }
.ks-consent__text { font-size: 14.5px; line-height: 1.5; margin: 0; color: rgba(247,242,234,.9); }
.ks-consent__text a { color: #fff; }
.ks-consent__actions { display: flex; gap: 10px; margin-top: 14px; }
.ks-consent__button { flex: 1; min-height: 44px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; font: 700 15px/1 var(--sans); cursor: pointer; }
.ks-consent__button:hover, .ks-consent__button:focus-visible { background: #fff; color: var(--ink); }

/* Before/after comparison slider */
.ks-compare { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #e9e1d5; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ks-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; aspect-ratio: auto !important; }
.ks-compare__before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ks-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fffdf9; box-shadow: 0 0 10px rgba(0,0,0,.25); pointer-events: none; }
.ks-compare__knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 99px; background: #fffdf9; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ks-compare__knob::before, .ks-compare__knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ks-compare__knob::before { left: 8px; border-right-color: var(--ink); }
.ks-compare__knob::after { right: 8px; border-left-color: var(--ink); }
.ks-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ks-compare__range:focus-visible + * , .ks-compare:focus-within .ks-compare__knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.ks-tag--left { left: 10px; right: auto; }
.ks-tag--right { left: auto; right: 10px; }
.ks-pair--compare { grid-template-columns: minmax(0, 560px); justify-content: center; }
.ks-pair--compare .ks-pair__caption { text-align: center; }

/* Home: "From theirs, to yours" */
.ks-befores { padding-top: 8px; padding-bottom: 44px; }
.ks-befores__intro { max-width: 640px; color: var(--muted); }
.ks-befores__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
@media (min-width: 1100px) {
	.ks-befores__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ks-befores__grid .ks-tag { top: 8px; padding: 4px 8px; font-size: 11px; }
	.ks-befores__grid .ks-tag--left { left: 8px; }
	.ks-befores__grid .ks-tag--right { right: 8px; }
}
@media (max-width: 560px) { .ks-befores__grid { grid-template-columns: 1fr; } }
.ks-befores__item { display: flex; flex-direction: column; gap: 10px; }
.ks-befores__title { font: 600 20px/1.25 var(--serif); margin: 0; }
.ks-befores__link { font-weight: 700; color: var(--accent); text-decoration: none; }
.ks-befores__link:hover { text-decoration: underline; }
.ks-summary-compare { margin: 6px 0 22px; }
.ks-summary-compare .ks-compare { aspect-ratio: 1 / 1; }
.ks-summary-compare .ks-pair__caption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ks-compare img.ks-compare__img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 45%; }

/* Trust row */
.ks-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.ks-trust li { padding-left: 22px; position: relative; }
.ks-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* Welcome offer */
.ks-offer__form { display: flex; flex-direction: column; gap: 10px; }
.ks-offer__title { font: 600 24px/1.2 var(--serif); margin: 0; }
.ks-offer__lede { margin: 0; color: var(--muted); font-size: 15px; }
.ks-offer__row { display: flex; gap: 8px; }
.ks-offer__row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid #cdbfae; border-radius: 999px; font: 400 16px var(--sans); background: #fff; }
.ks-offer__row .ks-button { flex: none; }
.ks-offer__agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.ks-offer__agree input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.ks-offer__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ks-offer__msg { margin: 0; font-size: 14px; }
.ks-offer__msg:empty { display: none; }
.ks-offer__msg.is-error { color: var(--error); font-weight: 500; }
.ks-offer__code { display: flex; align-items: center; gap: 10px; margin: 0; }
.ks-offer__code span { font: 700 24px/1 var(--sans); letter-spacing: .08em; background: #fff; border: 2px dashed var(--accent); border-radius: 10px; padding: 10px 14px; }
.ks-offer__copy { border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 15px; }
.ks-offer-band { margin-bottom: 40px; }
.ks-offer-band .ks-offer__form { background: #efe7da; border-radius: var(--radius); padding: 26px 24px; max-width: 760px; }
.ks-offer { position: fixed; left: 16px; bottom: 16px; z-index: 9990; width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(43,38,32,.22); padding: 22px 20px 18px; transform: translateY(24px); opacity: 0; transition: transform .25s, opacity .25s; }
.ks-offer.is-in { transform: none; opacity: 1; }
.ks-offer__close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.ks-offer .ks-offer__row { flex-direction: column; }
.ks-offer .ks-offer__row .ks-button { width: 100%; }
@media (max-width: 600px) {
	.ks-offer { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
	.ks-offer-band .ks-offer__row { flex-direction: column; }
}
.ks-offer-basket { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.ks-offer-basket summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.ks-offer-basket .ks-offer__form { margin-top: 12px; }
.ks-offer-basket .ks-offer__row { flex-direction: column; }

/* Free delivery bar */
.ks-freebar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
.ks-freebar p { margin: 0 0 8px; font-weight: 500; }
.ks-freebar__track { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ks-freebar__track span { display: block; height: 100%; background: var(--sage); }

/* Product archive (e.g. Hoodies) */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 18px 0 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 16px; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { margin: 0 0 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 600 20px/1.2 var(--serif) !important; padding: 0 16px !important; }
.woocommerce ul.products li.product .price { padding: 0 16px; color: var(--muted) !important; font-weight: 500; font-size: 16px !important; }
.woocommerce ul.products li.product .button { display: flex; align-items: center; justify-content: center; margin: auto 16px 0 !important; }
.term-description { color: var(--muted); max-width: 640px; }
.ks-sticky__text { display: flex; flex-direction: column; line-height: 1.25; }
.ks-sticky__text small { color: var(--muted); font-size: 12.5px; }

/* 404 */
.ks-404__list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ks-404__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.ks-404__list a:hover { color: var(--accent); }
