/*
Theme Name: زرکالا
Template: wpf
Description: Brand layer for kalayhome. Colors, font, header and footer are Customizer options (set at install from site.json); extra CSS below, section patterns in patterns/. No PHP logic here — that goes in the wpf-site-kalayhome plugin.
Version: 1.3.0
Text Domain: wpf-kalayhome
*/

/* ---------- hero: the mother's wpf-slider with SVG art (patterns/home.php) ---------- */
.kh-hero { background: var(--wpf-surface); border-bottom: 1px solid var(--wpf-line); }
.kh-hero .wpf-slides { border-radius: 0; }
.kh-slide { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 2rem; padding: 2.2rem 3.4rem 2.8rem; }
.kh-slide__kicker { display: inline-block; margin: 0 0 .7rem !important; padding: .2rem .7rem; border-radius: 99px; background: #fff; border: 1px solid var(--wpf-line); color: var(--wpf-primary); font-size: .85rem; font-weight: 700; }
.kh-slide h1, .kh-slide h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.35; font-weight: 800; margin: 0 0 .8rem; text-wrap: balance; }
.kh-slide__txt p:not(.kh-slide__kicker) { color: var(--wpf-ink-2); max-width: 40ch; margin: 0 0 1.4rem; }
.kh-hero .wpf-dots button { background: var(--wpf-line-2); }
.kh-hero .wpf-dots button.is-on { background: var(--wpf-primary); }
@media (max-width: 760px) {
	.kh-slide { grid-template-columns: 1fr; gap: .4rem; padding: 1.2rem 0 2.6rem; }
	.kh-art { order: -1; max-width: 300px; margin-inline: auto; width: 100%; }
}

