/* ==========================================================================
   Checkout skin — the RenderMe glass 2-column checkout drawn OVER WooCommerce's
   classic checkout (markup: woocommerce/checkout/form-checkout.php, wiring:
   js/checkout.js, data: inc/checkout.php). Everything is scoped under
   .rm-checkout so it never leaks into other WooCommerce pages. Uses the theme
   tokens (css/tokens.css) — no hard-coded colors.
   ========================================================================== */

/* The checkout renders straight inside the page content (no section wrapper),
   so give it the same top/bottom breathing room every inner page has, plus a
   side gutter. */
.rm-checkout { max-width: var(--container-max); margin-inline: auto; padding-block: var(--space-16); padding-inline: var(--container-pad); }
@media (max-width: 767px) { .rm-checkout { padding-block: var(--space-8); padding-inline: 16px; } }

.rm-co {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: var(--space-6);
	align-items: start;
}
@media (max-width: 920px) { .rm-co { grid-template-columns: 1fr; } }

.rm-checkout [hidden] { display: none !important; }

/* Glass panels — same recipe as the site contact panels (translucent fill +
   border over the dark page), NO backdrop-filter (it produced a GPU tile seam). */
.rm-glass {
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-6);
}
.rm-panel-t {
	font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
	color: var(--color-text); font-weight: 700; margin-bottom: var(--space-4);
}

/* ---- Order items (image left, text + price right) ---- */
.rm-item {
	display: grid; grid-template-columns: 220px 1fr; gap: var(--space-4);
	background: var(--color-bg-elevated); border: 1px solid var(--color-border);
	border-radius: var(--radius-md); padding: 14px; position: relative;
}
.rm-item + .rm-item { margin-top: var(--space-3); }
.rm-item__media {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
	overflow: hidden; align-self: center; background: var(--gradient-brand);
	background-size: cover; background-position: center;
}
.rm-badge {
	position: absolute; top: 10px; left: 10px; height: 24px; padding: 0 10px;
	display: inline-flex; align-items: center; font-size: 10px; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase; color: var(--color-text);
	background: rgba(5, 5, 6, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm);
}
.rm-item__x {
	position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
	border: 1px solid var(--color-border-strong); background: rgba(5, 5, 6, .6);
	color: var(--color-text-muted); display: grid; place-items: center; font-size: 12px; text-decoration: none;
}
.rm-item__x:hover { color: var(--color-text); border-color: var(--color-text); }
.rm-item__body { display: flex; flex-direction: column; min-width: 0; }
.rm-item__name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.rm-item__desc {
	color: var(--color-text-muted); font-size: 13px; margin-top: 6px;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.rm-item__price {
	margin-top: auto; align-self: flex-end; font-family: var(--font-heading); font-weight: 700;
	font-size: 20px; padding-top: 10px;
	background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 520px) { .rm-item { grid-template-columns: 1fr; } }

/* ---- Options: gift + inputs ---- */
.rm-opt { display: flex; align-items: center; gap: 10px; margin-top: var(--space-5); font-size: 14px; color: var(--color-text); cursor: pointer; }
.rm-opt input { accent-color: var(--color-magenta); width: 17px; height: 17px; }
.rm-sub { margin-top: var(--space-3); display: grid; gap: 10px; }
.rm-f label { display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 5px; }
.rm-txt {
	width: 100%; background: var(--color-bg-elevated); border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm); color: var(--color-text); padding: 11px 12px; font: inherit; font-size: 14px;
}
textarea.rm-txt { resize: vertical; min-height: 64px; }
.rm-txt::placeholder { color: var(--color-text-faint); }
.rm-txt:focus { outline: none; border-color: var(--color-magenta); }

