/* =============================================================================
   FYSH — Selling Guide (selling-guide.php)
   CR: fysh-selling-guide-2026-06-28
   Public vendor education page. Namespace: sg-
============================================================================= */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.sg-hero {
    background: var(--navy);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.sg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.sg-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}
.sg-hero__content { flex: 1; min-width: 0; }
.sg-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.sg-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.sg-hero__title em { color: var(--gold); font-style: normal; }
.sg-hero__sub {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.68);
    max-width: 560px;
    margin-bottom: 2rem;
}
.sg-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.42);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
}
.sg-hero__meta strong { color: rgba(255,255,255,0.7); }
.sg-hero__stats {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 280px;
}
.sg-hero__stat {
    background: rgba(255,255,255,0.04);
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.sg-hero__stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.sg-hero__stat-lbl {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

/* ── Platform disclaimer banner ───────────────────────────────────────────── */
.sg-platform-note {
    background: #0B1F3A;
    border-bottom: 3px solid var(--gold);
    padding: 1.1rem 0;
}
.sg-platform-note__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
}
.sg-platform-note__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(201,168,76,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--gold);
    margin-top: 1px;
}
.sg-platform-note strong { color: var(--gold); }

/* ── Page body layout ─────────────────────────────────────────────────────── */
.sg-body { background: var(--cream); padding: 0 0 5rem; }

.sg-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 3rem;
}

/* ── Table of contents ────────────────────────────────────────────────────── */
.sg-toc {
    position: sticky;
    top: calc(var(--header-h, 69px) + 24px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.sg-toc__head {
    background: var(--navy);
    padding: 0.85rem 1.1rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.sg-toc__list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
.sg-toc__item { }
.sg-toc__link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.42rem 1.1rem;
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--ease), background var(--ease);
    border-left: 2px solid transparent;
}
.sg-toc__link:hover { color: var(--navy); background: var(--cream); }
.sg-toc__link.is-active {
    color: var(--navy);
    border-left-color: var(--gold);
    background: #FAF8F3;
    font-weight: 500;
}
.sg-toc__num {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 1.2rem;
}
.sg-toc__divider {
    height: 1px;
    background: var(--border);
    margin: 0.4rem 0;
}
.sg-toc__cta {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid var(--border);
    background: #FAF8F3;
}
.sg-toc__cta a {
    display: block;
    background: var(--gold);
    color: var(--navy);
    text-align: center;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--ease);
}
.sg-toc__cta a:hover { opacity: 0.88; }

/* ── Guide sections ───────────────────────────────────────────────────────── */
.sg-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    scroll-margin-top: calc(var(--header-h, 69px) + 32px);
}
.sg-section:last-child { margin-bottom: 0; }

.sg-section-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.sg-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1.25rem;
    line-height: 1.2;
}
.sg-section-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--slate);
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sg-sub-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
}
.sg-sub-title:first-of-type { margin-top: 0; }

.sg-prose {
    font-size: 0.9375rem;
    line-height: 1.78;
    color: var(--slate);
    margin-bottom: 1.1rem;
}
.sg-prose:last-child { margin-bottom: 0; }

.sg-prose a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(30,91,168,0.3);
    text-underline-offset: 2px;
    transition: color var(--ease), text-decoration-color var(--ease);
}
.sg-prose a:hover {
    color: var(--navy);
    text-decoration-color: var(--navy);
}

