/* RaffMaster — front-end styles for dynamic blocks
   Most styling lives in theme.json. This handles motion + things theme.json can't express. */

:root {
	--rm-card-radius: 16px;
}

.rm-section-header { margin-block: 32px 16px; }
.rm-section-title  { margin: 0; font-size: 32px; }
.rm-eyebrow        {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--rm-accent);
	text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

.rm-grid {
	display: grid;
	grid-template-columns: repeat( var(--rm-cols, 3), minmax(0, 1fr) );
	gap: 24px;
}
@media (max-width: 880px) { .rm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rm-grid { grid-template-columns: 1fr; } }

.rm-card { background: var(--rm-surface); border-radius: var(--rm-card-radius); overflow: hidden; border: 1px solid var(--rm-border); transition: transform .15s, border-color .15s; }
.rm-card:hover { transform: translateY(-2px); border-color: var(--rm-accent); }
.rm-card__link { display: block; color: inherit; text-decoration: none; }
.rm-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.rm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-card__tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--rm-radius-button, 999px); background: var(--rm-accent); color: var(--rm-on-accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rm-card__body { padding: 16px; }
.rm-card__title { margin: 0 0 0.25rem; font-size: 20px; font-family: var(--rm-font-display); }
.rm-card__sub { margin: 0 0 16px; color: var(--rm-fg-muted); font-size: 14px; }
.rm-card__progress { height: 4px; border-radius: var(--rm-radius-button, 999px); background: var(--rm-border); overflow: hidden; margin-bottom: 12px; padding-bottom: 20px; }
.rm-card__progress > span { display: block; height: 100%; background: var(--rm-accent); transition: width .8s ease; }
.rm-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.rm-card__price { font-weight: 600; }

.rm-countdown { display: flex; gap: 6px; font-variant-numeric: tabular-nums; }
.rm-countdown--inline { display: inline; color: var(--rm-fg-muted); font-family: var(--rm-font-display); }
.rm-countdown__cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 8px; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-sm, 4px); }
.rm-countdown__cell b { font-size: 20px; font-weight: 700; }
.rm-countdown__cell i { font-style: normal; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rm-fg-muted); }
.rm-countdown.is-over { opacity: 0.5; }

.rm-empty { padding: 32px; text-align: center; color: var(--rm-fg-muted); border: 1px dashed var(--rm-border); border-radius: var(--rm-card-radius); }

/* ─────────────────────────────────────────────────────────────────
   Block styles for the rest of the catalogue.
   Style variations in theme.json override colours/fonts; layout
   stays consistent across variations.
   ───────────────────────────────────────────────────────────────── */

/* Categories */
.rm-categories__grid { display: grid; grid-template-columns: repeat( auto-fill, minmax(160px, 1fr) ); gap: 16px; }
.rm-category-tile { background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-lg, 16px); padding: 16px; text-align: center; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rm-category-tile:hover { transform: translateY(-2px); border-color: var(--rm-accent); }
.rm-category-tile__media img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.rm-category-tile__name { font-weight: 600; }
.rm-category-tile__count { font-size: 14px; color: var(--rm-fg-muted); }

/* Winners strip */
.rm-winners-strip__rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rm-winner-card { flex: 0 0 240px; scroll-snap-align: start; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-lg, 16px); padding: 16px; display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.rm-winner-card:hover { transform: translateY(-2px); border-color: var(--rm-accent); }
.rm-winner-card__media img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.rm-winner-card__body { display: flex; flex-direction: column; gap: 2px; }
.rm-winner-card__prize { font-size: 14px; color: var(--rm-fg-muted); }
.rm-winner-card__name { font-weight: 700; }
.rm-winner-card__ticket { font-size: 12px; font-family: var(--rm-font-display); color: var(--rm-accent); }

/* How it works */
.rm-howitworks__grid { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 24px; }
@media (max-width: 700px) { .rm-howitworks__grid { grid-template-columns: 1fr; } }
.rm-howitworks__step { padding: 16px; }
.rm-howitworks__num { display: block; font-family: var(--rm-font-display); color: var(--rm-accent); font-size: 20px; margin-bottom: 6px; }
.rm-howitworks__title { font-size: 20px; margin: 0 0 4px; font-family: var(--rm-font-display); }
.rm-howitworks__body { color: var(--rm-fg-muted); margin: 0; }

/* Stats */
.rm-stats__grid { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 24px; text-align: center; }
@media (max-width: 700px) { .rm-stats__grid { grid-template-columns: 1fr; } }
.rm-stat { padding: 24px 16px; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-lg, 16px); }
.rm-stat__num { display: block; font-family: var(--rm-font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.rm-stat__label { display: block; margin-top: 8px; color: var(--rm-fg-muted); font-size: 14px; }

/* Newsletter */
.rm-newsletter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 48px; background: var(--rm-surface); border-radius: var(--rm-radius-lg, 16px); }
@media (max-width: 720px) { .rm-newsletter { grid-template-columns: 1fr; } }
.rm-newsletter__title { font-family: var(--rm-font-display); font-size: 32px; margin: 0 0 8px; }
.rm-newsletter__sub { color: var(--rm-fg-muted); margin: 0; }
.rm-newsletter__form { display: flex; gap: 8px; }
.rm-newsletter__form input[type=email] { flex: 1; padding: 12px 14px; border-radius: var(--rm-radius-md, 8px); border: 1px solid var(--rm-border); background: var(--rm-bg); color: inherit; }
.rm-newsletter__msg { margin: 8px 0 0; font-size: 14px; color: var(--rm-accent); min-height: 1.4em; }

/* Single product blocks */
.rm-gallery { display: grid; gap: 12px; }
.rm-gallery__main { position: relative; aspect-ratio: 4/3; background: var(--rm-surface); border-radius: var(--rm-radius-lg, 16px); overflow: hidden; }
.rm-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-gallery__badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: var(--rm-radius-button, 999px); background: var(--rm-accent); color: var(--rm-on-accent); font-weight: 700; font-size: 14px; }
.rm-gallery__thumbs { display: grid; grid-template-columns: repeat( auto-fill, minmax(72px, 1fr) ); gap: 8px; }
.rm-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--rm-radius-sm, 4px); background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.rm-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-gallery__thumb:hover, .rm-gallery__thumb[aria-selected="true"] { border-color: var(--rm-accent); }

.rm-product-countdown { padding: 16px; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-lg, 16px); text-align: center; }
.rm-product-countdown__label { color: var(--rm-fg-muted); margin: 0 0 12px; font-weight: 600; }

