/* ============================================================
   Refubly — account
   Split out of the old single refubly-theme.css, rule by rule: a selector
   rendered by exactly one page lives in that page's file, anything shared
   lives here. Media queries are re-wrapped per file, so each keeps only its
   own overrides.
   Load order: base -> chrome -> components -> <page>. Keep it.
   NOTE: theme sets html{font-size:62.5%} -> 1rem = 10px.
   ============================================================ */

/* ============================================================
   VENDOR / PARTNER LANDING PAGE  (/vendor)
   Everything here is scoped under .rf-vp so it cannot leak into
   the rest of the site. Reminder: html{font-size:62.5%} -> 1rem = 10px.
   ============================================================ */

.rf-vp {
    background: var(--rf-surface);
    color: var(--rf-text);
}

.rf-vp-section {
    margin-bottom: 9rem;
}

.rf-vp-h1 {
    font-family: var(--rf-font-heading);
    font-size: clamp(3.2rem, 2.2rem + 2.4vw, 5.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--rf-ink);
    margin: 0 0 1.8rem;
}

.rf-vp-h2 {
    font-family: var(--rf-font-heading);
    font-size: clamp(2.2rem, 1.6rem + 1.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: var(--rf-ink);
    margin: 0 0 2.4rem;
}

.rf-vp-h2-light { color: #fff; }

.rf-vp-accent { color: var(--rf-primary); font-weight: 700; }

/* ---------- Buttons ---------- */

.rf-vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.1rem 2.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rf-vp-btn:hover { transform: translateY(-1px); }

.rf-vp-btn i { font-size: 1.2rem; }

.rf-vp-btn-lg { padding: 1.4rem 2.8rem; font-size: 1.5rem; }

.rf-vp-btn-primary {
    background: var(--rf-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(5, 128, 58, .22);
}

.rf-vp-btn-primary:hover,
.rf-vp-btn-primary:focus { background: var(--rf-primary-dark); color: #fff; }

.rf-vp-btn-ghost {
    background: transparent;
    color: var(--rf-ink);
    border-color: var(--rf-border);
}

.rf-vp-btn-ghost:hover,
.rf-vp-btn-ghost:focus { border-color: var(--rf-ink); color: var(--rf-ink); }

.rf-vp-btn-dark {
    background: var(--rf-ink);
    color: #fff;
}

.rf-vp-btn-dark:hover,
.rf-vp-btn-dark:focus { background: #060f26; color: #fff; }

.rf-vp-btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.rf-vp-btn-outline-light:hover,
.rf-vp-btn-outline-light:focus { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }

/* ---------- In-page nav ---------- */

.rf-vp-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--rf-border);
}

.rf-vp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 6.4rem;
}

.rf-vp-nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.rf-vp-nav-links::-webkit-scrollbar { display: none; }

.rf-vp-nav-links a {
    position: relative;
    display: block;
    padding: 2.1rem 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--rf-text);
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease;
}

.rf-vp-nav-links a:hover { color: var(--rf-ink); }

/* ---------- Hero ---------- */

.rf-vp-hero { padding: 6.4rem 0 8rem; }

.rf-vp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 6rem;
}

.rf-vp-hero-lead {
    font-family: var(--rf-font-heading);
    font-size: clamp(1.8rem, 1.4rem + .8vw, 2.4rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--rf-ink);
    margin: 0 0 1rem;
}

.rf-vp-hero-note {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--rf-muted);
    margin: 0 0 3rem;
    max-width: 46ch;
}

.rf-vp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.rf-vp-hero-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.8rem;
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
    font-size: 1.4rem;
    color: var(--rf-text);
}

.rf-vp-hero-ticks li { display: flex; align-items: center; gap: .8rem; }

.rf-vp-hero-ticks i { color: var(--rf-primary); font-size: 1.2rem; }

/* Media side: brand-gradient panel with the photo overlapping it, mirroring
   the reference layout without needing a cut-out subject image. */

.rf-vp-hero-media {
    position: relative;
    min-height: 44rem;
}

.rf-vp-hero-panel {
    position: absolute;
    inset: 0 0 4rem 12%;
    border-radius: 2.4rem;
    background: var(--rf-gradient-green);
}

.rf-vp-hero-figure {
    position: relative;
    margin: 0;
    top: 4rem;
    max-width: 82%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(13, 27, 61, .22);
}

.rf-vp-hero-figure img { display: block; width: 100%; height: auto; }

.rf-vp-hero-badge {
    position: absolute;
    right: 0;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.6rem 2rem;
    background: #fff;
    border-radius: 1.6rem;
    box-shadow: var(--rf-shadow-hover);
}

.rf-vp-hero-badge-num {
    font-family: var(--rf-font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--rf-primary);
    line-height: 1;
}

.rf-vp-hero-badge-label {
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--rf-muted);
}

/* ---------- What's in store ---------- */

.rf-vp-stat-line {
    font-size: clamp(1.5rem, 1.3rem + .4vw, 1.8rem);
    font-weight: 600;
    color: var(--rf-ink);
    margin: 0 0 .8rem;
}

.rf-vp-stat-sub {
    font-size: 1.5rem;
    color: var(--rf-muted);
    margin: 0;
}

/* ---------- What you get ---------- */

.rf-vp-get-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}

.rf-vp-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.rf-vp-stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .4rem;
    padding: 2.4rem;
    border-radius: 1.6rem;
    background: var(--rf-bg-soft);
    min-height: 13rem;
}

.rf-vp-stat-hero {
    grid-column: 1 / -1;
    min-height: 18rem;
    color: #fff;
    background: var(--rf-gradient-green);
}

.rf-vp-stat-hero .rf-vp-stat-label { color: rgba(255, 255, 255, .9); }

.rf-vp-stat-num {
    font-family: var(--rf-font-heading);
    font-size: clamp(2.8rem, 2rem + 2vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    color: inherit;
}

.rf-vp-stat:not(.rf-vp-stat-hero) .rf-vp-stat-num { color: var(--rf-ink); }

.rf-vp-stat-label {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--rf-muted);
}

.rf-vp-brandgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.rf-vp-brandcell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1.2rem;
    min-height: 7rem;
    background: #fff;
    border: 1px solid var(--rf-border);
    border-radius: 1.2rem;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.rf-vp-brandcell:hover { border-color: transparent; box-shadow: var(--rf-shadow-hover); }

.rf-vp-brandcell img {
    max-width: 100%;
    max-height: 3.2rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rf-vp-brandname {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rf-ink);
    text-align: center;
}

.rf-vp-brandcell-more span {
    font-size: 1.3rem;
    color: var(--rf-muted);
    text-align: center;
}

/* ---------- Why partner (dark) ---------- */

.rf-vp-dark {
    position: relative;
    overflow: hidden;
    padding: 6rem clamp(2rem, 4vw, 6rem);
    border-radius: 2.4rem;
    background: #0a1020;
}