/* ── Callout boxes ────────────────────────────────────────────────────────── */
.sg-callout {
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    margin: 1.25rem 0;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.65;
}
.sg-callout__icon {
    flex-shrink: 0;
    font-size: 17px;
    margin-top: 1px;
}
.sg-callout__body { flex: 1; min-width: 0; }
.sg-callout__title {
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

/* Legal obligation — amber */
.sg-callout--legal {
    background: #FFFBEB;
    border: 1px solid #F5D87A;
    color: #6B4C00;
}
.sg-callout--legal .sg-callout__icon { color: #C9A84C; }
.sg-callout--legal .sg-callout__title { color: #8B6400; }

/* FYSH role — blue */
.sg-callout--fysh {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E3A5F;
}
.sg-callout--fysh .sg-callout__icon { color: #1E5BA8; }
.sg-callout--fysh .sg-callout__title { color: #1E5BA8; }

/* Tip / best practice — green */
.sg-callout--tip {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #14532D;
}
.sg-callout--tip .sg-callout__icon { color: #16A34A; }
.sg-callout--tip .sg-callout__title { color: #15803D; }

/* Warning — red */
.sg-callout--warn {
    background: #FFF5F5;
    border: 1px solid #FECACA;
    color: #7F1D1D;
}
.sg-callout--warn .sg-callout__icon { color: #DC2626; }
.sg-callout--warn .sg-callout__title { color: #B91C1C; }

/* ── Checklist ────────────────────────────────────────────────────────────── */
.sg-checklist {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}
.sg-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--slate);
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
}
.sg-checklist li:last-child { border-bottom: none; }
.sg-checklist li::before {
    content: '\2713';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #EAF3DE;
    color: #3B6D11;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.sg-checklist--bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 8px;
}

/* ── Two-column key-value grid ────────────────────────────────────────────── */
.sg-kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0.75rem 0;
}
.sg-kv__item {
    background: var(--white);
    padding: 0.9rem 1rem;
}
.sg-kv__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}
.sg-kv__value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.45;
}

/* ── Costs table ──────────────────────────────────────────────────────────── */
.sg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 0.75rem 0;
}
.sg-table th {
    background: var(--navy);
    color: var(--white);
    padding: 0.65rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.sg-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--slate);
    line-height: 1.45;
}
.sg-table tr:last-child td { border-bottom: none; }
.sg-table tr:nth-child(even) td { background: #FAFAF8; }
.sg-table td:last-child { font-weight: 500; color: var(--navy); text-align: right; }
.sg-table tfoot td {
    background: var(--cream);
    font-weight: 600;
    color: var(--navy);
    border-top: 2px solid var(--border);
}

/* ── Process steps ────────────────────────────────────────────────────────── */
.sg-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0.75rem 0;
    position: relative;
}
.sg-steps::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--border);
}
.sg-step {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0;
}
.sg-step__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.sg-step__body { flex: 1; padding-top: 0.5rem; }
.sg-step__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.sg-step__desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── NTSELAT parts grid ───────────────────────────────────────────────────── */
.sg-parts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0.75rem 0;
}
.sg-part {
    background: var(--white);
    padding: 1.25rem;
}
.sg-part__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.sg-part__badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sg-part--a .sg-part__badge { background: #DC2626; color: #fff; }
.sg-part--b .sg-part__badge { background: #D97706; color: #fff; }
.sg-part--c .sg-part__badge { background: #0F2340; color: #C9A84C; }
.sg-part__label { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.sg-part__items {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: var(--slate);
}
.sg-part__items li {
    padding: 0.22rem 0;
    border-bottom: 1px solid #F5F5F3;
    line-height: 1.4;
}
.sg-part__items li:last-child { border-bottom: none; }
.sg-part__items li::before {
    content: '· ';
    color: var(--gold);
    font-weight: 700;
}
.sg-part__note {
    margin-top: 0.6rem;
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 500;
}

/* ── Templates section ────────────────────────────────────────────────────── */
.sg-templates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0.75rem 0;
}
.sg-template {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
}
.sg-template__head {
    background: var(--navy);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.sg-template__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(201,168,76,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--gold);
    flex-shrink: 0;
}
.sg-template__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}
.sg-template__sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.1rem;
}
.sg-template__body {
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}
.sg-template__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    border: 1px solid var(--blue);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: background var(--ease), color var(--ease);
}
.sg-template__link:hover { background: var(--blue); color: var(--white); }

/* ── Resources grid ───────────────────────────────────────────────────────── */
.sg-resources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0.75rem 0;
}
.sg-resource {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--ease), background var(--ease);
}
.sg-resource:hover { border-color: var(--gold); background: #FAF8F3; }
.sg-resource__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--navy);
}
.sg-resource__title {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}
.sg-resource__desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* ── Glossary ─────────────────────────────────────────────────────────────── */
.sg-glossary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.sg-gloss-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.sg-gloss-term {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.sg-gloss-def {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.sg-cta-band {
    background: var(--navy);
    padding: 4rem 0;
    text-align: center;
}
.sg-cta-band__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}
.sg-cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.sg-cta-band__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.62);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.sg-cta-band__btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sg-layout { grid-template-columns: 1fr; }
    .sg-toc { position: static; display: none; }
    .sg-hero__inner { flex-direction: column; gap: 2.5rem; }
    .sg-hero__stats { width: 100%; }
    .sg-parts { grid-template-columns: 1fr; }
    .sg-glossary { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .sg-section { padding: 1.75rem 1.25rem; }
    .sg-kv { grid-template-columns: 1fr; }
    .sg-templates { grid-template-columns: 1fr; }
    .sg-resources { grid-template-columns: 1fr; }
    .sg-hero__stats { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================================
   FYSH — Private Sale Savings Calculator
   CR: fysh-sg-savings-calculator-2026-07-18
   Interactive tool inside S1 (Why sell privately?). Estimates the total the
   vendor would have paid a high-street estate agent — commission + VAT +
   optional extras — and shows the amount they keep by selling privately.

   Design mirrors the byg-sdlt calculator on buyers-guide.php for family
   resemblance across the FYSH toolset.
============================================================================ */
.sg-savings {
    background: var(--navy);
    border-radius: 10px;
    overflow: hidden;
    margin: 22px 0 6px;
}
.sg-savings__head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sg-savings__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sg-savings__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px;
}
.sg-savings__sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.sg-savings__body { padding: 20px 24px; }

.sg-savings__field { margin-bottom: 18px; }
.sg-savings__field:last-child { margin-bottom: 0; }

.sg-savings__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 7px;
    letter-spacing: 0.03em;
}
.sg-savings__label-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    vertical-align: 2px;
    white-space: nowrap;
}

