/* ==========================================================================
   Subinja — WooCommerce ("Ink & Signal")
   Loaded only on shop, product, cart, checkout and account pages.
   ========================================================================== */

/* Legacy token names used below → app tokens */
.woocommerce, .woocommerce-page, body { --ink: var(--text); --ink-2: var(--text-2); --line: var(--border); --muted: var(--text-2); --paper: var(--bg); --surface-2: var(--surface-soft); --brand-tint: var(--surface-purple); --signal: var(--brand); --signal-ink: #fff; --price: var(--text); --r-xs: 8px; }


/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
	margin: 0 0 20px; padding: 14px 18px; list-style: none;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
	border-inline-start-width: 6px; font-size: 14px; font-weight: 600;
}
[data-theme="dark"] .woocommerce-message, [data-theme="dark"] .woocommerce-info, [data-theme="dark"] .woocommerce-error { border-color: var(--line); }
.woocommerce-message { border-inline-start-color: var(--success) !important; }
.woocommerce-info { border-inline-start-color: var(--brand) !important; }
.woocommerce-error { border-inline-start-color: var(--danger) !important; flex-direction: column; align-items: flex-start; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { margin-inline-start: auto; order: 2; min-height: 36px; padding: 4px 14px; font-size: 13px; }

/* ---------- Flow steps (cart → login → details → payment → done) ---------- */
.flow-steps { margin: 0 0 28px; }
.flow-steps ol { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.flow-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 3px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 800; }
.flow-steps li.is-done { border-top-color: var(--ink); color: var(--ink); }
.flow-steps li.is-current { border-top-color: var(--brand); color: var(--ink); }
.flow-steps li.is-current::before { content: ""; position: absolute; top: -3px; inset-inline-start: 0; width: 40%; height: 3px; background: var(--signal); }
.flow-steps a { color: inherit; }
.flow-steps__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; flex-shrink: 0; }
.flow-steps li.is-done .flow-steps__n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.flow-steps li.is-current .flow-steps__n { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow-steps .icon { width: 14px; height: 14px; }

/* ---------- Shop / archive ---------- */
.shop-layout { padding-block: 24px 64px; }
.woocommerce-products-header { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
[data-theme="dark"] .woocommerce-products-header { border-bottom-color: var(--line); }
.woocommerce-products-header__title { margin-bottom: 6px; }
.term-description { color: var(--muted); font-size: 14.5px; }
.term-description--intro { max-width: 860px; }
.term-description--intro p { margin: 0; }
.shop-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 72px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.shop-sidebar__head { display: none; }
.woocommerce-result-count { margin: 0; color: var(--muted); font-size: 13px; }
.woocommerce-ordering { float: left; margin: 0; }
.woocommerce-ordering select { min-height: 42px; padding-block: 6px; font-size: 13px; width: auto; font-weight: 700; }
.woocommerce-result-count, .woocommerce-ordering, .filters-toggle { display: inline-flex; align-items: center; vertical-align: middle; margin-bottom: 18px !important; }
.filters-toggle { display: none; gap: 6px; }
.filters-toggle .icon { width: 18px; height: 18px; }
ul.products { clear: both; }
.woocommerce-no-products-found { padding: 40px 0; }

.archive-seo { position: relative; margin-top: 40px; padding: clamp(20px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.archive-seo__body { font-size: 15px; }
.archive-seo.is-collapsed .archive-seo__body { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.archive-seo__toggle { margin-top: 12px; }

/* Filter widgets */
.widget_layered_nav li { display: flex; justify-content: space-between; align-items: center; }
.widget_product_categories li { display: block; padding: 0; }
.widget_product_categories li > a { display: inline-block; padding: 5px 0; }
.widget_product_categories .children { margin: 0 0 4px; padding: 0 14px 0 0; border-inline-start: 1px solid var(--border); }
.widget_product_categories .children a { font-size: 13px; color: var(--muted); }
.widget_product_categories .current-cat > a { color: var(--brand); font-weight: 900; }
.widget .count { color: var(--muted); font-size: 12px; }
.widget_price_filter .price_slider { position: relative; height: 3px; margin: 18px 8px 24px; background: var(--line); }
.widget_price_filter .ui-slider-range { position: absolute; height: 100%; background: var(--ink); }
.widget_price_filter .ui-slider-handle { position: absolute; top: -8px; width: 19px; height: 19px; margin-inline-start: -9px; background: var(--signal); border: 2px solid var(--ink); cursor: grab; }
.widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.widget_price_filter .price_slider_amount .button { min-height: 36px; padding: 4px 14px; font-size: 13px; }
.widget_price_filter input[type="text"] { display: none; }
.star-rating { font-size: 0; }

/* ---------- Single product ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
[data-theme="dark"] .single-product div.product { border-color: var(--line); }
.single-product div.product > .onsale { display: none; }
.woocommerce-product-gallery { position: relative; padding: 20px; border-inline-end: 1px solid var(--line); background: var(--surface-2); opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 72px); }
.woocommerce-product-gallery__image img { width: 100%; border-radius: var(--r-sm); }
.woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: var(--r-xs); cursor: pointer; opacity: .55; outline: 1.5px solid transparent; transition: opacity .15s; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; outline-color: var(--ink); }
.woocommerce-product-gallery__trigger { position: absolute; top: 30px; inset-inline-end: 30px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.summary.entry-summary { padding: clamp(20px, 3.4vw, 44px); }
.product-eyebrow { color: var(--muted); }
.product-eyebrow:hover { color: var(--brand); }
.product_title { font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2.2rem); margin-bottom: 8px; }
.woocommerce-product-rating { font-size: 13px; color: var(--muted); }
.woocommerce-product-rating a { color: var(--muted); }
.summary > .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 18px 0; padding: 14px 0; border-block: 1px dashed var(--line); font-size: 1.7rem; font-weight: 900; color: var(--ink); }
.summary .woocommerce-product-details__short-description { color: var(--ink-2); font-size: 14.5px; line-height: 2.05; margin-bottom: 22px; }
.summary .woocommerce-product-details__short-description ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.summary .woocommerce-product-details__short-description li { position: relative; padding-inline-start: 22px; }
.summary .woocommerce-product-details__short-description li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 9px; height: 9px; background: var(--signal); outline: 1px solid var(--border); }
.summary .stock { font-weight: 800; font-size: 14px; }
.summary .stock.out-of-stock { color: var(--danger); }
.summary .stock.in-stock { color: var(--success); }
form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 20px 0 16px; }
form.cart .quantity { display: flex; }
.quantity .qty { width: 76px; min-height: 54px; text-align: center; font-weight: 900; -moz-appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single_add_to_cart_button { flex: 1; min-height: 54px !important; font-size: 16px !important; }
form.variations_form { display: block; }
table.variations { margin-bottom: 12px; border: 0; }
table.variations tr { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
table.variations th, table.variations td { display: block; padding: 0; border: 0; text-align: start; }
table.variations th label { font-size: 14px; font-weight: 900; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.single_variation_wrap { display: grid; gap: 12px; }
.woocommerce-variation-price .price { margin: 0; font-size: 1.35rem; font-weight: 900; color: var(--ink); }
.woocommerce-variation-add-to-cart { display: flex; gap: 12px; }
.product_meta { display: grid; gap: 4px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.product_meta a { color: var(--ink); }

/* Plan picker (YITH labels + plain selects) */
.select_box_label, .select_box { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.select_option_label, .select_option {
	position: relative; display: flex !important; align-items: center; margin: 0 !important; padding: 12px 14px 12px 36px !important; padding-inline: 14px 36px !important; min-height: 50px;
	border: 1px solid var(--border) !important; border-radius: var(--r-sm) !important;
	background: var(--surface) !important; color: var(--ink) !important; font-weight: 800; font-size: 13.5px; line-height: 1.6; text-align: start;
	cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.select_option_label::after, .select_option::after { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1px solid var(--border); border-radius: 50%; }
.select_option_label:hover, .select_option:hover { border-color: var(--ink) !important; }
.select_option_label.selected, .select_option.selected { border-color: var(--ink) !important; background: var(--brand-tint) !important; box-shadow: var(--shadow-lg); }
.select_option_label.selected::after, .select_option.selected::after { border-color: var(--ink); background: var(--signal); box-shadow: inset 0 0 0 3px var(--surface); }

/* Plan cards (assets/js/product.js) */
.plan-select--hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.plan-list { display: grid; gap: 8px; }
.plan { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.plan:hover { border-color: var(--ink); }
.plan.is-selected { border-color: var(--brand); background: var(--surface-purple); box-shadow: 0 0 0 3px rgb(108 53 242 / .12); }
.plan.is-out { opacity: .5; cursor: not-allowed; }
.plan__check { width: 20px; height: 20px; border: 1.5px solid var(--muted); border-radius: 50%; }
.plan.is-selected .plan__check { border-color: var(--ink); background: var(--signal); box-shadow: inset 0 0 0 4px var(--surface); }
.plan__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan__name { font-size: 14.5px; font-weight: 900; unicode-bidi: plaintext; text-align: start; }
.plan__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.plan__tags span { padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--surface); line-height: 20px; }
.plan__price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 900; font-size: 14px; white-space: nowrap; }
.plan__price .price { display: flex; flex-direction: column; align-items: flex-end; }
.plan__price del { font-size: 11.5px; }
.plan__price em { font-style: normal; color: var(--danger); font-size: 12px; }
table.variations td.value { position: relative; }
.variations_form:has(.plan-list) .woocommerce-variation-price { display: none; }

.buy-assure { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-sm); }
.buy-assure li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.buy-assure li:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.buy-assure li:nth-child(n+3) { border-top: 1px solid var(--line); }
.buy-assure .icon { width: 20px; height: 20px; color: var(--brand); }
.buy-bar { display: none; }

/* Tabs */
.woocommerce-tabs { grid-column: 1 / -1; border-top: 1px solid var(--border); }
[data-theme="dark"] .woocommerce-tabs { border-top-color: var(--line); }
.woocommerce-tabs ul.tabs { display: flex; gap: 0; margin: 0; padding: 0 12px; list-style: none; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--surface-2); }
.woocommerce-tabs ul.tabs li a { display: block; padding: 14px 18px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 800; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--signal); }
.woocommerce-tabs .panel { max-width: 920px; padding: clamp(20px, 3.4vw, 44px); margin: 0; font-size: 15.5px; line-height: 2.1; }
.woocommerce-tabs .panel h2 { padding-inline-start: 12px; border-inline-start: 4px solid var(--signal); }
.woocommerce-Reviews .commentlist { margin: 0; padding: 0; list-style: none; }
.woocommerce-Reviews .comment_container { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.woocommerce-Reviews .avatar { border-radius: 50%; }
.related.products, .upsells.products { grid-column: 1 / -1; padding: clamp(20px, 3vw, 36px); border-top: 1px solid var(--border); }
[data-theme="dark"] .related.products, [data-theme="dark"] .upsells.products { border-top-color: var(--line); }
.related.products > h2, .upsells.products > h2 { font-size: 1.3rem; margin-bottom: 18px; }

/* ---------- Tables (cart, orders) ---------- */
.shop_table { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14px; }
.shop_table th, .shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.shop_table thead th { background: var(--surface-2); font-weight: 800; font-size: 12.5px; color: var(--muted); }
.shop_table tr:last-child > * { border-bottom: 0; }
.shop_table .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.shop_table .product-name a { color: var(--ink); font-weight: 800; }
.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--danger) !important; font-size: 20px; line-height: 1; }
.shop_table .product-remove a:hover { border-color: var(--danger); background: var(--danger); color: #fff !important; }
.shop_table .variation { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.shop_table .variation dd, .shop_table .variation p { margin: 0; }
.shop_table .actions { background: var(--surface-2); }
.shop_table .coupon { display: inline-flex; gap: 8px; }
.shop_table .coupon input { width: 190px; min-height: 42px; }
.shop_table .actions > .button { float: left; }
.shop_table .amount { font-weight: 900; white-space: nowrap; }
.shop_table th { white-space: nowrap; }
.shop_table .product-price, .shop_table .product-subtotal, .shop_table .product-quantity { width: 1%; white-space: nowrap; }
.cart_totals .shop_table th, .cart_totals .shop_table td { border-bottom: 1px solid var(--line); background: none; }

/* ---------- Cart ---------- */
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.woocommerce-cart .woocommerce > .flow-steps, .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .woocommerce > .cart-empty, .woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
.cart-collaterals { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 72px); }
.cart_totals { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
[data-theme="dark"] .cart_totals { border-color: var(--line); }
.cart_totals h2 { font-size: 1.1rem; }
.cart_totals .shop_table { border: 0; background: none; }
.cart_totals .shop_table th, .cart_totals .shop_table td { padding: 10px 0; }
.cart_totals .order-total .amount { font-size: 1.35rem; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 16px; margin-top: 10px; }
.cart-empty { text-align: center; font-size: 1.1rem; }
.return-to-shop { text-align: center; }

/* ---------- Checkout ---------- */
.checkout-login { padding-block: 8px 24px; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.woocommerce-checkout .co-main { min-width: 0; }
.checkout[data-checkout-steps] .co-step { display: none; }
.checkout[data-checkout-steps] .co-step.is-active { display: block; animation: sbj-fade .25s var(--ease); }
@keyframes sbj-fade { from { opacity: 0; transform: translateY(6px); } }
.co-step { padding: clamp(18px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
[data-theme="dark"] .co-step { border-color: var(--line); }
.co-step__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.co-step__num { display: grid; place-items: center; width: 44px; height: 44px; background: var(--signal); color: var(--signal-ink); border: 1px solid var(--border); font-weight: 900; font-size: 15px; flex-shrink: 0; }
.co-step__title { margin: 0; font-size: 1.25rem; }
.co-step__sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.co-step__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--line); }
.co-step__actions .btn--signal { flex: 1 1 260px; min-height: 54px; }
body.woocommerce-checkout:not(.co-at-payment) .woocommerce-form-coupon-toggle,
body.woocommerce-checkout:not(.co-at-payment) form.checkout_coupon { display: none !important; }
.co-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.co-summary__body { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 700; }
.co-summary__body small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.co-aside { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 72px); }
.co-cart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.co-cart__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-cart__head a { font-size: 13px; font-weight: 700; }
.co-cart__items { margin: 0; padding: 0; list-style: none; }
.co-cart__items li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.co-cart__img img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-xs); }
.co-cart__name { font-weight: 700; line-height: 1.7; }
.co-cart__name small { color: var(--muted); }
.co-cart__price { font-weight: 900; white-space: nowrap; }
.co-cart__total { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-size: 14px; }
.co-cart__total strong { font-size: 1.15rem; }

.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.segmented__opt { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--ink); font-weight: 900; font-size: 15px; transition: border-color .15s, background .15s, box-shadow .15s; }
.segmented__opt:hover { border-color: var(--ink); }
.segmented__opt.is-selected { border-color: var(--brand); background: var(--surface-purple); box-shadow: 0 0 0 3px rgb(108 53 242 / .12); }
.segmented__dot { width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 50%; }
.segmented__opt.is-selected .segmented__dot { border-color: var(--ink); background: var(--signal); box-shadow: inset 0 0 0 3px var(--surface); }
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { height: 48px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; color: var(--ink); }
.select2-dropdown { background: var(--surface); border-color: var(--ink); color: var(--ink); }

.col2-set .col-1, .col2-set .col-2 { width: 100%; float: none; }
.woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { display: none; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.form-row-wide, .form-row.notes { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
.form-row .required { color: var(--danger); text-decoration: none; border: 0; }
.form-row .optional { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-row .description { font-size: 12.5px; color: var(--muted); line-height: 1.85; }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select { border-color: var(--danger); box-shadow: var(--shadow-lg); }
.form-row.woocommerce-invalid label { color: var(--danger); }
.woocommerce-input-wrapper { display: block; }
#order_review .shop_table { border: 1px solid var(--line); background: var(--surface); }
#order_review .shop_table th, #order_review .shop_table td { padding: 12px 14px; }
#order_review .order-total .amount { font-size: 1.3rem; }
#payment { margin-top: 18px; }
.wc_payment_methods { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.wc_payment_method { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.wc_payment_method:has(input:checked) { border-color: var(--brand); background: var(--surface-purple); box-shadow: 0 0 0 3px rgb(108 53 242 / .12); }
.wc_payment_method > label { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; cursor: pointer; }
.wc_payment_method > label img { max-height: 28px; width: auto; }
.payment_box { margin-top: 8px; font-size: 13px; color: var(--muted); }
.payment_box p:last-child { margin: 0; }
#place_order { width: 100%; min-height: 58px; font-size: 17px; margin-top: 14px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); line-height: 1.95; }
.blockUI.blockOverlay { background: color-mix(in srgb, var(--surface) 70%, transparent) !important; }

/* ---------- Thank you ---------- */
.woocommerce-order { max-width: 920px; margin-inline: auto; }
.woocommerce-thankyou-order-received { padding: 26px; background: var(--signal); color: var(--signal-ink); border: 1px solid var(--border); border-radius: var(--r); font-weight: 900; font-size: 1.2rem; text-align: center; box-shadow: var(--shadow-lg); }
ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 24px 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
ul.woocommerce-order-overview li { padding: 14px 16px; background: var(--surface); font-size: 12.5px; color: var(--muted); }
ul.woocommerce-order-overview li strong { display: block; color: var(--ink); font-size: 14.5px; }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 28px; }
#subinja-order-social-box { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: var(--r) !important; }
[data-theme="dark"] #subinja-order-social-box { border-color: var(--line) !important; }
.subinja-order-social-box__button { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--ink) !important; border-radius: var(--r-sm) !important; }
.subinja-order-social-box__button:hover { border-color: var(--ink) !important; transform: none !important; box-shadow: var(--shadow-lg); }
.subinja-order-social-box__title { color: var(--ink) !important; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; padding-block: 12px 24px; }
.woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 72px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
[data-theme="dark"] .woocommerce-MyAccount-navigation { border-color: var(--line); }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.woocommerce-MyAccount-navigation a::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface-2); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); }
.woocommerce-MyAccount-navigation .is-active a::before { background: var(--signal); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--danger); }
.woocommerce-MyAccount-content { min-width: 0; padding: clamp(18px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-orders-table .button, .woocommerce-MyAccount-content .shop_table .button { min-height: 34px; padding: 4px 12px; font-size: 12.5px; margin: 2px; }
.woocommerce-EditAccountForm fieldset { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); }
mark { background: var(--signal); color: var(--signal-ink); padding: 0 4px; }

.acc-hello { margin-bottom: 22px; }
.acc-hello__title { margin-bottom: 4px; }
.acc-hello__sub { color: var(--muted); margin: 0; }
.acc-complete { margin-bottom: 24px; }
.acc-complete .auth { max-width: none; }
.acc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; margin: 0 0 24px; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc-tile { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 18px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px; transition: background .15s; }
.acc-tile:hover { background: var(--brand-tint); color: var(--ink); }
.acc-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--signal); color: var(--signal-ink); }
[data-theme="dark"] .acc-tile__icon { border-color: var(--signal); }
.acc-recent { margin-bottom: 24px; }
.acc-recent__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.acc-recent__head h3 { margin: 0; font-size: 1.05rem; }
.acc-recent__head a { font-size: 13px; font-weight: 700; }
.acc-recent ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc-recent li + li { border-top: 1px solid var(--line); }
.acc-recent a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 12px 16px; color: var(--ink); font-size: 13.5px; }
.acc-recent a:hover { background: var(--surface-2); }
.acc-recent__id { font-weight: 900; }
.acc-recent__date { color: var(--muted); font-size: 12.5px; }
.acc-recent__status { padding: 0 10px; border: 1px solid var(--border); border-radius: 99px; font-size: 12px; font-weight: 800; }
.acc-recent__status.status-completed { border-color: var(--success); color: var(--success); }
.acc-recent__status.status-processing { border-color: var(--brand); color: var(--brand); }
.acc-recent__total { font-weight: 900; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.shop_table_responsive thead { display: none; }
	.shop_table_responsive tr { display: block; padding: 10px 16px; border-bottom: 1px solid var(--line); }
	.shop_table_responsive tr:last-child { border-bottom: 0; }
	.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: end; }
	.shop_table_responsive td::before { content: attr(data-title); font-weight: 700; color: var(--muted); font-size: 12.5px; }
	.shop_table_responsive td.product-remove::before, .shop_table_responsive td.product-thumbnail::before, .shop_table_responsive td.actions::before { display: none; }
	.shop_table_responsive td.product-thumbnail { justify-content: flex-start; }
	.shop_table .actions { display: grid !important; gap: 8px; }
	.shop_table .coupon { display: flex; }
	.shop_table .coupon input { flex: 1; width: auto; }
	.shop_table .actions > .button { float: none; width: 100%; }
	.flow-steps ol { grid-template-columns: repeat(5, auto); overflow-x: auto; scrollbar-width: none; }
	.flow-steps li { padding-inline-end: 14px; font-size: 12px; }
	.flow-steps li:not(.is-current) span:not(.flow-steps__n), .flow-steps li:not(.is-current) a { display: none; }
	.acc-recent a { grid-template-columns: 1fr auto; }
	.acc-recent__date { grid-row: 2; }
}