/* ---- Tip chips (no real border on the gradient state → no stray edge) ---- */
.rm-tip { margin-top: var(--space-5); }
.rm-block-t { font-size: 14px; color: var(--color-text-muted); font-weight: 600; margin-bottom: 10px; }
.rm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-chip {
	height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: none;
	background: var(--color-bg-elevated); box-shadow: inset 0 0 0 1px var(--color-border-strong);
	color: var(--color-text-muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
	transition: background .3s, color .3s, box-shadow .3s;
}
.rm-chip:hover { background: var(--color-bg-elevated-hover); color: var(--color-text); }
.rm-chip.on { background: var(--gradient-brand-btn); color: #fff; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .16); }
.rm-chip:focus { outline: none; }
.rm-tipcustom { flex: 1 1 140px; min-width: 0; }
.rm-amt {
	display: flex; align-items: stretch; height: 44px; background: var(--color-bg-elevated);
	border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--color-border-strong); overflow: hidden; transition: box-shadow .3s;
}
.rm-amt.is-active { box-shadow: inset 0 0 0 1px var(--color-magenta); }
.rm-amt__sym {
	display: flex; align-items: center; justify-content: center; width: 48px; flex-shrink: 0;
	background: var(--gradient-brand-btn); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 16px;
}
.rm-amt input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--color-text); padding: 0 14px; font: inherit; font-size: 15px; font-weight: 600; outline: none; }
.rm-amt input::placeholder { color: var(--color-text-faint); font-weight: 400; }

/* ---- Totals ---- */
.rm-totals { margin-top: var(--space-5); border-top: 1px solid var(--color-border); padding-top: var(--space-4); font-size: 14px; }
.rm-totals .rm-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--color-text-muted); }
.rm-grand { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-family: var(--font-heading); font-weight: 700; color: var(--color-text); font-size: 19px; }
.rm-grand b { font-size: 32px; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Recommendations carousel ---- */
.rm-rec { margin-top: var(--space-6); }
.rm-rec__t { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: var(--space-3); }
.rm-rec__row { display: flex; align-items: center; gap: var(--space-3); }
.rm-rec__arrow {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--color-border); background: var(--color-bg-elevated); color: var(--color-text-muted);
	cursor: pointer; font-size: 20px; line-height: 1; transition: background .3s, color .3s, border-color .3s;
}
.rm-rec__arrow:hover { background: var(--color-bg-elevated-hover); color: var(--color-text); border-color: var(--color-border-strong); }
.rm-rec__vp { flex: 1; min-width: 0; overflow: hidden; container-type: inline-size; }
.rm-rec__track { display: flex; gap: var(--space-3); transition: transform 900ms ease-in-out; }
.rm-mini {
	flex: 0 0 calc((100cqw - 3 * var(--space-3)) / 4); display: flex; flex-direction: column;
	border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-elevated);
	border: 1px solid var(--color-border); transition: border-color .3s;
}
.rm-mini:hover { border-color: var(--color-border-strong); }
@container (max-width: 640px) { .rm-mini { flex-basis: calc((100cqw - 2 * var(--space-3)) / 3); } }
/* Phones: ONE product at a time, swipeable by finger (js/checkout.js touch). */
@container (max-width: 480px) { .rm-mini { flex-basis: 100cqw; } }
.rm-mini__media { position: relative; aspect-ratio: 16 / 9; background: var(--gradient-brand); background-size: cover; background-position: center; }
.rm-mini__b { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 8px; }
.rm-mini__n {
	font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--color-text); min-height: calc(1.3em * 2);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.rm-mini__f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-mini__p { font-family: var(--font-heading); font-size: 15px; font-weight: 700; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rm-mini__buy {
	height: 32px; padding: 0 12px; border-radius: var(--radius-sm); border: none; background: var(--gradient-brand-btn);
	color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 11px; text-decoration: none;
	display: inline-flex; align-items: center; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .16); transition: transform .3s;
}
.rm-mini__buy:hover { transform: translateY(-1px); }

/* ============================ RIGHT / payment ============================ */
/* Not sticky — the payment panel is taller than the viewport and WooCommerce
   re-renders it over AJAX, so a sticky panel juddered on scroll. It just flows
   with the page like every other inner page. */
.rm-pay { position: static; }

/* WooCommerce billing fields (email + name) restyled to our inputs */
.rm-checkout .rm-pay .form-row { margin: 0 0 14px; padding: 0; }
.rm-checkout .rm-pay .form-row label { display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 5px; }
.rm-checkout .rm-pay .form-row .required,
.woocommerce-checkout .required { color: var(--color-text-muted); text-decoration: none; border: 0; }
.rm-checkout .rm-pay input.input-text,
.rm-checkout .rm-pay .rm-txt {
	width: 100%; background: var(--color-bg-elevated); border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm); color: var(--color-text); padding: 11px 12px; font: inherit; font-size: 14px;
}
.rm-checkout .rm-pay input.input-text::placeholder { color: var(--color-text-faint); }
.rm-checkout .rm-pay input.input-text:focus { outline: none; border-color: var(--color-magenta); }