.rm-ticket-selector { padding: 24px; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-lg, 16px); display: grid; gap: 16px; }
.rm-ticket-selector__price-row, .rm-ticket-selector__total-row { display: flex; justify-content: space-between; align-items: baseline; }
.rm-ticket-selector__price-label, .rm-ticket-selector__total-label { color: var(--rm-fg-muted); font-size: 14px; }
.rm-ticket-selector__price-value { font-weight: 600; }
.rm-ticket-selector__total-value { font-family: var(--rm-font-display); font-size: 32px; font-weight: 700; }
.rm-ticket-selector__qty-row { display: flex; align-items: center; gap: 8px; }
.rm-ticket-selector__qty-row label { flex: 1; font-weight: 600; }
.rm-ticket-selector__step { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rm-border); background: var(--rm-bg); cursor: pointer; font-size: 20px; line-height: 1; }
.rm-ticket-selector__input { width: 80px; text-align: center; padding: 8px; border-radius: var(--rm-radius-sm, 4px); border: 1px solid var(--rm-border); background: var(--rm-bg); color: inherit; }
.rm-ticket-selector__quick { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-ticket-selector__preset { padding: 6px 14px; border-radius: var(--rm-radius-button, 999px); border: 1px solid var(--rm-border); background: var(--rm-bg); cursor: pointer; }
.rm-ticket-selector__preset:hover { border-color: var(--rm-accent); color: var(--rm-accent); }
.rm-ticket-selector__submit { padding: 14px 24px; border-radius: var(--rm-radius-md, 8px); border: 0; background: var(--rm-accent); color: var(--rm-on-accent); font-weight: 700; cursor: pointer; font-size: 16px; }
.rm-ticket-selector__note { margin: 0; text-align: center; font-size: 12px; color: var(--rm-fg-muted); }

/* Progress bar (shortcode + block) */
.rm-progress { display: grid; gap: 4px; }
.rm-progress__text { font-size: 14px; color: var(--rm-fg-muted); }
.rm-progress__track { height: 8px; border-radius: var(--rm-radius-button, 999px); background: var(--rm-border); overflow: hidden; position: relative; }
.rm-progress__bar-parent { width: 100%; height: 100%; position: relative; }
.rm-progress__bar { height: 100%; background: var(--rm-accent); transition: width .8s ease; border-radius: var(--rm-radius-button, 999px); }
.rm-progress__handle { display: none; }
.rm-progress__count { font-size: 14px; text-align: right; color: var(--rm-fg-muted); }
.rm-progress--half .rm-progress__bar { background: #f59e0b; }
.rm-progress--full .rm-progress__bar { background: #ef4444; }

/* Prize specs */
.rm-prize-specs { padding: 16px; }
.rm-prize-specs__title { font-family: var(--rm-font-display); font-size: 24px; margin: 0 0 16px; }
.rm-prize-specs__list { display: grid; gap: 0; margin: 0; }
.rm-prize-specs__row { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; padding: 10px 0; border-bottom: 1px solid var(--rm-border); }
.rm-prize-specs__row:last-child { border-bottom: 0; }
.rm-prize-specs__row dt { color: var(--rm-fg-muted); margin: 0; }
.rm-prize-specs__row dd { margin: 0; }

/* How to enter */
.rm-howto-enter { padding: 16px; }
.rm-howto-enter__title { font-family: var(--rm-font-display); font-size: 24px; margin: 0 0 16px; }
.rm-howto-enter__list { padding-left: 1.25rem; margin: 0; display: grid; gap: 8px; }
.rm-howto-enter__list li { line-height: 1.6; }
.rm-howto-enter__free { margin-top: 16px; }

/* FAQ */
.rm-faq { padding: 16px; }
.rm-faq__title { font-family: var(--rm-font-display); font-size: 24px; margin: 0 0 16px; }
.rm-faq__list { display: grid; gap: 8px; }
.rm-faq__item { background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-md, 8px); }
.rm-faq__item summary { padding: 16px; cursor: pointer; font-weight: 600; list-style: none; }
.rm-faq__item summary::after { content: "+"; float: right; font-weight: 400; }
.rm-faq__item[open] summary::after { content: "−"; }
.rm-faq__answer { padding: 0 16px 16px; color: var(--rm-fg-muted); }

/* Top bar (marquee) */
.rm-top-bar { display: flex; gap: 16px; overflow: hidden; padding: 6px 0; background: var(--rm-accent); color: var(--rm-on-accent); white-space: nowrap; }
.rm-top-bar p { animation: rm-marquee 35s linear infinite; margin: 0; flex-shrink: 0; font-size: 14px; font-weight: 600; }
@keyframes rm-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Insights row + draw date */
.rm-insights { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-md, 8px); font-size: 14px; }
.rm-draw-date { font-weight: 600; color: var(--rm-accent); }
.rm-draw-date.competition_is_today { background: var(--rm-accent); color: var(--rm-on-accent); padding: 4px 10px; border-radius: var(--rm-radius-button, 999px); display: inline-block; }
.rm-auto-draw-banner { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--rm-fg-muted); }
.rm-cash-alt { display: block; margin-top: 6px; font-size: 14px; color: var(--rm-fg-muted); }
.rm-free-entries { font-size: 14px; text-decoration: underline; }

/* Winner display on closed competitions */
.rm-winner-display { padding: 16px; background: var(--rm-surface); border: 1px solid var(--rm-accent); border-radius: var(--rm-radius-lg, 16px); text-align: center; }
.rm-winner-display__row { display: block; padding: 4px 0; font-weight: 600; }