@media (max-width: 1024px) {
	.shop-grid { grid-template-columns: 1fr; }
	.shop-sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 210; width: min(340px, 88vw); display: block; overflow-y: auto; padding: 0 0 24px; background: var(--paper); border: 0; border-radius: 0; border-inline-end: 1px solid var(--border); transform: translateX(100%); transition: transform .22s var(--ease); }
	.shop-sidebar.is-open { transform: none; }
	.shop-sidebar__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--border); }
	.filters-toggle { display: inline-flex; }
	.woocommerce-cart .woocommerce, .woocommerce-checkout form.checkout, .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	.co-aside { position: static; order: -1; }
	.co-cart__items { display: none; }
	.co-cart__head { border-bottom: 0; }
	.cart-collaterals, .woocommerce-MyAccount-navigation { position: static; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation li { border-bottom: 0; border-inline-end: 1px solid var(--line); flex-shrink: 0; }
	.single-product div.product { grid-template-columns: 1fr; }
	.woocommerce-product-gallery { border-inline-end: 0; border-bottom: 1px solid var(--line); }
	.woocommerce-product-gallery__wrapper { position: static; }
}

@media (max-width: 860px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
	.woocommerce-ordering { float: none; }
	.buy-assure { grid-template-columns: 1fr; }
	.buy-assure li:nth-child(odd) { border-inline-end: 0; }
	.buy-assure li + li { border-top: 1px solid var(--line); }
	.buy-bar { position: fixed; inset-inline: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 79; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--paper); border-top: 1px solid var(--border); transform: translateY(120%); transition: transform .2s var(--ease); }
	.buy-bar[hidden] { display: flex; }
	.buy-bar.is-shown { transform: none; }
	.buy-bar__price .price { font-size: 15px; font-weight: 900; color: var(--ink); }
	.buy-bar .btn { min-height: 44px; box-shadow: var(--shadow-lg); }
	.co-step__actions .btn--ghost { order: 2; flex: 1 1 100%; }
}

/* wallet-persian-ui hides the wallet label and re-draws it with ::before (built for the old
   theme). The theme draws icons with ::before, so restore the real label instead. */
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--wallet a { font-size: 14px !important; visibility: visible !important; }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--wallet a::before { content: "" !important; font-size: 0 !important; }
.woocommerce-MyAccount-navigation .wal-pui-menu-icon, .woocommerce-MyAccount-navigation .sj-menu-icon { display: none !important; }
.woocommerce-MyAccount-navigation .sj-points-badge { margin-inline-start: auto; padding: 0 8px; border-radius: 99px; background: var(--signal); color: var(--signal-ink); font-size: 11.5px; font-weight: 900; }