/* Hide WC's native country select — our dark dropdown mirrors it */
.rm-wc-country { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }

/* Custom dark dropdown (native <select> popup is white on Windows) */
.rm-sel { position: relative; }
.rm-sel__btn {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--color-bg-elevated); box-shadow: inset 0 0 0 1px var(--color-border-strong); border: none;
	border-radius: var(--radius-sm); color: var(--color-text); padding: 11px 14px; font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.rm-sel__btn:focus { outline: none; }
.rm-sel.is-open .rm-sel__btn { box-shadow: inset 0 0 0 1px var(--color-magenta); }
.rm-sel__ic { width: 16px; height: 16px; color: var(--color-text-muted); flex-shrink: 0; transition: transform .25s; }
.rm-sel.is-open .rm-sel__ic { transform: rotate(180deg); }
.rm-sel__list {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; list-style: none;
	background: #0d0b12; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .5); max-height: 244px; overflow: auto;
}
.rm-sel__opt { padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--color-text-muted); cursor: pointer; transition: background .15s, color .15s; }
.rm-sel__opt:hover { background: var(--color-bg-elevated-hover); color: var(--color-text); }
.rm-sel__opt.on { color: var(--color-text); background: rgba(192, 41, 139, .14); }

/* WooCommerce payment box restyled */
.rm-payment { margin-top: var(--space-4); }
/* No box around the button: the WC #payment / .place-order wrappers are made
 * fully transparent so the «Оплатити» button sits flush like the fields above. */
.rm-checkout #payment,
.rm-checkout #payment .place-order,
.rm-checkout #payment .form-row.place-order {
	background: transparent !important; border: 0 !important; border-radius: 0 !important;
	padding: 0 !important; margin: 0 !important; box-shadow: none !important;
}
.rm-checkout #payment ul.payment_methods {
	list-style: none; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px;
}
.rm-checkout #payment ul.payment_methods li {
	border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 13px 14px; background: transparent;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
/* Single gateway (LiqPay) → no visible picker. The list + its radio/label are
 * hidden; the radio stays in the DOM (checked) so WooCommerce still submits the
 * gateway. The «Оплатити» button (#place_order, inside #payment) stays visible. */
.rm-checkout #payment ul.payment_methods { display: none; }
.rm-checkout #payment .payment_box { display: none; }
.rm-checkout #payment .wc_payment_methods + * { margin-top: 0; }

/* Accepted-card badges: small, single row under the button. Real brand SVGs
 * already carry a white rounded plate, so they read on the dark checkout. */
.rm-payicons {
	display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
	margin-top: 12px; justify-content: center;
}
/* Higher specificity than WooCommerce's `.woocommerce img { max-width:100%;
 * height:auto }` (0,1,1), which otherwise wins over a bare `.rm-pay-ico` and
 * blows the badges up to full width. Keep them a fixed small height. */
.rm-checkout .rm-payicons .rm-pay-ico {
	height: 27px; width: auto; max-width: none; display: block; border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .24);
}

/* Order panel header: title + a right-aligned square ✕ button that clears the cart. */
.rm-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rm-clear {
	flex: 0 0 auto; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
	color: var(--color-text-muted); text-decoration: none; font-size: 13px; line-height: 1;
	background: var(--color-bg-elevated); transition: color .2s, border-color .2s, background .2s;
}
.rm-clear:hover { color: #fff; border-color: var(--color-magenta); background: rgba(192, 41, 139, .16); }
.rm-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin-top: 12px; font-size: 12px; color: var(--color-text-muted); }

/* Place-order button — our CTA */
.rm-checkout #place_order {
	width: 100%; margin-top: 18px; height: 54px; border: none; border-radius: var(--radius-sm);
	background: var(--gradient-brand-btn); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 16px;
	cursor: pointer; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .16); transition: transform .3s, box-shadow .3s;
}
.rm-checkout #place_order:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(192, 41, 139, .42), inset 0 1px 0 rgba(255, 255, 255, .2); }
.rm-checkout #place_order:focus { outline: none; }