/* Next draw container */
.rm-next-draw { padding: 16px; background: var(--rm-surface); border-radius: var(--rm-radius-lg, 16px); text-align: center; }
.rm-next-draw h3 { font-size: 14px; color: var(--rm-fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.rm-next-draw--empty { display: none; }

/* Confetti (thank-you) */
.rm-thankyou-confetti { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.rm-thankyou-confetti canvas { width: 100%; height: 100%; }

/* Countdown — boxes mode (used by [countdown_now]) */
.countdown-timer { display: flex; gap: 8px; justify-content: center; font-variant-numeric: tabular-nums; }
.countdown-timer > div { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 8px; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-sm, 4px); }
.countdown-timer .countdown-value { font-size: 20px; font-weight: 700; }
.countdown-timer .countdown-label { font-size: 12px; color: var(--rm-fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.countdown-timer .excess-timer { display: none; }
@media (min-width: 600px) { .countdown-timer .excess-timer { display: inline; } }

/* Ticket selector disclaimer (settings-driven) */
.rm-ticket-selector__disclaimer { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--rm-fg-muted); line-height: 1.4; }

/* Footer social */
.rm-footer-social { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.rm-footer-social__list { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.rm-footer-social__list a { color: var(--rm-fg-muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.rm-footer-social__list a:hover { color: var(--rm-accent); }
.rm-footer-social__email { color: var(--rm-fg-muted); font-size: 14px; text-decoration: none; }
.rm-footer-social__email:hover { color: var(--rm-accent); }

/* ─────────────────────────────────────────────────────────────────
   V3 — Classic theme shell (header, footer, page wrappers, layout).
   ───────────────────────────────────────────────────────────────── */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
.rm-body { margin: 0; padding: 0; background: var(--rm-bg); color: var(--rm-fg); font-family: var(--rm-font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.rm-body a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Layout containers */
.rm-page { min-height: 60vh; }
.rm-page__inner { max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
.rm-page--home > section, .rm-page--product > section { max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
.rm-page--home > section + section { margin-top: 0; }

/* Site header */
.rm-site-header { background: var(--rm-bg); border-bottom: 1px solid var(--rm-border); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.rm-site-header__inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.rm-site-header__brand { flex: 0 0 auto; }
.rm-site-header__title { font-family: var(--rm-font-display); font-weight: 700; font-size: 20px; text-decoration: none; color: var(--rm-fg); }
.custom-logo { max-height: 40px; width: auto; }
.rm-site-header__nav { flex: 1 1 auto; }
.rm-site-header__menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; }
.rm-site-header__menu a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--rm-fg-muted); transition: color .15s; }
.rm-site-header__menu a:hover, .rm-site-header__menu .current-menu-item a { color: var(--rm-fg); }
.rm-site-header__actions { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; }
.rm-site-header__account, .rm-site-header__cart { font-size: 14px; text-decoration: none; padding: 8px 14px; border-radius: var(--rm-radius-button, 999px); border: 1px solid var(--rm-border); color: var(--rm-fg); transition: border-color .15s, background .15s; }
.rm-site-header__account:hover, .rm-site-header__cart:hover { border-color: var(--rm-accent); }
.rm-site-header__cart-count { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: var(--rm-radius-button, 999px); background: var(--rm-accent); color: var(--rm-on-accent); font-size: 11px; font-weight: 700; min-width: 18px; text-align: center; }

@media (max-width: 720px) {
	.rm-site-header__inner { flex-wrap: wrap; gap: 12px; }
	.rm-site-header__nav { order: 3; flex-basis: 100%; }
	.rm-site-header__menu { gap: 14px; flex-wrap: wrap; }
}

/* Site footer */
.rm-site-footer { background: var(--rm-surface); border-top: 1px solid var(--rm-border); margin-top: 80px; }
.rm-site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 48px 24px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.rm-site-footer__social-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.rm-site-footer__social-list a { color: var(--rm-fg-muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.rm-site-footer__social-list a:hover { color: var(--rm-accent); }
.rm-site-footer__email { color: var(--rm-fg-muted); font-size: 14px; text-decoration: none; }
.rm-site-footer__email:hover { color: var(--rm-accent); }
.rm-site-footer__menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.rm-site-footer__menu a { font-size: 14px; color: var(--rm-fg-muted); text-decoration: none; }
.rm-site-footer__menu a:hover { color: var(--rm-fg); }
.rm-site-footer__copy { color: var(--rm-fg-muted); font-size: 13px; margin: 0; }

/* Headings */
.rm-section-title { font-family: var(--rm-font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 24px; }
.rm-section-header { margin-bottom: 24px; }
.rm-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-accent); margin: 0 0 8px; }

/* Card grid */
.rm-grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--rm-cols, 3), minmax(0, 1fr)); }
@media (max-width: 900px) { .rm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rm-grid { grid-template-columns: 1fr; } }

.rm-empty { color: var(--rm-fg-muted); padding: 32px; text-align: center; grid-column: 1 / -1; }

/* Hero split */
.rm-hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 24px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 720px) { .rm-hero-split { grid-template-columns: 1fr; } }
.rm-hero-split__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-accent); margin: 0 0 12px; }
.rm-hero-split__title { font-family: var(--rm-font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; }
@media (max-width: 720px) { .rm-hero-split__title { font-size: 40px; } }
.rm-hero-split__sub { font-size: 18px; color: var(--rm-fg-muted); margin: 0 0 24px; }
.rm-hero-split__cta { display: inline-block; padding: 14px 28px; background: var(--rm-accent); color: var(--rm-on-accent); font-weight: 700; border-radius: var(--rm-radius-button, 999px); text-decoration: none; transition: transform .15s; }
.rm-hero-split__cta:hover { transform: translateY(-2px); }
.rm-hero-split__media { aspect-ratio: 4/3; background: var(--rm-surface); border-radius: var(--rm-radius-lg, 16px); overflow: hidden; }
.rm-hero-split__media img { width: 100%; height: 100%; object-fit: cover; }
.rm-hero-split .rm-countdown { margin-top: 24px; }

/* Buttons */
.wp-element-button, .rm-page button[type="submit"] { background: var(--rm-accent); color: var(--rm-on-accent); border: 0; border-radius: var(--rm-radius-button, 999px); padding: 12px 24px; font-weight: 600; cursor: pointer; }

/* Single product hero */
.rm-product-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding: 48px 24px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 900px) { .rm-product-hero { grid-template-columns: 1fr; } }
.rm-product-hero__title { font-family: var(--rm-font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 24px; }
.rm-product-hero__copy > * + * { margin-top: 16px; }

/* Standard pages */
.rm-page--standard { background: var(--rm-bg); }
.rm-article__title { font-family: var(--rm-font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 24px; }
.rm-article__content { font-size: 17px; line-height: 1.7; }

/* Archive */
.rm-archive-header { margin-bottom: 32px; }
.rm-archive-title { font-family: var(--rm-font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.rm-archive-desc { color: var(--rm-fg-muted); }

/* Card */
.rm-card { background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: var(--rm-radius-lg, 16px); overflow: hidden; transition: transform .15s, border-color .15s; }
.rm-card:hover { transform: translateY(-2px); border-color: var(--rm-accent); }
.rm-card__link { display: block; text-decoration: none; color: var(--rm-fg); }
.rm-card__media { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--rm-bg); }
.rm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rm-card__tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--rm-radius-button, 999px); background: var(--rm-accent); color: var(--rm-on-accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.rm-card__body { padding: 16px; display: grid; gap: 8px; }
.rm-card__title { font-family: var(--rm-font-display); font-size: 18px; font-weight: 700; margin: 0; line-height: 1.25; }
.rm-card__sub { color: var(--rm-fg-muted); font-size: 14px; margin: 0; }
.rm-card__progress { height: 4px; border-radius: var(--rm-radius-button, 999px); background: var(--rm-border); overflow: hidden; margin: 8px 0; }
.rm-card__progress span { display: block; height: 100%; background: var(--rm-accent); border-radius: inherit; transition: width .8s ease; }
.rm-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.rm-card__price { font-weight: 600; }
.rm-countdown--inline { font-family: var(--rm-font-display); font-variant-numeric: tabular-nums; color: var(--rm-fg-muted); }


/* ═════════════════════════════════════════════════════════════════
   V5 — Modern site shell, polished cart/checkout, expanded chrome
   ═════════════════════════════════════════════════════════════════ */

/* Topbar */
.rm-top-bar {
	display: flex; align-items: center;
	background: var(--rm-accent); color: var(--rm-on-accent);
	padding: 8px 0; overflow: hidden;
	font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
	position: relative;
	text-decoration: none;
}
.rm-top-bar__track {
	display: flex; gap: 40px; flex: 1;
	animation: rm-marquee 35s linear infinite;
	white-space: nowrap;
}
.rm-top-bar__item { flex-shrink: 0; }
.rm-top-bar__close {
	flex: 0 0 auto;
	background: transparent; border: 0; color: inherit;
	width: 32px; height: 32px; cursor: pointer; font-size: 22px; line-height: 1;
	margin-right: 8px; opacity: 0.7;
}
.rm-top-bar__close:hover { opacity: 1; }
@keyframes rm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.rm-topbar-hidden .rm-top-bar { display: none !important; }

/* Header */
.rm-site-header {
	background: var(--rm-bg); border-bottom: 1px solid var(--rm-border);
	z-index: 50;
	transition: background .2s, border-color .2s;
}
.rm-site-header.is-sticky { position: sticky; top: 0; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--rm-bg) 80%, transparent); }
.rm-site-header.is-transparent { background: transparent; border-bottom-color: transparent; }
.rm-site-header__inner {
	max-width: 1280px; margin: 0 auto; padding: 12px 24px;
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center; gap: 16px;
}
.rm-site-header__hamburger {
	display: none; background: transparent; border: 0; cursor: pointer;
	width: 40px; height: 40px;
	flex-direction: column; justify-content: center; align-items: center; gap: 4px;
	padding: 0;
}
.rm-site-header__hamburger span {
	width: 22px; height: 2px; background: var(--rm-fg); border-radius: 2px;
	transition: transform .15s, opacity .15s;
}
.rm-site-header__title { font-family: var(--rm-font-display); font-weight: 700; font-size: 20px; text-decoration: none; color: var(--rm-fg); letter-spacing: -0.02em; }

.rm-site-header__nav { min-width: 0; }
.rm-site-header__menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: 28px;
}
.rm-site-header__menu a {
	text-decoration: none; font-size: 14px; font-weight: 500;
	color: var(--rm-fg-muted); transition: color .12s;
}
.rm-site-header__menu a:hover, .rm-site-header__menu .current-menu-item > a { color: var(--rm-fg); }

.rm-site-header__actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.rm-site-header__icon-btn {
	width: 38px; height: 38px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid transparent;
	border-radius: 50%; cursor: pointer; color: var(--rm-fg);
	text-decoration: none;
	transition: background .12s, color .12s, border-color .12s;
}
.rm-site-header__icon-btn:hover { background: var(--rm-surface); color: var(--rm-accent); }
.rm-site-header__icon-btn .dashicons { font-size: 18px; }

.rm-site-header__cart {
	width: auto; padding: 0 14px; gap: 6px; font-size: 13px; font-weight: 600;
	background: transparent; border: 1px solid var(--rm-border); border-radius: var(--rm-radius-button, 999px);
	height: 38px; display: inline-flex; align-items: center; color: var(--rm-fg);
	text-decoration: none; transition: border-color .12s;
}
.rm-site-header__cart:hover { border-color: var(--rm-accent); color: var(--rm-accent); }
.rm-site-header__cart .dashicons { font-size: 16px; }
.rm-site-header__cart-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 18px; height: 18px; padding: 0 5px;
	background: var(--rm-accent); color: var(--rm-on-accent);
	border-radius: 999px; font-size: 11px; font-weight: 700;
}

.rm-mode-icon { font-size: 16px; }
:root[data-rm-mode="dark"]  .rm-mode-icon--light,
:root[data-rm-mode="light"] .rm-mode-icon--dark { display: none; }

.rm-site-header__cta {
	height: 38px; padding: 0 18px; display: inline-flex; align-items: center;
	font-size: 13px; font-weight: 600; text-decoration: none;
	border-radius: var(--rm-radius-button, 999px);
	transition: transform .12s, background .12s;
}
.rm-site-header__cta.is-solid { background: var(--rm-accent); color: var(--rm-on-accent); border: 1px solid var(--rm-accent); }
.rm-site-header__cta.is-solid:hover { transform: translateY(-1px); }
.rm-site-header__cta.is-outline { background: transparent; color: var(--rm-fg); border: 1px solid var(--rm-fg); }
.rm-site-header__cta.is-outline:hover { background: var(--rm-fg); color: var(--rm-bg); }

/* Search tray */
.rm-site-header__search-tray {
	border-top: 1px solid var(--rm-border);
	padding: 16px 24px;
	background: var(--rm-bg);
}
.rm-search-form {
	max-width: 640px; margin: 0 auto;
	display: flex; gap: 8px;
}
.rm-search-form input[type=search] {
	flex: 1; height: 44px;
	padding: 0 16px; border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-md, 8px);
	background: var(--rm-surface); color: var(--rm-fg);
	font-size: 15px;
}
.rm-search-form button {
	height: 44px; padding: 0 20px;
	background: var(--rm-accent); color: var(--rm-on-accent);
	border: 0; border-radius: var(--rm-radius-button, 999px);
	font-weight: 600; cursor: pointer;
}

/* Mobile */
@media (max-width: 880px) {
	.rm-site-header__hamburger { display: inline-flex; }
	.rm-site-header__inner { grid-template-columns: auto 1fr auto; gap: 12px; padding: 10px 16px; }
	.rm-site-header.has-mobile-menu-left .rm-site-header__hamburger { order: -1; }
	.rm-site-header__nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--rm-bg); border-bottom: 1px solid var(--rm-border);
		display: none; padding: 16px 24px; max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.rm-site-header__nav.is-open { display: block; }
	.rm-site-header__menu { flex-direction: column; gap: 8px; }
	.rm-site-header__menu a { padding: 10px 0; display: block; font-size: 16px; border-bottom: 1px solid var(--rm-border); }
	.rm-site-header__cta { display: none; }
}

html.rm-no-scroll body { overflow: hidden; }

/* Footer */
.rm-site-footer { background: var(--rm-surface); border-top: 1px solid var(--rm-border); margin-top: 80px; }
.rm-site-footer--bg { background: var(--rm-bg); }
.rm-site-footer--accent { background: var(--rm-accent); color: var(--rm-on-accent); }
.rm-site-footer--accent .rm-site-footer__copy,
.rm-site-footer--accent .rm-site-footer__email,
.rm-site-footer--accent .rm-site-footer__social-list a { color: var(--rm-on-accent); }

.rm-site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 56px 24px 32px; }