/* Tiles: hairlines without grey gaps for an incomplete last row */
.acc-tiles { gap: 0; background: var(--surface); }
.acc-tiles li { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); margin-bottom: -1px; margin-inline-end: -1px; }

/* ==========================================================================
   App-style finish (overrides above)
   ========================================================================== */

/* Flow steps as soft pills */
.flow-steps ol { gap: 8px; }
.flow-steps li { justify-content: center; padding: 10px 12px; border-top: 0; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); color: var(--text-3); }
.flow-steps li::before { display: none; }
.flow-steps li.is-done { color: var(--text-2); background: var(--surface); border-color: var(--border); }
.flow-steps li.is-current { color: #fff; background: var(--brand-grad); border-color: transparent; box-shadow: var(--shadow-brand); }
.flow-steps__n { border: 0; background: var(--surface-soft); color: var(--text-2); }
.flow-steps li.is-done .flow-steps__n { background: var(--success-soft); color: var(--success); }
.flow-steps li.is-current .flow-steps__n { background: rgb(255 255 255 / .22); color: #fff; }

/* Checkout panels */
.co-step, .cart_totals, .co-cart, #order_review .shop_table, .summary.entry-summary, .single-product div.product { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.co-step__num { border: 0; border-radius: 15px; background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.co-summary { border-radius: var(--r); background: var(--surface-purple); border-color: transparent; }
.single-product div.product { border: 1px solid var(--border); }
.woocommerce-product-gallery { background: var(--soft-grad); }
.woocommerce-product-gallery__image img { border-radius: var(--r-lg); }
.woocommerce-product-gallery__trigger { border-radius: 14px; }
.summary > .price { border-block: 0; padding: 0; margin: 12px 0 18px; color: var(--text); }
.summary .woocommerce-product-details__short-description li::before { width: 8px; height: 8px; border-radius: 50%; outline: 0; background: var(--brand); }
.woocommerce-tabs { border-top: 1px solid var(--border); }
.woocommerce-tabs ul.tabs { background: var(--surface-soft); }
.woocommerce-tabs ul.tabs li.active a { color: var(--brand); border-bottom-color: var(--brand); }
.woocommerce-tabs .panel h2 { border-inline-start-color: var(--brand); }
.related.products, .upsells.products { border-top: 1px solid var(--border); }

/* Selection controls (plans, delivery method, payment methods) */
.plan, .segmented__opt, .wc_payment_method, .select_option_label, .select_option { border-radius: var(--r) !important; }
.plan.is-selected, .segmented__opt.is-selected, .wc_payment_method:has(input:checked), .select_option_label.selected, .select_option.selected { border-color: var(--brand) !important; background: var(--surface-purple) !important; box-shadow: 0 0 0 3px rgb(108 53 242 / .12) !important; }
.plan__check, .segmented__dot { border-color: var(--text-3); }
.plan.is-selected .plan__check, .segmented__opt.is-selected .segmented__dot, .select_option_label.selected::after, .select_option.selected::after { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--surface); }
.plan__tags span { background: var(--surface-soft); border-color: transparent; color: var(--text-2); }
.buy-assure { border-radius: var(--r-lg); background: var(--surface-soft); border-color: transparent; }
.buy-assure li { border-color: var(--border) !important; }
.buy-bar { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.buy-bar .btn { box-shadow: var(--shadow-brand); }
.widget_price_filter .ui-slider-range { background: var(--brand); }
.widget_price_filter .ui-slider-handle { border-radius: 50%; border: 3px solid var(--surface); background: var(--brand); box-shadow: var(--shadow-brand); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: 0 !important; border-radius: var(--r); box-shadow: none; }
.woocommerce-message { background: var(--success-soft); color: var(--success); }
.woocommerce-info { background: var(--surface-purple); color: var(--on-tint); }
.woocommerce-error { background: var(--danger-soft); color: var(--danger); }

/* Thank you */
.woocommerce-thankyou-order-received { background: var(--success-soft); color: var(--success); border: 0; box-shadow: none; border-radius: var(--r-lg); }
ul.woocommerce-order-overview { gap: 10px; background: none; border: 0; }
ul.woocommerce-order-overview li { border: 1px solid var(--border); border-radius: var(--r); }
#subinja-order-social-box { border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; }
.subinja-order-social-box__button:hover { box-shadow: var(--shadow-lg) !important; }

/* My account */
.woocommerce-MyAccount-navigation { padding: 8px; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.woocommerce-MyAccount-navigation li { border: 0 !important; }
.woocommerce-MyAccount-navigation a { border-radius: 14px; color: var(--text-2) !important; }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface-purple); color: var(--brand) !important; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--brand-grad); color: #fff !important; box-shadow: var(--shadow-brand); }
.woocommerce-MyAccount-navigation .is-active a::before { background: #fff; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--danger) !important; }
.woocommerce-MyAccount-navigation .sj-points-badge { background: var(--tint); color: var(--on-tint); }
.woocommerce-MyAccount-content { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.acc-tiles { gap: 12px; background: none; border: 0; overflow: visible; }
.acc-tiles li { border: 0 !important; margin: 0 !important; }
.acc-tile { align-items: flex-start; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.acc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--surface); }
.acc-tile__icon { border: 0 !important; border-radius: 14px; background: var(--tint); color: var(--brand); }
[data-theme="dark"] .acc-tile__icon { color: var(--brand-light); }
.acc-recent ul { border-radius: var(--r-lg); }
.acc-recent__status { border-width: 0; background: var(--surface-soft); }
.acc-recent__status.status-completed { background: var(--success-soft); }
.acc-recent__status.status-processing { background: var(--surface-purple); }
mark { background: var(--tint); color: var(--on-tint); border-radius: 6px; }

/* ==========================================================================
   v2 — shop filter bar, archive header, description after products
   ========================================================================== */
.shop-sidebar, .filters-toggle { display: none !important; }
.woocommerce-products-header { margin-bottom: 14px; padding: 0; border: 0; }
.woocommerce-products-header__title { margin: 0; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.8rem); }
.archive-count { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }

.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.filters__cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters__cats::-webkit-scrollbar { display: none; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.chip-link span { padding: 0 7px; border-radius: 99px; background: var(--surface-soft); color: var(--text-2); font-size: 11.5px; }
.chip-link:hover { border-color: var(--brand); color: var(--brand) !important; }
.chip-link.is-active { background: var(--brand-grad); border-color: transparent; color: #fff !important; box-shadow: var(--shadow-brand); }
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.filters__group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filters__group--sort .chip-link { height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--text-2) !important; }
.filters__group--sort .chip-link:hover { background: var(--surface-purple); color: var(--brand) !important; }
.filters__group--sort .chip-link.is-active { background: var(--tint); color: var(--on-tint) !important; box-shadow: none; }
.filters__label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; font-weight: 800; margin-inline-end: 4px; }
.filters__label .icon { width: 18px; height: 18px; color: var(--brand); }
.toggle-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 12px; color: var(--text-2) !important; font-size: 13px; font-weight: 700; }
.toggle-link:hover { background: var(--surface-soft); }
.toggle-link__switch { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--border); transition: background .2s; }
.toggle-link__switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s var(--ease); }
.toggle-link.is-on { color: var(--text) !important; }
.toggle-link.is-on .toggle-link__switch { background: var(--brand); }
.toggle-link.is-on .toggle-link__switch::after { transform: translateX(-14px); }
.filters__open { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font-weight: 800; font-size: 13.5px; }
.filters__open .icon { width: 18px; height: 18px; color: var(--brand); }
.filters__count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; }
.filters__active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.active-tag { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 8px; padding-inline: 12px 8px; border-radius: 99px; background: var(--surface-purple); color: var(--on-tint) !important; font-size: 12.5px; font-weight: 700; }
.active-tag .icon { width: 14px; height: 14px; }
.active-clear { color: var(--danger) !important; font-size: 12.5px; font-weight: 700; padding: 0 6px; }

/* Filter sheet form */
.filter-form fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.filter-form legend { margin-bottom: 8px; font-size: 14px; font-weight: 900; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; }
.radio-chips span { display: inline-block; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700; cursor: pointer; }
.radio-chips input:checked + span { background: var(--brand-grad); border-color: transparent; color: #fff; }
.radio-chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.price-inputs label { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.price-inputs input { min-height: 46px; direction: ltr; text-align: center; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; }
.switch-row input { width: 44px; height: 24px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 99px; background: var(--border); position: relative; cursor: pointer; transition: background .2s; order: 2; }
.switch-row input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch-row input:checked { background: var(--brand); }
.switch-row input:checked::after { transform: translateX(-20px); }
.filter-form__actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 12px 0 4px; background: var(--bg); }

/* Description after the products */
.archive-seo { margin-top: 36px; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.archive-seo__title { margin: 0 0 12px; font-size: 1.2rem; }

@media (max-width: 860px) {
	.filters__open { display: inline-flex; }
	.filters__bar { padding: 0; background: none; border: 0; box-shadow: none; }
	.filters__group { display: none; }
}

/* ==========================================================================
   v2 — product page (app-style)
   ========================================================================== */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
.single-product div.product > .onsale { display: none; }
.woocommerce-product-gallery { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 18px); padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.woocommerce-product-gallery__wrapper { position: static; }
.woocommerce-product-gallery__image img { border-radius: 22px; background: var(--soft-grad); }
.summary.entry-summary { padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.product-eyebrow { display: inline-flex; margin-bottom: 8px; padding: 3px 12px; border-radius: 99px; background: var(--tint); color: var(--on-tint) !important; font-size: 12px; font-weight: 700; }
.product-eyebrow::before { display: none; }
.pdp-title { margin-bottom: 14px; }
.pdp-title .product_title { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); line-height: 1.5; }
.pdp-title__sub { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.pdp-title__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pdp-title__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--surface-soft); color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.pdp-title__meta .icon { width: 15px; height: 15px; }
.pdp-title__meta .is-ok { background: var(--success-soft); color: var(--success); }
.pdp-title__meta .is-out { background: var(--danger-soft); color: var(--danger); }
.summary > .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-purple); font-size: 1.5rem; }
.summary > .price::before { content: "شروع قیمت از"; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.summary .woocommerce-product-details__short-description { position: relative; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--r); border: 1px dashed var(--border); font-size: 14px; line-height: 2; }
.summary .woocommerce-product-details__short-description p:last-child { margin: 0; }
.woocommerce-product-rating { display: none; }
table.variations th label { font-size: 15px; }
.plan-list.is-attention { animation: sbj-shake .5s; }
@keyframes sbj-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.plan { padding: 12px 14px; }
.single_variation_wrap .woocommerce-variation-description { padding: 12px 14px; border-radius: var(--r); background: var(--surface-soft); font-size: 13.5px; line-height: 2; }
.single_variation_wrap .woocommerce-variation-description p { margin: 0 0 6px; }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: grid !important; grid-template-columns: auto 2fr 1fr; gap: 10px; align-items: stretch; }
.woocommerce-variation-add-to-cart .quantity, form.cart .quantity { display: flex; }
.woocommerce-variation-add-to-cart .quantity.hidden, form.cart .quantity.hidden, .quantity input[type=hidden] { display: none; }
.single_add_to_cart_button { min-height: 56px !important; border-radius: var(--r) !important; font-size: 16px !important; }
.buy-now { min-height: 56px; border-radius: var(--r); font-size: 15px; }
.buy-assure { margin-top: 16px; }