/* SVG art: colors follow the Customizer palette */
.kh-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.kh-art .ln { fill: none; stroke: var(--wpf-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.kh-art .ln.thick { stroke-width: 7; }
.kh-art .st { stroke: var(--wpf-muted); stroke-width: 2.5; opacity: .7; }
.kh-art .bd { fill: #fff; stroke: var(--wpf-ink); stroke-width: 3; stroke-linejoin: round; }
.kh-art .acc { fill: var(--wpf-accent); }
.kh-art .pri-l { fill: var(--wpf-primary-l); }
.kh-art .sh { fill: var(--wpf-ink); opacity: .07; }
.kh-art .dust { fill: var(--wpf-muted); opacity: .5; }

/* light motion: transform and opacity only; off when the visitor asks for less motion */
@media (prefers-reduced-motion: no-preference) {
	/* only parts that move; a fill-box origin would also shift the static rotate() attributes */
	.kh-steam, .kh-float, .kh-spin, .kh-dust, .kh-twinkle { transform-box: fill-box; transform-origin: center; }
	.kh-steam { animation: kh-steam 2.6s ease-in-out infinite; }
	.kh-glow { animation: kh-glow 2.4s ease-in-out infinite; }
	.kh-float { animation: kh-float 5s ease-in-out infinite; }
	.kh-spin { animation: kh-spin 9s linear infinite; }
	.kh-sweep { animation: kh-sweep 3.2s ease-in-out infinite; transform-box: view-box; }
	.kh-dust { animation: kh-dust 1.6s ease-out infinite; }
	.kh-twinkle { animation: kh-twinkle 2.2s ease-in-out infinite; }
	.kh-art .d1 { animation-delay: .6s; }
	.kh-art .d2 { animation-delay: 1.2s; }
}
@keyframes kh-steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes kh-glow { 50% { opacity: .55; } }
@keyframes kh-float { 50% { transform: translateY(-10px); } }
@keyframes kh-spin { to { transform: rotate(360deg); } }
@keyframes kh-sweep { 50% { transform: translateX(-22px); } }
@keyframes kh-dust { 0% { opacity: .7; transform: none; } 100% { opacity: 0; transform: translate(-14px, -10px); } }
@keyframes kh-twinkle { 50% { opacity: .35; transform: scale(.55); } }

/* ---------- product page: advice box under the add-to-cart button (plugin includes/consult.php) ---------- */
.kh-consult { margin: .9rem 0 1rem; padding: .9rem 1rem; border: 1px solid var(--wpf-line); border-radius: var(--wpf-radius); background: var(--wpf-surface); }
.kh-consult p { margin: 0 0 .6rem; font-size: .92rem; color: var(--wpf-ink-2); }
.kh-consult__tels { display: flex; flex-wrap: wrap; gap: .6rem; }
.kh-consult__tel { flex: 1 1 11rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid var(--wpf-primary); border-radius: var(--wpf-radius); background: #fff; color: var(--wpf-primary); text-decoration: none; font-size: .88rem; }
.kh-consult__tel strong { font-size: 1rem; color: var(--wpf-ink); }
.kh-consult__tel:hover { background: var(--wpf-primary-l); }
.kh-askprice { color: var(--wpf-primary); font-weight: 700; font-size: .95rem; }

/* ---------- category pages: sub-category boxes (plugin includes/category-browse.php) ---------- */
.tax-product_cat .wpf-catchips { display: none; }
.kh-subcats-wrap { margin: 0 0 1.2rem; }
.kh-subcats { grid-template-columns: repeat(auto-fill, minmax(min(13.5rem, 100%), 1fr)); gap: .65rem; }
.kh-subcats a { grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: .75rem; padding: .7rem .85rem; }
.kh-subcats .wpf-ci { width: 2.6rem; height: 2.6rem; }
.kh-subcats .wpf-caticons__t { font-size: .86rem; align-self: end; }
.kh-subcats .wpf-caticons__n { align-self: start; }
@media (max-width: 760px) {
	/* phones: one scrolling row instead of a tall grid */
	.kh-subcats { display: flex; gap: .55rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .4rem; scrollbar-width: thin; }
	.kh-subcats li { flex: 0 0 min(13rem, 62vw); scroll-snap-align: start; }
	.kh-subcats a { height: 100%; }
}

/* ---------- shop filters (plugin includes/shop-filters.php) ---------- */
@media (min-width: 961px) { .wpf-woo .wpf-layout__side { max-height: calc(100vh - 9.5rem); overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 960px) {
	/* a closed filter drawer must not leak its shadow onto the page edge or take keyboard focus */
	.wpf-filters { transition: transform .22s, visibility 0s linear .22s; }
	.wpf-filters:not(.is-open) { box-shadow: none; visibility: hidden; }
	.wpf-filters.is-open { visibility: visible; transition-delay: 0s; }
	.wpf-filters .wpf-drawer__head { display: flex !important; justify-content: space-between; align-items: center; }
}
.kh-filter { display: block; }
.kh-filter__reset { display: inline-block; margin: 0 0 .7rem; font-size: .82rem; font-weight: 700; color: var(--wpf-primary); }
.kh-fs summary { cursor: pointer; font-weight: 700; font-size: .9rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.kh-fs summary::-webkit-details-marker { display: none; }
.kh-fs summary::after { content: ""; width: .5rem; height: .5rem; border: solid var(--wpf-muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .15s; }
.kh-fs[open] summary::after { transform: rotate(-135deg); }
.kh-fs[open] > summary { margin-bottom: .7rem; }
.kh-switch { display: flex; align-items: center; gap: .6rem; padding: .25rem 0; font-size: .88rem; cursor: pointer; }
.kh-switch input { appearance: none; flex: none; width: 2.3rem; height: 1.3rem; margin: 0; border-radius: 99px; background: var(--wpf-line-2); position: relative; cursor: pointer; transition: background .15s; }
.kh-switch input::after { content: ""; position: absolute; top: .15rem; inset-inline-start: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 32, .3); transition: inset-inline-start .15s; }
.kh-switch input:checked { background: var(--wpf-primary); }
.kh-switch input:checked::after { inset-inline-start: 1.15rem; }
.kh-list { display: flex; flex-direction: column; gap: .1rem; max-height: 13.5rem; overflow-y: auto; padding-inline-end: .3rem; scrollbar-width: thin; }
.kh-opt { display: flex; align-items: center; gap: .55rem; padding: .22rem 0; font-size: .86rem; cursor: pointer; }
.kh-opt input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--wpf-primary); }
.kh-opt span { flex: 1; min-width: 0; }
.kh-opt small { color: var(--wpf-muted); font-size: .74rem; }
.kh-colors { display: flex; flex-wrap: wrap; gap: .4rem; }
.kh-chip { cursor: pointer; }
.kh-chip input { position: absolute; opacity: 0; pointer-events: none; }
.kh-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem .22rem .6rem; border: 1px solid var(--wpf-line-2); border-radius: 99px; background: #fff; font-size: .8rem; color: var(--wpf-ink-2); transition: border-color .15s, background .15s; }
.kh-chip:hover span { border-color: var(--wpf-primary); }
.kh-chip input:checked + span { border-color: var(--wpf-primary); background: var(--wpf-primary-l); color: var(--wpf-primary); font-weight: 700; }
.kh-chip input:focus-visible + span { outline: 2px solid var(--wpf-primary); outline-offset: 2px; }
.kh-dot { width: .85rem; height: .85rem; border-radius: 50%; border: 1px solid rgba(15, 23, 32, .25); flex: none; }
.kh-dot--none { background: conic-gradient(#dc2626, #facc15, #16a34a, #2563eb, #dc2626); }
.kh-price { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.kh-price label { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--wpf-muted); min-width: 0; }
.kh-price input { width: 100%; min-width: 0; padding: .4rem .5rem; border: 1px solid var(--wpf-line-2); border-radius: var(--wpf-radius); font-size: .82rem; text-align: center; }
.kh-apply { width: 100%; justify-content: center; }
@media (min-width: 961px) { .kh-filter.kh-auto .kh-apply { display: none; } }
@media (max-width: 960px) {
	.kh-filter { padding-bottom: 4.5rem; }
	.kh-apply { position: sticky; bottom: 0; margin-top: .6rem; box-shadow: 0 -10px 18px #fff; }
}

/* ---------- cart, checkout, WooCommerce notices (mother shop.css leaves these almost unstyled) ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; list-style: none; margin: 0 0 .8rem; padding: .8rem 1rem; border: 1px solid var(--wpf-line); border-inline-start: 4px solid var(--wpf-primary); border-radius: var(--wpf-radius); background: var(--wpf-surface); color: var(--wpf-ink); font-size: .92rem; }
.woocommerce-error { border-color: #f0c6c0; border-inline-start-color: #b42318; background: #fff6f5; }
.woocommerce-error li { flex: 1 1 100%; }
.woocommerce-message .button, .woocommerce-error .button { padding: .4rem 1rem; font-size: .85rem; white-space: nowrap; }
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.woocommerce-cart .woocommerce > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 981px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr) 23rem; }
	.woocommerce-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; }
	.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: 1rem; }
}
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--wpf-line); border-radius: var(--wpf-radius); overflow: hidden; background: #fff; font-size: .92rem; }
table.shop_table th { padding: .75rem 1rem; background: var(--wpf-surface); border-bottom: 1px solid var(--wpf-line); font-weight: 700; color: var(--wpf-ink-2); text-align: start; font-size: .85rem; }
table.shop_table td { padding: .9rem 1rem; border-bottom: 1px solid var(--wpf-line); text-align: start; vertical-align: middle; }
table.shop_table tr:last-child > td, table.shop_table tr:last-child > th { border-bottom: 0; }
table.cart .product-remove { width: 3rem; padding-inline-end: 0; }
table.cart .product-thumbnail { width: 6rem; }
table.cart .product-thumbnail img { display: block; width: 5rem; height: 5rem; object-fit: contain; background: var(--wpf-surface); border-radius: 8px; }
table.cart .product-name a { color: var(--wpf-ink); font-weight: 700; line-height: 1.7; }
table.cart .product-name a:hover { color: var(--wpf-primary); }
table.cart .product-price, table.cart .product-subtotal { white-space: nowrap; }
table.cart .product-subtotal { font-weight: 800; color: var(--wpf-ink); }
.woocommerce-Price-currencySymbol { font-size: .78em; font-weight: 500; color: var(--wpf-muted); }
a.remove { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--wpf-line-2); border-radius: 50%; color: var(--wpf-muted) !important; font-size: 1.15rem; line-height: 1; background: #fff; }
a.remove:hover { border-color: #b42318; background: #fff6f5; color: #b42318 !important; }
table.cart .quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--wpf-line-2); border-radius: var(--wpf-radius); overflow: hidden; background: #fff; }
table.cart .quantity .qty { width: 2.8rem; padding: .4rem 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
table.cart .quantity .qty::-webkit-outer-spin-button, table.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
table.cart .wpf-qty { width: 2.3rem; border: 0; background: var(--wpf-surface); color: var(--wpf-ink); font-size: 1.1rem; cursor: pointer; }
table.cart .wpf-qty:hover { background: var(--wpf-line); }
table.cart td.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; background: var(--wpf-surface); border-bottom: 0; }
table.cart td.actions .coupon { display: flex; flex: 1 1 18rem; gap: .5rem; max-width: 28rem; }
table.cart td.actions .coupon .input-text { flex: 1; min-width: 0; width: auto; }
table.cart td.actions .button { white-space: nowrap; }
table.cart td.actions > .button[name="update_cart"] { background: #fff; color: var(--wpf-ink-2) !important; border-color: var(--wpf-line-2); }
table.cart td.actions > .button[name="update_cart"]:not([disabled]) { background: var(--wpf-ink); color: #fff !important; border-color: var(--wpf-ink); }
table.cart td.actions .button[disabled] { opacity: .5; cursor: not-allowed; }

.cart_totals { border: 1px solid var(--wpf-line); border-radius: var(--wpf-radius); background: #fff; padding: 1.1rem 1.1rem 1.2rem; }
.cart_totals > h2 { margin: 0 0 .8rem; font-size: 1.1rem; font-weight: 800; }
.cart_totals table.shop_table { border: 0; border-radius: 0; }
.cart_totals table.shop_table th { background: transparent; padding: .8rem .3rem; width: 5.5rem; vertical-align: top; }
.cart_totals table.shop_table td { padding: .8rem .3rem; text-align: end; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: 1.02rem; font-weight: 800; color: var(--wpf-ink); }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; text-align: start; }
.woocommerce-shipping-methods li { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; line-height: 1.7; margin: 0; }
.woocommerce-shipping-methods input { margin-top: .45rem; accent-color: var(--wpf-primary); }
.woocommerce-shipping-destination { margin: .6rem 0 0; font-size: .85rem; color: var(--wpf-ink-2); text-align: start; }
.shipping-calculator-button { font-size: .85rem; font-weight: 600; text-decoration: underline; }
.shipping-calculator-form { display: grid; gap: .6rem; margin-top: .6rem; text-align: start; }
.shipping-calculator-form p { margin: 0; }
.wc-proceed-to-checkout { padding-top: .4rem; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; padding: .9rem 1rem; font-size: 1rem; margin: 0; }
.cart-empty { margin-bottom: 1rem; }
.return-to-shop { margin: 0 0 3rem; }

@media (max-width: 768px) {
	table.shop_table.cart { border: 0; background: transparent; overflow: visible; }
	table.cart tr.cart_item { position: relative; display: grid !important; grid-template-columns: 5.2rem minmax(0, 1fr); column-gap: .9rem; row-gap: .15rem; margin-bottom: .8rem; padding: .9rem; border: 1px solid var(--wpf-line); border-radius: var(--wpf-radius); background: #fff; }
	table.cart tr.cart_item td { padding: 0; border: 0; }
	table.cart tr.cart_item .product-thumbnail { grid-column: 1; grid-row: 1 / span 4; width: auto; display: block; }
	table.cart tr.cart_item .product-thumbnail img { width: 5.2rem; height: 5.2rem; }
	table.cart tr.cart_item .product-name { grid-column: 2; display: block; padding-inline-end: 2.3rem; text-align: start; }
	table.cart tr.cart_item .product-name::before { display: none; }
	table.cart tr.cart_item .product-remove { position: absolute; inset-block-start: .7rem; inset-inline-end: .7rem; width: auto; }
	table.cart tr.cart_item .product-price, table.cart tr.cart_item .product-quantity, table.cart tr.cart_item .product-subtotal { grid-column: 2; display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }
	table.cart tr.cart_item .product-price::before, table.cart tr.cart_item .product-quantity::before, table.cart tr.cart_item .product-subtotal::before { font-weight: 500; color: var(--wpf-muted); }
	table.cart tbody tr:last-child { display: block; }
	table.cart td.actions { display: grid; padding: .9rem; border: 1px solid var(--wpf-line); border-radius: var(--wpf-radius); }
	table.cart td.actions .coupon { max-width: none; }
	table.cart td.actions > .button { width: 100%; }
	.cart_totals table.shop_table tr { display: grid; grid-template-columns: 5rem minmax(0, 1fr); padding: 0; border: 0; }
	.cart_totals table.shop_table th, .cart_totals table.shop_table td { display: block; width: auto; }
	.cart_totals table.shop_table td[data-title]::before { display: none; }
	.cart_totals table.shop_table td { text-align: end; }
	.cart_totals table.shop_table tr.shipping td { text-align: start; }
	.woocommerce-message .button { width: 100%; }
}

/* checkout */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2rem; align-items: start; }
.woocommerce-checkout form.checkout > * { min-width: 0; }
@media (min-width: 981px) {
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
	.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
	.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 1rem; }
}
.woocommerce-checkout h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .8rem; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.woocommerce-checkout .form-row { margin: 0 0 .9rem; padding: 0; }
.woocommerce-checkout .form-row-wide, .woocommerce-checkout .notes, .woocommerce-checkout #billing_address_1_field { grid-column: 1 / -1; }
.woocommerce-checkout .form-row label { display: block; margin-bottom: .3rem; font-size: .85rem; font-weight: 600; color: var(--wpf-ink-2); }
.woocommerce-checkout .form-row .required { color: #b42318; text-decoration: none; }
.woocommerce-checkout select, .woocommerce-checkout textarea { width: 100%; min-height: 2.8rem; border: 1px solid var(--wpf-line-2); border-radius: var(--wpf-radius); padding: .5rem .8rem; background: #fff; font: inherit; }
.woocommerce-checkout #billing_email_field input, .woocommerce-checkout #billing_phone_field input, .woocommerce-checkout #billing_postcode_field input { direction: ltr; text-align: right; }
.woocommerce-checkout .woocommerce-form-coupon-toggle { margin-bottom: 1rem; }
#order_review table.shop_table th { width: auto; }
#order_review table.shop_table .product-name { font-weight: 600; }
#order_review table.shop_table td:last-child, #order_review table.shop_table tfoot td { text-align: end; }
#order_review .order-total td, #order_review .order-total th { font-weight: 800; font-size: 1.02rem; }
#payment { margin-top: 1rem; padding: 1rem; border: 1px solid var(--wpf-line); border-radius: var(--wpf-radius); background: var(--wpf-surface); }
#payment ul.payment_methods { list-style: none; margin: 0 0 .8rem; padding: 0; }
#payment .payment_box { margin: .4rem 0 0; font-size: .85rem; color: var(--wpf-ink-2); }
#payment .payment_box p { margin: 0; }
#payment .woocommerce-privacy-policy-text { font-size: .8rem; color: var(--wpf-muted); }
#payment #place_order { display: flex; width: 100%; padding: .9rem 1rem; font-size: 1rem; }
@media (max-width: 640px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
}

/* cart pass 2: placeholder art is an svg, narrower table so it never spills into the totals column */
table.cart .product-thumbnail a { display: block; width: 5rem; height: 5rem; }
table.cart .product-thumbnail svg { display: block; width: 100%; height: 100%; border-radius: 8px; }
table.shop_table.cart td, table.shop_table.cart th { padding-inline: .6rem; }
@media (min-width: 981px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr) 21rem; }
	table.cart .product-name { min-width: 9rem; }
}
@media (min-width: 769px) and (max-width: 1240px) {
	table.cart th.product-price, table.cart td.product-price { display: none; }
}
@media (max-width: 768px) {
	table.cart tr.cart_item .product-thumbnail a { width: 5.2rem; height: 5.2rem; }
}
/* the coupon/update row: keep td.actions a real table cell (a flex td made a phantom column), lay it out with floats */
@media (min-width: 769px) {
	table.cart td.actions { display: table-cell; }
	table.cart td.actions::after { content: ""; display: block; clear: both; }
	table.cart td.actions .coupon { float: inline-start; width: 26rem; max-width: 70%; }
	table.cart td.actions > .button[name="update_cart"] { float: inline-end; }
}

/* cart pass 3: the page container is ~856px, too narrow for table + sidebar: totals go under the table, at the end side */
@media (min-width: 981px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .woocommerce > .woocommerce-cart-form, .woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 1; }
	.woocommerce-cart .woocommerce > .cart-collaterals { position: static; }
	.cart-collaterals .cart_totals { width: 26rem; max-width: 100%; margin-inline-start: auto; }
}

/* checkout pass 2: heading row must not stretch */
@media (min-width: 981px) {
	.woocommerce-checkout form.checkout { grid-template-rows: auto 1fr; row-gap: .8rem; }
	#order_review table.shop_table tfoot th { width: 7rem; }
}