/* Footer columns (widget areas) */
.rm-site-footer__cols {
	display: grid;
	grid-template-columns: repeat(var(--rm-footer-cols, 4), minmax(0, 1fr));
	gap: 40px;
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--rm-border);
}
@media (max-width: 800px) { .rm-site-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .rm-site-footer__cols { grid-template-columns: 1fr; } }

.rm-footer-widget { margin-bottom: 24px; }
.rm-footer-widget__title { font-family: var(--rm-font-display); font-size: 14px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.rm-footer-widget__text { color: var(--rm-fg-muted); font-size: 14px; margin: 0 0 12px; }
.rm-footer-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rm-footer-widget ul a { color: var(--rm-fg-muted); text-decoration: none; font-size: 14px; }
.rm-footer-widget ul a:hover { color: var(--rm-accent); }

/* Newsletter strip */
.rm-footer-newsletter { background: var(--rm-bg); border-top: 1px solid var(--rm-border); border-bottom: 1px solid var(--rm-border); padding: 32px 24px; }
.rm-footer-newsletter__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
@media (max-width: 720px) { .rm-footer-newsletter__inner { grid-template-columns: 1fr; gap: 16px; } }
.rm-footer-newsletter__title { font-family: var(--rm-font-display); font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.rm-footer-newsletter__sub { color: var(--rm-fg-muted); font-size: 14px; margin: 0; }
.rm-footer-newsletter__form { display: flex; gap: 8px; min-width: 320px; }
.rm-footer-newsletter__form input { flex: 1; height: 44px; padding: 0 16px; border: 1px solid var(--rm-border); border-radius: var(--rm-radius-md, 8px); background: var(--rm-surface); color: var(--rm-fg); }
.rm-footer-newsletter__form button { height: 44px; padding: 0 20px; background: var(--rm-accent); color: var(--rm-on-accent); border: 0; border-radius: var(--rm-radius-button, 999px); font-weight: 600; cursor: pointer; }

/* Footer bottom row */
.rm-site-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
	margin-bottom: 24px;
}
.rm-site-footer__bottom-left { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rm-site-footer__social-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; }
.rm-site-footer__social-list a { color: var(--rm-fg-muted); text-decoration: none; font-size: 13px; transition: color .12s; }
.rm-site-footer__social-list a:hover { color: var(--rm-accent); }
.rm-site-footer__email { color: var(--rm-fg-muted); font-size: 13px; text-decoration: none; }
.rm-site-footer__email:hover { color: var(--rm-accent); }

/* Payment icons */
.rm-site-footer__payments { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-payment-icon {
	display: inline-block; padding: 6px 12px;
	background: var(--rm-bg); border: 1px solid var(--rm-border);
	border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--rm-fg-muted);
	letter-spacing: 0.04em; text-transform: uppercase;
}

.rm-site-footer__nav { margin-bottom: 16px; }
.rm-site-footer__menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.rm-site-footer__menu a { font-size: 13px; color: var(--rm-fg-muted); text-decoration: none; }
.rm-site-footer__menu a:hover { color: var(--rm-fg); }

.rm-site-footer__copy { color: var(--rm-fg-muted); font-size: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--rm-border); }

