/**
 * RTM Font Preview v1.0.6 — font-preview.css (frontend)
 * All values driven exclusively by CSS custom properties injected via PHP.
 * No hardcoded colors. No Elementor global color references.
 * The high-specificity, !important override layer that actually breaks out of
 * Elementor's var(--e-global-color-*) is emitted from PHP (rtm_fsp_override_layer).
 * NOTE: there is intentionally NO hardcoded `padding:16px 24px` on any button —
 * every button takes padding from the dashboard 4-point matrix vars only.
 */

/* ── Reset ── */
.rtm-suite *, .rtm-suite *::before, .rtm-suite *::after { box-sizing: border-box; margin: 0; }
.rtm-suite {
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--rtm-text);
}

/* ══════════════════════════════════════════════════════════
   INNER TAB NAV
══════════════════════════════════════════════════════════ */
.rtm-nav {
    display: flex;
    justify-content: var(--rtm-tc-align, flex-start);
    gap: 4px;
    background: var(--rtm-tc-bg);
    border-top:    var(--rtm-tc-bt) solid var(--rtm-tc-border);
    border-right:  var(--rtm-tc-br) solid var(--rtm-tc-border);
    border-bottom: var(--rtm-tc-bb) solid var(--rtm-tc-border);
    border-left:   var(--rtm-tc-bl) solid var(--rtm-tc-border);
    border-radius: var(--rtm-tc-r);
    padding: var(--rtm-tc-pt) var(--rtm-tc-pr) var(--rtm-tc-pb) var(--rtm-tc-pl);
    margin-bottom: 20px;
}

/* Stretch alignment — make each tab fill equally */
.rtm-nav[style*="stretch"] .rtm-nav__btn,
.rtm-suite[data-tab-stretch] .rtm-nav__btn {
    flex: 1;
}

.rtm-nav__btn {
    padding: var(--rtm-ti-pt) var(--rtm-ti-pr) var(--rtm-ti-pb) var(--rtm-ti-pl);
    background: var(--rtm-tn-bg);
    color: var(--rtm-tn-text);
    border: 1px solid var(--rtm-tn-brd);
    border-radius: var(--rtm-ti-r);
    font-size: var(--rtm-ti-fs);
    font-weight: 700;
    text-transform: var(--rtm-ti-tt, uppercase);
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
    line-height: 1;
}

.rtm-nav__btn:hover {
    background: var(--rtm-th-bg);
    color: var(--rtm-th-text);
    border-color: var(--rtm-th-brd);
    border-width: var(--rtm-th-bw, 1px);
}

.rtm-nav__btn--active {
    background: var(--rtm-ta-bg);
    color: var(--rtm-ta-text);
    border-color: var(--rtm-ta-brd);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ══════════════════════════════════════════════════════════
   PREVIEW STAGE
══════════════════════════════════════════════════════════ */
.rtm-stage {
    position: relative;
    background: var(--rtm-st-bg);
    color: var(--rtm-st-text);
    border: var(--rtm-st-bw) var(--rtm-b-style) var(--rtm-st-brd);
    border-radius: var(--rtm-st-r);
    padding: var(--rtm-st-pt) var(--rtm-st-pr) var(--rtm-st-pb) var(--rtm-st-pl);
    transition: background .28s, color .28s;
}

.rtm-stage.rtm-stage--dark {
    background: #09090b !important;
    color: #f4f4f5 !important;
    border-color: #27272a !important;
}
.rtm-stage.rtm-stage--dark .rtm-specimen__lbl { color: #3f3f46 !important; }
.rtm-stage.rtm-stage--dark .rtm-specimen       { border-color: #1e1e22 !important; }

/* Specimen rows */
.rtm-specimen {
    border-bottom: 1px solid var(--rtm-st-brd);
    padding-bottom: 22px;
    margin-bottom: 22px;
}
.rtm-specimen:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.rtm-specimen__lbl {
    display: block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--rtm-st-lbl);
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rtm-sampler {
    font-family: "RTMVariableFont", system-ui, sans-serif;
    outline: none;
    word-break: break-word;
    cursor: text;
}

/* ── Module B: Gear ctrl button ──
   Padding comes ONLY from --rtm-cb-* matrix vars. No hardcoded 16/24. */
.rtm-ctrl-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
}

.rtm-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rtm-cb-pt) var(--rtm-cb-pr) var(--rtm-cb-pb) var(--rtm-cb-pl);
    background: var(--rtm-cb-n-bg);
    color: var(--rtm-cb-n-icon);
    border: 1px solid var(--rtm-cb-n-brd);
    border-radius: var(--rtm-cb-r);
    cursor: pointer;
    transition: opacity .15s, transform .2s;
    line-height: 0;
}
/* v1.0.7: rotate-on-hover removed per spec — gear stays static. */
.rtm-ctrl-btn:hover { opacity: 1; }
.rtm-ctrl-btn .rtm-gear { color: var(--rtm-cb-n-icon); fill: var(--rtm-cb-n-icon); }