/* Transparency note above the add-ons block */
.sg-savings__note {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-left: 3px solid rgba(201,168,76,0.55);
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.68);
}
.sg-savings__note strong { color: #FFFFFF; font-weight: 700; }

/* Price input + slider */
.sg-savings__input-wrap { position: relative; }
.sg-savings__prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
}
.sg-savings__input {
    width: 100%;
    padding: 12px 12px 12px 28px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 7px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: var(--font-sans, system-ui);
    transition: border-color 0.15s, background 0.15s;
}
.sg-savings__input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
}
.sg-savings__input::placeholder {
    color: rgba(255,255,255,0.25);
    font-weight: 400;
    font-size: 1rem;
}
.sg-savings__slider {
    width: 100%;
    margin-top: 10px;
    accent-color: var(--gold);
    cursor: pointer;
}
.sg-savings__slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    margin-top: 3px;
}

/* Commission rate — segmented chips */
.sg-savings__rates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sg-savings__rate {
    flex: 1 1 auto;
    min-width: 60px;
    position: relative;
    padding: 9px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    transition: background 0.15s, border-color 0.15s;
}
.sg-savings__rate:has(input:checked) {
    background: rgba(201,168,76,0.14);
    border-color: var(--gold);
    color: var(--gold);
}
.sg-savings__rate input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sg-savings__custom-wrap {
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 8px;
}
.sg-savings__custom-wrap.is-open { display: flex; }
.sg-savings__custom {
    width: 90px;
    padding: 8px 30px 8px 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans, system-ui);
}
.sg-savings__custom:focus { outline: none; border-color: var(--gold); }
.sg-savings__custom-suffix {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-left: -26px;
    pointer-events: none;
}
.sg-savings__custom-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}

/* VAT + extras toggles */
.sg-savings__toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.sg-savings__toggle:has(input:checked) {
    background: rgba(201,168,76,0.1);
    border-color: rgba(201,168,76,0.55);
}
.sg-savings__toggle input {
    accent-color: var(--gold);
    cursor: pointer;
    margin-top: 2px;
    flex: 0 0 auto;
}
.sg-savings__toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
}
.sg-savings__toggle-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.sg-savings__toggle-cost {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    margin-left: auto;
    padding-left: 8px;
    white-space: nowrap;
}

.sg-savings__extras {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}
@media (min-width: 640px) {
    .sg-savings__extras { grid-template-columns: 1fr 1fr; }
}

/* Result panel */
.sg-savings__result {
    margin-top: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
}
.sg-savings__result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 10px;
}
.sg-savings__result-block { min-width: 0; }
.sg-savings__result-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}
.sg-savings__result-total {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}
.sg-savings__result-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 3px;
}

.sg-savings__saving {
    text-align: right;
    min-width: 0;
}
.sg-savings__saving-total {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.01em;
}
.sg-savings__saving-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* Breakdown table */
.sg-savings__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.sg-savings__table th {
    padding: 9px 20px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sg-savings__table th:last-child { text-align: right; }
.sg-savings__table td {
    padding: 9px 20px;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sg-savings__table td:last-child {
    text-align: right;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}
.sg-savings__table tr:last-child td { border-bottom: none; }
.sg-savings__table tr.is-total td {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(255,255,255,0.03);
    color: #FFFFFF;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.sg-savings__table tr.is-total td:last-child { color: rgba(255,255,255,0.95); font-size: 0.95rem; }

/* The row that highlights the actual saving — the honest, guaranteed figure. */
.sg-savings__table tr.is-saving td {
    padding-top: 14px;
    padding-bottom: 14px;
    background: rgba(201,168,76,0.09);
    color: var(--gold);
    font-weight: 700;
    border-top: 1px solid rgba(201,168,76,0.35);
    font-size: 0.85rem;
}
.sg-savings__table tr.is-saving td:last-child {
    color: var(--gold);
    font-size: 1.05rem;
}

/* Per-row badges — 'Saved with FYSH' vs 'Not a saving' */
.sg-savings__row-label { display: block; }
.sg-savings__row-badge {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 7px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    line-height: 1.4;
}
.sg-savings__row-badge--saved {
    background: rgba(201,168,76,0.16);
    color: var(--gold);
}
.sg-savings__row-badge--not-saved {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
}
.sg-savings__row--not-saved td:last-child { color: rgba(255,255,255,0.55); font-weight: 500; }

/* Empty state */
.sg-savings__empty {
    padding: 28px 24px;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 8px;
    margin-top: 22px;
}

.sg-savings__disclaimer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.32);
    line-height: 1.55;
}
.sg-savings__disclaimer a { color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 540px) {
    .sg-savings__head { padding: 16px 18px 12px; }
    .sg-savings__body { padding: 16px 18px; }
    .sg-savings__saving-total { font-size: 1.9rem; }
    .sg-savings__result-head { padding: 14px 16px; }
    .sg-savings__saving { text-align: left; }
    .sg-savings__table th,
    .sg-savings__table td { padding: 8px 16px; }
    .sg-savings__toggle-cost { font-size: 0.72rem; }
}

/* Print */
@media print {
    .sg-savings {
        break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