/* Decorative dot fields, matching the reference's corner texture. */

.rf-vp-dots {
    position: absolute;
    width: 9rem;
    height: 5rem;
    background-image: radial-gradient(rgba(255, 255, 255, .28) 1.5px, transparent 1.5px);
    background-size: 1.4rem 1.4rem;
    pointer-events: none;
}

.rf-vp-dots-tl { top: 3rem; left: 3rem; }

.rf-vp-dots-tr { top: 3rem; right: 3rem; }

.rf-vp-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.rf-vp-why-card {
    padding: 2.4rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .03);
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.rf-vp-why-card:hover {
    border-color: rgba(126, 217, 87, .5);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-2px);
}

.rf-vp-why-card-wide { grid-column: 1 / -1; }

.rf-vp-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    margin-bottom: 1.6rem;
    border-radius: 1.1rem;
    background: rgba(126, 217, 87, .14);
    color: var(--rf-green-light);
    font-size: 1.8rem;
}

.rf-vp-why-title {
    font-family: var(--rf-font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .8rem;
}

.rf-vp-why-text {
    font-size: 1.4rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .68);
    margin: 0;
}

/* ---------- How to partner ---------- */

.rf-vp-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.rf-vp-step-media {
    position: relative;
    margin-bottom: 2.4rem;
}

.rf-vp-step-num {
    position: absolute;
    top: -2.4rem;
    left: 0;
    z-index: 1;
    font-family: var(--rf-font-heading);
    font-size: 9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rf-primary-soft);
    pointer-events: none;
}

.rf-vp-step-figure {
    position: relative;
    margin: 0;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: var(--rf-shadow-hover);
}

.rf-vp-step-figure img {
    display: block;
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

.rf-vp-step-title {
    font-family: var(--rf-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rf-ink);
    margin: 0 0 .8rem;
}

.rf-vp-step-text {
    font-size: 1.4rem;
    line-height: 1.65;
    color: var(--rf-muted);
    margin: 0 auto;
    max-width: 38ch;
}

/* ---------- Success stories ---------- */

.rf-vp-stories-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.4rem;
}

.rf-vp-stories-head .rf-vp-h2 { margin-bottom: 0; }

.rf-vp-stories-nav { display: flex; gap: .8rem; }

.rf-vp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--rf-border);
    border-radius: 50%;
    background: #fff;
    color: var(--rf-ink);
    font-size: 1.3rem;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.rf-vp-arrow:hover:not(:disabled) { background: var(--rf-primary); border-color: var(--rf-primary); color: #fff; }

.rf-vp-arrow:disabled { opacity: .35; cursor: default; }

.rf-vp-stories-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 2rem) / 4);
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: .4rem;
}

.rf-vp-stories-track::-webkit-scrollbar { display: none; }

.rf-vp-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.4rem;
    margin: 0;
    padding: 2.4rem;
    border-radius: 1.4rem;
    background: var(--rf-bg-soft);
    scroll-snap-align: start;
}

.rf-vp-story-quote {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--rf-text);
}

.rf-vp-story-by {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.rf-vp-story-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--rf-gradient-blue);
    color: #fff;
    font-family: var(--rf-font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.rf-vp-story-by strong {
    display: block;
    font-size: 1.4rem;
    color: var(--rf-ink);
}

.rf-vp-story-by small {
    display: block;
    font-size: 1.25rem;
    color: var(--rf-muted);
}

/* ---------- Closing CTA ---------- */

.rf-vp-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 4rem;
    padding: 5.6rem clamp(2.4rem, 4vw, 6rem);
    border-radius: 2.4rem;
    background: var(--rf-gradient-blue);
    color: #fff;
}

.rf-vp-cta-title {
    font-family: var(--rf-font-heading);
    font-size: clamp(2.6rem, 1.8rem + 2vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 1.2rem;
}

.rf-vp-cta-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 2.8rem;
}

.rf-vp-cta-media {
    margin: 0;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.rf-vp-cta-media img { display: block; width: 100%; height: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .rf-vp-stories-track { grid-auto-columns: calc((100% - 2 * 2rem) / 3); }
}

@media (max-width: 991px) {
    .rf-vp-section { margin-bottom: 6.4rem; }

    .rf-vp-hero { padding: 4rem 0 5.6rem; }

    .rf-vp-hero-grid { grid-template-columns: 1fr; gap: 4rem; }

    .rf-vp-hero-media { min-height: 0; }

    .rf-vp-hero-panel { inset: 2rem 0 2rem 6%; }

    .rf-vp-hero-figure { top: 0; max-width: 88%; margin-left: auto; margin-right: auto; }

    .rf-vp-hero-badge { position: static; margin: 1.6rem auto 0; width: max-content; }

    .rf-vp-get-grid { grid-template-columns: 1fr; }

    .rf-vp-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .rf-vp-stories-track { grid-auto-columns: calc((100% - 2rem) / 2); }

    .rf-vp-cta { grid-template-columns: 1fr; text-align: center; }

    .rf-vp-cta .rf-vp-hero-cta { justify-content: center; }

    .rf-vp-cta-media { order: -1; max-width: 42rem; margin-inline: auto; }
}

@media (max-width: 767px) {
    .rf-vp-nav-cta { display: none; }

    .rf-vp-nav-links { gap: 2rem; }

    .rf-vp-dark { padding: 4rem 2rem; border-radius: 1.8rem; }

    .rf-vp-dots { display: none; }

    .rf-vp-why-grid { grid-template-columns: 1fr; }

    .rf-vp-steps { grid-template-columns: 1fr; gap: 4.8rem; }

    .rf-vp-step-num { font-size: 7rem; top: -1.6rem; }

    .rf-vp-stories-track { grid-auto-columns: 84%; }
}

@media (max-width: 575px) {
    .rf-vp-brandgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .rf-vp-stats { grid-template-columns: 1fr; }

    .rf-vp-hero-cta .rf-vp-btn { flex: 1 1 100%; }

    .rf-vp-cta { padding: 4rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rf-vp-btn:hover,
        .rf-vp-why-card:hover { transform: none; }

    .rf-vp-stories-track { scroll-behavior: auto; }
}

/* ============================================================
   VENDOR AUTH + VENDOR PANEL
   .rf-vauth  â€” the cross-link note shared by /login and /vendorlogin,
                plus the stepped vendor registration form.
   .rf-vpanel â€” the signed-in vendor panel (/vendor/*).
   Reminder: html{font-size:62.5%} -> 1rem = 10px.
   ============================================================ */
/* ---------- Shared portal note ---------- */

.rf-vauth-note {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-width: 62rem;
    margin: 0 auto 2.4rem;
    padding: 1.4rem 1.8rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    background: var(--rf-bg-soft);
}

.rf-vauth-note i {
    flex: 0 0 auto;
    color: var(--rf-primary);
    font-size: 1.6rem;
}

.rf-vauth-note p {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--rf-text);
}

.rf-vauth-note a {
    color: var(--rf-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Vendor registration form ---------- */
/* The vendor form is far longer than the customer one, so it gets a wider
   panel and is broken into numbered steps to stay readable. */

.rf-vauth .rf-vauth-panel {
    max-width: 86rem;
}

/* ---------- Stat tiles ---------- */

.rf-vpanel-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.rf-vpanel-tile {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 2rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
}

.rf-vpanel-tile-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--rf-muted);
}

.rf-vpanel-tile-value {
    font-family: var(--rf-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--rf-ink);
}

/* ---------- Cards ---------- */

.rf-vpanel-card {
    padding: 2.4rem;
    margin-bottom: 2rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
}

.rf-vpanel-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 1.8rem;
}