/* ═════════════════════════════════════════════════════════════════
   Cart page (V5 redesign)
   ═════════════════════════════════════════════════════════════════ */

.rm-cart-page { max-width: 1280px; margin: 0 auto; padding: 56px 24px 80px; }
.rm-cart-page__header { margin-bottom: 32px; }
.rm-cart-page__title { font-family: var(--rm-font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.rm-cart-page__sub { color: var(--rm-fg-muted); margin: 0; font-size: 15px; }

.rm-cart-page__empty {
	text-align: center; padding: 80px 32px;
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px);
}
.rm-cart-page__empty-icon { font-size: 48px; margin-bottom: 16px; }
.rm-cart-page__empty h2 { font-family: var(--rm-font-display); margin: 0 0 8px; font-size: 24px; }
.rm-cart-page__empty p { color: var(--rm-fg-muted); margin: 0 0 24px; }

.rm-cart-page__layout {
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
	gap: 32px; align-items: start;
}
@media (max-width: 920px) { .rm-cart-page__layout { grid-template-columns: 1fr; } }

.rm-cart-page__items { display: grid; gap: 12px; }

.rm-cart-line {
	display: grid;
	grid-template-columns: 96px 1fr auto auto auto;
	gap: 20px;
	align-items: center;
	background: var(--rm-surface);
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px);
	padding: 16px;
	transition: border-color .15s;
}
.rm-cart-line:hover { border-color: color-mix(in srgb, var(--rm-accent) 30%, var(--rm-border)); }
@media (max-width: 720px) {
	.rm-cart-line {
		grid-template-columns: 80px 1fr auto;
		grid-template-areas: "media main remove" "qty qty subtotal";
	}
	.rm-cart-line__media { grid-area: media; }
	.rm-cart-line__main { grid-area: main; }
	.rm-cart-line__qty { grid-area: qty; }
	.rm-cart-line__subtotal { grid-area: subtotal; align-self: end; }
	.rm-cart-line__remove { grid-area: remove; align-self: start; }
}

.rm-cart-line__media img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--rm-radius-md, 8px); display: block; }
@media (max-width: 720px) { .rm-cart-line__media img { width: 80px; height: 80px; } }
.rm-cart-line__title { font-family: var(--rm-font-display); font-size: 17px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.rm-cart-line__title a { color: var(--rm-fg); text-decoration: none; }
.rm-cart-line__title a:hover { color: var(--rm-accent); }
.rm-cart-line__meta { font-size: 12px; color: var(--rm-fg-muted); }
.rm-cart-line__unit-price { font-size: 13px; color: var(--rm-fg-muted); margin-top: 4px; }
.rm-cart-line__subtotal { font-family: var(--rm-font-display); font-weight: 700; font-size: 18px; min-width: 90px; text-align: right; }
.rm-cart-line__qty-fixed { font-weight: 600; font-size: 15px; padding: 0 8px; }
.rm-cart-line__remove {
	width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--rm-border); color: var(--rm-fg-muted);
	font-size: 18px; line-height: 1; text-decoration: none;
	transition: border-color .12s, color .12s;
}
.rm-cart-line__remove:hover { border-color: var(--rm-accent); color: var(--rm-accent); }

.rm-cart-page__row-actions {
	display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
	padding-top: 16px;
}
.rm-cart-page__coupon { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.rm-cart-page__coupon input {
	flex: 1; height: 40px; padding: 0 14px;
	background: var(--rm-bg); color: var(--rm-fg);
	border: 1px solid var(--rm-border); border-radius: var(--rm-radius-md, 8px);
}

.rm-cart-page__totals {
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); padding: 24px;
	position: sticky; top: 100px;
}
.rm-cart-page__totals-title { font-family: var(--rm-font-display); font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.rm-cart-page__totals table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.rm-cart-page__totals table.shop_table th, .rm-cart-page__totals table.shop_table td { padding: 12px 0; border-bottom: 1px solid var(--rm-border); text-align: left; vertical-align: top; }
.rm-cart-page__totals table.shop_table th { color: var(--rm-fg-muted); font-weight: 500; font-size: 13px; }
.rm-cart-page__totals table.shop_table td { text-align: right; font-weight: 600; font-size: 14px; }
.rm-cart-page__totals .order-total td, .rm-cart-page__totals .order-total th { font-size: 18px; font-weight: 700; border-bottom: 0; padding-top: 16px; font-family: var(--rm-font-display); }
.rm-cart-page__totals .checkout-button {
	display: block; text-align: center; padding: 16px 24px;
	background: var(--rm-accent); color: var(--rm-on-accent);
	border-radius: var(--rm-radius-button, 999px); font-weight: 700;
	text-decoration: none; transition: transform .12s, box-shadow .12s;
	font-size: 15px;
}
.rm-cart-page__totals .checkout-button:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.rm-cart-page__reassure {
	display: flex; align-items: center; gap: 8px;
	margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--rm-border);
	font-size: 12px; color: var(--rm-fg-muted);
}
.rm-cart-page__reassure .dashicons { font-size: 14px; color: var(--rm-accent); }