/* ── Control panel ── */
.rtm-ctrl-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 248px;
    background: var(--rtm-cp-bg);
    border: 1px solid var(--rtm-cp-brd);
    border-radius: var(--rtm-cp-r);
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    z-index: 100;
}

.rtm-cp-row   { display: flex; flex-direction: column; gap: 5px; }
.rtm-cp-head  { display: flex; justify-content: space-between; align-items: center; }
.rtm-cp-lbl   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #71717a; }
.rtm-cp-val   { font-size: 11px; font-weight: 400; color: var(--rtm-accent); }

.rtm-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: #e4e4e7;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.rtm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--rtm-accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    cursor: pointer;
}
.rtm-range::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--rtm-accent); border: 2px solid #fff;
}

/* Icon rows — alignment & theme.
   v1.0.7: background chip removed — icons only. Normal/Hover/Active colours
   come from the PHP override layer (--rtm-icon-align/theme[-h|-a]). */
.rtm-icon-row  { display: flex; gap: 8px; }
.rtm-icon-btn  {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: color .13s, opacity .13s;
}
.rtm-icon-btn:hover { background: transparent; }
.rtm-icon-btn--active { background: transparent; }

/* ── OpenType checklist — solid-fill active state ── */
.rtm-ot-list  { display: flex; flex-direction: column; gap: 5px; }
.rtm-ot-item  {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 7px 9px;
    border-radius: 6px;
    transition: background .13s;
    user-select: none;
}
.rtm-ot-item:hover { background: #f4f4f5; }
.rtm-ot-item.rtm-ot--active { background: var(--rtm-accent); }          /* solid fill */
.rtm-ot-item.rtm-ot--active .rtm-ot-name,
.rtm-ot-item.rtm-ot--active .rtm-ot-code { color: #fff; }

.rtm-ot-icon {
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 1.5px solid #d4d4d8;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .13s, border-color .13s, color .13s;
    background: #fff;
    color: var(--rtm-icon-otf, #555);
}
.rtm-ot-item.rtm-ot--active .rtm-ot-icon {
    background: #fff;
    border-color: #fff;
    color: var(--rtm-accent);
}
.rtm-ot-name  { font-size: 11px; font-weight: 600; color: #18181b; flex: 1; }
.rtm-ot-code  { font-size: 9px; font-family: monospace; color: #a1a1aa; margin-left: 4px; }

/* ── Module D: Purchase Options button ──
   Padding from --rtm-buy-* matrix only. */
.rtm-buy-wrap { margin-top: 18px; }
.rtm-buy-btn {
    display: block;
    width: 100%;
    padding: var(--rtm-buy-pt) var(--rtm-buy-pr) var(--rtm-buy-pb) var(--rtm-buy-pl);
    background: var(--rtm-buy-n-bg);
    color: var(--rtm-buy-n-text);
    border: 1px solid var(--rtm-buy-n-brd);
    border-radius: var(--rtm-buy-r);
    font-size: var(--rtm-buy-fs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    text-align: center;
    transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.rtm-buy-btn:hover {
    background: var(--rtm-buy-h-bg);
    color: var(--rtm-buy-h-text);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* ══════════════════════════════════════════════════════════
   GLYPHS
══════════════════════════════════════════════════════════ */
.rtm-glyphs-wrap {
    background: var(--rtm-bg);
    border: 1px solid var(--rtm-border);
    border-radius: var(--rtm-st-r);
    padding: 22px;
}
.rtm-glyphs-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rtm-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
    gap: 12px;
}
.rtm-glyphs-title { display: block; font-size: 14px; font-weight: 800; color: var(--rtm-text); }
.rtm-glyphs-sub   { display: block; font-size: 11px; color: #71717a; margin-top: 2px; }
.rtm-glyphs-count { font-size: 11px; font-weight: 600; color: #71717a; background: var(--rtm-card-bg); border: 1px solid var(--rtm-border); padding: 4px 12px; border-radius: 6px; white-space: nowrap; }

.rtm-glyphs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px,1fr)); gap: 7px; }
.rtm-glyph {
    border: 1px solid var(--rtm-border);
    border-radius: 8px;
    padding: 11px 4px 7px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--rtm-card-bg);
    cursor: default;
    transition: border-color .13s, transform .13s;
}
.rtm-glyph:hover { border-color: var(--rtm-accent); transform: translateY(-2px); }
.rtm-glyph__char { font-family: "RTMVariableFont", sans-serif; font-size: 22px; color: var(--rtm-text); line-height: 1; }
.rtm-glyph__code { font-size: 7px; font-family: monospace; color: #a1a1aa; }

/* ── Advanced categorized glyph browser (1.1.3) ── */
.rtm-gx { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.rtm-gx-nav { position: sticky; top: 12px; align-self: start; }
.rtm-gx-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 600px; overflow-y: auto; }
.rtm-gx-nav__item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600; color: var(--rtm-text);
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: background .13s, color .13s, border-color .13s;
}
.rtm-gx-nav__item:hover { background: var(--rtm-card-bg); border-color: var(--rtm-border); }
.rtm-gx-nav__item.is-active { background: var(--rtm-accent); color: var(--rtm-bg); border-color: var(--rtm-accent); }
.rtm-gx-nav__cnt { font-size: 10px; font-weight: 700; font-family: monospace; color: #a1a1aa; }
.rtm-gx-nav__item:hover .rtm-gx-nav__cnt { color: var(--rtm-text); }
.rtm-gx-nav__item.is-active .rtm-gx-nav__cnt { color: var(--rtm-bg); opacity: .75; }

.rtm-gx-body { position: relative; max-height: 600px; overflow-y: auto; padding-right: 8px; scroll-behavior: smooth; }
.rtm-gx-sec { margin-bottom: 28px; }
.rtm-gx-sec:last-child { margin-bottom: 4px; }
.rtm-gx-sec__head {
    display: flex; align-items: baseline; gap: 10px;
    margin-bottom: 14px; padding: 6px 0;
    position: sticky; top: 0; z-index: 2;
    background: var(--rtm-bg);
    border-bottom: 1px solid var(--rtm-border);
}
.rtm-gx-sec__title { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--rtm-text); }
.rtm-gx-sec__cnt { font-size: 11px; font-weight: 700; font-family: monospace; color: var(--rtm-accent); }
.rtm-gx-note { margin: 12px 0 0; font-size: 11px; color: #71717a; font-style: italic; }

.rtm-gx-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.rtm-gx-lang {
    font-size: 12px; font-weight: 600; color: var(--rtm-text);
    background: var(--rtm-card-bg); border: 1px solid var(--rtm-border);
    padding: 6px 13px; border-radius: 999px;
}

@media (max-width: 600px) {
    .rtm-gx { grid-template-columns: 1fr; gap: 14px; }
    .rtm-gx-nav { position: static; }
    .rtm-gx-nav__list { flex-direction: row; flex-wrap: wrap; max-height: none; }
    .rtm-gx-nav__item { flex: 0 0 auto; }
    .rtm-gx-body { max-height: none; overflow: visible; padding-right: 0; }
    .rtm-gx-sec__head { position: static; }
}

/* ══════════════════════════════════════════════════════════
   DETAILS
══════════════════════════════════════════════════════════ */
.rtm-details-wrap {
    background: var(--rtm-bg);
    border: 1px solid var(--rtm-border);
    border-radius: var(--rtm-st-r);
    padding: 26px;
}
.rtm-details__title { font-size: 18px; font-weight: 800; color: var(--rtm-text); margin-bottom: 14px; }
.rtm-details__desc  { font-size: 14px; line-height: 1.7; color: var(--rtm-text); opacity: .85; border-bottom: 1px solid var(--rtm-border); padding-bottom: 18px; margin-bottom: 18px; }
.rtm-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.rtm-spec  { display: flex; flex-direction: column; gap: 6px; }
.rtm-spec__lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #a1a1aa; }
.rtm-spec__val { font-size: 13px; font-weight: 500; color: var(--rtm-text); }

.rtm-badges    { display: flex; flex-wrap: wrap; gap: 5px; }
.rtm-badge     { background: var(--rtm-accent); color: #fff; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }
.rtm-fmt-note  { font-size: 11px; font-style: italic; color: #71717a; margin-top: 6px; }

/* ══════════════════════════════════════════════════════════
   OFFCANVAS PANEL (Module D)
══════════════════════════════════════════════════════════ */
.rtm-oc-bd {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 99998;
    opacity: 0;
    transition: opacity .3s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.rtm-oc-bd.rtm-oc-bd--open { opacity: 1; }

.rtm-oc {
    position: fixed;
    z-index: 99999;
    background: var(--rtm-oc-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .38s cubic-bezier(.16,1,.3,1);
    will-change: transform;
}

.rtm-oc-right  { top:0; right:0; bottom:0; width: var(--rtm-oc-w); transform: translateX(100%); }
.rtm-oc-left   { top:0; left:0;  bottom:0; width: var(--rtm-oc-w); transform: translateX(-100%); }
.rtm-oc-top    { top:0; left:0;  right:0;  height: 58vh; transform: translateY(-100%); }
.rtm-oc-bottom { bottom:0; left:0; right:0; height: 58vh; transform: translateY(100%); }
.rtm-oc.rtm-oc--open { transform: translate(0,0) !important; }

.rtm-oc-inner { display: flex; flex-direction: column; height: 100%; }

/* Header */
.rtm-oc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--rtm-oc-hbg);
    border-bottom: 1px solid var(--rtm-oc-rbrd);
    flex-shrink: 0;
}
.rtm-oc-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--rtm-oc-htx);
    letter-spacing: .02em;
    line-height: 1.2;
}
.rtm-oc-close {
    /* size now driven by padding (--rtm-oc-cl-p*) from the override layer */
    border-radius: 50%;
    background: var(--rtm-oc-cl-n-bg);
    border: 1px solid var(--rtm-oc-cl-n-brd);
    color: var(--rtm-oc-cl-n-icon);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .13s, border-color .13s, color .13s;
}
.rtm-oc-close svg { color: var(--rtm-oc-cl-n-icon); stroke: var(--rtm-oc-cl-n-icon); }

/* Body */
.rtm-oc-body { flex: 1; overflow-y: auto; padding: 16px 20px; scrollbar-width: thin; }

/* License rows */
.rtm-rows { display: flex; flex-direction: column; gap: 8px; }

.rtm-row {
    border: 2px solid var(--rtm-oc-rbrd);
    border-radius: var(--rtm-oc-rr);
    overflow: hidden;
    transition: border-color .14s;
}
.rtm-row:hover { border-color: var(--rtm-accent); }
.rtm-row--active {
    border-color: var(--rtm-oc-rabrd) !important;
    background: var(--rtm-oc-rabg);
}

.rtm-row__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--rtm-oc-rpt) var(--rtm-oc-rpr) var(--rtm-oc-rpb) var(--rtm-oc-rpl);
}

/* Custom radio */
.rtm-radio-wrap { display: flex; align-items: center; flex-shrink: 0; cursor: pointer; }
.rtm-radio      { position: absolute; opacity: 0; width: 0; height: 0; }
.rtm-radio__dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #d4d4d8;
    position: relative;
    flex-shrink: 0;
    display: block;
    transition: border-color .14s;
}
.rtm-radio:checked ~ .rtm-radio__dot { border-color: var(--rtm-accent); }
.rtm-radio:checked ~ .rtm-radio__dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--rtm-accent);
}
.rtm-radio:disabled ~ .rtm-radio__dot { opacity: .35; cursor: not-allowed; }

.rtm-row__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.rtm-row__name { font-size: 13px; font-weight: 700; color: var(--rtm-oc-lbl); }
.rtm-row__oos  { font-size: 10px; font-weight: 600; color: #ef4444; }

.rtm-row__price {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 900;
    color: var(--rtm-oc-price);
    white-space: nowrap;
}
.rtm-row__price .amount,
.rtm-row__price .woocommerce-Price-amount { color: inherit; }

/* License-details toggle button — icon only, no chip/background (1.1.0) */
.rtm-tip-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    margin: 0;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    flex: 0 0 auto;
    padding: 0;
    line-height: 0;               /* kill inherited line-box height that offsets the icon */
    vertical-align: middle;       /* stable if a theme treats the button as inline */
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;             /* strip native button chrome that breaks alignment */
    transition: color .13s, opacity .13s;
}
.rtm-tip-btn svg { display: block; width: 14px; height: 14px; }  /* removes baseline gap under the SVG */
.rtm-tip-btn:hover,
.rtm-tip-btn[aria-expanded="true"] { color: var(--rtm-accent); opacity: .85; }

/* Inline expanding dropdown accordion — sits directly under the license title.
   (Replaces the old absolute popover; no "License Option:" string.) */
.rtm-tip-body {
    background: var(--rtm-oc-tbg);
    color: var(--rtm-oc-ttx);
    font-size: 12px;
    line-height: 1.55;
    padding: var(--rtm-oc-tip-pt, 11px) var(--rtm-oc-tip-pr, 16px) var(--rtm-oc-tip-pb, 11px) var(--rtm-oc-tip-pl, 16px);
    border-radius: var(--rtm-oc-tr);
    margin: 0 12px 12px;
    animation: rtm-drop .17s ease;
}
@keyframes rtm-drop { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }

/* Total */
.rtm-oc-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--rtm-oc-totbg);
    border: 1px solid var(--rtm-oc-rbrd);
    border-radius: 10px;
}
.rtm-oc-total > span:first-child { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--rtm-oc-tottx); opacity: .6; }
.rtm-oc-total__price { font-size: 20px; font-weight: 900; color: var(--rtm-oc-price); }
.rtm-oc-total__price .amount,
.rtm-oc-total__price .woocommerce-Price-amount { color: inherit; }