.rf-vpanel-card-head h3 {
    margin: 0;
    font-family: var(--rf-font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--rf-ink);
}

.rf-vpanel-link {
    color: var(--rf-primary);
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.rf-vpanel-link:hover { color: var(--rf-primary-dark); text-decoration: underline; }

.rf-vpanel-link + .rf-vpanel-link { margin-left: 1.2rem; }

.rf-vpanel-muted {
    margin: 1.2rem 0 0;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--rf-muted);
}

.rf-vpanel-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em;
}

/* ---------- Completeness meter ---------- */

.rf-vpanel-meter {
    height: .8rem;
    border-radius: 999px;
    background: var(--rf-border-soft);
    overflow: hidden;
}

.rf-vpanel-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--rf-gradient-green);
}

/* ---------- Definition list ---------- */

.rf-vpanel-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 2.4rem;
    margin: 0;
}

.rf-vpanel-dl > div { min-width: 0; }

.rf-vpanel-dl dt {
    margin: 0 0 .4rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--rf-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rf-vpanel-dl dd {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--rf-ink);
    word-break: break-word;
}

/* ---------- Forms ---------- */

.rf-vpanel-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

.rf-vpanel-field { display: flex; flex-direction: column; min-width: 0; }

.rf-vpanel-field.is-wide { grid-column: 1 / -1; }

.rf-vpanel-field label {
    margin-bottom: .6rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--rf-ink);
}