/* ═════════════════════════════════════════════════════════════════
   Checkout (V5 — two-column layout)
   ═════════════════════════════════════════════════════════════════ */

.rm-checkout { max-width: 1280px; margin: 0 auto; padding: 56px 24px 80px; }
.rm-checkout__layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); gap: 40px; align-items: start; }
@media (max-width: 920px) { .rm-checkout__layout { grid-template-columns: 1fr; gap: 24px; } }

.rm-checkout__header { margin-bottom: 32px; }
.rm-checkout__title { font-family: var(--rm-font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.rm-checkout__sub { color: var(--rm-fg-muted); margin: 0; }

.rm-checkout__panel {
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); padding: 24px;
	margin-bottom: 24px;
}
.rm-checkout__panel-title { font-family: var(--rm-font-display); font-size: 18px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }

.rm-checkout__customer .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rm-checkout__customer .form-row label { font-size: 13px; font-weight: 600; color: var(--rm-fg); }
.rm-checkout__customer .form-row input[type=text],
.rm-checkout__customer .form-row input[type=email],
.rm-checkout__customer .form-row input[type=tel],
.rm-checkout__customer .form-row input[type=password],
.rm-checkout__customer .form-row textarea,
.rm-checkout__customer .form-row select,
.rm-checkout__customer .form-row .select2-selection {
	height: 44px; padding: 0 14px;
	background: var(--rm-bg) !important; color: var(--rm-fg) !important;
	border: 1px solid var(--rm-border) !important;
	border-radius: var(--rm-radius-md, 8px) !important;
	font-size: 15px;
	transition: border-color .12s, box-shadow .12s;
}
.rm-checkout__customer .form-row textarea { height: auto; padding-top: 12px; padding-bottom: 12px; min-height: 80px; }
.rm-checkout__customer .form-row input:focus, .rm-checkout__customer .form-row textarea:focus, .rm-checkout__customer .form-row select:focus {
	outline: 0; border-color: var(--rm-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rm-accent) 25%, transparent);
}
.rm-checkout__customer .form-row.form-row-first, .rm-checkout__customer .form-row.form-row-last {
	display: inline-flex; width: calc(50% - 6px);
}
.rm-checkout__customer .form-row.form-row-first { margin-right: 12px; }
.rm-checkout__customer .form-row.dob-day, .rm-checkout__customer .form-row.dob-month, .rm-checkout__customer .form-row.dob-year { display: inline-flex; width: calc(33.333% - 8px); margin-right: 12px; }
.rm-checkout__customer .form-row.dob-year { margin-right: 0; }
.rm-checkout__customer .required { color: var(--rm-accent); }

.rm-checkout__aside { min-width: 0; }
.rm-checkout__aside-sticky { position: sticky; top: 100px; }

/* Checkout review (refined) */
.rm-checkout-review {
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); padding: 24px; overflow: hidden;
}
.rm-checkout-review__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.rm-checkout-review__title { font-family: var(--rm-font-display); font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.rm-checkout-review__edit { font-size: 13px; color: var(--rm-accent); text-decoration: none; }
.rm-checkout-review__edit:hover { text-decoration: underline; }

.rm-checkout-review__items { display: grid; gap: 10px; margin-bottom: 16px; }
.rm-checkout-line {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	background: var(--rm-bg);
	border-radius: var(--rm-radius-md, 8px);
}
.rm-checkout-line__media img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--rm-radius-sm, 4px); display: block; }
.rm-checkout-line__title { font-size: 14px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.rm-checkout-line__meta { font-size: 11px; color: var(--rm-fg-muted); margin-bottom: 8px; line-height: 1.4; }
.rm-checkout-line__subtotal { font-family: var(--rm-font-display); font-weight: 700; font-size: 15px; min-width: 70px; text-align: right; }

.rm-checkout-review__totals {
	display: grid; grid-template-columns: auto 1fr;
	gap: 8px 16px; padding: 16px 0; margin: 0 0 16px;
	border-top: 1px solid var(--rm-border); border-bottom: 1px solid var(--rm-border);
}
.rm-checkout-review__totals dt { color: var(--rm-fg-muted); margin: 0; font-size: 13px; }
.rm-checkout-review__totals dd { margin: 0; text-align: right; font-weight: 600; font-size: 14px; }
.rm-checkout-review__total-row { font-family: var(--rm-font-display); font-size: 18px !important; font-weight: 700 !important; padding-top: 8px; }

.rm-checkout-review__payment-title { font-family: var(--rm-font-display); font-size: 14px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.rm-checkout-review__payment .wc_payment_methods { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.rm-checkout-review__payment .wc_payment_method {
	background: var(--rm-bg); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-md, 8px); padding: 12px 16px; font-size: 14px;
}
.rm-checkout-review__payment .wc_payment_method label { font-weight: 500; cursor: pointer; }
.rm-checkout-review__payment .payment_box {
	margin-top: 8px; padding: 12px;
	background: color-mix(in srgb, var(--rm-fg-muted) 10%, transparent);
	border-radius: var(--rm-radius-sm, 4px); font-size: 13px;
}

.rm-checkout-review__submit {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; padding: 18px 24px;
	background: var(--rm-accent); color: var(--rm-on-accent);
	border: 0; border-radius: var(--rm-radius-button, 999px);
	font-family: var(--rm-font-display); font-weight: 700; font-size: 16px;
	cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.rm-checkout-review__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in srgb, var(--rm-accent) 35%, transparent); }
.rm-checkout-review__submit .dashicons { font-size: 18px; transition: transform .12s; }
.rm-checkout-review__submit:hover .dashicons { transform: translateX(4px); }

/* Quantity stepper (shared) */
.rm-qty {
	display: inline-flex; align-items: center;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-md, 8px);
	overflow: hidden; background: var(--rm-bg);
}
.rm-qty__step {
	width: 36px; height: 36px; background: transparent; border: 0; cursor: pointer;
	font-size: 16px; line-height: 1; color: var(--rm-fg);
	transition: background .12s;
}
.rm-qty__step:hover:not(:disabled) { background: color-mix(in srgb, var(--rm-accent) 15%, transparent); color: var(--rm-accent); }
.rm-qty__step:disabled { opacity: 0.3; cursor: not-allowed; }
.rm-qty__input {
	width: 48px; height: 36px; text-align: center; background: transparent;
	border: 0; border-left: 1px solid var(--rm-border); border-right: 1px solid var(--rm-border);
	color: inherit; font-weight: 600;
	-moz-appearance: textfield;
}
.rm-qty__input::-webkit-outer-spin-button, .rm-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
span.rm-qty__input { display: inline-flex; align-items: center; justify-content: center; user-select: none; font-family: var(--rm-font-display); }
.rm-qty--checkout { transform: scale(0.9); transform-origin: left center; margin-top: 4px; }