/* Sections instead of tabs */
.pdp-sections { grid-column: 1 / -1; margin-top: 8px; }
.pdp-nav { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 8px); z-index: 20; display: flex; gap: 6px; margin-bottom: 16px; padding: 6px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.pdp-nav::-webkit-scrollbar { display: none; }
.pdp-nav a { flex-shrink: 0; padding: 8px 16px; border-radius: 13px; color: var(--text-2); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.pdp-nav a:hover { background: var(--surface-purple); color: var(--brand); }
.pdp-section { margin-bottom: 16px; padding: clamp(18px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + var(--ab, 0px) + 80px); font-size: 15.5px; line-height: 2.1; }
.pdp-section > h2:first-child { font-size: 1.2rem; }
.pdp-section h2 { border: 0; padding: 0; }
.pdp-section h2::before { content: ""; display: inline-block; width: 5px; height: 18px; margin-inline-end: 8px; border-radius: 4px; background: var(--brand-grad); vertical-align: -2px; }
.related.products, .upsells.products { grid-column: 1 / -1; padding: 0; border: 0; }
.related.products > h2, .upsells.products > h2 { display: flex; align-items: center; gap: 10px; }
.related.products > h2::before, .upsells.products > h2::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--brand-grad); }

/* Mobile */
@media (max-width: 1024px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 14px; }
	.woocommerce-product-gallery { position: static; }
}
@media (max-width: 860px) {
	.single-product .shop-layout { padding-top: 8px; }
	.woocommerce-product-gallery { padding: 0; border: 0; background: none; box-shadow: none; }
	.woocommerce-product-gallery__image img { border-radius: var(--r-xl); }
	.summary.entry-summary { padding: 18px 16px; }
	.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { grid-template-columns: 1fr 1fr; }
	.pdp-nav { top: 8px; }
	.buy-bar { bottom: calc(86px + env(safe-area-inset-bottom)); inset-inline: 12px; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 8px 8px 8px 14px; padding-inline: 14px 8px; }
	.buy-bar .btn { min-height: 44px; border-radius: 16px; }
}

/* ==========================================================================
   v2 — cart page (cards + sticky summary)
   ========================================================================== */
.woocommerce-cart .woocommerce { display: block; }
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cart-page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cart-page__title { margin: 0; font-size: 1.4rem; }
.cart-page__title span { margin-inline-start: 6px; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: var(--on-tint); font-size: 12.5px; font-weight: 800; vertical-align: middle; }
.cart-page__continue { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 13.5px; font-weight: 700; }
.cart-page__continue .icon { width: 16px; height: 16px; }
.cart-items { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; background: none !important; border: 0 !important; box-shadow: none !important; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cart-item__img img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 16px; background: var(--soft-grad); }
.cart-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__name { color: var(--text) !important; font-size: 15px; font-weight: 800; line-height: 1.7; }
.cart-item__body .variation { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 12.5px; color: var(--text-2); }
.cart-item__body .variation dt { font-weight: 700; }
.cart-item__body .variation dd { margin: 0; }
.cart-item__body .variation p { margin: 0; }
.cart-item__unit { color: var(--text-2); font-size: 12.5px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item__total { font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.cart-item__qty .quantity { display: inline-flex; }
.cart-item__qty .qty { width: 72px; min-height: 40px; padding: 6px; border-radius: 12px; text-align: center; font-weight: 800; }
.cart-item__qty .quantity:has(input[type=hidden]) { display: none; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 10px; background: var(--danger-soft); color: var(--danger) !important; font-size: 12px; font-weight: 700; }
.cart-item__remove .icon { width: 15px; height: 15px; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-lg); }
.cart-actions .coupon { display: grid; gap: 6px; flex: 1 1 320px; }
.cart-actions .coupon label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.cart-actions .coupon label .icon { width: 16px; height: 16px; color: var(--brand); }
.coupon__row { display: flex; gap: 8px; }
.coupon__row input { min-height: 46px; }
.cart-actions__update { background: var(--surface-soft) !important; color: var(--text-2) !important; box-shadow: none !important; min-height: 46px; }
.js .cart-actions__update { display: none; }
.cart-page__summary { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 16px); display: grid; gap: 12px; }
.cart-page__summary .cart_totals { width: auto; float: none; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.cart-page__summary .cart_totals h2 { margin-bottom: 10px; font-size: 1.1rem; border: 0; padding: 0; }
.cart-page__summary .cart_totals .shop_table { border: 0; background: none; box-shadow: none; }
.cart-page__summary .cart_totals th { font-weight: 700; color: var(--text-2); background: none; }
.cart-page__summary .order-total .amount { font-size: 1.35rem; color: var(--brand-dark); }
[data-theme="dark"] .cart-page__summary .order-total .amount { color: var(--brand-light); }
.cart-page__summary .checkout-button { width: 100%; min-height: 56px; font-size: 16px; border-radius: var(--r) !important; }
.cart-page__trust { display: grid; gap: 8px; margin: 0; padding: 14px 16px; list-style: none; background: var(--surface-soft); border-radius: var(--r-lg); font-size: 12.5px; color: var(--text-2); }
.cart-page__trust li { display: flex; align-items: center; gap: 8px; }
.cart-page__trust .icon { width: 17px; height: 17px; color: var(--success); }
.cart-empty.woocommerce-info { justify-content: center; padding: 26px; font-size: 1rem; }
.return-to-shop .button { background: var(--brand-grad) !important; }

@media (max-width: 1024px) {
	.cart-page { grid-template-columns: 1fr; }
	.cart-page__summary { position: static; }
}
@media (max-width: 860px) {
	.cart-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.cart-item__img img { width: 72px; height: 72px; }
	.cart-item__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--border); }
	.cart-page__summary { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); top: auto; z-index: 30; }
	.cart-page__summary .cart_totals { padding: 14px; }
	.cart-page__summary .cart_totals h2, .cart-page__summary .cart_totals tr:not(.order-total), .cart-page__trust { display: none; }
	.cart-page__summary .cart_totals .shop_table tr.order-total { display: flex; justify-content: space-between; }
	.cart-page__summary .checkout-button { min-height: 50px; }
}

.coupon__row .btn { flex-shrink: 0; white-space: nowrap; min-height: 46px; }

.pdp-cats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); font-size: 13px; }
.pdp-cats span { color: var(--text-2); font-weight: 700; }
.pdp-cats a { padding: 4px 12px; border-radius: 99px; background: var(--surface-purple); color: var(--on-tint) !important; font-weight: 700; }

/* Sub-category chips: wrap on desktop (no hidden horizontal scroll), swipe on touch */
@media (min-width: 861px) { .filters__cats { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 860px) { .filters__cats { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; } }

/* ==========================================================================
   v3 — product: plan picker dialog, "added" box, tabs, stars, sticky gallery
   ========================================================================== */

/* Dialog variant of .sheet: centered card on desktop, bottom sheet on mobile */
@media (min-width: 861px) {
	.sheet--dialog { display: grid; place-items: center; padding: 24px; }
	.sheet--dialog[hidden] { display: none; }
	.sheet--dialog .sheet__panel { position: relative; inset: auto; width: min(560px, 100%); max-height: min(86vh, 760px); border-radius: var(--r-xl); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
	.sheet--dialog.is-open .sheet__panel { transform: none; opacity: 1; }
	.sheet--dialog .sheet__grab { display: none; }
}
.sheet--dialog .sheet__head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.plan-hint { margin: 8px 0 0; color: var(--danger); font-size: 13px; font-weight: 700; }
.plan.is-out { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }

.buy-box { display: grid; gap: 6px; margin: 4px 0 6px; }
.buy-box__open { min-height: 56px; font-size: 16px; }
.buy-box__hint { margin: 0; color: var(--text-3); font-size: 12px; text-align: center; }
form.cart:not(.variations_form) { grid-template-columns: auto 1fr !important; }

/* Busy state for WooCommerce buttons too */
.button.is-busy, .single_add_to_cart_button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.button.is-busy::after, .single_add_to_cart_button.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2.5px solid #fff; border-inline-end-color: transparent; border-radius: 50%; animation: sbj-spin .7s linear infinite; }

/* "Added to cart" box */
.added-sheet { z-index: 230; }
.added-sheet__body { display: grid; justify-items: center; gap: 12px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.added-sheet__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); animation: sbj-pop .4s var(--ease); }
@keyframes sbj-pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
#added-title { font-size: 1.1rem; font-weight: 900; }
.added-sheet__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r); background: var(--surface-soft); text-align: start; }
.added-sheet__item:empty { display: none; }
.added-sheet__img img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.added-sheet__item b { display: block; font-size: 13.5px; }
.added-sheet__item small { display: block; color: var(--text-2); font-size: 12px; }
.added-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.added-sheet__cart { border: 0; background: none; color: var(--brand); font-size: 13px; font-weight: 700; }