.rf-vpanel-field input,
.rf-vpanel-field select {
    width: 100%;
    height: 4.4rem;
    padding: 0 1.4rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    background: var(--rf-surface);
    color: var(--rf-ink);
    font-size: 1.4rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.rf-vpanel-field input:focus,
.rf-vpanel-field select:focus {
    outline: none;
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(5, 128, 58, .12);
}

.rf-vpanel-field input:disabled {
    background: var(--rf-bg-soft);
    color: var(--rf-muted);
    cursor: not-allowed;
}

.rf-vpanel-upper { text-transform: uppercase; }

.rf-vpanel-hint { margin-top: .5rem; font-size: 1.2rem; color: var(--rf-muted); }

.rf-vpanel-error { margin-top: .5rem; font-size: 1.2rem; color: #b42318; }

.rf-vpanel-actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-top: 1.8rem;
}

.rf-vpanel-pager { margin-top: 2rem; }

.rf-vpanel-pager .pagination { margin-bottom: 0; }

/* ---------- Empty state ---------- */

.rf-vpanel-empty {
    padding: 4rem 2rem;
    text-align: center;
}

.rf-vpanel-empty i {
    font-size: 3.2rem;
    color: var(--rf-border);
    margin-bottom: 1.4rem;
}

.rf-vpanel-empty p {
    margin: 0 0 1.8rem;
    font-size: 1.4rem;
    color: var(--rf-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .rf-vpanel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .rf-vpanel-fields { grid-template-columns: 1fr; }

    .rf-vpanel-field.is-wide { grid-column: auto; }

    .rf-vpanel-dl { grid-template-columns: 1fr; }

    .rf-vpanel-card { padding: 1.8rem; }

    .rf-vauth-note { flex-direction: column; text-align: center; gap: .8rem; }
}

@media (max-width: 575px) {
    .rf-vpanel-stats { grid-template-columns: 1fr; }

    .rf-vpanel-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 575px) {
    .rf-err-actions .rf-vp-btn { flex: 1 1 100%; }
}

/* ══════════════ Sustainability page (/sustainability) ══════════════ */
.rf-sus .page-content { padding-bottom: 0; }
.rf-sus-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--rf-success, #07a64b); font-weight: 700; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.rf-sus-h2 { font-size: clamp(2.2rem, 3vw, 3.2rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 1.6rem; }
.rf-sus-h3 { font-size: 1.8rem; margin-bottom: .8rem; }
.rf-sus-intro { font-size: 1.55rem; line-height: 1.6; max-width: 76rem; margin-bottom: 2.4rem; }
.rf-sus-section { padding: 5rem 0; }
.rf-sus-section--alt { background: #f6f8fa; }
.rf-sus-note { font-size: 1.25rem; color: #6b7280; margin-top: 1.2rem; }
.rf-sus-hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, #ecf8f0 0%, #fff 100%); }
.rf-sus-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.rf-sus-hero__title { font-size: clamp(2.8rem, 4vw, 4.4rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.6rem; }
.rf-sus-hero__lead { font-size: 1.6rem; line-height: 1.6; color: #374151; margin-bottom: 2.4rem; max-width: 56rem; }
.rf-sus-hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.rf-sus-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.rf-sus-stat { display: grid; grid-template-columns: 4rem 1fr; grid-template-rows: auto auto; column-gap: 1.2rem; padding: 1.6rem 1.8rem; background: #fff; border: 1px solid #d9eee1; border-radius: 1.4rem; box-shadow: 0 .8rem 2.4rem rgba(15, 23, 42, .06); }
.rf-sus-stat__icon { grid-row: 1 / span 2; font-size: 2.6rem; line-height: 1; align-self: center; }
.rf-sus-stat__value { font-size: 2.4rem; line-height: 1.1; color: #14532d; }
.rf-sus-stat__label { font-size: 1.3rem; color: #4b5563; }
.rf-sus-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 80rem; }
.rf-sus-check li { position: relative; padding-left: 3.2rem; font-size: 1.5rem; line-height: 1.55; }
.rf-sus-check li::before { content: "\2713"; position: absolute; left: 0; top: .1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #d8f0e1; color: #14532d; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.rf-sus-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: start; }
.rf-sus-two p { font-size: 1.5rem; line-height: 1.65; }
.rf-sus-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1.4rem; padding: 2.4rem; }
.rf-sus-table-wrap { overflow-x: auto; }
.rf-sus-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1.45rem; border: 1px solid #e5e7eb; border-radius: 1.2rem; overflow: hidden; }
.rf-sus-table th, .rf-sus-table td { padding: 1.2rem 1.6rem; text-align: left; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.rf-sus-table th { background: #f6f8fa; font-weight: 700; }
.rf-sus-table tbody tr:last-child td { border-bottom: 0; }
.rf-sus-table td:first-child { font-weight: 600; width: 22%; }
.rf-sus-table td:nth-child(2) { color: #14532d; font-weight: 600; }
.rf-sus-pill { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: #eef0f3; font-size: 1.25rem; }
.rf-sus-pill--green { background: #d8f0e1; color: #14532d; }
.rf-sus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.rf-sus-benefit { background: #fff; border: 1px solid #e5e7eb; border-radius: 1.4rem; padding: 2.2rem; }
.rf-sus-benefit > i { font-size: 2.2rem; color: var(--rf-success, #07a64b); margin-bottom: 1.2rem; display: block; }
.rf-sus-benefit p { font-size: 1.4rem; line-height: 1.6; margin: 0; color: #374151; }
.rf-sus-circular { margin-top: 2.4rem; padding: 2.4rem; border-radius: 1.4rem; background: #14532d; color: #fff; }
.rf-sus-circular .rf-sus-h3 { color: #fff; }
.rf-sus-circular p { color: #d1fae5; font-size: 1.45rem; line-height: 1.6; }
.rf-sus-steps { counter-reset: sus; list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.rf-sus-steps li { counter-increment: sus; background: #fff; border: 1px solid #e5e7eb; border-radius: 1.4rem; padding: 2rem; font-size: 1.4rem; line-height: 1.55; color: #374151; }
.rf-sus-steps li::before { content: counter(sus); display: flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--rf-success, #07a64b); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.rf-sus-steps li strong { display: block; color: #111; margin-bottom: .3rem; }
.rf-sus-faq { max-width: 84rem; }
.rf-sus-faq details { border: 1px solid #e5e7eb; border-radius: 1.2rem; padding: 0 2rem; margin-bottom: 1rem; background: #fff; }
.rf-sus-faq summary { cursor: pointer; padding: 1.6rem 0; font-size: 1.55rem; font-weight: 700; list-style: none; position: relative; padding-right: 3rem; }
.rf-sus-faq summary::-webkit-details-marker { display: none; }
.rf-sus-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--rf-success, #07a64b); }
.rf-sus-faq details[open] summary::after { content: "\2013"; }
.rf-sus-faq details p { font-size: 1.45rem; line-height: 1.65; padding-bottom: 1.6rem; margin: 0; color: #374151; }
.rf-sus-cta { padding: 5rem 0; background: linear-gradient(135deg, #14532d, #07a64b); color: #fff; text-align: center; }
.rf-sus-cta__title { color: #fff; font-size: clamp(2.4rem, 3vw, 3.4rem); margin-bottom: 1rem; }
.rf-sus-cta p { color: #d1fae5; font-size: 1.55rem; margin-bottom: 2.4rem; }
.rf-sus-cta .rf-sus-hero__actions { justify-content: center; }
.rf-sus-cta .btn-outline { color: #fff; border-color: #fff; }
@media (max-width: 991px) { .rf-sus-hero__grid, .rf-sus-two { grid-template-columns: 1fr; } .rf-sus-grid, .rf-sus-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .rf-sus-grid, .rf-sus-steps { grid-template-columns: 1fr; } .rf-sus-section { padding: 3.2rem 0; } }

/* ══════════════════════════════════════════════════════════════════════════
   HELP DESK — customer + vendor support tickets
   One set of styles for both: the vendor panel supplies its own chrome around
   these, the customer account page supplies .rf-sup's own.
   ══════════════════════════════════════════════════════════════════════════ */

.rf-sup .page-content { padding-bottom: 5rem; }

.rf-sup-head { margin-bottom: 2rem; }
.rf-sup-title { font-family: var(--rf-font-heading); font-size: 2.2rem; font-weight: 800; color: var(--rf-ink); margin: 0; letter-spacing: -.02em; }
.rf-sup-sub { color: var(--rf-muted); font-size: 1.4rem; margin: .4rem 0 0; }

.rf-sup-back { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 600; color: var(--rf-muted); margin-bottom: 1.4rem; }
.rf-sup-back:hover { color: var(--rf-primary); }

.rf-sup-flash { display: flex; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.6rem; border-radius: var(--rf-radius-sm); font-size: 1.4rem; margin-bottom: 1.8rem; }
.rf-sup-flash.is-success { background: var(--rf-primary-soft); color: #05803a; border: 1px solid #b6e6cb; }
.rf-sup-flash.is-error { background: #fdecec; color: #b42318; border: 1px solid #f6c9c6; }
.rf-sup-flash ul { margin: .4rem 0 0; padding-left: 1.8rem; }

/* ── toolbar ─────────────────────────────────────────────────────────── */
.rf-sup-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.rf-sup-tabs { display: flex; gap: .6rem; flex-wrap: wrap; }
.rf-sup-tabs a { padding: .7rem 1.4rem; border-radius: 999px; font-size: 1.3rem; font-weight: 600; color: var(--rf-muted); background: var(--rf-bg-soft); border: 1px solid transparent; }
.rf-sup-tabs a:hover { color: var(--rf-ink); }
.rf-sup-tabs a.is-active { background: var(--rf-ink); color: #fff; }
.rf-sup-new { white-space: nowrap; }

/* ── ticket rows ─────────────────────────────────────────────────────── */
.rf-sup-row { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 1.8rem; background: var(--rf-surface); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); margin-bottom: 1rem; transition: border-color .15s, box-shadow .15s; }
.rf-sup-row:hover { border-color: var(--rf-primary); box-shadow: var(--rf-shadow-hover); }
.rf-sup-row.is-unread { border-left: 3px solid var(--rf-primary); background: #fbfffd; }
.rf-sup-row-main { flex: 1; min-width: 0; }
.rf-sup-row-top { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.rf-sup-ref { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; color: var(--rf-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rf-sup-row-subject { font-size: 1.55rem; font-weight: 700; color: var(--rf-ink); margin: 0 0 .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-sup-row-meta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; font-size: 1.25rem; color: var(--rf-muted); }
.rf-sup-row-meta i { margin-right: .4rem; opacity: .7; }
.rf-sup-row-side { display: flex; align-items: center; gap: 1.2rem; flex: none; color: var(--rf-muted); }
.rf-sup-when { font-size: 1.25rem; white-space: nowrap; }
.rf-sup-unread { padding: .1rem .8rem; border-radius: 999px; background: var(--rf-primary); color: #fff; font-size: 1.1rem; font-weight: 700; }

/* ── status pill ─────────────────────────────────────────────────────── */
.rf-sup-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem 1rem; border-radius: 999px; font-size: 1.15rem; font-weight: 700; }
.rf-sup-pill.is-open { background: #e7f0ff; color: #12489b; }
.rf-sup-pill.is-waiting { background: #fff5e5; color: #9a5b00; }
.rf-sup-pill.is-resolved { background: var(--rf-primary-soft); color: #05803a; }
.rf-sup-pill.is-closed { background: #f1f3f6; color: var(--rf-muted); }

/* ── empty state ─────────────────────────────────────────────────────── */
.rf-sup-empty { text-align: center; padding: 5rem 2rem; background: var(--rf-surface); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); }
.rf-sup-empty i { font-size: 4rem; color: var(--rf-muted); opacity: .5; display: block; margin-bottom: 1.4rem; }
.rf-sup-empty h4 { font-size: 1.9rem; font-weight: 700; color: var(--rf-ink); margin-bottom: .8rem; }
.rf-sup-empty p { color: var(--rf-muted); font-size: 1.4rem; max-width: 46rem; margin: 0 auto 2rem; line-height: 1.6; }

/* ── form ────────────────────────────────────────────────────────────── */
.rf-sup-card { background: var(--rf-surface); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); padding: 2.2rem; margin-bottom: 1.6rem; }
.rf-sup-card-title { display: flex; align-items: center; gap: 1rem; font-size: 1.7rem; font-weight: 700; color: var(--rf-ink); margin: 0 0 1.8rem; }
.rf-sup-step { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--rf-ink); color: #fff; font-size: 1.3rem; font-weight: 700; flex: none; }

.rf-sup-field { margin-bottom: 1.8rem; }
.rf-sup-field:last-child { margin-bottom: 0; }
.rf-sup-field > label { display: block; font-size: 1.35rem; font-weight: 600; color: var(--rf-ink); margin-bottom: .6rem; }
.rf-sup-req { color: #e5484d; }
.rf-sup-field input[type="text"], .rf-sup-field select, .rf-sup-field textarea, .rf-sup-reply textarea {
    width: 100%; padding: 1.1rem 1.3rem; border: 1px solid var(--rf-border); border-radius: var(--rf-radius-sm);
    font-size: 1.4rem; font-family: inherit; color: var(--rf-ink); background: #fff;
}
.rf-sup-field input:focus, .rf-sup-field select:focus, .rf-sup-field textarea:focus, .rf-sup-reply textarea:focus {
    outline: none; border-color: var(--rf-primary); box-shadow: 0 0 0 3px rgba(7, 166, 75, .13);
}
.rf-sup-field textarea, .rf-sup-reply textarea { resize: vertical; line-height: 1.6; }
.rf-sup-hint { display: block; margin-top: .5rem; font-size: 1.2rem; color: var(--rf-muted); line-height: 1.5; }
.rf-sup-err { display: block; color: #b42318; font-size: 1.25rem; margin-bottom: .8rem; }

/* ── the "what is this about" picker ─────────────────────────────────── */
.rf-sup-picker { margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px dashed var(--rf-border); }
.rf-sup-picker[hidden] { display: none; }
.rf-sup-picker-label { display: block; font-size: 1.35rem; font-weight: 600; color: var(--rf-ink); margin-bottom: 1rem; }
.rf-sup-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.rf-sup-choice { display: block; cursor: pointer; margin: 0; }
.rf-sup-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rf-sup-choice-body { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--rf-border); border-radius: var(--rf-radius-sm); background: #fff; transition: border-color .15s, background .15s; }
.rf-sup-choice:hover .rf-sup-choice-body { border-color: var(--rf-primary); }
.rf-sup-choice input:checked + .rf-sup-choice-body { border-color: var(--rf-primary); background: var(--rf-primary-soft); box-shadow: 0 0 0 1px var(--rf-primary); }
.rf-sup-choice-body strong { display: block; font-size: 1.35rem; color: var(--rf-ink); }
.rf-sup-choice-sub { display: block; font-size: 1.25rem; color: var(--rf-text); margin-top: .2rem; }
.rf-sup-choice-meta { display: block; font-size: 1.15rem; color: var(--rf-muted); margin-top: .3rem; }
.rf-sup-choice.is-product .rf-sup-choice-body { display: flex; align-items: center; gap: 1rem; }
.rf-sup-thumb { flex: none; width: 40px; height: 40px; border-radius: var(--rf-radius-sm); background: var(--rf-bg-soft); display: grid; place-items: center; overflow: hidden; color: var(--rf-muted); }
.rf-sup-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rf-sup-clear { margin-top: 1rem; background: none; border: 0; padding: 0; font-size: 1.25rem; font-weight: 600; color: var(--rf-muted); text-decoration: underline; cursor: pointer; }
.rf-sup-clear:hover { color: var(--rf-primary); }

.rf-sup-search { position: relative; margin-top: 1.2rem; }
.rf-sup-search i { position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--rf-muted); font-size: 1.3rem; }
.rf-sup-search input,
.rf-vpanel-main .rf-sup-search input { width: 100%; padding: 1.1rem 1.3rem 1.1rem 4.2rem; border: 1px solid var(--rf-border); border-radius: var(--rf-radius-sm); font-size: 1.4rem; }
.rf-sup-results { margin-top: .8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.rf-sup-results[hidden] { display: none; }

.rf-sup-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: .6rem; }
.rf-sup-cancel { font-size: 1.35rem; font-weight: 600; color: var(--rf-muted); }

/* ── thread ──────────────────────────────────────────────────────────── */
.rf-sup-thread-top { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.rf-sup-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border-radius: 999px; background: var(--rf-bg-soft); border: 1px solid var(--rf-border); font-size: 1.2rem; font-weight: 600; color: var(--rf-text); }
a.rf-sup-chip:hover { border-color: var(--rf-primary); color: var(--rf-primary); }

.rf-sup-thread { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2rem; }
.rf-sup-msg { padding: 1.6rem 1.8rem; border: 1px solid var(--rf-border); border-radius: var(--rf-radius); background: var(--rf-surface); max-width: 82%; }
.rf-sup-msg.is-mine { align-self: flex-end; background: var(--rf-primary-soft); border-color: #b6e6cb; }
.rf-sup-msg.is-desk { align-self: flex-start; }
.rf-sup-msg-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; font-size: 1.3rem; }
.rf-sup-msg-head strong { color: var(--rf-ink); font-weight: 700; }
.rf-sup-msg-head time { margin-left: auto; color: var(--rf-muted); font-size: 1.15rem; }
.rf-sup-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rf-ink); color: #fff; font-size: 1.25rem; font-weight: 700; flex: none; }
.rf-sup-msg.is-desk .rf-sup-avatar { background: var(--rf-royal); }
.rf-sup-msg-body { font-size: 1.4rem; line-height: 1.7; color: var(--rf-text); white-space: pre-line; }

.rf-sup-system { align-self: center; display: inline-flex; align-items: center; gap: .8rem; padding: .6rem 1.4rem; border-radius: 999px; background: var(--rf-bg-soft); color: var(--rf-muted); font-size: 1.2rem; }
.rf-sup-system time { opacity: .8; }

.rf-sup-files { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.rf-sup-file { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; border: 1px solid var(--rf-border); border-radius: var(--rf-radius-sm); background: #fff; font-size: 1.25rem; color: var(--rf-text); }
.rf-sup-file:hover { border-color: var(--rf-primary); }
.rf-sup-file small { color: var(--rf-muted); }
.rf-sup-file.is-image { padding: 0; overflow: hidden; width: 92px; height: 92px; }
.rf-sup-file.is-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── reply box ───────────────────────────────────────────────────────── */
.rf-sup-reply { background: var(--rf-surface); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); padding: 1.6rem 1.8rem; }
.rf-sup-reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1.2rem; flex-wrap: wrap; }
.rf-sup-attach { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: 1.3rem; font-weight: 600; color: var(--rf-muted); margin: 0; }
.rf-sup-attach:hover { color: var(--rf-primary); }
.rf-sup-attach input { display: none; }

.rf-sup-close { margin-top: 1.4rem; text-align: center; }
.rf-sup-linkbtn { background: none; border: 0; padding: 0; font-size: 1.3rem; font-weight: 600; color: var(--rf-muted); cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; }
.rf-sup-linkbtn:hover { color: var(--rf-primary); }

.rf-sup-locked { display: flex; align-items: center; gap: 1.4rem; padding: 1.8rem 2rem; background: var(--rf-bg-soft); border: 1px solid var(--rf-border); border-radius: var(--rf-radius); }
.rf-sup-locked > i { font-size: 2rem; color: var(--rf-muted); }
.rf-sup-locked strong { display: block; color: var(--rf-ink); font-size: 1.45rem; }
.rf-sup-locked p { margin: .3rem 0 0; color: var(--rf-muted); font-size: 1.3rem; }
.rf-sup-locked .btn { margin-left: auto; white-space: nowrap; }

@media (max-width: 767px) {
    .rf-sup-msg { max-width: 100%; }
    .rf-sup-row { flex-wrap: wrap; }
    .rf-sup-choices, .rf-sup-results { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SIGNED-IN PANEL — shared chrome for the customer account and vendor panel

   Everything here is scoped to .rf-vpanel-main, so it dresses the Bootstrap and
   Wolmart markup already inside those panes (tables, forms, buttons) without
   touching the JS wired to them. Before this the account page inherited the
   theme's defaults: 12px striped tables that overflowed on a phone, and buttons
   in four different shapes on one screen.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── quick-action tiles ──────────────────────────────────────────────── */
.rf-acct-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.rf-acct-tile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.6rem 1.8rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.rf-acct-tile:hover {
    border-color: var(--rf-primary);
    box-shadow: var(--rf-shadow-hover);
    transform: translateY(-2px);
}

.rf-acct-tile-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-primary-soft);
    color: var(--rf-primary);
    font-size: 1.7rem;
}

.rf-acct-tile-text { min-width: 0; }
.rf-acct-tile-text strong { display: block; font-size: 1.45rem; font-weight: 700; color: var(--rf-ink); }
.rf-acct-tile-text small { display: block; margin-top: .2rem; font-size: 1.2rem; color: var(--rf-muted); }

/* The theme caps the account page's panes at `.my-account .tab-content
   { width: 75.59% }` — a leftover from its own two-column layout. Inside this
   panel the sidebar is already a separate grid column, so that 24% is dead
   space to the right of every table. */
.rf-vpanel-main .tab-content {
    width: 100%;
    padding-left: 0;
    border: 0;
}

.rf-vpanel-main .tab-content > .tab-pane { padding-left: 0; padding-right: 0; }

/* ── section headings ────────────────────────────────────────────────── */
/* The theme's icon-box heading is a 64px icon tile beside two words. */
.rf-vpanel-main .icon-box.icon-box-side {
    display: flex;
    align-items: center;
    /* The theme centres its icon-box; a section heading belongs at the left
       edge of the content it introduces. */
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
    padding: 0 0 1.4rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--rf-border);
    background: none;
}

.rf-vpanel-main .icon-box.icon-box-side .icon-box-icon {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-bg-soft);
    color: var(--rf-ink);
    font-size: 1.5rem;
    margin: 0;
}

.rf-vpanel-main .icon-box.icon-box-side .icon-box-title {
    font-family: var(--rf-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rf-ink);
    letter-spacing: -.01em;
}

/* ── tables ──────────────────────────────────────────────────────────── */
.rf-vpanel-main .table-responsive {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: var(--rf-surface);
}

/* The account page nests .table-responsive twice; the inner one would draw a
   second border inside the first. */
.rf-vpanel-main .table-responsive .table-responsive {
    border: 0;
    border-radius: 0;
}

.rf-vpanel-main .table {
    margin: 0;
    width: 100%;
    font-size: 1.35rem;
    border-collapse: collapse;
    box-shadow: none;
}

.rf-vpanel-main .table > thead > tr > th,
.rf-vpanel-main .table thead.table-light th {
    padding: 1.2rem 1.4rem;
    background: var(--rf-bg-soft);
    border-bottom: 1px solid var(--rf-border);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--rf-muted);
    white-space: nowrap;
}

.rf-vpanel-main .table > tbody > tr > td {
    padding: 1.4rem;
    border-bottom: 1px solid var(--rf-border-soft);
    color: var(--rf-text);
    vertical-align: middle;
    /* A date and a price are single values; wrapping "₹" onto its own line
       above the amount is what the narrow columns did before. The wrapper
       already scrolls sideways when it has to. */
    white-space: nowrap;
}

/* Long free text still wraps. */
.rf-vpanel-main .table > tbody > tr > td.rf-wrap,
.rf-vpanel-main .table > tbody > tr > td[data-label="Actions"] { white-space: normal; }

.rf-vpanel-main .table > tbody > tr:last-child > td { border-bottom: 0; }

/* Zebra striping plus a hover tint reads as noise on a short list; one clean
   hover row is enough to follow a line across. */
.rf-vpanel-main .table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: transparent;
    box-shadow: none;
}

.rf-vpanel-main .table.table-hover > tbody > tr:hover > * {
    background: var(--rf-bg-soft);
    box-shadow: none;
}

/* ── buttons ─────────────────────────────────────────────────────────── */
.rf-vpanel-main .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.8rem;
    border-radius: var(--rf-radius-sm);
    border: 1px solid transparent;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    transition: background .15s, border-color .15s, color .15s;
}

.rf-vpanel-main .btn-sm { padding: .7rem 1.2rem; font-size: 1.25rem; }

.rf-vpanel-main .btn-primary,
.rf-vpanel-main .btn-dark {
    background: var(--rf-primary);
    border-color: var(--rf-primary);
    color: #fff;
}

.rf-vpanel-main .btn-primary:hover,
.rf-vpanel-main .btn-dark:hover {
    background: var(--rf-primary-dark);
    border-color: var(--rf-primary-dark);
    color: #fff;
}

.rf-vpanel-main .btn-outline-primary {
    background: #fff;
    border-color: var(--rf-border);
    color: var(--rf-ink);
}

.rf-vpanel-main .btn-outline-primary:hover {
    border-color: var(--rf-primary);
    color: var(--rf-primary);
    background: var(--rf-primary-soft);
}

.rf-vpanel-main .btn-outline-secondary,
.rf-vpanel-main .btn-outline-dark {
    background: #fff;
    border-color: var(--rf-border);
    color: var(--rf-muted);
}

.rf-vpanel-main .btn-outline-secondary:hover,
.rf-vpanel-main .btn-outline-dark:hover {
    border-color: var(--rf-ink);
    color: var(--rf-ink);
    background: var(--rf-bg-soft);
}

.rf-vpanel-main .btn-danger,
.rf-vpanel-main .btn-outline-danger {
    background: #fff;
    border-color: #f5c2c0;
    color: #b42318;
}

.rf-vpanel-main .btn-danger:hover,
.rf-vpanel-main .btn-outline-danger:hover { background: #fdecec; border-color: #e79b98; }

/* A row of actions is a group of separate buttons, not one welded pill. */
.rf-vpanel-main .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.rf-vpanel-main .btn-group > .btn {
    border-radius: var(--rf-radius-sm) !important;
    margin: 0;
}

/* ── forms ───────────────────────────────────────────────────────────── */
.rf-vpanel-main label,
.rf-vpanel-main .form-group > label {
    display: block;
    margin-bottom: .6rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rf-ink);
}

.rf-vpanel-main .form-control,
.rf-vpanel-main .form-select,
.rf-vpanel-main input[type="text"],
.rf-vpanel-main input[type="email"],
.rf-vpanel-main input[type="tel"],
.rf-vpanel-main input[type="password"],
.rf-vpanel-main select,
.rf-vpanel-main textarea {
    width: 100%;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    background: #fff;
    font-size: 1.4rem;
    font-family: inherit;
    color: var(--rf-ink);
    height: auto;
}

.rf-vpanel-main .form-control:focus,
.rf-vpanel-main .form-select:focus,
.rf-vpanel-main input:focus,
.rf-vpanel-main select:focus,
.rf-vpanel-main textarea:focus {
    outline: none;
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(7, 166, 75, .13);
}

.rf-vpanel-main .form-check { display: flex; align-items: center; gap: .7rem; }
.rf-vpanel-main .form-check input { width: auto; }
.rf-vpanel-main .form-check-label { margin: 0; font-weight: 500; color: var(--rf-text); }

.rf-vpanel-main .form-group { margin-bottom: 1.8rem; }

/* ── status badges ───────────────────────────────────────────────────── */
.rf-vpanel-main .badge {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* ── responsive: the table becomes a stack of labelled cards ─────────── */
@media (max-width: 767px) {
    .rf-vpanel-main .table,
    .rf-vpanel-main .table > tbody,
    .rf-vpanel-main .table > tbody > tr,
    .rf-vpanel-main .table > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .rf-vpanel-main .table > thead { display: none; }

    .rf-vpanel-main .table > tbody > tr {
        padding: 1.2rem 1.4rem;
        border-bottom: 1px solid var(--rf-border);
    }

    .rf-vpanel-main .table > tbody > tr:last-child { border-bottom: 0; }

    /* Each cell carries its own column heading, so a row still reads as a
       record once the header row is gone. */
    .rf-vpanel-main .table > tbody > tr > td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.2rem;
        padding: .5rem 0;
        border: 0;
        text-align: right !important;
        white-space: normal;
    }

    .rf-vpanel-main .table > tbody > tr > td::before {
        content: attr(data-label);
        flex: none;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--rf-muted);
        text-align: left;
    }

    .rf-vpanel-main .table > tbody > tr > td:not([data-label])::before { content: none; }

    .rf-vpanel-main .table > tbody > tr > td[data-label="Actions"] {
        display: block;
        text-align: left !important;
        padding-top: 1rem;
    }

    .rf-vpanel-main .table > tbody > tr > td[data-label="Actions"]::before {
        display: block;
        margin-bottom: .6rem;
    }

    .rf-vpanel-main .btn-group { width: 100%; }

    .rf-acct-tiles { grid-template-columns: 1fr; }
}

/* ── order row: what was bought ──────────────────────────────────────── */
.rf-ord-cell { display: flex; align-items: center; gap: 1.1rem; text-align: left; }

.rf-ord-thumb {
    flex: none;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: var(--rf-radius-sm);
    border: 1px solid var(--rf-border);
    background: var(--rf-bg-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--rf-muted);
}

.rf-ord-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rf-ord-text { min-width: 0; }
.rf-ord-text strong { display: block; font-size: 1.35rem; font-weight: 700; color: var(--rf-ink); white-space: normal; line-height: 1.35; }
.rf-ord-text small { display: block; margin-top: .2rem; font-size: 1.15rem; color: var(--rf-muted); }

@media (max-width: 767px) {
    /* In the stacked view this cell is the row's heading, so it keeps the
       whole width instead of sitting opposite a "Order" label. */
    .rf-vpanel-main .table > tbody > tr > td[data-label="Order"] { display: block; text-align: left !important; }
    .rf-vpanel-main .table > tbody > tr > td[data-label="Order"]::before { display: none; }
}

/* ── order list: filters ─────────────────────────────────────────────── */
.rf-ord-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.rf-ord-chips { display: flex; gap: .6rem; flex-wrap: wrap; }

.rf-ord-chip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.3rem;
    border: 1px solid var(--rf-border);
    border-radius: 999px;
    background: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rf-muted);
    cursor: pointer;
}

.rf-ord-chip span {
    min-width: 2rem;
    padding: 0 .6rem;
    border-radius: 999px;
    background: var(--rf-bg-soft);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.rf-ord-chip:hover { border-color: var(--rf-primary); color: var(--rf-primary); }
.rf-ord-chip.is-active { background: var(--rf-ink); border-color: var(--rf-ink); color: #fff; }
.rf-ord-chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

.rf-ord-search { position: relative; flex: 0 1 30rem; }
.rf-ord-search i { position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--rf-muted); font-size: 1.3rem; }
.rf-ord-search input,
.rf-vpanel-main .rf-ord-search input {
    width: 100%;
    padding: 1rem 1.3rem 1rem 4.2rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    font-size: 1.35rem;
}

.rf-ord-count { margin: 0 0 1rem; font-size: 1.3rem; color: var(--rf-muted); }
.rf-ord-count[hidden] { display: none; }

/* ── order list: the "show items" control ────────────────────────────── */
.rf-ord-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rf-primary);
    cursor: pointer;
}

.rf-ord-toggle i { transition: transform .18s; font-size: 1.05rem; }
.rf-ord-toggle.is-open i { transform: rotate(180deg); }

/* ── order list: the item breakdown ──────────────────────────────────── */
tr.rf-ord-items[hidden] { display: none; }
tr.rf-ord-items > td { background: var(--rf-bg-soft); padding: 0 !important; }

.rf-ord-lines { padding: 1.2rem 1.6rem; display: flex; flex-direction: column; gap: .9rem; }

.rf-ord-line {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) 7rem 12rem 10rem;
    align-items: center;
    gap: 1.2rem;
    padding: .9rem 1.2rem;
    background: #fff;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    white-space: normal;
}

.rf-ord-thumb--sm { width: 4rem; height: 4rem; }

.rf-ord-line-main { min-width: 0; }
.rf-ord-line-main a,
.rf-ord-line-main > span { display: block; font-size: 1.3rem; font-weight: 600; color: var(--rf-ink); line-height: 1.4; }
.rf-ord-line-main a:hover { color: var(--rf-primary); }
.rf-ord-line-main small { display: block; margin-top: .2rem; font-size: 1.1rem; color: var(--rf-muted); }

.rf-ord-line-qty { font-size: 1.25rem; color: var(--rf-muted); text-align: center; }
.rf-ord-line-unit { font-size: 1.25rem; color: var(--rf-muted); text-align: right; }
.rf-ord-line-total { font-size: 1.35rem; font-weight: 700; color: var(--rf-ink); text-align: right; }

@media (max-width: 767px) {
    .rf-ord-filters { flex-direction: column; align-items: stretch; }
    .rf-ord-search { flex: 1 1 auto; }

    /* The stacked table hides thead and labels each cell; this row is one
       block that spans the card, so it opts out of both. */
    .rf-vpanel-main .table > tbody > tr.rf-ord-items { padding: 0; border-bottom: 0; }
    .rf-vpanel-main .table > tbody > tr.rf-ord-items > td { display: block; text-align: left !important; padding: 0 !important; }
    .rf-vpanel-main .table > tbody > tr.rf-ord-items > td::before { display: none; }

    .rf-ord-line {
        grid-template-columns: 4rem minmax(0, 1fr);
        row-gap: .4rem;
    }

    .rf-ord-line-qty,
    .rf-ord-line-unit,
    .rf-ord-line-total { grid-column: 2; text-align: left; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ORDER PAGE — the post-checkout receipt and the order record from the account
   The blocks used to carry their own inline padding/border, which meant every
   card on the page had to be edited to change any of it.
   ══════════════════════════════════════════════════════════════════════════ */

.rf-odp .ptw-card {
    padding: 2.2rem;
    margin-bottom: 1.6rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
}

.rf-odp-head { border-top: 3px solid var(--rf-primary) !important; }

.rf-odp-title {
    font-family: var(--rf-font-heading);
    font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem);
    font-weight: 800;
    color: var(--rf-ink);
    letter-spacing: -.02em;
    margin: 0 0 1rem;
}

.rf-odp-title.is-bad { color: #b42318; }

.rf-odp-cardtitle {
    font-family: var(--rf-font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--rf-ink);
    margin: 0 0 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--rf-border);
}

.rf-odp .text-muted > div { font-size: 1.35rem; line-height: 1.9; }

/* ── item rows ───────────────────────────────────────────────────────── */
.rf-odp .ptw-cart-row {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rf-border-soft);
}

.rf-odp .ptw-cart-row:last-child { border-bottom: 0; }

.rf-odp .ptw-cart-row__media {
    width: 7.2rem;
    height: 7.2rem;
    flex: 0 0 7.2rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    background: var(--rf-bg-soft);
    overflow: hidden;
}

.rf-odp .ptw-cart-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── summary rows ────────────────────────────────────────────────────── */
.rf-odp .d-flex.justify-content-between { padding: .6rem 0; font-size: 1.4rem; color: var(--rf-text); }
.rf-odp .ptw-chip {
    display: inline-block;
    padding: .1rem .8rem;
    border-radius: 999px;
    background: var(--rf-primary-soft);
    color: var(--rf-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.rf-odp .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.8rem;
    border-radius: var(--rf-radius-sm);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* ── order cell: a thumbnail per item ────────────────────────────────── */
.rf-ord-stack { display: flex; flex: none; }
.rf-ord-stack .rf-ord-thumb + .rf-ord-thumb { margin-left: -1.4rem; }
.rf-ord-stack .rf-ord-thumb { box-shadow: 0 0 0 2px #fff; }

.rf-ord-thumb--more {
    background: var(--rf-ink);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.rf-ord-products {
    display: block;
    margin-top: .2rem;
    font-size: 1.25rem;
    color: var(--rf-text);
    line-height: 1.45;
    white-space: normal;
}

/* ── saved addresses ─────────────────────────────────────────────────── */
.rf-addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 1.4rem;
    margin-bottom: 1rem;
}

.rf-addr-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.rf-addr-card:hover { border-color: var(--rf-primary); box-shadow: var(--rf-shadow-hover); }
.rf-addr-card.is-default { border-color: var(--rf-primary); }

.rf-addr-card-body { flex: 1; padding: 1.8rem; }

.rf-addr-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; flex-wrap: wrap; }

.rf-addr-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-primary-soft);
    color: var(--rf-primary);
    font-size: 1.4rem;
}

.rf-addr-label {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rf-ink);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rf-addr-badge {
    padding: .2rem .9rem;
    border-radius: 999px;
    background: var(--rf-primary-soft);
    color: var(--rf-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.rf-addr-body { font-size: 1.35rem; line-height: 1.8; color: var(--rf-text); }
.rf-addr-body > div:first-child { font-weight: 600; color: var(--rf-ink); }

/* The controls sit in their own bar at the foot: in the header they collided
   with a long label and pushed the "Default" badge onto a second line. */
.rf-addr-actions {
    display: flex;
    border-top: 1px solid var(--rf-border);
    background: var(--rf-bg-soft);
}

.rf-addr-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.1rem .8rem;
    border: 0;
    border-right: 1px solid var(--rf-border);
    background: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rf-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.rf-addr-btn:last-child { border-right: 0; }
.rf-addr-btn:hover { background: #fff; color: var(--rf-primary); }
.rf-addr-btn.is-danger:hover { background: #fdecec; color: #b42318; }
.rf-addr-btn i { font-size: 1.15rem; }

.rf-addr-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.6rem 2rem;
    border: 1px dashed var(--rf-border);
    border-radius: var(--rf-radius);
    color: var(--rf-muted);
}

.rf-addr-empty i { display: block; font-size: 2.6rem; margin-bottom: 1rem; opacity: .5; }
.rf-addr-empty p { margin: 0; font-size: 1.4rem; }