/* Buttons */
.rm-button {
	display: inline-flex; align-items: center; gap: 8px;
	height: 44px; padding: 0 22px;
	border: 1px solid var(--rm-border); border-radius: var(--rm-radius-button, 999px);
	background: transparent; color: var(--rm-fg); cursor: pointer;
	font-weight: 600; font-size: 14px; text-decoration: none;
	transition: background .12s, border-color .12s, transform .12s;
}
.rm-button:hover { border-color: var(--rm-accent); color: var(--rm-accent); }
.rm-button--primary { background: var(--rm-accent); color: var(--rm-on-accent); border-color: var(--rm-accent); }
.rm-button--primary:hover { transform: translateY(-1px); color: var(--rm-fg); }
.rm-button--ghost { border-color: var(--rm-border); }

/* WC notices */
.woocommerce-notices-wrapper, .woocommerce-error, .woocommerce-info, .woocommerce-message {
	background: var(--rm-surface); border: 1px solid var(--rm-border); border-left-width: 4px;
	border-radius: var(--rm-radius-md, 8px); padding: 14px 18px; margin-bottom: 16px;
	color: var(--rm-fg);
	display: flex; align-items: center; gap: 10px;
	list-style: none;
}
.woocommerce-error { border-left-color: var(--rm-accent); }
.woocommerce-message { border-left-color: var(--rm-accent-2, var(--rm-accent)); }
.woocommerce-info { border-left-color: var(--rm-fg-muted); }
.woocommerce-error a, .woocommerce-info a, .woocommerce-message a { color: var(--rm-accent); }


/* ═════════════════════════════════════════════════════════════════
   V5.1 — Competition card variants (driven by Competition Card configurator)
   ═════════════════════════════════════════════════════════════════ */

/* Aspect ratios */
.rm-card--aspect-4-3  .rm-card__media { aspect-ratio: 4 / 3; }
.rm-card--aspect-1-1  .rm-card__media { aspect-ratio: 1 / 1; }
.rm-card--aspect-16-9 .rm-card__media { aspect-ratio: 16 / 9; }

/* Layout: image-led (default) — already covered by .rm-card defaults */

/* Layout: compact — smaller image, info denser */
.rm-card--compact { display: flex; flex-direction: column; }
.rm-card--compact .rm-card__media { aspect-ratio: 16 / 9; }
.rm-card--compact .rm-card__title { font-size: 15px; }
.rm-card--compact .rm-card__body { padding: 12px 14px; gap: 6px; }

/* Layout: minimal — no image, text-only */
.rm-card--minimal .rm-card__media { display: none; }
.rm-card--minimal .rm-card__body { padding: 20px; gap: 10px; }
.rm-card--minimal .rm-card__title { font-size: 18px; }

/* Hover effects */
.rm-card--hover-lift:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.rm-card--hover-zoom .rm-card__media { overflow: hidden; }
.rm-card--hover-zoom .rm-card__media img { transition: transform .3s ease; }
.rm-card--hover-zoom:hover .rm-card__media img { transform: scale(1.05); }
.rm-card--hover-none { transition: none; }

/* CTA — bottom (block button) */
.rm-card__cta-bottom {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	margin-top: 12px; padding: 10px 18px;
	border-radius: var(--rm-radius-button, 999px);
	font-weight: 600; font-size: 13px;
	transition: transform .12s, box-shadow .12s;
}
.rm-card__cta-bottom .dashicons { font-size: 16px; transition: transform .15s; }
.rm-card__cta-bottom.rm-card__cta--solid {
	background: var(--rm-accent); color: var(--rm-on-accent); border: 1px solid var(--rm-accent);
}
.rm-card__cta-bottom.rm-card__cta--outline {
	background: transparent; color: var(--rm-fg); border: 1px solid var(--rm-border);
}
.rm-card:hover .rm-card__cta-bottom .dashicons { transform: translateX(3px); }
.rm-card:hover .rm-card__cta-bottom.rm-card__cta--outline { border-color: var(--rm-accent); color: var(--rm-accent); }

/* CTA — overlay (only visible on hover) */
.rm-card--cta-overlay .rm-card__media { position: relative; }
.rm-card__cta-overlay {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateY(8px);
	padding: 10px 22px; font-weight: 700; font-size: 14px;
	border-radius: var(--rm-radius-button, 999px);
	opacity: 0; transition: opacity .15s, transform .15s;
	pointer-events: none;
	white-space: nowrap;
}
.rm-card__cta-overlay.rm-card__cta--solid {
	background: var(--rm-accent); color: var(--rm-on-accent);
}
.rm-card__cta-overlay.rm-card__cta--outline {
	background: var(--rm-bg); color: var(--rm-fg); border: 1px solid var(--rm-fg);
}
.rm-card:hover .rm-card__cta-overlay {
	opacity: 1;
	transform: translate(-50%, -50%) translateY(0);
}
.rm-card--cta-overlay .rm-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
	opacity: 0; transition: opacity .15s;
}
.rm-card--cta-overlay:hover .rm-card__media::after { opacity: 1; }

/* ═════════════════════════════════════════════════════════════════
   V5.2 — My Account
   ═════════════════════════════════════════════════════════════════ */

.rm-account {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	max-width: 1280px; margin: 0 auto;
	padding: 56px 24px 80px;
	min-height: 60vh;
}
@media (max-width: 880px) { .rm-account { grid-template-columns: 1fr; gap: 24px; } }