.rm-note-cur { margin: 12px 4px 0; font-size: 11.5px; color: var(--color-text-faint); text-align: center; }
.rm-legal { margin: 14px 6px 0; font-size: 11.5px; line-height: 1.5; color: var(--color-text-faint); text-align: center; }
.rm-legal a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 2px; }
.rm-legal a:hover { color: var(--color-text); }

/* WooCommerce notices restyled — ONE clean box (the NoticeGroup wrapper is made
   transparent so it isn't a box-inside-a-box), and the default overlapping icon
   is removed. */
.woocommerce-checkout .woocommerce-NoticeGroup { margin: 0; padding: 0; background: none; border: 0; }
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
	position: relative; list-style: none; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm);
	background: rgba(192, 41, 139, .10); border: 1px solid var(--color-magenta); color: var(--color-text);
	font-size: 14px; line-height: 1.45;
}
.woocommerce-checkout .woocommerce-info { background: rgba(255, 255, 255, .04); border-color: var(--color-border-strong); color: var(--color-text-muted); }
.woocommerce-checkout .woocommerce-error::before,
.woocommerce-checkout .woocommerce-error li::before,
.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-message::before { content: none !important; display: none !important; }
.woocommerce-checkout .woocommerce-error li,
.woocommerce-checkout .woocommerce-message li,
.woocommerce-checkout .woocommerce-info li { margin: 0; padding: 0; list-style: none; }
.woocommerce-checkout .woocommerce-error a,
.woocommerce-checkout .woocommerce-info a { color: var(--color-orange); }
/* Valid/filled fields stay in the normal style (no green outline) — every field
   reads the same; only empty/invalid ones get the brand magenta. */
.rm-checkout .form-row.woocommerce-validated input.input-text,
.rm-checkout .form-row.woocommerce-validated select,
.rm-checkout .woocommerce-input-wrapper .woocommerce-validated { border-color: var(--color-border-strong) !important; box-shadow: none !important; }
.rm-checkout .form-row.woocommerce-invalid input.input-text,
.rm-checkout .form-row.woocommerce-invalid-required-field input.input-text { border-color: var(--color-magenta) !important; box-shadow: none !important; }
/* An invalid field colours only its BORDER and hint — never the label text
   (WooCommerce turns the label red by default). */
.rm-checkout .form-row.woocommerce-invalid label,
.rm-checkout .form-row.woocommerce-invalid-required-field label { color: var(--color-text-muted) !important; }
.rm-inline-err { color: var(--color-magenta); font-size: 12px; margin-top: 5px; animation: rmFadeIn .3s var(--ease-standard, ease); }
@keyframes rmFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Notices GROW open from zero height — the block expands and everything below
   slides down smoothly instead of a hard jump. */
@keyframes rmNoticeGrow {
	from { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; border-bottom-width: 0; }
	to   { opacity: 1; max-height: 240px; }
}
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message { overflow: hidden; animation: rmNoticeGrow .4s var(--ease-standard, ease); }

/* Fire burst behind the pay button (desktop hover) — position set by JS. */
.rm-payment { position: relative; }
.rm-checkout #place_order { position: relative; z-index: 1; }
.rm-fire-fx {
	position: absolute; width: 150px; height: 255px; transform: translateX(-50%);
	pointer-events: none; z-index: 0; filter: drop-shadow(0 0 0 rgba(192, 41, 139, 0)); transition: filter .3s;
}
.rm-fire-fx.is-playing { filter: drop-shadow(0 0 22px rgba(192, 41, 139, .65)) drop-shadow(0 0 40px rgba(255, 122, 26, .35)); }
.rm-fire-fx svg { display: block; width: 100%; height: 100%; }
@media (hover: none), (pointer: coarse) { .rm-fire-fx { display: none; } }

/* Carousel: image and name are also clickable (add to cart), not just «Купити». */
a.rm-mini__media { display: block; }
a.rm-mini__n { text-decoration: none; color: var(--color-text); }
a.rm-mini__n:hover { color: var(--color-hover-accent, var(--color-magenta)); }

/* The bottom privacy paragraph is redundant — our own legal line already links
   to the Privacy Policy — so hide WooCommerce's version. */
.woocommerce-checkout .woocommerce-privacy-policy-text { display: none !important; }

/* Loading overlay (WooCommerce blockUI) — hidden entirely; it flashed/juddered
   on every refresh. WooCommerce still disables the button while it works. */
.woocommerce-checkout .blockUI.blockOverlay { display: none !important; }