/* Tabs */
.pdp-sections, .pdp-nav { display: none; }
.pdp-tabs { grid-column: 1 / -1; margin-top: 8px; }
.pdp-tabs__list { display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--border); border-radius: 18px 18px 0 0; border-bottom: 0; }
.pdp-tabs__list::-webkit-scrollbar { display: none; }
.pdp-tabs__tab { flex-shrink: 0; padding: 10px 18px; border: 0; border-radius: 13px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 800; white-space: nowrap; }
.pdp-tabs__tab:hover { color: var(--brand); }
.pdp-tabs__tab[aria-selected="true"] { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.pdp-tabs__panel { padding: clamp(18px, 3vw, 30px); background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow); font-size: 15.5px; line-height: 2.1; }
.pdp-tabs__panel > *:first-child { margin-top: 0 !important; }
.pdp-tabs__panel[hidden] { display: none; }
.pdp-tabs__panel h2 { font-size: 1.15rem; }
.pdp-tabs__panel table.woocommerce-product-attributes { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.pdp-tabs__panel .woocommerce-product-attributes th, .pdp-tabs__panel .woocommerce-product-attributes td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.pdp-tabs__panel .woocommerce-product-attributes th { width: 30%; background: var(--surface-soft); font-weight: 700; }

/* Stars (WooCommerce markup, no icon font needed) */
.star-rating { position: relative; display: inline-block; width: 5.6em; height: 1.2em; overflow: hidden; font-size: 15px !important; line-height: 1.2; vertical-align: middle; }
.star-rating::before { content: "★★★★★"; position: absolute; inset-inline-start: 0; top: 0; color: var(--border); letter-spacing: .12em; }
.star-rating span { position: absolute; inset-inline-start: 0; top: 0; height: 100%; overflow: hidden; font-size: 0; }
.star-rating span::before { content: "★★★★★"; position: absolute; inset-inline-start: 0; top: 0; font-size: 15px; color: var(--warning); letter-spacing: .12em; }
.woocommerce-product-rating { display: flex !important; align-items: center; gap: 8px; margin-bottom: 10px; }

/* Sticky gallery (body uses overflow-x: clip now, so sticky works) */
@media (min-width: 1025px) {
	.woocommerce-product-gallery { position: sticky; top: calc(68px + 48px + 16px); align-self: start; }
}
.woocommerce-product-gallery__trigger { display: none !important; }

@media (max-width: 860px) {
	.pdp-tabs__list { border-radius: 16px 16px 0 0; }
}


/* Product top grid (gallery + summary); the rest stacks full-width below */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pdp-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
@media (max-width: 1024px) { .pdp-top { grid-template-columns: 1fr; gap: 14px; } .single-product div.product { gap: 14px; } }

/* ==========================================================================
   Plan picker v4 (two steps, cards, no visible scrollbar)
   ========================================================================== */
.plan-sheet .sheet__panel { overflow: hidden; background: var(--bg); }
.plan-sheet__head { gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.plan-sheet__titles { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
.plan-sheet__titles small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-sheet__back[hidden] { display: none; }
.plan-sheet__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 16px 18px; }
.plan-sheet__scroll::-webkit-scrollbar { display: none; }
.plan-sheet__step[hidden] { display: none; }
.plan-sheet__wc { display: none; }
.plan-sheet.is-native .plan-sheet__wc { display: block; }
.plan-sheet.is-native .plan-sheet__step, .plan-sheet.is-native .plan-sheet__foot { display: none; }
.plan-sheet__foot { display: flex; align-items: center; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.plan-sheet__sum { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
.plan-sheet__sum span { color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-sheet__sum strong { font-size: 1.1rem; font-weight: 900; }
.plan-sheet__sum small { font-size: 12px; font-weight: 600; color: var(--text-2); }
.plan-sheet__cta { min-width: 190px; min-height: 50px; }
.plan-sheet__cta[disabled] { opacity: .45; pointer-events: none; }
.plan-sheet__cta.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.plan-sheet__cta.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2.5px solid #fff; border-inline-end-color: transparent; border-radius: 50%; animation: sbj-spin .7s linear infinite; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%; padding: 14px; border: 1.5px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.pcard:active { transform: scale(.99); }
.pcard.is-selected { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.pcard.is-out { cursor: not-allowed; opacity: .5; filter: grayscale(.7); }
.pcard__radio { width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--border); border-radius: 50%; transition: .15s; }
.pcard.is-selected .pcard__radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--surface); }
.pcard__main { display: grid; gap: 5px; min-width: 0; }
.pcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pcard__top strong { font-size: 15px; font-weight: 900; }
.pcard__dur { padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-size: 11.5px; font-weight: 800; }
.pcard__meta { color: var(--text-2); font-size: 12px; line-height: 1.7; }
.pcard__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.pcard__badges span { padding: 2px 8px; border-radius: 7px; background: var(--surface-soft); color: var(--text-2); font-size: 11px; font-weight: 700; }
.pcard__badges .is-ok { background: var(--success-soft); color: var(--success); }
.pcard__badges .is-warn { background: var(--surface-soft); color: var(--text-2); font-weight: 700; }
.pcard__badges .is-vip { background: #fff4dc; color: #a86b00; }
[data-theme="dark"] .pcard__badges .is-vip { background: #3a2c10; color: #f4c35a; }
.pcard__side { display: grid; justify-items: end; gap: 3px; text-align: end; white-space: nowrap; }
.pcard__price b { font-size: 16px; font-weight: 900; }
.pcard__price small { margin-inline-start: 3px; color: var(--text-3); font-size: 11px; }
.pcard__old { display: flex; align-items: center; gap: 5px; font-size: 11.5px; }
.pcard__old del { color: var(--text-3); }
.pcard__old em { padding: 1px 6px; border-radius: 6px; background: var(--discount); color: #fff; font-style: normal; font-weight: 800; }
.pcard__pts { color: #b27c00; font-size: 11px; font-weight: 700; }
[data-theme="dark"] .pcard__pts { color: #f4c35a; }
.pcard__na { padding: 3px 10px; border-radius: 99px; background: var(--surface-soft); color: var(--text-3); font-size: 11.5px; font-weight: 800; }

.plan-terms { display: grid; gap: 12px; }
.plan-terms__head { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.plan-terms__head strong { font-size: 15px; }
.plan-terms__head span { color: var(--text-2); font-size: 12.5px; }
.plan-terms__body { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-size: 14px; line-height: 2.05; }
.plan-terms__body > :first-child { margin-top: 0; }
.plan-terms__body > :last-child { margin-bottom: 0; }
.plan-accept { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px 16px; border: 1.5px dashed var(--brand); border-radius: 16px; background: var(--surface); font-size: 14px; font-weight: 800; cursor: pointer; }
.plan-accept input { width: 20px; height: 20px; accent-color: var(--brand); }

.buy-box__points { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff8e6; color: #8a5d00; font-size: 12.5px; text-align: center; }
[data-theme="dark"] .buy-box__points { background: #2e2512; color: #f4c35a; }
.buy-box .buy-assure { margin-top: 4px; }

@media (min-width: 861px) {
	.plan-sheet .sheet__panel { width: min(860px, 100%); height: auto; max-height: min(88vh, 820px); }
}
@media (max-width: 860px) {
	.plan-sheet .sheet__panel { max-height: 92vh; }
	.plan-grid { grid-template-columns: 1fr; }
	.plan-sheet__cta { min-width: 0; flex: 0 0 auto; padding-inline: 18px; }
	.plan-sheet__scroll { padding: 12px 14px; }
}

/* Rush order toggle */
.rush-toggle { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 14px 16px; border: 1.5px dashed color-mix(in srgb, #f59e0b 55%, var(--border)); border-radius: 18px; background: color-mix(in srgb, #f59e0b 7%, var(--surface)); cursor: pointer; transition: border-color .15s, background .15s; }
.rush-toggle:has(input:checked) { border-style: solid; border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 14%, var(--surface)); }
.rush-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rush-toggle__switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; border-radius: 99px; background: var(--border); transition: background .2s; }
.rush-toggle__switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.rush-toggle input:checked + .rush-toggle__switch { background: #f59e0b; }
.rush-toggle input:checked + .rush-toggle__switch::after { transform: translateX(-18px); }
[dir="ltr"] .rush-toggle input:checked + .rush-toggle__switch::after { transform: translateX(18px); }
.rush-toggle input:focus-visible + .rush-toggle__switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.rush-toggle__text { display: grid; gap: 2px; line-height: 1.6; }
.rush-toggle__text strong { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 900; }
.rush-toggle__text strong .icon { width: 17px; height: 17px; color: #f59e0b; }
.rush-toggle__text small { color: var(--text-2); font-size: 12px; }
.rush-toggle__text b { color: #b45309; }
[data-theme="dark"] .rush-toggle__text b { color: #fbbf24; }
.plan-sheet__rush { padding: 0 6px; border-radius: 6px; background: #f59e0b; color: #fff; font-size: 11px; }
form.cart .rush-toggle { grid-column: 1 / -1; margin: 0 0 4px; }

/* ==========================================================================
   Filter sheet v2 (mobile bottom sheet / desktop dialog)
   ========================================================================== */
#filter-sheet .sheet__backdrop { background: rgb(10 8 20 / .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#filter-sheet .sheet__panel { max-height: 90vh; background: var(--bg); }
#filter-sheet .sheet__head { padding: 6px 18px 12px; border-bottom: 1px solid var(--border); }
.filter-form { padding: 14px 16px 0 !important; scrollbar-width: none; }
.filter-form::-webkit-scrollbar { display: none; }
.filter-form fieldset { margin: 0 0 12px; padding: 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.filter-form legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; color: var(--text); font-size: 13.5px; font-weight: 900; }
[dir="rtl"] .filter-form legend { float: right; }
.filter-form legend + * { clear: both; }
.filter-form .radio-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.filter-form fieldset:nth-of-type(2) .radio-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-form .radio-chips label { display: block; cursor: pointer; }
.filter-form .radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.filter-form .radio-chips span { display: grid; place-items: center; min-height: 42px; padding: 6px 8px; border: 1.5px solid transparent; border-radius: 13px; background: var(--surface-soft); color: var(--text-2); font-size: 12.5px; font-weight: 800; text-align: center; line-height: 1.5; transition: .15s; }
.filter-form .radio-chips input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
[data-theme="dark"] .filter-form .radio-chips input:checked + span { color: var(--brand-light); }
.filter-form .radio-chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.filter-form .price-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.filter-form .price-inputs label { display: flex; align-items: center; gap: 6px; height: 46px; padding-inline: 12px; border: 1.5px solid transparent; border-radius: 13px; background: var(--surface-soft); transition: border-color .15s; }
.filter-form .price-inputs label:focus-within { border-color: var(--brand); background: var(--surface); }
.filter-form .price-inputs span { flex-shrink: 0; color: var(--text-3); font-size: 12px; font-weight: 800; }
.filter-form .price-inputs input { flex: 1; min-width: 0; height: 100%; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--text); font: inherit; font-size: 14px; font-weight: 800; text-align: left; direction: ltr; -moz-appearance: textfield; }
.filter-form .price-inputs input::-webkit-outer-spin-button, .filter-form .price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-form fieldset:has(.switch-row) { padding: 4px 14px; }
.filter-form fieldset:has(.switch-row) legend { margin: 10px 0 4px; }
.filter-form .switch-row { margin: 0; padding: 12px 0; border: 0; border-radius: 0; background: none; font-weight: 700; }
.filter-form .switch-row + .switch-row { border-top: 1px solid var(--border); }
.filter-form__actions { position: sticky; bottom: 0; z-index: 2; margin: 4px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); grid-template-columns: 1fr auto; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.filter-form__actions .btn--primary { min-height: 50px; }
.filter-form__actions .btn--ghost { min-height: 50px; border: 0; background: none; color: var(--text-2) !important; }
@media (max-width: 860px) {
	/* The tab bar sits under the sheet; keep the actions above it. */
	#filter-sheet .sheet__body { padding-bottom: 0 !important; }
	#filter-sheet .sheet__panel { bottom: 0; }
}
@media (min-width: 861px) {
	#filter-sheet { display: grid; place-items: center; }
	#filter-sheet[hidden] { display: none; }
	#filter-sheet .sheet__panel { position: relative; width: min(560px, 100%); max-height: 86vh; border-radius: 26px; transform: translateY(14px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
	#filter-sheet.is-open .sheet__panel { transform: none; opacity: 1; }
	#filter-sheet .sheet__grab { display: none; }
	#filter-sheet .sheet__head { padding-top: 16px; }
}

.switch-row input::after { inset-inline-start: auto; left: auto; right: 3px; }
.switch-row input:checked::after { transform: translateX(-20px); }

/* Plans at a glance: one slim bar */
.plan-chips { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 4px; padding: 5px 6px 5px 5px; padding-inline: 10px 5px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.plan-chips__label { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding-inline-end: 8px; border-inline-end: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-chips__label .icon { width: 15px; height: 15px; color: var(--brand); }
.plan-chips__label b { color: var(--text); font-size: 13px; font-weight: 900; }
.plan-chips__row { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.plan-chips__row::-webkit-scrollbar { display: none; }
.plan-chip { flex-shrink: 0; padding: 6px 12px; border: 0; border-radius: 11px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 800; box-shadow: 0 1px 2px rgb(0 0 0 / .06); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.plan-chip:hover { background: var(--brand-grad); color: #fff; transform: translateY(-1px); }
.plan-chips__go { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; padding: 6px 6px 6px 10px; padding-inline: 10px 6px; border: 0; border-radius: 11px; background: transparent; color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; }
.plan-chips__go .icon { width: 16px; height: 16px; }
[data-theme="dark"] .plan-chip { box-shadow: none; border: 1px solid var(--border); }
[data-theme="dark"] .plan-chip:hover { border-color: transparent; }
@media (max-width: 480px) { .plan-chips__go { display: none; } }

/* Night-order question at checkout */
.night-call { margin: 0 0 14px; padding: 14px 16px; border: 1.5px solid #f59e0b; border-radius: 16px; background: color-mix(in srgb, #f59e0b 9%, var(--surface)); }
.night-call legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 14px; font-weight: 900; }
.night-call legend .icon { width: 18px; height: 18px; color: #d97706; }
.night-call p { margin: 4px 0 10px; color: var(--text-2); font-size: 13px; line-height: 1.9; }
.night-call__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.night-call__opts label { cursor: pointer; }
.night-call__opts input { position: absolute; opacity: 0; pointer-events: none; }
.night-call__opts span { display: grid; place-items: center; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 800; text-align: center; transition: .15s; }
.night-call__opts input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.night-call__opts input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

[data-theme="dark"] .pcard__dur, [data-theme="dark"] .plan-preview__name em { background: rgb(180 155 255 / .18); color: #d9c9ff; }
[data-theme="dark"] .plan-chips__label .icon { color: var(--brand-light); }

/* ==========================================================================
   Product info: stacked sections (description → details → Q&A → reviews)
   ========================================================================== */
.pdp-tabs { display: none; }
.pdp-info { grid-column: 1 / -1; display: grid; gap: 16px; min-width: 0; }
.pdp-info__nav { position: sticky; top: calc(var(--header-h) + var(--ab, 0px) + 50px); z-index: 20; display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pdp-info__nav::-webkit-scrollbar { display: none; }
.pdp-info__nav a { flex-shrink: 0; padding: 8px 16px; border-radius: 13px; color: var(--text-2); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.pdp-info__nav a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.pdp-info__nav small, .pdp-sec__title small { margin-inline-start: 4px; padding: 0 7px; border-radius: 99px; background: var(--surface-soft); color: var(--text-3); font-size: 11.5px; font-weight: 800; }
.pdp-sec { padding: clamp(16px, 2.6vw, 28px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + var(--ab, 0px) + 120px); min-width: 0; }
#reviews, #questions { scroll-margin-top: calc(var(--header-h) + var(--ab, 0px) + 170px); }
.pdp-sec__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.15rem; font-weight: 900; }
.pdp-sec__title::before { content: ""; width: 5px; height: 20px; border-radius: 4px; background: var(--brand-grad); }
.pdp-sec__body { position: relative; font-size: 15.5px; line-height: 2.1; overflow-wrap: anywhere; }
.pdp-sec__body > :first-child { margin-top: 0 !important; }
.pdp-sec__body > :last-child { margin-bottom: 0 !important; }
.pdp-sec__body[data-collapse] { overflow: hidden; transition: max-height .3s var(--ease); }
.pdp-sec__body.is-collapsed::after { content: ""; position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.pdp-sec__more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 12px; border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: 16px; background: color-mix(in srgb, var(--brand) 6%, transparent); color: var(--brand); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.pdp-sec__more[hidden] { display: none; }
.pdp-sec__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.pdp-sec__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
[data-theme="dark"] .pdp-sec__more { color: var(--brand-light); }
.pdp-sec table.woocommerce-product-attributes { width: 100%; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.pdp-sec .woocommerce-product-attributes th, .pdp-sec .woocommerce-product-attributes td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: start; }
/* Plans in «توضیحات تکمیلی» as cards (inc/woocommerce.php woocommerce_attribute); badges like the plan picker */
.attr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.attr-chips li, .attr-chips li > a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.attr-chips li { margin: 0; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); color: var(--text); font-size: 13px; line-height: 1.6; }
.attr-chips li > a { color: inherit; }
.attr-chips strong { font-weight: 800; }
.attr-chips__dur { padding: 1px 8px; border-radius: 7px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-size: 12px; font-weight: 700; }
.attr-chips__meta { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.attr-chips small { padding: 2px 8px; border-radius: 7px; background: var(--surface-soft); color: var(--text-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.attr-chips small.is-ok { background: var(--success-soft); color: var(--success); }
.attr-chips small.is-vip { background: #fff4dc; color: #a86b00; }
[data-theme="dark"] .attr-chips small.is-vip { background: #3a2c10; color: #f4c35a; }
.woocommerce-product-attributes td p:has(> .attr-chips) { margin: 0; }
@media (max-width: 600px) {
	/* phones: the attribute name sits above its plans, so the plans get the full width */
	.pdp-sec .woocommerce-product-attributes tr:has(.attr-chips) > th,
	.pdp-sec .woocommerce-product-attributes tr:has(.attr-chips) > td { display: block; width: auto; }
	.pdp-sec .woocommerce-product-attributes tr:has(.attr-chips) > th { padding-bottom: 4px; border-bottom: 0; }
	.attr-chips { gap: 6px; }
	.attr-chips li { padding: 7px 10px; font-size: 12.5px; }
}
.pdp-sec .woocommerce-product-attributes tr:last-child th, .pdp-sec .woocommerce-product-attributes tr:last-child td { border-bottom: 0; }
.pdp-sec .woocommerce-product-attributes th { width: 30%; background: var(--surface-soft); font-weight: 800; }
.pdp-sec .woocommerce-product-attributes td p { margin: 0; }
.pdp-sec--reviews .sbj-reviews__summary, .pdp-sec--reviews .sbj-rform, .pdp-sec--reviews .sbj-review__card, .pdp-sec--reviews .sbj-review-login { background: var(--surface-soft); }

/* Questions & answers */
.is-answer > .sbj-q__card > .sbj-q__mark { background: var(--success-soft); color: var(--success); }
[data-theme="dark"] .sbj-q__mark { color: var(--brand-light); }
.is-question > .sbj-q__card .sbj-q__text { font-weight: 800; }
@media (max-width: 600px) {
	.pdp-info__nav { top: calc(var(--header-h) + var(--ab, 0px) + 4px); border-radius: 14px; }
	.pdp-sec { border-radius: 20px; }
}

/* Mobile buy bar v3: the tab bar never moves. While the real buy button is off-screen the
   buy bar slides out from behind the tab bar and docks right above it (same width, same glass). */
@media (max-width: 860px) {
	.buy-bar { z-index: 89; inset-inline: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); min-height: 60px; padding: 7px; padding-inline: 16px 7px; border: .8px solid rgb(0 0 0 / .06); border-radius: 26px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 10px 26px rgb(0 0 0 / .12); transform: translateY(70px) scale(.96); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s; }
	[data-theme="dark"] .buy-bar { border-color: rgb(255 255 255 / .1); box-shadow: 0 10px 26px rgb(0 0 0 / .45); }
	.buy-bar.is-shown { transform: none; opacity: 1; pointer-events: auto; }
	.buy-bar__price { display: grid; line-height: 1.4; min-width: 0; }
	.buy-bar__price::before { content: "قیمت"; color: var(--text-3); font-size: 11px; font-weight: 700; }
	.buy-bar__price .price, .buy-bar__price { font-size: 14.5px; font-weight: 900; color: var(--text); }
	.buy-bar__price del { display: none; }
	.buy-bar .btn { min-height: 46px; padding-inline: 18px; border-radius: 19px; white-space: nowrap; }
	body.single-product { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
	body.has-buybar #goftino_w, body.has-buybar .goftino_w, body.has-buybar iframe[id^="goftino"], body.has-buybar .aichat-fab { bottom: calc(152px + env(safe-area-inset-bottom)) !important; }
	body:has(.sheet.is-open) .buy-bar, body.is-locked .buy-bar { opacity: 0; pointer-events: none; }
}

/* ==========================================================================
   Cart v3: summary card without table borders, item actions, "save for later"
   ========================================================================== */
.csum { padding: 20px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.csum__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.05rem; font-weight: 900; border: 0; padding: 0; }
.csum__title::before { content: ""; width: 5px; height: 18px; border-radius: 4px; background: var(--brand-grad); }
.csum__rows { display: grid; gap: 10px; margin: 0; }
.csum__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.csum__row dt { color: var(--text-2); font-weight: 600; }
.csum__row dd { margin: 0; font-weight: 800; text-align: end; }
.csum__row--off dd { color: var(--success); }
.csum__row--off a { color: var(--danger); font-size: 12px; font-weight: 700; }
.csum__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border: 0; }
.csum__total span { font-size: 14px; font-weight: 800; }
.csum__total strong { font-size: 1.3rem; font-weight: 900; }
.csum__total strong strong, .csum__total .amount { font-weight: 900; }
.csum .wc-proceed-to-checkout { margin-top: 14px; padding: 0; }
.csum .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 0; border-radius: 18px; font-size: 16px; }
.csum table, .csum th, .csum td { border: 0 !important; background: none !important; }
.cart-page__trust { margin-top: 12px; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--text-2) !important; font-size: 12px; font-weight: 700; width: auto; height: auto; }
.cart-item__remove:hover { color: #fff !important; background: var(--danger); }
.cart-item .product-subtotal, .cart-item .product-quantity, .cart-item .product-price, .cart-item .product-name { width: auto; }
.cart-item__side { min-width: 150px; }
.cart-item__side .cart-item__total { font-size: 1.1rem; }
.cart-empty-state { display: grid; justify-items: center; gap: 10px; max-width: 520px; margin: 20px auto 10px; padding: 34px 20px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); text-align: center; }
.cart-empty-state__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 28px; background: var(--soft-grad); color: var(--brand); }
.cart-empty-state__icon .icon { width: 38px; height: 38px; }
.cart-empty-state__title { margin: 6px 0 0; font-size: 1.3rem; }
.cart-empty-state p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 2; }
.cart-empty-state__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.woocommerce-cart .cart-empty.woocommerce-info, .woocommerce-cart .return-to-shop { display: none; }

/* Shop results loading in place */
.shop-layout { position: relative; }
.shop-layout.is-loading ul.products, .shop-layout.is-loading .shop-empty, .shop-layout.is-loading .woocommerce-pagination { opacity: .35; pointer-events: none; transition: opacity .15s; }
.shop-layout.is-loading::after { content: ""; position: fixed; top: 50%; left: 50%; z-index: 120; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 4px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); border-radius: 50%; background: transparent; animation: sbj-spin .7s linear infinite; }
.shop-empty { display: grid; justify-items: center; gap: 8px; margin: 18px auto; padding: 34px 20px; max-width: 560px; border: 1.5px dashed var(--border); border-radius: 26px; background: var(--surface); text-align: center; }
.shop-empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--soft-grad); color: var(--brand); }
.shop-empty__icon .icon { width: 32px; height: 32px; }
.shop-empty strong { font-size: 1.1rem; }
.shop-empty p { margin: 0; color: var(--text-2); font-size: 14px; }
.shop-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* Order fields (plan picker step, simple products, order views) */
.plan-fields__intro { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--success-soft); color: var(--success); font-size: 12.5px; font-weight: 700; line-height: 1.8; }
.plan-fields__intro .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.ofields { display: grid; gap: 12px; }
.ofield { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.ofield label { font-size: 13.5px; font-weight: 800; }
.ofield label small { color: var(--text-3); font-weight: 500; }
.ofield .req { color: var(--danger); }
.ofield input, .ofield textarea, .ofield select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 15px; }
.ofield input:focus, .ofield textarea:focus, .ofield select:focus { outline: 0; border-color: var(--brand); background: var(--surface); }
.ofield.is-bad input, .ofield.is-bad textarea, .ofield.is-bad select { border-color: var(--danger); }
.ofield__err { margin: 0; color: var(--danger); font-size: 12px; font-weight: 700; }
.ofield__secret { position: relative; display: block; }
.ofield__secret button { position: absolute; inset-inline-end: 6px; top: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--text-3); }
.ofield__secret .icon { width: 18px; height: 18px; }
.ofield__help { border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.ofield__help summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--brand); font-size: 12.5px; font-weight: 800; cursor: pointer; list-style: none; }
.ofield__help summary::-webkit-details-marker { display: none; }
.ofield__help summary .icon { width: 15px; height: 15px; }
[data-theme="dark"] .ofield__help summary { color: var(--brand-light); }
.ofield__help > div { padding: 0 12px 12px; }
.ofield__help p { margin: 0 0 8px; color: var(--text-2); font-size: 13px; line-height: 1.95; }
.ofield__video { display: block; width: 100%; max-height: 300px; border-radius: 12px; background: #000; }
.ofield__videolink { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--brand); color: #fff !important; font-size: 12.5px; font-weight: 800; }
.ofield__videolink .icon { width: 16px; height: 16px; }
.ofields-box { grid-column: 1 / -1; display: grid; gap: 10px; margin-bottom: 8px; }
.ofields-box__title { font-size: 14px; font-weight: 900; }
.ofields-view { display: grid; gap: 4px; margin: 8px 0 0; padding: 10px 12px; list-style: none; border-radius: 12px; background: var(--surface-soft, #f6f5fa); font-size: 13px; }
.ofields-view li { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.ofields-view span { color: var(--text-2, #666); }
.ofields-view bdi { font-weight: 800; overflow-wrap: anywhere; }


/* Plan description: the button is the confirmation */
p.plan-accept { align-items: flex-start; border: 0; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); color: var(--text-2); font-size: 13px; font-weight: 600; line-height: 1.9; cursor: default; }
p.plan-accept .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--brand); }

/* Tutorial video, played in place */
button.ofield__videolink { border: 0; cursor: pointer; font-family: inherit; }
.ofield__videolink.is-seen { background: var(--success-soft, #e7f7ee); color: var(--success, #12915a) !important; }
.ofvideo { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.ofvideo[hidden] { display: none; }
.ofvideo__backdrop { position: absolute; inset: 0; background: rgb(12 8 30 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ofvideo__panel { position: relative; display: grid; gap: 12px; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 14px; border-radius: 24px; background: var(--surface); box-shadow: 0 30px 80px rgb(0 0 0 / .4); animation: ofvideo-in .22s var(--ease, ease); }
@keyframes ofvideo-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ofvideo__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline-start: 6px; }
.ofvideo__head strong { font-size: 15px; }
.ofvideo__stage { aspect-ratio: 16 / 9; border-radius: 16px; background: #000; overflow: hidden; }
.ofvideo__stage video, .ofvideo__stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.ofvideo__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ofvideo__ask span { margin-inline-end: auto; color: var(--text-2); font-size: 13.5px; font-weight: 700; }
.ofvideo__ask .btn { min-width: 120px; }
.ofvideo__ask[hidden], .ofvideo__help[hidden] { display: none; }
.ofvideo__help { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.ofvideo__help p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.95; }
.ofvideo__help > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ofvideo__help .btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .ofvideo { padding: 10px; align-items: end; } .ofvideo__ask .btn { flex: 1; } }

/* Order fields: choice buttons ("type of account") and fields that depend on them */
.ofield[hidden] { display: none; }
.ofield__label { font-size: 13.5px; font-weight: 800; }
.ofield__label small { color: var(--text-3); font-weight: 500; }
.ofield__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ofield__choices label { position: relative; cursor: pointer; }
.ofield__choices input { position: absolute; opacity: 0; width: 1px; min-height: 0; height: 1px; padding: 0; pointer-events: none; }
.ofield__choices span { display: grid; place-items: center; min-height: 50px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 15px; background: var(--surface-soft); color: var(--text); font-size: 13.5px; font-weight: 800; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.ofield__choices label:hover span { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.ofield__choices input:checked + span { border-color: var(--brand); background: var(--tint); color: var(--on-tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.ofield__choices input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ofield.is-bad .ofield__choices span { border-color: var(--danger); }
.ofield[data-show-if]:not([hidden]) { animation: sbj-fade .25s var(--ease); }

/* A plugin box before the checkout form (wallet "use your balance") is floated: the form must
   start below it, not next to it (it was squeezed to zero width). */
.woocommerce-checkout form.checkout { clear: both; }

/* =========================================================================
   Checkout v2 — stepper, folded summary on phones, product cards, payment
   cards, errors under their own field, sticky action bar.
   ========================================================================= */

/* Stepper: numbered dots joined by a line, every label visible */
nav.flow-steps { margin: 0 0 22px; }
nav.flow-steps ol { display: flex !important; gap: 0 !important; overflow: visible !important; }
nav.flow-steps li { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: flex-start !important; gap: 7px !important; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--text-3) !important; font-size: 12px !important; font-weight: 800; text-align: center; }
nav.flow-steps li::after { content: ""; position: absolute; top: 15px; inset-inline-start: calc(50% + 21px); inset-inline-end: calc(-50% + 21px); height: 2px; border-radius: 2px; background: var(--line); }
nav.flow-steps li:last-child::after { display: none; }
nav.flow-steps li.is-done::after { background: var(--brand); }
nav.flow-steps li > span:not(.flow-steps__n), nav.flow-steps li > a { display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav.flow-steps .flow-steps__n { width: 32px; height: 32px; font-size: 13px; background: var(--surface) !important; border: 2px solid var(--line) !important; color: var(--text-3) !important; transition: background .2s, border-color .2s, box-shadow .2s; }
nav.flow-steps li.is-done { color: var(--text-2) !important; }
nav.flow-steps li.is-done .flow-steps__n { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
nav.flow-steps li.is-current { color: var(--ink) !important; }
nav.flow-steps li.is-current .flow-steps__n { border-color: var(--brand) !important; color: var(--brand) !important; box-shadow: 0 0 0 5px rgb(108 53 242 / .14); }
nav.flow-steps li.is-done a { color: inherit; }

/* Just above the payment methods: "use the wallet balance" (a switch) and the coupon box.
   Each is a card; the coupon opens to one row with the field and its button. */
.pay-extras { display: grid; gap: 10px; margin: 0 0 14px; }
.pay-extras:empty { display: none; }
#wal-redeem-wallet-fund-forms-wrapper:empty, #wal-discount-notice-for-gateway-wrapper:empty { display: none; }
.co-extra { --c: var(--brand); position: relative; display: block; overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color .15s, box-shadow .15s, opacity .15s; }
.co-extra--wallet { --c: var(--success); }
.co-extra.is-open, .co-extra.is-on { border-color: color-mix(in srgb, var(--c) 50%, var(--border)); }
.co-extra.is-on { background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.co-extra.is-busy { opacity: .6; pointer-events: none; }
.co-extra__head { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 13px 14px; border: 0; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.co-extra__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c); }
.co-extra__icon .icon { width: 20px; height: 20px; }
.co-extra__text { display: grid; flex: 1; min-width: 0; line-height: 1.75; }
.co-extra__text strong { font-size: 14px; font-weight: 900; }
.co-extra__text small { color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.co-extra__text small b, .co-extra__text small .amount { color: var(--text); font-weight: 900; }
.co-extra__cta { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 7px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--c); font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.co-extra__cta .icon { width: 15px; height: 15px; transition: transform .2s var(--ease, ease); }
.co-extra.is-open .co-extra__cta .icon { transform: rotate(180deg); }
.co-extra__body { margin: 0; padding: 2px 14px 14px; }
.co-extra__body[hidden] { display: none; }
.co-extra__row { display: flex; flex-wrap: wrap; gap: 8px; }
.co-extra__row .input-text { flex: 1 1 140px; min-width: 0; min-height: 50px; margin: 0; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface-soft, var(--surface)); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; text-align: center; }
.co-extra__row .input-text:focus { border-color: var(--c); background: var(--surface); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent); }
.co-extra__row .input-text.has-error { border-color: var(--danger); }
.co-extra__row .button { flex: none; min-height: 50px; margin: 0; padding: 0 22px; border: 0 !important; border-radius: 14px !important; background: var(--brand) !important; color: #fff !important; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.co-extra__msg { display: block; margin: 8px 0 0; color: var(--danger); font-size: 12.5px; font-weight: 700; line-height: 1.9; }
.co-extra__msg[hidden] { display: none; }
.pay-wallet > .co-extra__msg { margin: 0; padding: 0 14px 12px; }
.pay-wallet__note { display: block; margin: -4px 14px 12px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--success) 9%, var(--surface)); color: var(--text-2); font-size: 12px; line-height: 1.9; }
/* the switch */
.pay-switch__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pay-switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--border); transition: background .18s; }
.pay-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .25); transition: transform .18s var(--ease, ease); }
.pay-switch__input:checked + .pay-switch { background: var(--success); }
.pay-switch__input:checked + .pay-switch::after { transform: translateX(-18px); }
html[dir="ltr"] .pay-switch__input:checked + .pay-switch::after { transform: translateX(18px); }
.pay-switch__input:focus-visible + .pay-switch { box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); }
[data-theme="dark"] .pay-switch { background: rgb(255 255 255 / .16); }
@media (max-width: 420px) {
	.co-extra__head { gap: 10px; padding: 12px; }
	.co-extra__icon { width: 38px; height: 38px; border-radius: 12px; }
	.co-extra__cta { padding: 6px 10px; }
	.co-extra__row .button { flex: 1 1 100%; }
}
/* the wallet amount applied to the order: its "remove" link in the totals */
.wal-checkout-remove-partial-fund, .wal-cart-remove-partial-fund { display: inline-flex; margin-inline-start: 8px; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger) !important; font-size: 12px; font-weight: 800; text-decoration: none !important; vertical-align: middle; }
body.woocommerce-checkout:not(.co-at-payment) #wal-redeem-wallet-fund-forms-wrapper { display: none; }

/* Steps */
.co-summary [data-co-edit] { flex: none; white-space: nowrap; }
.woocommerce-checkout .co-step .form-row label { font-size: 13.5px; font-weight: 800; color: var(--text-2); }
.woocommerce-checkout .co-step .form-row .input-text { border-radius: 14px; font-size: 16px; }
.woocommerce-checkout .co-step .form-row .input-text:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(108 53 242 / .12); outline: 0; }
.woocommerce-checkout .co-step .form-row .description { margin-top: 2px; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.co-step .woocommerce-NoticeGroup, #order_review > .woocommerce-NoticeGroup { margin: 0 0 14px; }

/* Errors: under the field, never only at the top */
.checkout-inline-error-message { display: flex; align-items: flex-start; gap: 6px; order: 5; margin: 2px 0 0; color: var(--danger); font-size: 12.5px; font-weight: 700; line-height: 1.8; }
.checkout-inline-error-message::before { content: "!"; display: grid; place-items: center; flex: none; width: 17px; height: 17px; margin-top: 3px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 900; line-height: 1; }
.form-row.woocommerce-invalid .input-text, .form-row.woocommerce-invalid select { border-color: var(--danger) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 13%, transparent) !important; }
.form-row.woocommerce-invalid .segmented__opt:not(.is-selected) { border-color: color-mix(in srgb, var(--danger) 60%, var(--border)) !important; }
.night-call.woocommerce-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent); }
.night-call .checkout-inline-error-message { margin-top: 8px; }
.co-shake { animation: co-shake .42s var(--ease); }
@keyframes co-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .co-shake { animation: none; } }

/* Cart summary (side column) */
.co-cart__toggle, .co-cart__edit { display: none; }
.co-cart__head small { margin-inline-start: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.co-cart__trust { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.co-cart__trust .icon { flex: none; width: 17px; height: 17px; color: var(--success); }

/* Order review: products as cards */
#order_review .shop_table { border-radius: var(--r-xl); }
#order_review .shop_table thead { display: none; }
#order_review .shop_table th, #order_review .shop_table td { border-inline: 0; }
#order_review .shop_table tbody td { padding: 14px 16px; }
#order_review .shop_table td.product-total { width: 1%; white-space: nowrap; text-align: end; vertical-align: top; }
.ro-item { display: flex; align-items: flex-start; gap: 12px; }
.ro-item__img { flex: none; }
.ro-item__img img { display: block; width: 50px; height: 50px; object-fit: cover; border-radius: 13px; }
.ro-item__body { flex: 1; min-width: 0; }
.ro-item__name { display: block; color: var(--ink); font-size: 13.5px; font-weight: 800; line-height: 1.85; }
.ro-item .product-quantity { width: auto !important; color: var(--muted); font-size: 12px; font-weight: 800; }
.ro-item dl.variation { gap: 1px 6px; margin: 6px 0 0; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: 12px; line-height: 1.8; }
.ro-item dl.variation dt { font-weight: 700; white-space: nowrap; }
.ro-item dl.variation dd { min-width: 0; overflow-wrap: anywhere; color: var(--text-2); }
#order_review .shop_table tfoot th { color: var(--text-2); font-size: 13px; font-weight: 700; }
#order_review .shop_table tfoot td { text-align: end; }
#order_review .shop_table tfoot .order-total th, #order_review .shop_table tfoot .order-total td { padding-block: 16px; background: var(--surface-purple); color: var(--ink); font-weight: 900; }

/* Payment methods: the whole card is the choice */
.wc_payment_methods { gap: 10px; }
.wc_payment_method { position: relative; padding: 0 !important; overflow: hidden; }
.wc_payment_method > input.input-radio { position: absolute; top: 22px; inset-inline-start: 18px; width: 18px; height: 18px; margin: 0; opacity: 0; }
.wc_payment_method > label { display: flex !important; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px; font-size: 14.5px; }
.wc_payment_method > label::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--text-3); border-radius: 50%; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.wc_payment_method > input:checked + label::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--surface); }
.wc_payment_method > input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: -3px; border-radius: inherit; }
.wc_payment_method > label img { margin-inline-start: auto; max-height: 26px !important; }
.wc_payment_method .payment_box { margin: 0 !important; padding: 0 16px 14px; padding-inline-start: 48px; color: var(--text-2); font-size: 12.5px; line-height: 1.9; }
#place_order { border-radius: 18px; font-weight: 900; }

/* Phones & tablets */
@media (max-width: 1024px) {
	.co-cart__toggle { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; }
	.co-cart__toggle-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-purple); color: var(--brand); }
	.co-cart__toggle-ico .icon { width: 20px; height: 20px; }
	.co-cart__toggle-txt strong { display: block; font-size: 14px; }
	.co-cart__toggle-txt small { color: var(--muted); font-size: 12px; font-weight: 600; }
	.co-cart__toggle-sum { font-size: 14.5px; font-weight: 900; white-space: nowrap; }
	.co-cart__toggle-sum .woocommerce-Price-currencySymbol { color: var(--muted); font-size: 11px; font-weight: 700; }
	.co-cart__toggle-chev { display: grid; place-items: center; color: var(--muted); transition: transform .2s var(--ease); }
	.co-cart__toggle-chev .icon { width: 18px; height: 18px; }
	.co-aside.is-open .co-cart__toggle-chev { transform: rotate(180deg); }
	.co-cart__head, .co-cart__total, .co-cart__trust { display: none !important; }
	.co-aside.is-open .co-cart__items { display: block !important; border-top: 1px solid var(--line); }
	.co-aside.is-open .co-cart__edit { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; }
	.co-cart__edit .icon { width: 16px; height: 16px; }
	body.co-at-payment .co-aside { display: none; }
}
@media (max-width: 600px) {
	.co-step { padding: 18px 16px; }
	.co-step__head { gap: 12px; margin-bottom: 16px; }
	.co-step__num { width: 40px; height: 40px; border-radius: 13px; font-size: 14px; }
	.co-step__title { font-size: 1.1rem; }
	.co-summary { padding: 12px 14px; }
	/* Blocks instead of table columns: the totals' column widths would squeeze the products */
	#order_review .shop_table, #order_review .shop_table tbody, #order_review .shop_table tfoot { display: block; width: 100%; }
	#order_review .shop_table tfoot tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
	#order_review .shop_table tfoot tr:last-child { border-bottom: 0; }
	#order_review .shop_table tfoot tr > th, #order_review .shop_table tfoot tr > td { display: block; border-bottom: 0; }
	#order_review .shop_table tfoot .order-total { background: var(--surface-purple); }
	#order_review .shop_table tbody tr.cart_item { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	#order_review .shop_table tbody tr.cart_item:last-child { border-bottom: 0; }
	#order_review .shop_table tbody tr.cart_item > td { display: block; border-top: 0; }
	#order_review .shop_table tfoot { border-top: 1px solid var(--line); }
	#order_review .shop_table tfoot tr > th, #order_review .shop_table tfoot tr > td { border-top: 0; }
	#order_review .shop_table tbody td.product-name { flex: 1 1 100%; padding-bottom: 4px; border-bottom: 0; }
	#order_review .shop_table tbody td.product-total { flex: 1 1 100%; width: auto; padding-top: 0; padding-inline-start: 78px; border-bottom: 0; text-align: start; }
	#order_review .shop_table tbody td.product-total .amount { font-size: 14px; }
	nav.flow-steps li { font-size: 11px !important; }
	nav.flow-steps .flow-steps__n { width: 30px; height: 30px; font-size: 12px; }
	nav.flow-steps li::after { top: 14px; inset-inline-start: calc(50% + 20px); inset-inline-end: calc(-50% + 20px); }
}

/* Sticky action bar (phones): the tab bar steps aside during checkout */
.co-bar { display: none; }
@media (max-width: 860px) {
	body.has-co-bar .tabbar { display: none !important; }
	.co-bar { position: fixed; z-index: 95; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 8px; padding-inline-start: 16px; border: .8px solid rgb(0 0 0 / .06); border-radius: 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 -6px 22px -6px rgb(0 0 0 / .14), 0 2px 6px -2px rgb(0 0 0 / .08); transition: transform .28s var(--ease), opacity .2s; }
	.co-bar[hidden] { display: none; }
	.co-bar.is-away, body.is-locked .co-bar { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
	.co-bar__sum { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
	.co-bar__sum small { color: var(--muted); font-size: 11px; font-weight: 700; }
	.co-bar__sum strong { font-size: 15px; font-weight: 900; white-space: nowrap; }
	.co-bar__sum .woocommerce-Price-currencySymbol { color: var(--muted); font-size: 11px; font-weight: 700; }
	.co-bar__btn { flex: 1; min-width: 0; min-height: 50px; justify-content: center; border-radius: 16px; font-size: 14px; white-space: nowrap; }
	.co-bar__btn .icon { width: 18px; height: 18px; flex: none; }
	[data-theme="dark"] .co-bar { border-color: rgb(255 255 255 / .1); box-shadow: 0 -6px 22px -6px rgb(0 0 0 / .5), 0 2px 6px -2px rgb(0 0 0 / .3); }
}
#order_review .shop_table tfoot tr:not(.order-total) > th { background: none; }

/* Order fields: title + guide button on one row; the guide opens under the title */
.ofield__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ofield__head > label, .ofield__head > .ofield__label { min-width: 0; }
.ofield__guide { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 6px 12px; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand) !important; font: inherit; font-size: 12px; font-weight: 800; line-height: 1.4; white-space: nowrap; cursor: pointer; animation: of-guide-hint 1.8s var(--ease) .6s 2; }
.ofield__guide .icon { width: 15px; height: 15px; }
.ofield__guide:hover, .ofield__guide.is-open { background: var(--brand); color: #fff !important; }
.ofield__guide.is-seen { background: var(--success-soft, #e7f7ee); color: var(--success, #12915a) !important; }
[data-theme="dark"] .ofield__guide:not(.is-open):not(.is-seen) { background: color-mix(in srgb, var(--brand) 24%, transparent); color: var(--brand-light) !important; }
@keyframes of-guide-hint { 0%, 100% { box-shadow: 0 0 0 0 rgb(108 53 242 / 0); } 40% { box-shadow: 0 0 0 6px rgb(108 53 242 / .18); } }
@media (prefers-reduced-motion: reduce) { .ofield__guide { animation: none; } }
.ofield__help[hidden] { display: none; }
.ofield > .ofield__help { padding: 10px 12px 12px; animation: sbj-fade .2s var(--ease); }
.ofield__help-title { display: block; margin-bottom: 4px; color: var(--brand); font-size: 12.5px; font-weight: 900; }
[data-theme="dark"] .ofield__help-title { color: var(--brand-light); }

/* =========================================================================
   Thank-you page (woocommerce/checkout/thankyou.php)
   ========================================================================= */
.ty { display: grid; gap: 16px; max-width: 920px; margin-inline: auto; }
.ty > .flow-steps { margin-bottom: 4px; }
.ty-hero { position: relative; overflow: hidden; padding: 28px 22px 22px; border-radius: var(--r-xl); background: var(--brand-grad); color: #fff; text-align: center; box-shadow: var(--shadow-brand); }
.ty-hero::before { content: ""; position: absolute; width: 320px; height: 320px; top: -170px; inset-inline-start: -90px; border-radius: 50%; background: rgb(255 255 255 / .08); pointer-events: none; }
.ty-hero > * { position: relative; }
.ty-hero__icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; background: #fff; color: var(--success, #12915a); box-shadow: 0 0 0 8px rgb(255 255 255 / .16); animation: ty-pop .45s var(--ease) both; }
.ty-hero__icon .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.ty-hero.is-hold .ty-hero__icon { color: #d97706; }
.ty-hero.is-failed { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 14px 34px rgb(190 18 60 / .3); }
.ty-hero.is-failed .ty-hero__icon { color: #be123c; }
@keyframes ty-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ty-hero__icon { animation: none; } }
.ty-hero__title { margin: 0 0 6px; color: #fff; font-size: clamp(1.2rem, 3.4vw, 1.6rem); font-weight: 900; }
.ty .ty-hero .woocommerce-thankyou-order-received, .ty .ty-hero .woocommerce-thankyou-order-failed { margin: 0 auto; max-width: 560px; padding: 0; border: 0; border-radius: 0; background: none !important; box-shadow: none; color: rgb(255 255 255 / .88) !important; font-size: 14px; font-weight: 600; line-height: 2; text-align: center; display: block; }
.ty .ty-hero .woocommerce-thankyou-order-received::before, .ty .ty-hero .woocommerce-thankyou-order-failed::before { display: none; }
.ty .ty-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; background: none; border: 0; }
.ty .ty-facts li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / .2) !important; border-radius: 16px; background: rgb(255 255 255 / .12); color: rgb(255 255 255 / .75); font-size: 11.5px; text-align: center; }
.ty .ty-facts li strong { display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 14px; font-weight: 900; }
.ty .ty-facts .amount, .ty .ty-facts .woocommerce-Price-currencySymbol { color: #fff; }
.ty-copy { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: rgb(255 255 255 / .18); color: #fff; cursor: pointer; }
.ty-copy .icon { width: 14px; height: 14px; }
.ty-copy.is-done { background: #fff; color: var(--success, #12915a); }
.ty-hero .ty-actions { margin-top: 18px; }
.ty-hero .btn--primary { background: #fff !important; color: #be123c !important; }
.ty-hero .btn--ghost { background: rgb(255 255 255 / .16); border-color: transparent; color: #fff !important; }

.ty-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.ty-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.ty-card__title { margin: 0 0 14px; font-size: 1rem; font-weight: 900; }
.ty-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ty-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.ty-steps li:last-child { padding-bottom: 0; }
.ty-steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; bottom: 2px; inset-inline-start: 14px; width: 2px; border-radius: 2px; background: var(--line); }
.ty-steps li.is-done:not(:last-child)::after { background: var(--brand); }
.ty-steps__dot { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text-3); font-size: 12.5px; font-weight: 900; }
.ty-steps__dot .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.ty-steps li.is-done .ty-steps__dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.ty-steps li.is-now .ty-steps__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px rgb(108 53 242 / .14); }
.ty-steps strong { display: block; font-size: 14px; font-weight: 900; }
.ty-steps small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.9; }
.ty-delivery__row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.ty-delivery__row small { display: block; color: var(--text-2); font-size: 12px; }
.ty-delivery__row strong { display: block; font-size: 16px; font-weight: 900; overflow-wrap: anywhere; text-align: start; }
.ty-delivery__app, .ty-support__icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; }
.ty-delivery__app .brand-icon, .ty-support__icon .brand-icon { width: 24px; height: 24px; }
.ty-delivery__app--telegram, .ty-support__icon--telegram { background: #2aabee; }
.ty-delivery__app--bale, .ty-support__icon--bale { background: #19b28a; }
.ty-delivery__note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.9; }
.ty-delivery__note .icon { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--brand); }
.ty-support__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ty-support__btn { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink) !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ty-support__btn:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.ty-support__text { min-width: 0; }
.ty-support__text strong { display: block; font-size: 13px; font-weight: 900; }
.ty-support__text small { display: block; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ty-actions .btn { min-width: 180px; justify-content: center; }
.ty .woocommerce-order-details, .ty .woocommerce-customer-details { margin-top: 8px; }
[data-theme="dark"] .ty-card, [data-theme="dark"] .ty-support__btn { border-color: var(--line); }
@media (max-width: 860px) {
	.ty-grid { grid-template-columns: 1fr; }
	.ty-support__grid { grid-template-columns: 1fr 1fr; }
	.ty .ty-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
	.ty-hero { padding: 24px 14px 16px; }
	.ty-card { padding: 16px; }
	.ty-support__btn { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 8px; text-align: center; }
	.ty-actions .btn { flex: 1 1 100%; }
}