.rm-account__nav {
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); padding: 20px 16px;
	position: sticky; top: 100px; align-self: start;
}
.rm-account__nav-header {
	display: flex; gap: 12px; align-items: center;
	padding: 0 8px 16px; margin-bottom: 12px;
	border-bottom: 1px solid var(--rm-border);
}
.rm-account__avatar img { border-radius: 50%; }
.rm-account__greeting-label { display: block; font-size: 11px; color: var(--rm-fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rm-account__greeting-name { display: block; font-weight: 600; font-size: 14px; }

.rm-account__nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rm-account__nav-list li a {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; border-radius: var(--rm-radius-md, 8px);
	text-decoration: none; color: var(--rm-fg-muted);
	font-size: 14px; font-weight: 500;
	transition: background .12s, color .12s;
}
.rm-account__nav-list li a:hover {
	background: color-mix(in srgb, var(--rm-fg) 5%, transparent);
	color: var(--rm-fg);
}
.rm-account__nav-list li.is-active a,
.rm-account__nav-list li a[aria-current="page"] {
	background: color-mix(in srgb, var(--rm-accent) 12%, transparent);
	color: var(--rm-accent); font-weight: 600;
}
.rm-account__nav-list .dashicons { font-size: 16px; width: 16px; }

.rm-account__content { min-width: 0; }

/* Dashboard */
.rm-account__welcome { margin-bottom: 24px; }
.rm-account__welcome-title { font-family: var(--rm-font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.rm-account__welcome-sub { color: var(--rm-fg-muted); margin: 0; }

.rm-account__stats {
	display: grid; grid-template-columns: 1fr 1fr 1fr;
	gap: 12px; margin-bottom: 32px;
}
@media (max-width: 600px) { .rm-account__stats { grid-template-columns: 1fr 1fr; } }
.rm-account__stat {
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); padding: 24px;
	display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.rm-account__stat-num { font-family: var(--rm-font-display); font-size: 32px; font-weight: 700; line-height: 1; }
.rm-account__stat-label { color: var(--rm-fg-muted); font-size: 13px; }
.rm-account__stat-link { color: var(--rm-accent); text-decoration: none; font-weight: 600; align-self: center; }
.rm-account__stat-link:hover { text-decoration: underline; }

.rm-account__panel {
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); padding: 24px; margin-bottom: 24px;
}
.rm-account__panel-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.rm-account__panel-title { font-family: var(--rm-font-display); font-size: 18px; font-weight: 700; margin: 0; }
.rm-account__panel-link { color: var(--rm-accent); font-size: 13px; text-decoration: none; }
.rm-account__panel-link:hover { text-decoration: underline; }
.rm-account__panel-empty { color: var(--rm-fg-muted); margin: 0; font-size: 14px; }

.rm-account__order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rm-account__order {
	display: grid; grid-template-columns: auto 1fr auto auto;
	gap: 16px; align-items: center;
	padding: 12px 16px;
	background: var(--rm-bg); border-radius: var(--rm-radius-md, 8px);
	font-size: 14px;
}
@media (max-width: 600px) {
	.rm-account__order { grid-template-columns: 1fr 1fr; gap: 8px; }
	.rm-account__order-status { grid-column: 1; }
	.rm-account__order-total { grid-column: 2; text-align: right; }
}
.rm-account__order-id a { font-weight: 600; color: var(--rm-fg); text-decoration: none; }
.rm-account__order-id a:hover { color: var(--rm-accent); }
.rm-account__order-date { color: var(--rm-fg-muted); font-size: 13px; }
.rm-account__status-pill {
	display: inline-block; padding: 3px 10px;
	background: color-mix(in srgb, var(--rm-fg-muted) 15%, transparent);
	color: var(--rm-fg-muted);
	border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.rm-account__status-pill--completed,
.rm-account__status-pill--processing {
	background: color-mix(in srgb, #16a34a 18%, transparent); color: #16a34a;
}
.rm-account__status-pill--pending,
.rm-account__status-pill--on-hold { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #f59e0b; }
.rm-account__status-pill--cancelled,
.rm-account__status-pill--failed,
.rm-account__status-pill--refunded { background: color-mix(in srgb, var(--rm-accent) 18%, transparent); color: var(--rm-accent); }
.rm-account__order-total { font-weight: 700; }

.rm-account__quick-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 600px) { .rm-account__quick-grid { grid-template-columns: 1fr; } }
.rm-account__quick-card {
	display: flex; flex-direction: column; gap: 4px;
	padding: 24px;
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px);
	text-decoration: none; color: var(--rm-fg);
	transition: border-color .12s, transform .12s;
}
.rm-account__quick-card:hover { border-color: var(--rm-accent); transform: translateY(-1px); }
.rm-account__quick-card .dashicons { font-size: 20px; color: var(--rm-accent); margin-bottom: 4px; }
.rm-account__quick-card strong { font-size: 14px; }
.rm-account__quick-card span:not(.dashicons) { color: var(--rm-fg-muted); font-size: 13px; }

/* WC default account content polish (orders table, address blocks, etc.) */
.rm-account__content .woocommerce-MyAccount-content { background: transparent; padding: 0; }
.rm-account__content table.woocommerce-orders-table,
.rm-account__content table.shop_table {
	width: 100%; border-collapse: collapse;
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); overflow: hidden;
}
.rm-account__content table.shop_table th,
.rm-account__content table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--rm-border); }
.rm-account__content table.shop_table th { background: var(--rm-bg); font-weight: 600; font-size: 13px; color: var(--rm-fg-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rm-account__content table.shop_table tr:last-child td { border-bottom: 0; }
.rm-account__content .woocommerce-Address {
	background: var(--rm-surface); border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-lg, 16px); padding: 24px; margin-bottom: 16px;
}
.rm-account__content .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.rm-account__content .woocommerce-Address-title h2 { font-family: var(--rm-font-display); font-size: 18px; margin: 0; }
.rm-account__content .button {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; background: var(--rm-accent); color: var(--rm-on-accent);
	border-radius: var(--rm-radius-button, 999px); border: 0;
	font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14px;
}
.rm-account__content .button:hover { transform: translateY(-1px); }
.rm-account__content form .form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rm-account__content form input[type=text],
.rm-account__content form input[type=email],
.rm-account__content form input[type=password],
.rm-account__content form input[type=tel],
.rm-account__content form select,
.rm-account__content form textarea {
	padding: 10px 14px; background: var(--rm-bg); color: var(--rm-fg);
	border: 1px solid var(--rm-border); border-radius: var(--rm-radius-md, 8px);
}

/* My account: text-align overrides for table cells */
.rm-account__content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions,
.rm-account__content table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total { text-align: right; }

/* ═════════════════════════════════════════════════════════════════
   V5.3 — Boxed countdown + refined card design
   ═════════════════════════════════════════════════════════════════ */

/* Boxed countdown */
.rm-countdown-boxes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 12px 0;
}

.rm-countdown-boxes__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 4px;
	background: var(--rm-bg);
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-md, 8px);
	gap: 2px;
	min-width: 0;
}

.rm-countdown-boxes__num {
	font-family: var(--rm-font-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	color: var(--rm-fg);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.rm-countdown-boxes__lbl {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rm-fg-muted);
	line-height: 1;
}

@media (max-width: 480px) {
	.rm-countdown-boxes__num { font-size: 17px; }
	.rm-countdown-boxes__lbl { font-size: 9px; }
}

/* Card progress with label */
.rm-card__progress {
	position: relative;
	height: 6px;
	background: var(--rm-bg);
	border-radius: 999px;
	overflow: visible;
	margin: 0 0 10px;
}

.rm-card__progress > span {
	display: block;
	height: 6px;
	background: linear-gradient(90deg, var(--rm-accent), var(--rm-accent-2, var(--rm-accent)));
	border-radius: 999px;
	transition: width .3s ease;
}

.rm-card__progress-label {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--rm-fg-muted);
	letter-spacing: 0.04em;
}

/* Card meta — price prefix + amount */
.rm-card__price-prefix {
	font-size: 11px;
	color: var(--rm-fg-muted);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rm-card__price-amount {
	font-family: var(--rm-font-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--rm-fg);
}
.rm-card__price-amount .woocommerce-Price-amount { color: inherit; }

/* Refined card body spacing */
.rm-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
}

.rm-card__body > * { margin: 0; }

.rm-card__title {
	font-family: var(--rm-font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--rm-fg);
}

.rm-card__sub {
	font-size: 13px;
	color: var(--rm-fg-muted);
	line-height: 1.4;
}

.rm-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
