/* ==========================================================================
   NovaNode — HTVA / TTC price display

   One figure, one qualifier. The qualifier is what makes an excl.-VAT
   price unambiguous, so it gets real weight and never drops below 12px.
   ========================================================================== */

:root {
    --nn-border: var(--border-color, rgba(0, 0, 0, .1));
    --nn-accent: var(--brand-primary, var(--primary-color, #17b8c8));
}

/* --------------------------------------------------------------------------
   Qualifier
   -------------------------------------------------------------------------- */

.nn-price-tag {
    margin-left: .3em;
    font-size: max(.75rem, .38em);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    opacity: .7;
}

/* Inside a cycle element ("Monthly HTVA") or a service-list cell, inherit
   the small type there so we don't shrink it a second time. */
.package-price .nn-price-tag,
#tableDomainPricing td .nn-price-tag,
.nn-price-tag--label-only {
    font-size: .78em;
    margin-left: .4em;
    vertical-align: baseline;
    opacity: .55;
}

/* Pricing cards: the qualifier rides on the cycle line
   ("Monatlech · ouni TVA") and takes that line's type as-is. */
.package-price .price-cycle .nn-price-tag,
.price .price-cycle .nn-price-tag {
    margin-left: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    opacity: 1;
}

.price-cycle .nn-price-tag::before {
    content: "·";
    margin: 0 .35em;
}

/* --------------------------------------------------------------------------
   Footnote
   -------------------------------------------------------------------------- */

.nn-vat-footnote {
    margin: 1.5rem auto 0;
    max-width: 52rem;
    font-size: .8125rem;
    line-height: 1.55;
    text-align: center;
    opacity: .72;
}

.tld-table .nn-vat-footnote,
.spotlight-tlds .nn-vat-footnote {
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Navbar pill
   -------------------------------------------------------------------------- */

.nn-vat-switch {
    display: flex;
    align-items: center;
}

.nn-vat-switch[hidden] {
    display: none;
}

.nn-vat-pill {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--nn-border);
    border-radius: 999px;
    line-height: 1;
}

.nn-vat-pill-btn {
    padding: .3rem .625rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: .75rem;
    font-weight: 500;
    color: inherit;
    opacity: .6;
    cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}

.nn-vat-pill-btn:hover {
    opacity: 1;
}

.nn-vat-pill-btn[aria-pressed="true"] {
    background: var(--nn-accent);
    color: #fff;
    opacity: 1;
}

.nn-vat-pill-btn:focus-visible {
    outline: 2px solid var(--nn-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .nn-vat-pill-btn {
        transition: none;
    }
}