/* ============================ Thank-you page ============================ */
.rm-thanks {
	max-width: 480px; margin: var(--space-16) auto; text-align: center;
	background: rgba(255, 255, 255, 0.045); border: 1px solid var(--color-border);
	border-radius: var(--radius-md); padding: 40px 28px 32px;
}
.rm-thanks__badge {
	width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%;
	background: var(--gradient-brand-btn); display: grid; place-items: center;
	box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.rm-thanks__badge svg { width: 32px; height: 32px; }
.rm-thanks__title { font-family: var(--font-heading); font-size: 26px; margin: 0 0 10px; }
.rm-thanks__sub { color: var(--color-text-muted); font-size: 14px; margin: 0 0 22px; }
.rm-thanks__sub b { color: var(--color-text); }
.rm-thanks__files { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 16px; }
.rm-thanks__file {
	display: flex; align-items: center; gap: 12px; background: var(--color-bg-elevated);
	box-shadow: inset 0 0 0 1px var(--color-border); border-radius: var(--radius-sm); padding: 11px 12px 11px 14px;
}
.rm-thanks__file-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-thanks__dl {
	height: 34px; padding: 0 13px; border-radius: var(--radius-sm); background: var(--gradient-brand-btn); color: #fff;
	flex-shrink: 0; font-weight: 700; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
	box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.rm-thanks__dl svg { width: 14px; height: 14px; }
.rm-thanks__note { font-size: 11.5px; line-height: 1.5; color: var(--color-text-faint); margin: 0 0 22px; }
.rm-thanks__done {
	display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px;
	border-radius: var(--radius-sm); background: var(--gradient-brand-btn); color: #fff; font-family: var(--font-heading);
	font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* ---- No ambient motion on tablet/mobile (site-wide rule) ---- */
@media (max-width: 1024px) {
	.rm-rec__track { transition: none; }
	.rm-mini__buy:hover, .rm-chip, .rm-checkout #place_order:hover { transform: none; }
}

/* ---- Invalid field: magenta outline in addition to the inline message ---- */
.rm-checkout input.input-text.is-invalid,
.rm-checkout .rm-txt.is-invalid { border-color: var(--color-magenta) !important; box-shadow: 0 0 0 1px var(--color-magenta); }
.rm-checkout .rm-sel__btn.is-invalid { box-shadow: inset 0 0 0 1px var(--color-magenta); }

/* =========================================================================
 * Empty cart (WooCommerce BLOCK cart): drop the sad-face + text lower and
 * recolour the icon to our brand gradient (assets/img/empty-cart-sad.svg).
 * ====================================================================== */
.woocommerce-cart .wp-block-woocommerce-empty-cart-block { margin-top: 56px; }
.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon {
	margin-bottom: 10px;
}
.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	content: ""; display: block; width: 108px; height: 108px; margin: 0 auto 30px;
	background: url(../assets/img/empty-cart-sad.svg) center / contain no-repeat !important;
	border: 0 !important; box-shadow: none !important;
}

/* =========================================================================
 * LiqPay popup open (js/checkout.js toggles html.rm-pay-open): a dark scrim
 * darkens the whole page behind the popup, and scroll is locked so the page
 * scrollbar disappears (RenderMeScrollLock pads for its width → no jump).
 * The LiqPay popup overlay sits at z-index 1000, so the scrim is z-index 900 —
 * ABOVE all our page chrome (header z100, etc.) but BELOW the popup, which
 * therefore always stays fully visible and clickable.
 * ====================================================================== */
html.rm-pay-open::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 900;
	pointer-events: none;
	animation: rm-pay-dim .25s ease both;
}
@keyframes rm-pay-dim { from { opacity: 0; } to { opacity: 1; } }

/* Widen the LiqPay popup from its default 385px to a roomier column (its content
 * reflows fluidly). CSS :has handles modern browsers instantly; js/checkout.js
 * widenPopup() is the fallback for the rest. */
html.rm-pay-open div:has(> iframe[src*="liqpay"]) {
	width: min(500px, 94vw) !important;
	max-width: 94vw !important;
}

/* Recommendations are now a direct child of .rm-co (below both columns): full
 * width on desktop (span the whole grid) and, when the grid collapses to one
 * column on mobile, they naturally sit last — after order details and payment. */
.rm-rec { grid-column: 1 / -1; }