.rtm-oc-simple       { text-align: center; padding: 20px 0; }
.rtm-oc-simple__price{ font-size: 28px; font-weight: 900; color: var(--rtm-oc-price); }
.rtm-oc-simple__price .amount { color: inherit; }

/* Footer */
.rtm-oc-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid var(--rtm-oc-rbrd);
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.rtm-oc-contact { font-size: 11px; color: #71717a; text-align: center; line-height: 1.5; }
.rtm-oc-contact a { color: var(--rtm-accent); font-weight: 700; text-decoration: underline; }

.rtm-cart-notice { font-size: 13px; font-weight: 700; text-align: center; opacity: 0; transition: opacity .2s; min-height: 0; }
.rtm-cart-notice.rtm-cn--show  { opacity: 1; color: #22c55e; }
.rtm-cart-notice.rtm-cn--error { opacity: 1; color: #ef4444; }

/* Add to Cart button — all values from CSS vars (padding from matrix). */
.rtm-atc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: var(--rtm-oc-atpt) var(--rtm-oc-atpr) var(--rtm-oc-atpb) var(--rtm-oc-atpl);
    background: var(--rtm-oc-at-n-bg);
    color: var(--rtm-oc-at-n-text);
    border: 1px solid var(--rtm-oc-at-n-brd);
    border-radius: var(--rtm-oc-atr);
    font-size: var(--rtm-oc-atfs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.rtm-atc-btn:hover    { background: var(--rtm-oc-at-h-bg); color: var(--rtm-oc-at-h-text); transform: translateY(-1px); }
.rtm-atc-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.rtm-atc-spin {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rtm-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes rtm-spin { to { transform: rotate(360deg); } }

/* Scroll lock */
body.rtm-locked { overflow: hidden !important; }

/* ── Post-add two-button state (1.1.2): Add More Licenses + Go to Cart ── */
.rtm-atc-done { display: flex; gap: 10px; width: 100%; }
.rtm-done-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    /* Same styling controls as Confirm & Add to Cart (single control group) */
    padding: var(--rtm-oc-atpt) var(--rtm-oc-atpr) var(--rtm-oc-atpb) var(--rtm-oc-atpl);
    background: var(--rtm-oc-at-n-bg);
    color: var(--rtm-oc-at-n-text);
    border: 1px solid var(--rtm-oc-at-n-brd);
    border-radius: var(--rtm-oc-atr);
    font-size: var(--rtm-oc-atfs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background .18s, color .18s, border-color .18s;
}
.rtm-done-btn:hover  { background: var(--rtm-oc-at-h-bg); color: var(--rtm-oc-at-h-text); border-color: var(--rtm-oc-at-h-brd); }
.rtm-done-btn:active { background: var(--rtm-oc-at-a-bg); color: var(--rtm-oc-at-a-text); border-color: var(--rtm-oc-at-a-brd); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .rtm-oc-right, .rtm-oc-left { width: 100% !important; }
    .rtm-ctrl-panel { width: 218px; }
    .rtm-glyphs-grid { grid-template-columns: repeat(auto-fill, minmax(52px,1fr)); }
    .rtm-nav { flex-wrap: wrap; }
}

/* ── v1.5.0: Product Tabs Display Mode — "List" renders all sections stacked ── */
.rtm-panel-title { display: none; }
.rtm-suite--list .rtm-nav { display: none; }
.rtm-suite--list .rtm-panel {
    display: block !important;
    margin-bottom: 36px;
}
.rtm-suite--list .rtm-panel:last-child { margin-bottom: 0; }
.rtm-suite--list .rtm-panel-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rtm-border, #e5e5e5);
    color: var(--rtm-text, #111);
}
