/*
 * BillingServ storefront
 * ------------------------------------------------------------------
 * Shared typography, navigation, footer, heroes and page components.
 * Loaded after theme.min.css by Layout/app.blade.php. The theme-refresh
 * body class scopes storefront styles away from admin and email views.
 */

/* ==================================================================
 * 1. Typography and colours
 * ================================================================== */

/*
 * Tokens. One blue scale built from the original theme's values (all hue
 * ~214), used for every blue on the page, and dark surfaces carrying a
 * trace of the same hue so the blues sit in them rather than on them.
 */
body.theme-refresh {
    --rf-blue-900: #18304f;           /* navigation, footer and hero end */
    --rf-blue-800: #1d406c;
    --rf-blue-700: #22528e;
    --rf-blue-600: #2560ac;           /* main blue surface */
    --rf-blue-500: #2a6fca;           /* hero highlight, near the original #0e6cca */
    --rf-blue-400: #3b84e0;           /* original accent */
    --rf-blue-300: #5c9eeb;           /* accent on dark surfaces: icons, arrows, focus */

    --rf-navy: var(--rf-blue-900);
    --rf-blue-bar: var(--rf-blue-600);
    --rf-blue: var(--rf-blue-400);
    --rf-blue-light: var(--rf-blue-300);

    --rf-page: #22262d;               /* softly lifted page background */
    --rf-card: #2a313e;               /* raised content surfaces */
    --rf-card-hover: #2e3644;
    --rf-menu: #2b3039;               /* dropdown surface */
    --rf-border: rgba(255, 255, 255, 0.1); /* subtle separation between surfaces */
    --rf-border-hover: rgba(92, 158, 235, 0.45); /* hover warms the hairline to the accent blue */

    --rf-contrast-rgb: 255, 255, 255;
    --rf-body: #e0e3e9;
    --rf-panel-muted: #c8d6e6;
    --rf-code: #d5e7ff;
    --rf-primary-bg: #fff;
    --rf-primary-text: var(--rf-navy);
    --rf-primary-hover: #e6edf8;
    --rf-primary-hover-soft: #e9edf3;
    --rf-primary-hover-cool: #e6edf5;
    --rf-success: #91d5b8;
    --rf-success-rgb: 145, 213, 184;
    --rf-error: #efaaaa;
    --rf-error-rgb: 239, 170, 170;
    --rf-stock-rgb: 102, 203, 166;
    --rf-danger-rgb: 239, 154, 154;
    --rf-warning: #e8c78b;
    --rf-warning-rgb: 232, 199, 139;
    --rf-toggle-bg: #555e6d;
    --rf-payment-border: #38404c;
    --rf-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23b9bec8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");

    --rf-text: #ffffff;
    --rf-text-muted: #b9bec8;         /* secondary text, was #c5c8d0: more separation from titles, still 9:1 on cards */
    --rf-text-subtle: rgba(255, 255, 255, 0.6);

    --rf-radius: 12px;
    --rf-radius-lg: 16px;             /* nav bar and hero card */
    --rf-ease: cubic-bezier(0.2, 0, 0, 1);

    color-scheme: dark;
    background-color: var(--rf-page) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Noto Sans now loads 500 and 600 as real weights (the theme only loaded 400 and 700). */
body.theme-refresh .portal-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0.375rem;
}

body.theme-refresh .portal-card-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--rf-text-muted);
}

body.theme-refresh .portal-card-lg .portal-card-title {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

body.theme-refresh .portal-card-lg .portal-card-text {
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Icons are the theme's own Finder icon font; the old CDN SVGs return 404. */
body.theme-refresh .portal-icon-img {
    filter: none;
    width: auto;
    height: auto;
    font-size: 1.625rem;
    line-height: 1;
    color: var(--rf-blue-light);
}

/* ==================================================================
 * 2. Header and navigation
 * A floating navy bar inside the page container, so it shares its left
 * and right edges and corner radius with the hero card and the cards
 * below. Quiet by design: text links, a hairline border, one filled
 * control (Basket). CMS pages sit by the logo; storefront links and
 * controls on the right.
 * Markup: Layout/nav.blade.php.
 * ================================================================== */

/*
 * Sticky on the way back up: hidden while scrolling down, it returns as
 * soon as you scroll up. The 24px gutter above the bar shrinks to 12px
 * once it is stuck (top: -12px), so it keeps floating. The
 * header box itself is transparent and ignores clicks; only the bar and
 * its menus take them. A soft shadow appears once the page has scrolled.
 */
body.theme-refresh .site-header {
    position: sticky;
    top: -0.75rem;
    z-index: 1030; /* header menus open above page content */
    padding-top: 1.5rem; /* one 24px gutter: page edge, nav, hero and cards are all this far apart */
    pointer-events: none;
    transition: transform 0.25s var(--rf-ease);
}

body.theme-refresh .site-header .site-bar,
body.theme-refresh .site-header .site-mobile-menu {
    pointer-events: auto;
}

/* Out of the way while scrolling down; back as soon as you scroll up. */
body.theme-refresh .site-header.is-hidden {
    transform: translateY(calc(-100% - 0.5rem));
}

body.theme-refresh .site-header.is-scrolled .site-bar {
    box-shadow: 0 10px 30px rgba(4, 10, 22, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.theme-refresh .site-bar {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 0.75rem 0 1.5rem;
    background-color: var(--rf-navy);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
    border-radius: var(--rf-radius-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s var(--rf-ease);
}

body.theme-refresh .site-brand {
    display: flex;
    align-items: center;
    margin-right: 2.5rem;
    color: var(--rf-text);
    text-decoration: none;
}

body.theme-refresh .site-brand:hover {
    color: var(--rf-text);
}

body.theme-refresh .site-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.theme-refresh .site-links {
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.theme-refresh .site-actions .site-links {
    display: flex;
}

body.theme-refresh .site-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(var(--rf-contrast-rgb), 0.7);
    text-decoration: none;
    transition: color 0.15s var(--rf-ease), background-color 0.15s var(--rf-ease);
}

body.theme-refresh .site-links a:hover {
    background-color: rgba(var(--rf-contrast-rgb), 0.05);
    color: var(--rf-text);
}

body.theme-refresh .site-links a[aria-current="page"],
body.theme-refresh .site-mobile-list a[aria-current="page"] {
    border-color: rgba(92, 158, 235, 0.35);
    background-color: rgba(59, 132, 224, 0.2);
    color: var(--rf-text);
}

body.theme-refresh .site-actions {
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

body.theme-refresh .site-divider {
    width: 1px;
    height: 20px;
    margin: 0 0.5rem;
    background-color: rgba(var(--rf-contrast-rgb), 0.14);
}

body.theme-refresh .site-locale {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(var(--rf-contrast-rgb), 0.85);
    background-color: rgba(var(--rf-contrast-rgb), 0.06);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.1);
    border-radius: 999px;
    transition: border-color 0.15s var(--rf-ease), color 0.15s var(--rf-ease);
}

body.theme-refresh .site-locale::after {
    margin-left: 0.375rem;
    opacity: 0.6;
}

body.theme-refresh .site-locale:hover,
body.theme-refresh .site-locale[aria-expanded="true"] {
    color: var(--rf-text);
    border-color: rgba(var(--rf-contrast-rgb), 0.22);
}

body.theme-refresh .site-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 0.4375rem;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.6;
}

body.theme-refresh .site-text-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(var(--rf-contrast-rgb), 0.85);
    text-decoration: none;
    transition: color 0.15s var(--rf-ease);
}

body.theme-refresh .site-text-link:hover {
    color: var(--rf-text);
}

/* Basket: the one filled control in the header. */
body.theme-refresh .site-basket {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 0.4375rem 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rf-primary-text);
    background-color: var(--rf-primary-bg);
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.15s var(--rf-ease);
}

body.theme-refresh .site-basket:hover {
    color: var(--rf-primary-text);
    background-color: var(--rf-primary-hover);
}

body.theme-refresh .site-basket-count {
    min-width: 24px;
    height: 24px;
    padding: 0 0.4375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--rf-text);
    background-color: var(--rf-navy);
    border-radius: 999px;
}

body.theme-refresh .site-links a:focus-visible,
body.theme-refresh .site-mobile-list a:focus-visible,
body.theme-refresh .site-text-link:focus-visible,
body.theme-refresh .site-locale:focus-visible,
body.theme-refresh .site-basket:focus-visible,
body.theme-refresh .site-brand:focus-visible,
body.theme-refresh .site-menu-toggle:focus-visible,
body.theme-refresh .site-header .dropdown-item:focus-visible {
    outline: 2px solid rgba(var(--rf-contrast-rgb), 0.8);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.theme-refresh .site-brand {
        margin-right: 1.5rem;
    }

    body.theme-refresh .site-links {
        gap: 0.125rem;
    }

    body.theme-refresh .site-actions {
        gap: 0.75rem;
    }
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
    body.theme-refresh .site-header .dropdown:hover > .dropdown-menu,
    body.theme-refresh .site-header .dropdown:focus-within > .dropdown-menu {
        display: block;
    }
}

/* Header menus: brand-tinted dark surface with an edge and depth. */
body.theme-refresh .site-header .dropdown-menu-dark {
    background-color: var(--rf-menu) !important;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.625rem !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.theme-refresh .site-header .dropdown-item {
    font-size: 0.875rem;
    color: rgba(var(--rf-contrast-rgb), 0.85);
    padding: 0.4375rem 0.75rem;
    border-radius: 6px;
}

body.theme-refresh .site-header .dropdown-item:hover,
body.theme-refresh .site-header .dropdown-item:focus {
    color: var(--rf-text);
    background-color: rgba(var(--rf-contrast-rgb), 0.07);
}

body.theme-refresh .site-header .dropdown-item.active,
body.theme-refresh .site-header .dropdown-item:active {
    color: var(--rf-text);
    font-weight: 500;
    background-color: rgba(59, 132, 224, 0.22);
}

/* Currency and Language side by side, split by a hairline. */
body.theme-refresh .site-locale-columns {
    display: flex;
    align-items: flex-start;
}

body.theme-refresh .site-locale-column {
    min-width: 9rem;
}

body.theme-refresh .site-locale-column + .site-locale-column {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
}

body.theme-refresh .site-locale-menu .dropdown-header {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rf-text);
    padding: 0.375rem 0.75rem 0.5rem;
}

/* Phones: Basket and a menu button in the bar; the menu opens as a matching card. */
body.theme-refresh .site-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

body.theme-refresh .site-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    background: none;
    border: 0;
    border-radius: 8px;
}

body.theme-refresh .site-menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background-color: rgba(var(--rf-contrast-rgb), 0.85);
}

body.theme-refresh .site-mobile-menu {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    margin-top: 0.5rem;
    padding: 0.25rem 1.25rem;
    background-color: var(--rf-navy);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
    border-radius: var(--rf-radius-lg);
}

body.theme-refresh .site-mobile-list {
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
}

body.theme-refresh .site-mobile-list a,
body.theme-refresh .site-mobile-list button {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    color: rgba(var(--rf-contrast-rgb), 0.88);
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
}

body.theme-refresh .site-mobile-secondary {
    border-top: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
}

body.theme-refresh .site-mobile-settings {
    display: grid;
    gap: 0.75rem;
    padding: 0.875rem 0 1rem;
    border-top: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
}

body.theme-refresh .site-mobile-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(var(--rf-contrast-rgb), 0.55);
}

body.theme-refresh .site-mobile-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

body.theme-refresh .site-mobile-options a {
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(var(--rf-contrast-rgb), 0.85);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: 6px;
    text-decoration: none;
}

body.theme-refresh .site-mobile-options a.active {
    color: var(--rf-primary-text);
    border-color: var(--rf-primary-bg);
    background-color: var(--rf-primary-bg);
}

@media (max-width: 991.98px) {
    body.theme-refresh .site-header {
        top: -0.375rem; /* 12px gutter, 6px once stuck */
        padding-top: 0.75rem;
    }


    body.theme-refresh .site-bar {
        height: 56px;
        padding: 0 0.375rem 0 1rem;
    }

    body.theme-refresh .site-basket {
        height: 34px;
    }
}

/* ==================================================================
 * 3. Footer
 * A navy panel that mirrors the nav bar: same container width, radius,
 * hairline and 24px gutter, so the page is framed by matching navy
 * bookends. Content kept: logo, Order / My Account / Support links,
 * copyright, legal links and the language picker.
 * Markup: Layout/footer.blade.php.
 * ================================================================== */

body.theme-refresh .site-footer {
    padding: 0 0 1.5rem;
    background: none;
    border: 0;
    color: rgba(var(--rf-contrast-rgb), 0.65);
}

body.theme-refresh .site-footer-panel {
    padding: 0 2.5rem;
    background-color: var(--rf-navy);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
    border-radius: var(--rf-radius-lg);
}

body.theme-refresh .site-footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 3rem 0 2.75rem;
}

body.theme-refresh .site-footer a.site-footer-name {
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

body.theme-refresh .site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(9rem, auto));
    column-gap: 4.5rem;
    row-gap: 2rem;
}

body.theme-refresh .site-footer-heading {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rf-text);
}

body.theme-refresh .site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.theme-refresh .site-footer-links li + li {
    margin-top: 0.75rem;
}

body.theme-refresh .site-footer a {
    font-size: 0.875rem;
    color: rgba(var(--rf-contrast-rgb), 0.65);
    text-decoration: none;
    transition: color 0.15s var(--rf-ease);
}

body.theme-refresh .site-footer a:hover {
    color: var(--rf-text);
}

body.theme-refresh .site-footer a:focus-visible,
body.theme-refresh .site-footer-language:focus-visible {
    outline: 2px solid rgba(var(--rf-contrast-rgb), 0.8);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Appearance controls sit below the brand and remain readable on navy. */
body.theme-refresh .site-footer-appearance {
    margin: 1.5rem 0 0;
    padding: 0;
    border: 0;
}

body.theme-refresh .site-footer-appearance legend {
    float: none;
    width: auto;
    margin: 0 0 0.5rem;
    color: rgba(var(--rf-contrast-rgb), 0.65);
    font-size: 0.8125rem;
    font-weight: 500;
}

body.theme-refresh .site-appearance-options {
    display: inline-flex;
    gap: 0.125rem;
    padding: 0.1875rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.16);
    border-radius: 999px;
}

body.theme-refresh .site-appearance-options button {
    min-height: 32px;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(var(--rf-contrast-rgb), 0.75);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
}

body.theme-refresh .site-appearance-options button:hover {
    color: var(--rf-text);
    background: rgba(var(--rf-contrast-rgb), 0.08);
}

body.theme-refresh .site-appearance-options button[aria-pressed="true"] {
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
}

body.theme-refresh .site-appearance-options button:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

/* Bottom row inside the panel: copyright left; legal links and language right. */
body.theme-refresh .site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
}

body.theme-refresh .site-footer-copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(var(--rf-contrast-rgb), 0.5);
}

body.theme-refresh .site-footer-copyright a {
    font-size: inherit;
    color: rgba(var(--rf-contrast-rgb), 0.75) !important;
}

body.theme-refresh .site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

body.theme-refresh .site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

body.theme-refresh .site-footer-legal a {
    font-size: 0.8125rem;
}

/* Language picker: the same pill as the header's currency/language control. */
body.theme-refresh .site-footer-language {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(var(--rf-contrast-rgb), 0.85);
    background-color: rgba(var(--rf-contrast-rgb), 0.06);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.1);
    border-radius: 999px;
    transition: border-color 0.15s var(--rf-ease), color 0.15s var(--rf-ease);
}

body.theme-refresh .site-footer-language::after {
    margin-left: 0.375rem;
    opacity: 0.6;
}

body.theme-refresh .site-footer-language:hover,
body.theme-refresh .site-footer-language[aria-expanded="true"] {
    color: var(--rf-text);
    border-color: rgba(var(--rf-contrast-rgb), 0.22);
}

body.theme-refresh .site-footer .dropdown-menu-dark {
    background-color: var(--rf-menu) !important;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 0.625rem !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.theme-refresh .site-footer .dropdown-item {
    font-size: 0.875rem !important;
    color: rgba(var(--rf-contrast-rgb), 0.85);
    padding: 0.4375rem 0.75rem;
    border-radius: 6px;
}

body.theme-refresh .site-footer .dropdown-item:hover {
    color: var(--rf-text);
    background-color: rgba(var(--rf-contrast-rgb), 0.07);
}

body.theme-refresh .site-footer .dropdown-item.active {
    color: var(--rf-text);
    font-weight: 500;
    background-color: rgba(59, 132, 224, 0.22);
}

@media (max-width: 991.98px) {
    body.theme-refresh .site-footer-panel {
        padding: 0 1.5rem;
    }

    body.theme-refresh .site-footer-links {
        column-gap: 3rem;
    }
}

@media (max-width: 767.98px) {
    body.theme-refresh .site-footer {
        padding-bottom: 0.75rem;
    }

    body.theme-refresh .site-footer-panel {
        padding: 0 1.25rem;
    }

    body.theme-refresh .site-footer-main {
        flex-direction: column;
        gap: 2rem;
        padding: 2.25rem 0 2rem;
    }

    body.theme-refresh .site-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
        width: 100%;
    }

    body.theme-refresh .site-footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    body.theme-refresh .site-footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================================================================
 * 4. Portal components, cards and spacing
 * Same hero gradient and dark cards. Spacing follows one 8px rhythm,
 * row gaps match the column gutter, and hover is quieter: a 2px lift,
 * a blue-tinted border and the original top accent bar.
 * ================================================================== */

/*
 * Page hero (components/page-hero.blade.php), shared by every storefront
 * page: a rounded blue card inside the page container, the same width,
 * radius and hairline as the nav bar, cards and footer. A quiet single-hue
 * gradient (blended in OKLab so it stays clear), no texture or glow.
 * Default size for inner pages; size="lg" for the portal.
 */
body.theme-refresh .page-hero {
    padding-top: 1.5rem;
}

body.theme-refresh .page-hero-card {
    padding: 3.5rem 2rem 3.25rem;
    text-align: center;
    color: var(--rf-text);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.1);
    border-radius: var(--rf-radius-lg);
    background-color: var(--rf-blue-700);
    background-image: linear-gradient(160deg, var(--rf-blue-600) 0%, var(--rf-blue-800) 75%, var(--rf-blue-900) 100%);
    background-image: linear-gradient(160deg in oklab, var(--rf-blue-600) 0%, var(--rf-blue-800) 75%, var(--rf-blue-900) 100%);
}

body.theme-refresh .page-hero-lg .page-hero-card {
    padding: 5.5rem 2rem 5.25rem;
}

body.theme-refresh .page-hero-eyebrow {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(var(--rf-contrast-rgb), 0.72);
}

body.theme-refresh .page-hero-eyebrow a {
    color: rgba(var(--rf-contrast-rgb), 0.85);
    text-decoration: none;
}

body.theme-refresh .page-hero-eyebrow a:hover {
    color: var(--rf-text);
}

/* Breadcrumbs and meta lines in the eyebrow: one quiet row, items split by a dot or slash. */
body.theme-refresh .page-hero-breadcrumbs,
body.theme-refresh .page-hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.625rem;
}

body.theme-refresh .page-hero-breadcrumbs span {
    opacity: 0.5;
}

body.theme-refresh .page-hero-meta-item::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 0.625rem 0.1875rem 0;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.6;
    vertical-align: middle;
}

body.theme-refresh .page-hero-title {
    margin: 0 auto 0.875rem;
    max-width: 48rem;
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--rf-text);
}

body.theme-refresh .page-hero-lg .page-hero-title {
    margin-bottom: 1rem;
    font-size: 3.5rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

body.theme-refresh .page-hero-subtitle {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 1.125rem;
    line-height: 1.55;
    color: rgba(var(--rf-contrast-rgb), 0.8);
}

body.theme-refresh .page-hero-lg .page-hero-subtitle {
    max-width: 34rem;
    font-size: 1.1875rem;
}

body.theme-refresh .page-hero-extra {
    margin: 2rem auto 0;
    max-width: 48rem;
}

body.theme-refresh .page-hero-lg .page-hero-extra {
    margin-top: 2.25rem;
}

body.theme-refresh .page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Search and filter controls placed in a hero (blog list) sit in one centred row. */
body.theme-refresh .page-hero-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

body.theme-refresh .page-hero-toolbar .search-container {
    width: min(22rem, 100%);
}

/* The base theme's primary button is orange; inside a hero it matches the white hero button. */
body.theme-refresh .page-hero .btn-primary {
    color: var(--rf-primary-text);
    background-color: var(--rf-primary-bg);
    border-color: var(--rf-primary-bg);
}

body.theme-refresh .page-hero .btn-primary:hover,
body.theme-refresh .page-hero .btn-primary:focus {
    color: var(--rf-primary-text);
    background-color: var(--rf-primary-hover);
    border-color: var(--rf-primary-hover);
}

body.theme-refresh .page-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.15s var(--rf-ease), border-color 0.15s var(--rf-ease);
}

body.theme-refresh .page-hero-btn-primary {
    color: var(--rf-primary-text);
    background-color: var(--rf-primary-bg);
}

body.theme-refresh .page-hero-btn-primary:hover {
    color: var(--rf-primary-text);
    background-color: var(--rf-primary-hover);
}

body.theme-refresh .page-hero-btn-secondary {
    color: var(--rf-text);
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.28);
}

body.theme-refresh .page-hero-btn-secondary:hover {
    color: var(--rf-text);
    border-color: rgba(var(--rf-contrast-rgb), 0.55);
}

body.theme-refresh .page-hero-btn:focus-visible,
body.theme-refresh .page-hero-eyebrow a:focus-visible {
    outline: 2px solid var(--rf-primary-bg);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    body.theme-refresh .page-hero-card {
        padding: 3rem 1.5rem 2.75rem;
    }

    body.theme-refresh .page-hero-lg .page-hero-card {
        padding: 4rem 1.5rem 3.75rem;
    }

    body.theme-refresh .page-hero-title {
        font-size: 2.25rem;
    }

    body.theme-refresh .page-hero-lg .page-hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 767.98px) {
    body.theme-refresh .page-hero {
        padding-top: 0.75rem;
    }

    body.theme-refresh .page-hero-card,
    body.theme-refresh .page-hero-lg .page-hero-card {
        padding: 2.75rem 1.25rem 2.5rem;
    }

    body.theme-refresh .page-hero-title,
    body.theme-refresh .page-hero-lg .page-hero-title {
        font-size: 2rem;
    }

    body.theme-refresh .page-hero-subtitle,
    body.theme-refresh .page-hero-lg .page-hero-subtitle {
        font-size: 1.0625rem;
    }

    body.theme-refresh .page-hero-btn {
        height: 44px;
    }
}

body.theme-refresh .portal-content {
    background: transparent;
    padding: 1.5rem 0 0; /* one gutter below the hero card; the last row's own 1.5rem gutter separates it from the footer panel */
}

/* Every gap between cards is the 24px column gutter (rows were 2.3rem apart). */
body.theme-refresh .portal-content .row.mt-4 {
    margin-top: 0 !important;
}

body.theme-refresh .portal-content .row > [class*="col-"] {
    margin-bottom: 1.5rem !important;
}

/*
 * Cards: the same 16px radius and hairline as the nav bar, hero and
 * footer. Hover is quiet: the hairline warms to blue and the arrow
 * nudges; no lift, no sliding accent bar, no shadow.
 */
body.theme-refresh .portal-card {
    background: var(--rf-card);
    padding: 1.75rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    box-shadow: none;
    transition:
        background-color 0.2s var(--rf-ease),
        border-color 0.2s var(--rf-ease);
}

body.theme-refresh .portal-card::before {
    display: none;
}

body.theme-refresh .portal-card:hover {
    background: var(--rf-card-hover);
    border-color: var(--rf-border-hover);
    transform: none;
}

body.theme-refresh .portal-card:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

body.theme-refresh .portal-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 132, 224, 0.14);
    margin-bottom: 1.5rem;
    transition: background-color 0.2s var(--rf-ease);
}

body.theme-refresh .portal-card:hover .portal-card-icon {
    background: rgba(59, 132, 224, 0.22);
}

body.theme-refresh .portal-icon-img {
    font-size: 1.5rem;
}

/* Arrows show quietly on every card and brighten on hover. */
body.theme-refresh .portal-card-arrow,
body.theme-refresh .portal-card-lg .portal-card-arrow {
    opacity: 0.4;
    color: var(--rf-blue-light);
    transition: opacity 0.2s var(--rf-ease), transform 0.2s var(--rf-ease);
}

body.theme-refresh .portal-card-arrow {
    top: 1.75rem;
    right: 1.75rem;
    bottom: auto;
    font-size: 1.125rem;
}

body.theme-refresh .portal-card:hover .portal-card-arrow,
body.theme-refresh .portal-card-lg:hover .portal-card-arrow {
    opacity: 1;
    right: 1.75rem;
    transform: translateX(3px);
}

/* Wide cards: same treatment, laid out horizontally. */
body.theme-refresh .portal-card-lg {
    padding: 2rem;
    min-height: 0;
    gap: 1.5rem;
}

body.theme-refresh .portal-card-content {
    gap: 1.5rem;
}

body.theme-refresh .portal-card-lg .portal-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

body.theme-refresh .portal-card-lg .portal-icon-img {
    width: auto;
    height: auto;
    font-size: 1.625rem;
}

body.theme-refresh .portal-card-lg .portal-card-arrow {
    font-size: 1.25rem;
    margin-right: 0;
}

@media (max-width: 991px) {
    body.theme-refresh .portal-card-lg {
        margin-top: 0;
        padding: 1.75rem;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    body.theme-refresh .portal-content {
        padding: 1.5rem 0 0;
    }

    body.theme-refresh .portal-card-lg {
        padding: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-refresh .site-header,
    body.theme-refresh .site-bar {
        transition: none;
    }

    body.theme-refresh .portal-card,
    body.theme-refresh .portal-card-arrow {
        transition: none;
    }

    body.theme-refresh .portal-card:hover .portal-card-arrow {
        transform: none;
    }
}

/* ==================================================================
 * Blog listing and posts
 * ================================================================== */

/* Blog listing */
.blog-index-content {
    padding: 1.5rem 0 3rem;
}

.blog-index .blog-search {
    position: relative;
    max-width: 24rem;
    margin: 0 0 1.5rem auto;
}

.blog-index .blog-search > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    color: var(--rf-text-muted, #b9bec8);
    transform: translateY(-50%);
    pointer-events: none;
}

.blog-index .blog-search input {
    min-height: 46px;
    padding-left: 2.75rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius, 12px);
    background: var(--rf-card, #222936);
    color: var(--rf-text);
    font-size: 0.9375rem;
    box-shadow: none;
}

.blog-index .blog-search input::placeholder {
    color: var(--rf-text-muted, #b9bec8);
}

.blog-index #blogPosts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-index .blog-preview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    padding: 1.75rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius-lg, 16px);
    background: var(--rf-card, #222936);
}

.blog-index .blog-preview-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    width: 100%;
    color: var(--rf-text-muted, #b9bec8);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.blog-index .blog-preview-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.blog-index .blog-preview h2,
.blog-index .blog-empty h2 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.blog-index .blog-preview h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-index .blog-preview p,
.blog-index .blog-empty p {
    max-width: 65ch;
    margin: 0;
    color: var(--rf-text-muted, #b9bec8);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.blog-index .blog-read-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    align-self: flex-start;
    gap: 0.625rem;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rf-blue-light, #5c9eeb);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.blog-index .blog-read-link:hover,
.blog-index .blog-preview h2 a:hover {
    color: var(--rf-text);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.blog-index :is(a, button, input):focus-visible {
    outline: 2px solid var(--rf-blue-light, #5c9eeb);
    outline-offset: 4px;
}

.blog-index .blog-empty {
    grid-column: 1 / -1;
    padding: 3rem 1.5rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius-lg, 16px);
    background: var(--rf-card, #222936);
    text-align: center;
}

.blog-index .blog-empty p {
    margin: 0 auto;
}

.blog-index .blog-empty .blog-read-link {
    margin-top: 1rem;
}

.blog-index [hidden] {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .blog-index #blogPosts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .blog-index #blogPosts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .blog-index-content {
        padding: 1rem 0 1.5rem;
    }

    .blog-index .blog-search {
        max-width: none;
        margin-bottom: 1rem;
    }

    .blog-index .blog-preview {
        padding: 1.5rem;
    }
}

/* Blog posts */
.blog-post .post-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    background: var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    z-index: 1040;
    pointer-events: none;
}

.blog-post #readingProgress {
    height: 100%;
    background: var(--rf-blue-light, #5c9eeb);
    transform: scaleX(0);
    transform-origin: left;
}

.blog-post .post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
}

.blog-post .post-article,
.blog-post .post-cta {
    min-width: 0;
    padding: 2rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius-lg, 16px);
    background: var(--rf-card, #222936);
}

.blog-post .page-hero .page-hero-extra {
    margin-top: 1rem;
}

.blog-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    color: var(--rf-text-muted, #b9bec8);
    font-size: 0.875rem;
}

.blog-post .page-hero .post-meta {
    color: var(--rf-panel-muted);
}

.blog-post .post-meta a {
    color: inherit;
    text-underline-offset: 0.25em;
}

.blog-post .post-body {
    color: var(--rf-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.blog-post .post-body :is(h1, h2, h3, h4, h5, h6) {
    margin: 2rem 0 1rem;
    color: var(--rf-text);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    scroll-margin-top: 2rem;
}

.blog-post .post-body :is(h1, h2) {
    font-size: 1.75rem;
}

.blog-post .post-body h3 {
    font-size: 1.375rem;
}

.blog-post .post-body :is(h4, h5, h6) {
    font-size: 1.125rem;
}

.blog-post .post-body :is(p, ul, ol, blockquote, pre, figure, table) {
    margin: 0 0 1.5rem;
}

.blog-post .post-body > :first-child {
    margin-top: 0;
}

.blog-post .post-body > :last-child {
    margin-bottom: 0;
}

.blog-post .post-body :is(ul, ol) {
    padding-left: 1.5rem;
}

.blog-post .post-body li + li {
    margin-top: 0.5rem;
}

.blog-post .post-body a {
    color: var(--rf-blue-light, #5c9eeb);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.blog-post .post-body blockquote {
    padding: 0.25rem 0 0.25rem 1.5rem;
    border-left: 3px solid var(--rf-blue-light, #5c9eeb);
    color: var(--rf-text-muted, #b9bec8);
}

.blog-post .post-body blockquote > :last-child {
    margin-bottom: 0;
}

.blog-post .post-body code {
    padding: 0.15em 0.35em;
    border-radius: 4px;
    background: var(--rf-page, #1c2027);
    color: var(--rf-code);
    font-size: 0.875em;
}

.blog-post .post-body pre {
    padding: 1.25rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius, 12px);
    background: var(--rf-page, #1c2027);
    overflow-x: auto;
}

.blog-post .post-body pre code {
    padding: 0;
    background: transparent;
}

.blog-post .post-body :is(img, video, iframe) {
    max-width: 100%;
}

.blog-post .post-body :is(img, video) {
    height: auto;
}

.blog-post .post-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.blog-post .post-body :is(th, td) {
    padding: 0.75rem;
    border-bottom: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
}

.blog-post .post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 1.5rem;
    min-width: 0;
}

.blog-post .post-cta {
    padding: 1.75rem;
}

.blog-post .post-cta-services {
    background: var(--rf-navy, #122a49);
}

.blog-post .post-cta h2 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}

.blog-post .post-cta p {
    margin: 0 0 1.5rem;
    color: var(--rf-panel-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.blog-post .post-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-post .post-cta-button:hover {
    background: var(--rf-primary-hover);
    color: var(--rf-primary-text);
}

.blog-post .post-cta-button-secondary {
    margin-top: 0.75rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.3);
    background: transparent;
    color: var(--rf-text);
    text-align: center;
}

.blog-post .post-cta-button-secondary:hover {
    border-color: rgba(var(--rf-contrast-rgb), 0.6);
    background: rgba(var(--rf-contrast-rgb), 0.05);
    color: var(--rf-text);
}

.blog-post :is(.post-meta a, .post-body a):hover {
    color: var(--rf-text);
    text-decoration: underline;
}

.blog-post :is(a, button):focus-visible {
    outline: 2px solid var(--rf-blue-light, #5c9eeb);
    outline-offset: 4px;
}

@media (max-width: 991.98px) {
    .blog-post .post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-post .post-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .blog-post .post-layout {
        gap: 1rem;
        padding: 1rem 0 1.5rem;
    }

    .blog-post .post-article,
    .blog-post .post-cta {
        padding: 1.5rem;
    }

    .blog-post .post-body {
        font-size: 1rem;
    }
}

/* ==================================================================
 * Frontend verification and payment status
 * ================================================================== */

.email-verification-page,
.payment-status-page {
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 4rem 0;
    color: var(--rf-text);
}

.email-verification-page .email-verification-card,
.payment-status-page .payment-status-card {
    max-width: 42rem;
    padding: 2.5rem;
    margin: 0 auto;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.email-verification-page .email-verification-heading > p,
.payment-status-page .payment-status-heading > p {
    margin: 0 0 0.75rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.email-verification-page h1,
.payment-status-page h1 {
    margin: 0 0 1rem;
    color: var(--rf-text);
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.email-verification-page .email-verification-content p,
.payment-status-page .payment-status-content p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.email-verification-page .email-verification-content .email-verification-address {
    margin-top: 0.75rem;
    color: var(--rf-text);
    font-weight: 500;
}

.email-verification-page .email-verification-note,
.payment-status-page .payment-status-note {
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
}

.email-verification-page .email-verification-note h2,
.payment-status-page .payment-status-note h2 {
    margin: 0 0 0.5rem;
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
}

.email-verification-page .email-verification-note p,
.payment-status-page .payment-status-note p {
    font-size: 0.875rem;
}

.email-verification-page .email-verification-feedback {
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(var(--rf-success-rgb), 0.3);
    border-radius: var(--rf-radius);
    background: rgba(var(--rf-success-rgb), 0.06);
    color: var(--rf-success);
    font-size: 0.875rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.email-verification-page .email-verification-actions,
.payment-status-page .payment-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.email-verification-page .email-verification-form {
    margin: 0;
}

.email-verification-page .email-verification-button,
.payment-status-page .payment-status-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--rf-primary-bg);
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.email-verification-page .email-verification-button:hover,
.payment-status-page .payment-status-button:hover {
    background: var(--rf-primary-hover-soft);
    color: var(--rf-primary-text);
}

.email-verification-page .email-verification-button-secondary,
.payment-status-page .payment-status-button-secondary {
    border-color: rgba(var(--rf-contrast-rgb), 0.2);
    background: transparent;
    color: var(--rf-text);
    font-weight: 500;
}

.email-verification-page .email-verification-button-secondary:hover,
.payment-status-page .payment-status-button-secondary:hover {
    border-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.08);
    color: var(--rf-text);
}

.email-verification-page .email-verification-button:focus-visible,
.payment-status-page .payment-status-button:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

.email-verification-page .email-verification-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.email-verification-page .email-verification-footer,
.payment-status-page .payment-status-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--rf-border);
}

.email-verification-page .email-verification-footer p,
.payment-status-page .payment-status-footer p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.email-verification-page .email-verification-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.email-verification-page [aria-busy='true'] .email-verification-spinner {
    display: inline-block;
    animation: verification-spin 0.7s linear infinite;
}

.payment-status-page .payment-status-content .payment-status-assurance {
    margin-top: 1.5rem;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.payment-status-page .payment-status-details {
    padding: 1.25rem;
    margin: 1.5rem 0 0;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
    font-size: 0.875rem;
    line-height: 1.7;
}

.payment-status-page .payment-status-details > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.payment-status-page .payment-status-details > div + div {
    margin-top: 0.75rem;
}

.payment-status-page .payment-status-details dt {
    color: var(--rf-text-muted);
    font-weight: 400;
}

.payment-status-page .payment-status-details dd {
    min-width: 0;
    margin: 0;
    color: var(--rf-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}

@keyframes verification-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
    .email-verification-page,
    .payment-status-page {
        padding: 2rem 0;
    }

    .email-verification-page .email-verification-card,
    .payment-status-page .payment-status-card {
        padding: 1.5rem;
    }

    .email-verification-page :is(.email-verification-actions, .email-verification-footer),
    .payment-status-page :is(.payment-status-actions, .payment-status-footer) {
        flex-direction: column;
        align-items: stretch;
    }

    .email-verification-page .email-verification-button,
    .payment-status-page .payment-status-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .email-verification-page [aria-busy='true'] .email-verification-spinner {
        animation: none;
    }
}

/* ==================================================================
 * Account registration
 * ================================================================== */

.registration-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.registration-page [hidden] {
    display: none !important;
}

.registration-page .registration-breadcrumbs {
    margin-bottom: 1.75rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.registration-page .registration-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-page .registration-breadcrumbs li + li::before {
    content: '/';
    margin-right: 0.625rem;
    color: var(--rf-text-subtle);
}

.registration-page .registration-breadcrumbs a {
    color: var(--rf-text-muted);
    text-decoration: none;
}

.registration-page .registration-breadcrumbs a:hover {
    color: var(--rf-text);
}

.registration-page .registration-intro {
    margin-bottom: 1.75rem;
}

.registration-page .registration-intro h1 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.registration-page .registration-intro p {
    margin: 0;
    color: var(--rf-text-muted);
    line-height: 1.65;
}

.registration-page .registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: 1.5rem;
}

.registration-page .registration-card,
.registration-page .registration-help-card {
    min-width: 0;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.registration-page .registration-card {
    padding: 2.5rem;
}

.registration-page .registration-form-section + .registration-form-section {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--rf-border);
}

.registration-page .registration-section-heading {
    margin-bottom: 1.5rem;
}

.registration-page .registration-section-heading h2 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.registration-page .registration-section-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

.registration-page .registration-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
}

.registration-page .registration-field {
    min-width: 0;
}

.registration-page .registration-field-full {
    grid-column: 1 / -1;
}

.registration-page .registration-field > label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.registration-page :is(.form-control, .form-select) {
    width: 100%;
    min-width: 0;
    height: 3rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: 8px;
    background-color: var(--rf-page);
    color: var(--rf-text);
    font-size: 0.9375rem;
    line-height: 1.5;
    scroll-margin-top: 7rem;
}

.registration-page .form-select {
    padding-right: 2.5rem;
    color-scheme: inherit;
    background-image: var(--rf-select-arrow);
}

.registration-page .form-control::placeholder {
    color: var(--rf-text-muted);
}

.registration-page :is(.form-control, .form-select):focus {
    border-color: var(--rf-blue-light);
    background-color: var(--rf-page);
    color: var(--rf-text);
    box-shadow: 0 0 0 3px rgba(92, 158, 235, 0.15);
}

.registration-page :is(.form-control, .form-select):disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.registration-page :is(.form-control, .form-select).is-invalid {
    border-color: var(--rf-error);
}

.registration-page .form-control.is-valid {
    border-color: var(--rf-success);
}

.registration-page .form-control:is(.is-invalid, .is-valid) {
    background-image: none;
}

.registration-page .invalid-feedback,
.registration-page .email-validation-feedback,
.registration-page .password-match {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.registration-page .invalid-feedback {
    color: var(--rf-error);
}

.registration-page :is(.email-validation-feedback, .password-match, #err_altcha) {
    display: none;
}

.registration-page .text-muted {
    color: var(--rf-text-muted) !important;
}

.registration-page .text-success {
    color: var(--rf-success) !important;
}

.registration-page .text-danger {
    color: var(--rf-error) !important;
}

.registration-page .password-field {
    position: relative;
}

.registration-page .password-field input {
    padding-right: 4.5rem;
}

.registration-page .registration-password-toggle {
    position: absolute;
    top: 0.125rem;
    right: 0.375rem;
    min-width: 3.5rem;
    min-height: 44px;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--rf-blue-light);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
}

.registration-page .registration-password-toggle:hover {
    color: var(--rf-text);
}

.registration-page .password-popover-panel {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
}

.registration-page .registration-password-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.registration-page .registration-password-heading h3 {
    margin: 0;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.registration-page .password-strength-indicator {
    display: none;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.registration-page .password-strength-indicator[data-strength="5"] {
    color: var(--rf-success);
}

.registration-page .popover-req-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-page .req-item {
    display: flex;
    gap: 0.625rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.registration-page .req-item.req-met .req-icon {
    color: var(--rf-success);
}

.registration-page .req-icon {
    flex-shrink: 0;
    width: 0.75rem;
}

.registration-page .popover-breach {
    display: none;
    margin-top: 1rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.65;
}

.registration-page .popover-breach.status-found {
    color: var(--rf-error);
}

.registration-page .popover-breach.status-safe {
    color: var(--rf-success);
}

.registration-page .popover-breach.status-loading i {
    display: inline-block;
    animation: registration-spin 0.8s linear infinite;
}

.registration-page .registration-terms {
    margin-top: 1.5rem;
}

.registration-page .registration-terms .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.registration-page .registration-terms .form-check-input {
    appearance: none;
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    margin: 0.125rem 0 0;
    float: none;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.35);
    border-radius: 5px;
    background: var(--rf-page) center / 0.875rem no-repeat;
    box-shadow: none;
    cursor: pointer;
}

.registration-page .registration-terms .form-check-input:hover {
    border-color: var(--rf-blue-light);
}

.registration-page .registration-terms .form-check-input:checked {
    border-color: var(--rf-primary-bg);
    background-color: var(--rf-primary-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23122a49' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}

.registration-page .registration-terms .form-check-input:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

.registration-page .registration-terms .form-check-input.is-invalid {
    border-color: var(--rf-error);
}

.registration-page .registration-terms .form-check-label {
    min-height: 44px;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.75;
    cursor: pointer;
}

.registration-page .form-check-label a {
    color: var(--rf-blue-light);
    white-space: nowrap;
    text-underline-offset: 0.2em;
}

.registration-page .registration-form-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.5rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--rf-border);
}

.registration-page .registration-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 44px;
    max-width: 100%;
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--rf-primary-bg);
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.registration-page .registration-button:hover:not(:disabled) {
    border-color: var(--rf-primary-hover);
    background: var(--rf-primary-hover);
    color: var(--rf-primary-text);
}

.registration-page .registration-submit {
    min-width: 11rem;
}

.registration-page .registration-button-secondary {
    border-color: rgba(var(--rf-contrast-rgb), 0.2);
    background: transparent;
    color: var(--rf-text);
    font-weight: 500;
}

.registration-page .registration-button-secondary:hover:not(:disabled) {
    border-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.08);
    color: var(--rf-text);
}

.registration-page .registration-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.registration-page :is(a, button):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

.registration-page .registration-button-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.registration-page .registration-submit[aria-busy="true"] .registration-button-spinner {
    display: inline-block;
    animation: registration-spin 0.7s linear infinite;
}

@keyframes registration-spin {
    to { transform: rotate(360deg); }
}

.registration-page .registration-feedback {
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(var(--rf-error-rgb), 0.3);
    border-radius: var(--rf-radius);
    background: rgba(var(--rf-error-rgb), 0.06);
    color: var(--rf-error);
    font-size: 0.875rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.registration-page .registration-feedback[data-state="success"] {
    border-color: rgba(var(--rf-success-rgb), 0.3);
    background: rgba(var(--rf-success-rgb), 0.06);
    color: var(--rf-success);
}

.registration-page .registration-sidebar {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.registration-page .registration-help-card {
    padding: 1.5rem;
}

.registration-page .registration-help-card h2 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.registration-page .registration-help-card p {
    margin: 0 0 1.25rem;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.registration-page .registration-help-card .registration-button {
    width: 100%;
    padding-inline: 1rem;
}

.registration-page .iti {
    width: 100%;
}

.registration-page .iti__flag-container {
    width: 100%;
    pointer-events: none;
}

.registration-page .iti__selected-flag {
    width: max-content;
    min-width: 6.5rem;
    padding: 0 0.75rem;
    border-right: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: 7px 0 0 7px;
    background: var(--rf-card-hover);
    pointer-events: auto;
}

.registration-page .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background: var(--rf-menu);
}

.registration-page #telephone {
    padding-right: 0.875rem;
}

.registration-page .iti__selected-flag:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: -3px;
}

.registration-page .iti__selected-dial-code {
    margin-left: 0.5rem;
    color: var(--rf-text);
    font-size: 1rem;
    line-height: 1.5;
}

.registration-page .select2-container--disabled .select2-selection--single {
    background: var(--rf-page);
    opacity: 0.55;
    cursor: not-allowed;
}

.registration-page .select2-selection:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 2px;
}

.registration-page #registrat_form :is(.iti__arrow, .select2-selection__arrow b) {
    width: 1rem;
    height: 1rem;
    border: 0;
    background: var(--rf-select-arrow) center / 1rem no-repeat;
}

.registration-page #registrat_form .select2-selection__arrow b {
    margin: -0.5rem 0 0 -0.5rem;
}

.registration-page .iti__arrow--up {
    transform: rotate(180deg);
}

.registration-page .iti__country-list,
body.theme-refresh:has(.registration-page) .iti--container .iti__country-list {
    z-index: 1040;
    width: 100%;
    max-width: calc(100vw - 3rem);
    max-height: 12.5rem;
    border: 1px solid var(--rf-border-hover);
    border-radius: 8px;
    background: var(--rf-card);
    color: var(--rf-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 0.9375rem;
    pointer-events: auto;
}

.registration-page .iti__country,
body.theme-refresh:has(.registration-page) .iti--container .iti__country {
    min-height: 44px;
    padding: 0.625rem 0.875rem;
}

.registration-page .iti__country.iti__highlight,
body.theme-refresh:has(.registration-page) .iti--container .iti__country.iti__highlight {
    background: var(--rf-blue-700);
}

.registration-page .iti__country-name,
body.theme-refresh:has(.registration-page) .iti--container .iti__country-name {
    white-space: normal;
    overflow-wrap: anywhere;
}

.registration-page .iti__dial-code,
body.theme-refresh:has(.registration-page) .iti--container .iti__dial-code {
    color: var(--rf-text-muted);
}

.registration-page .iti__divider,
body.theme-refresh:has(.registration-page) .iti--container .iti__divider {
    border-color: var(--rf-border);
}

.registration-page altcha-widget {
    --altcha-color-base: var(--rf-page);
    --altcha-color-base-content: var(--rf-text);
    --altcha-color-neutral: #707784;
    --altcha-color-primary: var(--rf-blue);
    --altcha-color-primary-content: #fff;
    --altcha-border-color: rgba(var(--rf-contrast-rgb), 0.18);
    --altcha-border-radius: 8px;
    --altcha-max-width: 100%;
    --altcha-padding: 1rem;
    display: block;
    max-width: 100%;
    color-scheme: inherit;
    font-size: 0.9375rem;
}

@media (max-width: 991.98px) {
    .registration-page .registration-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .registration-page .registration-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .registration-page .registration-sidebar > :only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .registration-page {
        padding: 1.25rem 0 2.5rem;
    }

    .registration-page .registration-breadcrumbs {
        margin-bottom: 1.25rem;
    }

    .registration-page .registration-card {
        padding: 1.5rem;
    }

    .registration-page :is(.registration-field-grid, .registration-sidebar, .popover-req-list) {
        grid-template-columns: minmax(0, 1fr);
    }

    .registration-page .registration-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .registration-page :is(.registration-submit[aria-busy="true"] .registration-button-spinner, .popover-breach.status-loading i) {
        animation: none;
    }
}

/* ==================================================================
 * License verification
 * ================================================================== */

.license-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.license-page [hidden] {
    display: none !important;
}

.license-page .license-breadcrumbs {
    margin-bottom: 1.75rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.license-page .license-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.license-page .license-breadcrumbs li + li::before {
    content: '/';
    margin-right: 0.625rem;
    color: var(--rf-text-subtle);
}

.license-page .license-breadcrumbs a {
    color: var(--rf-text-muted);
    text-decoration: none;
}

.license-page .license-breadcrumbs a:hover {
    color: var(--rf-text);
}

.license-page .license-page-heading {
    margin-bottom: 1.75rem;
}

.license-page .license-page-heading h1 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.license-page .license-page-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    line-height: 1.65;
}

.license-page .license-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: 1.5rem;
}

.license-page .license-panel {
    min-width: 0;
    padding: 2.5rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.license-page .license-panel-heading {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--rf-border);
}

.license-page .license-panel-heading h2 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.license-page .license-panel-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

.license-page form label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.license-page .license-input-row {
    display: flex;
    gap: 0.875rem;
}

.license-page .form-control {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.18);
    border-radius: 8px;
    background: var(--rf-page);
    color: var(--rf-text);
    font-size: 0.9375rem;
    line-height: 1.6;
    scroll-margin-top: 7rem;
}

.license-page .form-control::placeholder {
    color: var(--rf-text-muted);
}

.license-page .form-control:focus {
    border-color: var(--rf-blue-light);
    background: var(--rf-page);
    color: var(--rf-text);
    box-shadow: 0 0 0 3px rgba(92, 158, 235, 0.15);
}

.license-page .form-control.is-invalid {
    border-color: var(--rf-error);
    background-image: none;
}

.license-page .license-field-help,
.license-page .license-field-error {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.license-page .license-field-help {
    color: var(--rf-text-muted);
}

.license-page .license-field-error {
    color: var(--rf-error);
}

.license-page .license-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.625rem;
    min-height: 48px;
    max-width: 100%;
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--rf-primary-bg);
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.license-page .license-button:hover:not(:disabled) {
    border-color: var(--rf-primary-hover);
    background: var(--rf-primary-hover);
    color: var(--rf-primary-text);
}

.license-page .license-button-secondary {
    border-color: rgba(var(--rf-contrast-rgb), 0.2);
    background: transparent;
    color: var(--rf-text);
    font-weight: 500;
}

.license-page .license-button-secondary:hover:not(:disabled) {
    border-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.08);
    color: var(--rf-text);
}

.license-page .license-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.license-page :is(a, button):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

.license-page .license-button-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.license-page button[aria-busy="true"] .license-button-spinner {
    display: inline-block;
    animation: license-check-spin 0.7s linear infinite;
}

@keyframes license-check-spin {
    to { transform: rotate(360deg); }
}

.license-page .license-result {
    padding: 1.25rem;
    margin-top: 1.75rem;
    border: 1px solid rgba(var(--rf-warning-rgb), 0.3);
    border-radius: var(--rf-radius);
    background: rgba(var(--rf-warning-rgb), 0.06);
}

.license-page .license-result-valid {
    border-color: rgba(var(--rf-success-rgb), 0.3);
    background: rgba(var(--rf-success-rgb), 0.06);
}

.license-page .license-result h3 {
    margin: 0 0 0.5rem;
    color: var(--rf-warning);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.license-page .license-result-valid h3 {
    color: var(--rf-success);
}

.license-page .license-result p {
    margin: 0;
    color: var(--rf-body);
    font-size: 0.9375rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.license-page .license-privacy-note {
    padding-top: 1.5rem;
    margin: 1.75rem 0 0;
    border-top: 1px solid var(--rf-border);
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.7;
}

.license-page .license-help-card {
    padding: 1.5rem;
}

.license-page .license-help-card h2 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.license-page .license-help-card p {
    margin: 0 0 1.25rem;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.license-page .license-help-card .license-button {
    width: 100%;
    padding-inline: 0.75rem;
}

.license-page .license-help-card .license-button + .license-button {
    margin-top: 0.75rem;
}

@media (max-width: 991.98px) {
    .license-page .license-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .license-page {
        padding: 1.25rem 0 2.5rem;
    }

    .license-page .license-breadcrumbs {
        margin-bottom: 1.25rem;
    }

    .license-page .license-panel {
        padding: 1.5rem;
    }

    .license-page .license-input-row {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .license-page button[aria-busy="true"] .license-button-spinner {
        animation: none;
    }
}

/* ==================================================================
 * Support contact forms
 * ================================================================== */

.support-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.support-page [hidden] {
    display: none !important;
}

.support-page .support-breadcrumbs {
    margin-bottom: 1.75rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.support-page .support-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-page .support-breadcrumbs li + li::before {
    content: '/';
    margin-right: 0.625rem;
    color: var(--rf-text-subtle);
}

.support-page .support-breadcrumbs a {
    color: var(--rf-text-muted);
    text-decoration: none;
}

.support-page .support-breadcrumbs a:hover {
    color: var(--rf-text);
}

.support-page .support-page-heading {
    margin-bottom: 1.75rem;
}

.support-page .support-page-heading h1 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.support-page .support-page-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    line-height: 1.65;
}

.support-page .support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: 1.5rem;
}

.support-page .support-panel {
    min-width: 0;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.support-page .support-form-panel {
    padding: 2.5rem;
}

.support-page .support-form-heading {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--rf-border);
}

.support-page .support-form-heading h2,
.support-page .support-sign-in h2 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.support-page .support-form-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

.support-page .support-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.support-page .support-field {
    min-width: 0;
    margin-bottom: 1.5rem;
}

.support-page .support-field label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.support-page .support-field label span {
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

.support-page :is(.form-control, .form-select) {
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.18);
    border-radius: 8px;
    background-color: var(--rf-page);
    color: var(--rf-text);
    font-size: 0.9375rem;
    line-height: 1.6;
    scroll-margin-top: 7rem;
}

.support-page .form-select {
    padding-right: 2.5rem;
    color-scheme: inherit;
    background-image: var(--rf-select-arrow);
}

.support-page textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

.support-page .form-control::placeholder {
    color: var(--rf-text-muted);
}

.support-page :is(.form-control, .form-select):focus {
    border-color: var(--rf-blue-light);
    background-color: var(--rf-page);
    color: var(--rf-text);
    box-shadow: 0 0 0 3px rgba(92, 158, 235, 0.15);
}

.support-page :is(.form-control, .form-select).is-invalid {
    border-color: var(--rf-error);
}

.support-page .form-control.is-invalid {
    background-image: none;
}

.support-page .support-field-help,
.support-page .support-field-error {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.support-page .support-field-help {
    color: var(--rf-text-muted);
}

.support-page .support-field-error {
    color: var(--rf-error);
}

.support-page .support-form-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.5rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--rf-border);
}

.support-page .support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 44px;
    max-width: 100%;
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--rf-primary-bg);
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.support-page .support-button:hover:not(:disabled) {
    border-color: var(--rf-primary-hover);
    background: var(--rf-primary-hover);
    color: var(--rf-primary-text);
}

.support-page .support-form-footer .support-button {
    min-width: 10rem;
}

.support-page .support-button-secondary {
    border-color: rgba(var(--rf-contrast-rgb), 0.2);
    background: transparent;
    color: var(--rf-text);
    font-weight: 500;
}

.support-page .support-button-secondary:hover:not(:disabled) {
    border-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.08);
    color: var(--rf-text);
}

.support-page .support-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.support-page :is(a, button):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

.support-page .support-button-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.support-page .support-button[aria-busy="true"] .support-button-spinner {
    display: inline-block;
    animation: support-submit-spin 0.7s linear infinite;
}

@keyframes support-submit-spin {
    to { transform: rotate(360deg); }
}

.support-page .support-feedback {
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(var(--rf-error-rgb), 0.3);
    border-radius: var(--rf-radius);
    background: rgba(var(--rf-error-rgb), 0.06);
    color: var(--rf-error);
    font-size: 0.875rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.support-page .support-flash {
    margin: 0 0 1.5rem;
}

.support-page .support-feedback[data-state="success"] {
    border-color: rgba(var(--rf-success-rgb), 0.3);
    background: rgba(var(--rf-success-rgb), 0.06);
    color: var(--rf-success);
}

.support-page .support-sidebar {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.support-page .support-help-card {
    padding: 1.5rem;
}

.support-page .support-help-card h2 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.support-page :is(.support-help-card, .support-sign-in) p {
    margin: 0 0 1.25rem;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.support-page .support-help-card .support-button {
    width: 100%;
    padding-inline: 1rem;
}

.support-page .support-suggestions {
    padding: 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
}

.support-page .support-suggestions h3 {
    margin: 0 0 0.5rem;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.support-page .support-suggestions ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-page .support-suggestions a {
    color: var(--rf-blue-light);
    font-size: 0.875rem;
    line-height: 1.6;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .support-page .support-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .support-page .support-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-page .support-sidebar > :only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .support-page {
        padding: 1.25rem 0 2.5rem;
    }

    .support-page .support-breadcrumbs {
        margin-bottom: 1.25rem;
    }

    .support-page .support-form-panel {
        padding: 1.5rem;
    }

    .support-page :is(.support-field-row, .support-sidebar) {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .support-page .support-sidebar {
        gap: 1rem;
    }

    .support-page .support-form-footer .support-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-page .support-button[aria-busy="true"] .support-button-spinner {
        animation: none;
    }
}

/* ==================================================================
 * Knowledge base
 * ================================================================== */

.kb-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.kb-page [hidden] {
    display: none !important;
}

.kb-page .kb-breadcrumbs {
    margin-bottom: 1.75rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.kb-page .kb-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kb-page .kb-breadcrumbs li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kb-page .kb-breadcrumbs li + li::before {
    content: '/';
    margin-right: 0.625rem;
    color: var(--rf-text-subtle);
}

.kb-page .kb-breadcrumbs a {
    color: var(--rf-text-muted);
    text-decoration: none;
}

.kb-page .kb-breadcrumbs a:hover {
    color: var(--rf-text);
}

.kb-page .kb-page-heading {
    margin-bottom: 1.75rem;
}

.kb-page :is(.kb-page-heading, .kb-answer-header) h1 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.kb-page :is(.kb-page-heading, .kb-answer-header) p {
    margin: 0;
    color: var(--rf-text-muted);
    line-height: 1.65;
}

.kb-page .kb-search {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: min(100%, 40rem);
    min-height: 52px;
    margin-bottom: 2rem;
    padding: 0 0.75rem 0 1rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.18);
    border-radius: var(--rf-radius);
    background: var(--rf-card);
    color: var(--rf-text-muted);
}

.kb-page .kb-search:focus-within {
    border-color: var(--rf-blue-light);
    outline: 2px solid rgba(92, 158, 235, 0.2);
    outline-offset: 2px;
}

.kb-page .kb-search svg {
    flex-shrink: 0;
}

.kb-page .kb-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--rf-text);
    font: inherit;
    font-size: 1rem;
}

.kb-page .kb-search input::placeholder {
    color: var(--rf-text-muted);
}

.kb-page .kb-search input::-webkit-search-cancel-button {
    display: none;
}

.kb-page .kb-search button {
    min-height: 44px;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--rf-blue-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

.kb-page .kb-search button:hover {
    color: var(--rf-text);
}

.kb-page .kb-panel {
    min-width: 0;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.kb-page .kb-section {
    margin-bottom: 2.5rem;
}

.kb-page .kb-section > h2 {
    margin: 0 0 1.25rem;
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.kb-page .kb-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.kb-page .kb-category {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    padding: 1.75rem;
    text-decoration: none;
}

.kb-page .kb-category:hover {
    border-color: var(--rf-border-hover);
    background: var(--rf-card-hover);
}

.kb-page .kb-category h3 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.kb-page .kb-category p {
    margin: 0 0 1.5rem;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
}

.kb-page .kb-category-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    color: var(--rf-blue-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.kb-page .kb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: 1.5rem;
}

.kb-page .kb-layout > section {
    min-width: 0;
}

.kb-page .kb-sidebar {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.kb-page .kb-article-list {
    overflow: hidden;
}

.kb-page .kb-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    text-decoration: none;
}

.kb-page .kb-article-link + .kb-article-link {
    border-top: 1px solid var(--rf-border);
}

.kb-page .kb-article-link:hover {
    background: var(--rf-card-hover);
}

.kb-page .kb-article-link h3 {
    margin: 0 0 0.5rem;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.kb-page .kb-article-link p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.kb-page .kb-article-arrow {
    flex-shrink: 0;
    color: var(--rf-blue-light);
    font-size: 1.25rem;
}

.kb-page .kb-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem;
}

.kb-page > .container > .kb-support {
    margin-top: 2rem;
}

.kb-page :is(.kb-support, .kb-related, .kb-empty) h2,
.kb-page .kb-empty h3 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.kb-page :is(.kb-support, .kb-empty) p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.kb-page .kb-sidebar .kb-support {
    display: block;
    padding: 1.5rem;
}

.kb-page .kb-sidebar .kb-support .kb-button {
    width: 100%;
    margin-top: 1.25rem;
}

.kb-page .kb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--rf-primary-bg);
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.kb-page .kb-button:hover {
    border-color: var(--rf-primary-hover);
    background: var(--rf-primary-hover);
    color: var(--rf-primary-text);
}

.kb-page .kb-button-secondary {
    border-color: rgba(var(--rf-contrast-rgb), 0.2);
    background: transparent;
    color: var(--rf-text);
    font-weight: 500;
}

.kb-page .kb-button-secondary:hover {
    border-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.08);
    color: var(--rf-text);
}

.kb-page :is(a, button, summary):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

.kb-page .kb-article-link:focus-visible {
    outline-offset: -3px;
}

.kb-page .kb-faq-list {
    display: grid;
    gap: 0.75rem;
}

.kb-page .kb-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    color: var(--rf-text);
    font-weight: 500;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.kb-page .kb-faq summary::-webkit-details-marker {
    display: none;
}

.kb-page .kb-faq summary::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 0.5rem;
    border-right: 1.5px solid var(--rf-text-muted);
    border-bottom: 1.5px solid var(--rf-text-muted);
    transform: rotate(45deg);
}

.kb-page .kb-faq[open] summary {
    border-bottom: 1px solid var(--rf-border);
}

.kb-page .kb-faq[open] summary::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.kb-page .kb-faq .kb-prose {
    padding: 1.5rem;
}

.kb-page .kb-empty {
    grid-column: 1 / -1;
    padding: 2rem;
}

.kb-page .kb-empty .kb-button {
    margin-top: 1.25rem;
}

.kb-page .kb-answer {
    padding: 2.5rem;
}

.kb-page .kb-answer-header {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--rf-border);
}

.kb-page .kb-answer-header p {
    font-size: 0.875rem;
}

.kb-page .kb-answer-footer {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--rf-border);
}

.kb-page .kb-related {
    padding: 1.5rem;
}

.kb-page .kb-related ul {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.kb-page .kb-related li + li {
    border-top: 1px solid var(--rf-border);
}

.kb-page .kb-related a {
    display: block;
    padding: 0.875rem 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.kb-page .kb-related li:last-child a {
    padding-bottom: 0;
}

.kb-page .kb-related a:hover {
    color: var(--rf-blue-light);
}

.kb-page .kb-prose {
    color: var(--rf-body);
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.kb-page .kb-prose :is(h1, h2, h3, h4, h5, h6) {
    margin: 2rem 0 1rem;
    color: var(--rf-text);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.kb-page .kb-prose :is(h1, h2) {
    font-size: 1.5rem;
}

.kb-page .kb-prose :is(h3, h4, h5, h6) {
    font-size: 1.125rem;
}

.kb-page .kb-prose :is(p, ul, ol, pre, blockquote, figure, table) {
    margin: 0 0 1.25rem;
}

.kb-page .kb-prose > :first-child {
    margin-top: 0;
}

.kb-page .kb-prose > :last-child {
    margin-bottom: 0;
}

.kb-page .kb-prose :is(ul, ol) {
    padding-left: 1.5rem;
}

.kb-page .kb-prose li + li {
    margin-top: 0.5rem;
}

.kb-page .kb-prose li > :last-child {
    margin-bottom: 0;
}

.kb-page .kb-prose a {
    color: var(--rf-blue-light);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.kb-page .kb-prose a:hover {
    color: var(--rf-text);
}

.kb-page .kb-prose :is(strong, b, th) {
    color: var(--rf-text);
    font-weight: 600;
}

.kb-page .kb-prose blockquote {
    padding-left: 1.25rem;
    border-left: 2px solid var(--rf-blue-light);
    color: var(--rf-text-muted);
}

.kb-page .kb-prose :is(img, video, iframe) {
    max-width: 100%;
}

.kb-page .kb-prose :is(img, video) {
    height: auto;
}

.kb-page .kb-prose code {
    padding: 0.15em 0.35em;
    border-radius: 4px;
    background: var(--rf-page);
    color: var(--rf-code);
    font-size: 0.875em;
}

.kb-page .kb-prose pre {
    padding: 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
    overflow-x: auto;
}

.kb-page .kb-prose pre code {
    padding: 0;
    background: transparent;
}

.kb-page .kb-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.kb-page .kb-prose :is(th, td) {
    padding: 0.75rem;
    border-bottom: 1px solid var(--rf-border);
    vertical-align: top;
}

.kb-page .kb-code-block {
    margin-bottom: 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
    overflow: hidden;
}

.kb-page .kb-code-block pre {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--rf-border);
    border-radius: 0;
}

.kb-page .kb-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.125rem 0.75rem;
}

.kb-page .kb-copy-status {
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.kb-page .kb-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--rf-blue-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

.kb-page .kb-copy-button:disabled {
    cursor: wait;
}

.kb-page .kb-copy-button[aria-busy="true"]::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: kb-copy-spin 0.7s linear infinite;
}

@keyframes kb-copy-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
    .kb-page .kb-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-page .kb-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-page .kb-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-page .kb-sidebar > :only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .kb-page {
        padding: 1.25rem 0 2.5rem;
    }

    .kb-page .kb-breadcrumbs {
        margin-bottom: 1.25rem;
    }

    .kb-page :is(.kb-category-grid, .kb-sidebar) {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-page :is(.kb-category, .kb-support, .kb-answer, .kb-article-link, .kb-empty) {
        padding: 1.5rem;
    }

    .kb-page .kb-category {
        min-height: 160px;
    }

    .kb-page .kb-article-link {
        gap: 1rem;
    }

    .kb-page .kb-answer-header {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .kb-page .kb-prose {
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kb-page .kb-copy-button[aria-busy="true"]::before {
        animation: none;
    }
}

/* ==================================================================
 * CMS content pages
 * ================================================================== */

.cms-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.cms-page .cms-intro {
    margin-bottom: 1.75rem;
}

.cms-page .cms-intro h1 {
    margin: 0;
    color: var(--rf-text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.cms-page .cms-document {
    min-width: 0;
    padding: 2.5rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.cms-page .cms-body :is(h1, h2, h3, h4, h5, h6) :is(strong, b) {
    font-weight: inherit;
}

.cms-page .cms-body code {
    padding: 0.15em 0.35em;
    border-radius: 4px;
    background: var(--rf-page);
    color: var(--rf-code);
    font-size: 0.875em;
}

.cms-page .cms-body pre {
    padding: 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
}

.cms-page .cms-body pre code {
    padding: 0;
    background: transparent;
}

.cms-page .cms-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 0.625rem 1.25rem;
    margin: 0 0.625rem 0.625rem 0;
    border: 1px solid var(--rf-primary-bg);
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    box-shadow: none;
}

.cms-page .cms-body .btn :is(strong, b) {
    color: inherit;
    font-weight: inherit;
}

.cms-page .cms-body .btn:hover {
    border-color: var(--rf-primary-bg);
    background: var(--rf-primary-hover-soft);
    color: var(--rf-primary-text);
}

.cms-page .cms-body :is(.btn--ghost, .btn-outline-primary, .btn-outline-light) {
    border-color: rgba(var(--rf-contrast-rgb), 0.2);
    background: transparent;
    color: var(--rf-text);
    font-weight: 500;
}

.cms-page .cms-body :is(.btn--ghost, .btn-outline-primary, .btn-outline-light):hover {
    border-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.08);
    color: var(--rf-text);
}

.cms-page .cms-body a:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .cms-page {
        padding: 1.25rem 0 2.5rem;
    }

    .cms-page .cms-document {
        padding: 1.5rem;
    }

    .cms-page .cms-body .btn {
        width: 100%;
        margin-right: 0;
    }
}

/* ==================================================================
 * Policy pages
 * ================================================================== */

.policy-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.policy-page .policy-layout {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.policy-page .policy-sidebar {
    position: sticky;
    top: 7rem;
    min-width: 0;
}

.policy-page .policy-nav,
.policy-page .policy-document {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.policy-page .policy-nav {
    padding: 1.5rem 0.75rem 0.75rem;
}

.policy-page .policy-nav h2 {
    margin: 0 0.75rem 1rem;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.policy-page .policy-nav ul {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.policy-page .policy-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.75rem 0.875rem;
    border-left: 2px solid transparent;
    border-radius: 6px;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.policy-page .policy-nav a:hover {
    background: rgba(var(--rf-contrast-rgb), 0.04);
    color: var(--rf-text);
}

.policy-page .policy-nav a[aria-current="page"] {
    border-left-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.1);
    color: var(--rf-text);
}

.policy-page .policy-help {
    padding: 1.75rem 1.5rem;
}

.policy-page .policy-help h2 {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.policy-page .policy-help p {
    margin: 0 0 1.25rem;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.policy-page .policy-support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.2);
    border-radius: 999px;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.policy-page .policy-support-button:hover {
    border-color: var(--rf-blue-light);
    background: rgba(92, 158, 235, 0.08);
}

.policy-page :is(.policy-nav a, .policy-support-button, .policy-body a):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 4px;
}

.policy-page .policy-document {
    min-width: 0;
    padding: 2.5rem 3rem 3rem;
}

.policy-page .policy-document-header {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--rf-border);
}

.policy-page .policy-document-header h1 {
    margin: 0;
    color: var(--rf-text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.policy-page .policy-body,
.cms-page .cms-body {
    color: var(--rf-body);
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    overflow-wrap: anywhere;
}

.policy-page .policy-body :is(h1, h2, h3, h4, h5, h6),
.cms-page .cms-body :is(h1, h2, h3, h4, h5, h6) {
    margin: 2rem 0 1rem;
    color: var(--rf-text);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.policy-page .policy-body :is(h1, h2),
.cms-page .cms-body :is(h1, h2) {
    font-size: 1.5rem;
}

.policy-page .policy-body :is(h3, h4, h5, h6),
.cms-page .cms-body :is(h3, h4, h5, h6) {
    font-size: 1.125rem;
}

.policy-page .policy-body :is(p, ul, ol, blockquote, pre, figure, table),
.cms-page .cms-body :is(p, ul, ol, blockquote, pre, figure, table) {
    margin: 0 0 1.25rem;
}

.policy-page .policy-body > :first-child,
.cms-page .cms-body > :first-child {
    margin-top: 0;
}

.policy-page .policy-body > :last-child,
.cms-page .cms-body > :last-child {
    margin-bottom: 0;
}

.policy-page .policy-body :is(ul, ol),
.cms-page .cms-body :is(ul, ol) {
    padding-left: 1.5rem;
}

.policy-page .policy-body li + li,
.cms-page .cms-body li + li {
    margin-top: 0.625rem;
}

.policy-page .policy-body > ol:has(> li:only-child > strong:only-child) {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0;
    list-style: none;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

.policy-page .policy-body li > :last-child,
.cms-page .cms-body li > :last-child {
    margin-bottom: 0;
}

.policy-page .policy-body :is(strong, b, th),
.cms-page .cms-body :is(strong, b, th) {
    color: var(--rf-text);
    font-weight: 600;
}

.policy-page .policy-body a,
.cms-page .cms-body a {
    color: var(--rf-blue-light);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.policy-page .policy-body a:hover,
.cms-page .cms-body a:hover {
    color: var(--rf-text);
}

.policy-page .policy-body blockquote,
.cms-page .cms-body blockquote {
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 2px solid var(--rf-blue-light);
    color: var(--rf-text-muted);
}

.policy-page .policy-body :is(img, video, iframe),
.cms-page .cms-body :is(img, video, iframe) {
    max-width: 100%;
}

.policy-page .policy-body :is(img, video),
.cms-page .cms-body :is(img, video) {
    height: auto;
}

.policy-page .policy-body :is(table, pre),
.cms-page .cms-body :is(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.policy-page .policy-body :is(th, td),
.cms-page .cms-body :is(th, td) {
    padding: 0.75rem;
    border-bottom: 1px solid var(--rf-border);
    vertical-align: top;
}

@media (max-width: 991.98px) {
    .policy-page .policy-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .policy-page .policy-sidebar {
        display: contents;
    }

    .policy-page .policy-nav {
        order: 0;
        padding: 1rem;
    }

    .policy-page .policy-nav h2 {
        margin: 0 0 0.75rem;
    }

    .policy-page .policy-nav ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .policy-page .policy-nav li,
    .policy-page .policy-nav a {
        height: 100%;
    }

    .policy-page .policy-document {
        order: 1;
    }

    .policy-page .policy-help {
        order: 2;
        max-width: 26rem;
        padding: 0.5rem 0 0;
    }

    .policy-page .policy-support-button {
        width: auto;
    }
}

@media (max-width: 575.98px) {
    .policy-page {
        padding: 1.25rem 0 2.5rem;
    }

    .policy-page .policy-layout {
        gap: 1rem;
    }

    .policy-page .policy-nav a {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }

    .policy-page .policy-document {
        padding: 1.5rem 1.25rem;
    }

    .policy-page .policy-document-header {
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .policy-page .policy-body,
    .cms-page .cms-body {
        font-size: 0.9375rem;
    }

    .policy-page .policy-help {
        padding: 0.75rem 0.25rem 0;
    }
}

/* ==================================================================
 * Package catalogue
 * ================================================================== */

.order-catalog [hidden] {
    display: none !important;
}

.order-catalog .catalog-content {
    padding: 1.5rem 0 3rem;
}

.order-catalog .catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
}

.order-catalog .catalog-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.order-catalog .catalog-groups a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.625rem 1rem;
    border-radius: var(--rf-radius, 12px);
    color: var(--rf-text-muted, #b9bec8);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.order-catalog .catalog-groups a:hover {
    background: var(--rf-card, #222936);
    color: var(--rf-text);
}

.order-catalog .catalog-groups a[aria-current] {
    background: var(--rf-navy, #122a49);
    color: var(--rf-text);
}

.order-catalog .catalog-search {
    position: relative;
    width: 20rem;
    max-width: 100%;
    flex-shrink: 0;
}

.order-catalog .catalog-search input {
    min-height: 46px;
    padding: 0.75rem 3.25rem 0.75rem 1rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius, 12px);
    background: var(--rf-card, #222936);
    color: var(--rf-text);
    font-size: 0.875rem;
    box-shadow: none;
}

.order-catalog .catalog-search input::placeholder {
    color: var(--rf-text-muted, #b9bec8);
}

.order-catalog .catalog-search button {
    position: absolute;
    inset: 1px 1px 1px auto;
    width: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--rf-radius, 12px);
    background: transparent;
    color: var(--rf-text-muted, #b9bec8);
}

.order-catalog .catalog-search button:hover {
    color: var(--rf-text);
}

.order-catalog .catalog-heading {
    margin: 1.75rem 0 1.25rem;
}

.order-catalog .catalog-heading h2 {
    margin: 0;
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.order-catalog .catalog-heading p {
    margin: 0.5rem 0 0;
    color: var(--rf-text-muted, #b9bec8);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.order-catalog .catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.order-catalog .catalog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 20rem;
    padding: 1.75rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius-lg, 16px);
    background: var(--rf-card, #222936);
    overflow-wrap: anywhere;
}

.order-catalog .catalog-card:hover,
.order-catalog .catalog-card:focus-within {
    border-color: var(--rf-border-hover, rgba(92, 158, 235, 0.45));
}

.order-catalog .catalog-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.order-catalog .catalog-card h3 a {
    color: var(--rf-text);
    text-decoration: none;
}

.order-catalog .catalog-card h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.order-catalog .catalog-description {
    display: -webkit-box;
    margin: 1rem 0 0;
    color: var(--rf-text-muted, #b9bec8);
    font-size: 0.9375rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.order-catalog .catalog-pricing {
    padding-top: 1.75rem;
    margin-top: auto;
}

.order-catalog .catalog-price {
    margin: 0;
    color: var(--rf-text);
    font-size: 0.9375rem;
    line-height: 1.2;
}

.order-catalog .catalog-price span {
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.order-catalog .catalog-price-detail,
.order-catalog .catalog-setup-fee {
    margin: 0.5rem 0 0;
    color: var(--rf-text-muted, #b9bec8);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.order-catalog .catalog-card-action {
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
}

.order-catalog .catalog-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.order-catalog .catalog-order-button:hover {
    background: var(--rf-primary-hover);
    color: var(--rf-primary-text);
}

.order-catalog .catalog-order-button:disabled {
    border-color: var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    background: transparent;
    color: var(--rf-text-muted, #b9bec8);
    cursor: default;
}

.order-catalog .catalog-empty {
    grid-column: 1 / -1;
    padding: 3rem 1.5rem;
    border: 1px solid var(--rf-border, rgba(var(--rf-contrast-rgb), 0.08));
    border-radius: var(--rf-radius-lg, 16px);
    background: var(--rf-card, #222936);
    text-align: center;
}

.order-catalog .catalog-empty h3 {
    color: var(--rf-text);
    font-size: 1.25rem;
}

.order-catalog .catalog-empty p {
    color: var(--rf-text-muted, #b9bec8);
}

.order-catalog .catalog-empty a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--rf-blue-light, #5c9eeb);
    text-underline-offset: 0.2em;
}

.order-catalog .catalog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.order-catalog :is(a, button, input):focus-visible {
    outline: 2px solid var(--rf-blue-light, #5c9eeb);
    outline-offset: 4px;
}

@media (max-width: 1199.98px) {
    .order-catalog .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .order-catalog .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .order-catalog .catalog-content {
        padding: 1rem 0 1.5rem;
    }

    .order-catalog .catalog-groups {
        width: 100%;
    }

    .order-catalog .catalog-search {
        width: 100%;
    }

    .order-catalog .catalog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .order-catalog .catalog-card {
        min-height: 0;
        padding: 1.5rem;
    }
}

/* ==================================================================
 * Package detail pages: ecommerce gallery and simple service layout
 * ================================================================== */

.package-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.package-page .package-breadcrumb {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.package-page .package-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 32px;
    color: var(--rf-text-muted);
    text-decoration: none;
}

.package-page .package-breadcrumb a:hover {
    color: var(--rf-text);
}

.package-page .package-breadcrumb > [aria-hidden] {
    color: var(--rf-text-subtle);
}

.package-page .package-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 3rem;
}

.package-page--simple .package-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 1fr);
}

.package-page :is(.package-main, .package-gallery, .package-summary) {
    min-width: 0;
}

.package-page :is(.package-gallery, .package-summary) {
    align-self: stretch;
}

.package-page :is(.gallery-section, .order-summary-card) {
    position: sticky;
    top: 1.5rem;
}

.package-page .product-title {
    margin: 0 0 1rem;
    color: var(--rf-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.package-page .product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.package-page .product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 999px;
    background: rgba(var(--rf-stock-rgb), 0.08);
    color: var(--rf-success);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

.package-page .product-stock::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.package-page .product-stock--unavailable {
    background: rgba(var(--rf-danger-rgb), 0.08);
    color: var(--rf-error);
}

.package-page .product-description {
    margin-bottom: 1.75rem;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.package-page .product-description > :last-child {
    margin-bottom: 0;
}

.package-page .product-description :is(img, video, iframe) {
    max-width: 100%;
}

.package-page .main-image-container {
    aspect-ratio: 1;
    padding: 1rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
    overflow: hidden;
}

.package-page .zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.package-page .main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.package-page .zoom-lens {
    position: absolute;
    z-index: 1;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.5);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .package-page .zoom-container:hover .zoom-lens {
        opacity: 1;
    }
}

.package-page .thumbnail-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 2px 2px 0.5rem;
    overflow-x: auto;
}

.package-page .thumbnail-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    height: 72px;
    padding: 0.375rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-card);
    cursor: pointer;
}

.package-page .thumbnail-wrapper:hover {
    border-color: var(--rf-border-hover);
}

.package-page .thumbnail-wrapper.active {
    border-color: var(--rf-blue-light);
    outline: 1px solid var(--rf-blue-light);
}

.package-page .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.package-page :is(.package-options-card, .order-summary-box, .order-summary-card) {
    padding: 1.5rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.package-page .package-options-card {
    margin-bottom: 1.5rem;
}

.package-page--simple .package-options-card {
    margin-bottom: 0;
}

.package-page :is(.package-options-title, .order-summary-box-title) {
    margin: 0 0 1.25rem;
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.package-page .package-option-row-billing-qty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8.75rem;
    align-items: start;
    gap: 1rem;
}

.package-page .billing-qty-cell {
    min-width: 0;
}

.package-page .package-option-label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
}

.package-page :is(.package-option-required-badge, .package-option-price) {
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
    font-weight: 400;
}

.package-page :is(.form-control, .form-select, .cycle-selector) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: var(--rf-radius);
    background-color: var(--rf-page);
    color: var(--rf-text);
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: none;
    color-scheme: inherit;
}

.package-page :is(.form-select, .cycle-selector) {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b9bec8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.125rem;
    appearance: none;
    text-overflow: ellipsis;
}

.package-page .form-control::placeholder {
    color: var(--rf-text-subtle);
}

.package-page :is(.form-control, .form-select, .cycle-selector):focus {
    border-color: var(--rf-blue-light);
    box-shadow: 0 0 0 3px rgba(92, 158, 235, 0.12);
}

.package-page .quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 1px 3px;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
}

.package-page .qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--rf-text-muted);
    cursor: pointer;
}

.package-page .qty-btn:hover:not(:disabled) {
    background: var(--rf-card);
    color: var(--rf-text);
}

.package-page .qty-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.package-page .qty-btn svg {
    width: 18px;
    height: 18px;
}

.package-page .qty-input {
    width: 2.5rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rf-text);
    font-size: 0.875rem;
    text-align: center;
    appearance: textfield;
}

.package-page .qty-input::-webkit-inner-spin-button,
.package-page .qty-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.package-page .package-option-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rf-border);
}

.package-page .package-option-choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    margin-bottom: 0.375rem;
    padding: 0.75rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
}

.package-page .package-option-choice:has(input:checked) {
    border-color: var(--rf-border-hover);
    background: var(--rf-navy);
}

.package-page .form-check-input {
    flex-shrink: 0;
    border-color: var(--rf-text-subtle);
    background-color: var(--rf-page);
}

.package-page .package-option-choice .form-check-input {
    float: none;
    margin: 0;
}

.package-page .form-check-input:checked {
    border-color: var(--rf-blue);
    background-color: var(--rf-blue);
}

.package-page .form-check-label {
    min-width: 0;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.package-page .package-option-invalid :is(select, .form-control, .form-check-input) {
    border-color: var(--rf-error);
    outline: 2px solid var(--rf-error);
    outline-offset: 2px;
}

.package-page .order-summary-rows {
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.package-page .order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.25rem;
    padding: 0.375rem 0;
}

.package-page .order-summary-desc {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.package-page .order-summary-amount {
    flex-shrink: 0;
    color: var(--rf-text);
    font-variant-numeric: tabular-nums;
}

.package-page .order-summary-divider {
    height: 1px;
    margin: 1.25rem 0;
    background: var(--rf-border);
}

.package-page .order-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--rf-text);
}

.package-page .order-summary-total-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.package-page .order-summary-total-amount {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.package-page .add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.package-page .add-to-cart-btn:hover:not(:disabled) {
    background: var(--rf-primary-hover);
}

.package-page .add-to-cart-btn:disabled {
    border-color: var(--rf-border);
    background: transparent;
    color: var(--rf-text-muted);
    cursor: default;
}

.package-page :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .package-page .package-layout {
        gap: 2rem;
    }
}

@media (max-width: 991.98px) {
    .package-page .package-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .package-page :is(.gallery-section, .order-summary-card) {
        position: static;
    }

    .package-page .gallery-section {
        max-width: 36rem;
        margin-inline: auto;
    }

    .package-page .main-image-container {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 575.98px) {
    .package-page {
        padding: 1rem 0 2.5rem;
    }

    .package-page .package-breadcrumb {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .package-page :is(.package-options-card, .order-summary-box, .order-summary-card) {
        padding: 1.25rem;
    }

    .package-page .package-option-row-billing-qty {
        grid-template-columns: minmax(0, 1fr);
    }

    .package-page .qty-cell {
        width: 8.75rem;
    }

    .package-page .thumbnail-wrapper {
        flex-basis: 60px;
        height: 60px;
    }
}

/* ==================================================================
 * Domain ordering
 * ================================================================== */

.domain-order-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.domain-order-page .domain-initially-hidden {
    display: none;
}

.domain-order-page .domain-breadcrumb {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
}

.domain-order-page .domain-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 32px;
    color: var(--rf-text-muted);
    text-decoration: none;
}

.domain-order-page .domain-breadcrumb a:hover {
    color: var(--rf-text);
}

.domain-order-page .domain-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(20rem, 1fr);
    align-items: start;
    gap: 3rem;
}

.domain-order-page :is(.domain-order-main, .domain-order-sidebar) {
    min-width: 0;
}

.domain-order-page .domain-order-sidebar {
    display: grid;
    gap: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

.domain-order-page .domain-page-heading {
    margin-bottom: 1.75rem;
}

.domain-order-page .domain-page-heading h1 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.domain-order-page .domain-page-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.domain-order-page .domain-panel {
    padding: 1.5rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.domain-order-page .domain-panel h2 {
    margin: 0 0 1.25rem;
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.domain-order-page .domain-panel-note {
    margin: -0.625rem 0 1rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.domain-order-page .domain-field-label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.domain-order-page .domain-search-fields {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.domain-order-page :is(.domain-search-input, .years-select) {
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: var(--rf-radius);
    background-color: var(--rf-page);
    color: var(--rf-text);
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: none;
    color-scheme: inherit;
}

.domain-order-page .domain-search-input {
    flex: 1;
    width: 100%;
}

.domain-order-page .domain-search-input::placeholder {
    color: var(--rf-text-subtle);
}

.domain-order-page :is(.domain-search-input, .years-select):focus {
    border-color: var(--rf-blue-light);
    box-shadow: 0 0 0 3px rgba(92, 158, 235, 0.12);
}

.domain-order-page .domain-field-hint {
    display: block;
    margin: 0.75rem 0 0;
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
    line-height: 1.65;
}

.domain-order-page :is(.domain-primary-button, .btn-checkout) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.625rem;
    min-height: 44px;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.domain-order-page :is(.domain-primary-button, .btn-checkout):hover:not(:disabled) {
    background: var(--rf-primary-hover);
    color: var(--rf-primary-text);
}

.domain-order-page :is(.domain-primary-button, .btn-checkout):disabled {
    cursor: default;
    opacity: 0.65;
}

.domain-order-page #search-btn {
    min-width: 7rem;
}

.domain-order-page .domain-button-spinner {
    display: none;
}

.domain-order-page [aria-busy="true"] .domain-button-spinner {
    display: inline-block;
}

.domain-order-page [aria-busy="true"] .domain-button-arrow {
    display: none;
}

.domain-order-page :is(#search-results, #suggested-domains) {
    margin-top: 1.5rem;
}

.domain-order-page .domain-result-card {
    padding: 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
}

.domain-order-page :is(.domain-result-layout, .suggestion-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
}

.domain-order-page .domain-name {
    margin: 0 0 0.625rem;
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.domain-order-page .domain-result-actions {
    display: grid;
    justify-items: end;
    gap: 0.75rem;
}

.domain-order-page .domain-price {
    color: var(--rf-text);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.domain-order-page :is(.domain-price, .suggestion-price) small {
    color: var(--rf-text-subtle);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
}

.domain-order-page .domain-availability {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.5;
}

.domain-order-page .domain-availability--available {
    background: rgba(var(--rf-stock-rgb), 0.08);
    color: var(--rf-success);
}

.domain-order-page .domain-availability--unavailable {
    background: rgba(var(--rf-danger-rgb), 0.08);
    color: var(--rf-error);
}

.domain-order-page .domain-availability--checking {
    background: rgba(var(--rf-contrast-rgb), 0.04);
    color: var(--rf-text-muted);
}

.domain-order-page .domain-suggestions-title {
    margin: 0 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rf-border);
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
}

.domain-order-page .domain-suggestions-list {
    display: grid;
    gap: 0.75rem;
}

.domain-order-page .suggestion-card {
    padding: 1rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
}

.domain-order-page .suggestion-card:hover {
    border-color: var(--rf-border-hover);
}

.domain-order-page .suggestion-details {
    display: grid;
    justify-items: start;
    gap: 0.375rem;
    min-width: 0;
}

.domain-order-page .suggestion-domain {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}

.domain-order-page .suggestion-domain:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.domain-order-page .suggestion-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.domain-order-page .suggestion-price {
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.domain-order-page .suggestion-buy .btn:disabled {
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--rf-border);
    border-radius: 999px;
    background: transparent;
    color: var(--rf-text-muted);
    font-size: 0.75rem;
    box-shadow: none;
    opacity: 1;
}

.domain-order-page .years-select {
    display: none;
    width: 8rem;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b9bec8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.125rem;
    appearance: none;
}

.domain-order-page .years-select.is-visible {
    display: inline-block;
}

.domain-order-page .tld-list {
    max-height: 20rem;
    overflow-y: auto;
    scrollbar-color: var(--rf-text-subtle) transparent;
    scrollbar-width: thin;
}

.domain-order-page .tld-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 0;
    border: 0;
    border-bottom: 1px solid var(--rf-border);
    background: transparent;
    color: var(--rf-text);
    text-align: left;
}

.domain-order-page .tld-item:last-child {
    border-bottom: 0;
}

.domain-order-page button.tld-item:hover {
    color: var(--rf-blue-light);
}

.domain-order-page .tld-name {
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.domain-order-page .tld-price {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.domain-order-page .selected-domain-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem 0.75rem;
    width: 100%;
}

.domain-order-page #addedExtensions :is(.tld-name, .tld-price) {
    grid-column: 1;
}

.domain-order-page #addedExtensions .tld-price {
    color: var(--rf-text-muted);
    font-size: 0.75rem;
}

.domain-order-page .remove-card-item {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 44px;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: transparent;
    color: var(--rf-text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.domain-order-page .remove-card-item:hover {
    border-color: rgba(var(--rf-danger-rgb), 0.35);
    color: var(--rf-error);
}

.domain-order-page .domain-cart-button {
    width: 100%;
    min-height: 48px;
    margin-top: 1.25rem;
}

.domain-order-page .domain-extensions-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    margin-top: 1.25rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--rf-border);
    border-radius: 999px;
    background: transparent;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.domain-order-page .domain-extensions-toggle:hover {
    border-color: var(--rf-border-hover);
    color: var(--rf-text);
}

.domain-order-page .domain-extensions-section {
    margin-top: 1.5rem;
}

.domain-order-page .tld-category {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rf-border);
}

.domain-order-page .category-title {
    margin: 0 0 1rem;
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 500;
}

.domain-order-page .category-title span {
    margin-left: 0.25rem;
    color: var(--rf-text-subtle);
    font-size: 0.8125rem;
}

.domain-order-page .tld-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.domain-order-page .tld-card {
    display: grid;
    gap: 0.375rem;
    padding: 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-page);
    color: var(--rf-text);
    text-align: left;
    overflow-wrap: anywhere;
}

.domain-order-page .tld-card:hover {
    border-color: var(--rf-border-hover);
}

.domain-order-page .tld-card strong {
    font-size: 1rem;
    font-weight: 500;
}

.domain-order-page .tld-price-main {
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.domain-order-page .tld-card .domain-field-hint {
    margin: 0;
}

.domain-order-page .loading-spinner {
    padding: 1.5rem 0 0.5rem;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    text-align: center;
}

.domain-order-page .loading-spinner .spinner-border {
    color: var(--rf-blue-light);
}

.domain-order-page .alert-danger {
    margin: 1.25rem 0 0;
    padding: 1rem;
    border: 1px solid rgba(var(--rf-danger-rgb), 0.25);
    border-radius: var(--rf-radius);
    background: rgba(var(--rf-danger-rgb), 0.06);
    color: var(--rf-error);
    font-size: 0.8125rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.domain-order-page :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .domain-order-page .domain-order-layout {
        gap: 2rem;
    }

    .domain-order-page .tld-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .domain-order-page .domain-order-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .domain-order-page .domain-order-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .domain-order-page {
        padding: 1rem 0 2.5rem;
    }

    .domain-order-page .domain-breadcrumb {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .domain-order-page .domain-panel {
        padding: 1.25rem;
    }

    .domain-order-page .domain-search-fields {
        flex-direction: column;
    }

    .domain-order-page #search-btn {
        min-height: 48px;
    }

    .domain-order-page :is(.domain-result-layout, .suggestion-row) {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .domain-order-page .domain-result-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .domain-order-page .suggestion-actions {
        justify-content: space-between;
    }

    .domain-order-page .tld-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .domain-order-page .tld-card {
        padding: 1rem;
    }
}

/* ==================================================================
 * Storefront notifications
 * ================================================================== */

body.theme-refresh .storefront-toasts {
    position: fixed;
    z-index: 1100;
    top: calc(6.5rem + env(safe-area-inset-top));
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 23rem;
    max-width: calc(100vw - 2rem);
    padding: 0;
    pointer-events: none;
}

body.theme-refresh .storefront-toasts > .storefront-toast {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
    color: var(--rf-text);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
}

body.theme-refresh .storefront-toast .toast-body {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
}

body.theme-refresh .storefront-toast-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--rf-stock-rgb), 0.1);
    color: var(--rf-success);
}

body.theme-refresh .storefront-toast[data-type="danger"] .storefront-toast-icon {
    background: rgba(var(--rf-danger-rgb), 0.1);
    color: var(--rf-error);
}

body.theme-refresh .storefront-toast-error,
body.theme-refresh .storefront-toast[data-type="danger"] .storefront-toast-check {
    display: none;
}

body.theme-refresh .storefront-toast[data-type="danger"] .storefront-toast-error {
    display: block;
}

body.theme-refresh .storefront-toast-content {
    min-width: 0;
    padding-top: 0.125rem;
    overflow-wrap: anywhere;
}

body.theme-refresh .storefront-toast-title {
    margin: 0;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

body.theme-refresh .storefront-toast-message {
    margin: 0.25rem 0 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.6;
}

body.theme-refresh .storefront-toast-message:empty {
    display: none;
}

body.theme-refresh .storefront-toast-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--rf-text-subtle);
}

body.theme-refresh .storefront-toast-close:hover {
    background: rgba(var(--rf-contrast-rgb), 0.05);
    color: var(--rf-text);
}

body.theme-refresh .storefront-toast-close:focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    body.theme-refresh .storefront-toasts {
        top: calc(5.25rem + env(safe-area-inset-top));
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }
}

/* ==================================================================
 * Cart review
 * ================================================================== */

.cart-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.cart-page [hidden] {
    display: none !important;
}

.cart-page .cart-breadcrumb {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
}

.cart-page .cart-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 32px;
    color: var(--rf-text-muted);
    text-decoration: none;
}

.cart-page .cart-breadcrumb a:hover {
    color: var(--rf-text);
}

.cart-page .cart-page-heading {
    margin-bottom: 1.75rem;
}

.cart-page .cart-page-heading h1 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.cart-page .cart-page-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.cart-page .cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(20rem, 1fr);
    align-items: start;
    gap: 3rem;
}

.cart-page :is(.cart-main, .cart-item-details) {
    min-width: 0;
}

.cart-page :is(.cart-items-panel, .cart-summary-card, .cart-empty) {
    padding: 1.5rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.cart-page .cart-items-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rf-border);
}

.cart-page :is(.cart-items-header, .cart-summary-card) h2 {
    margin: 0;
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.cart-page #cart-items-count {
    flex-shrink: 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
}

.cart-page .cart-items-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-page .cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem 8rem;
    align-items: start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rf-border);
}

.cart-page .cart-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cart-page .cart-item-name {
    margin: 0;
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cart-page .cart-item-term {
    margin: 0.375rem 0 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
}

.cart-page .cart-item-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 0.875rem 0 0;
}

.cart-page :is(.cart-item-pricing dt, .cart-field-label) {
    display: block;
    margin: 0 0 0.25rem;
    color: var(--rf-text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

.cart-page .cart-item-pricing dd {
    margin: 0;
    color: var(--rf-text);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.cart-page .cart-item-options {
    margin: 0.875rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.cart-page .cart-item-options li + li {
    margin-top: 0.25rem;
}

.cart-page .cart-option-price {
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
}

.cart-page .cart-item-quantity {
    text-align: center;
}

.cart-page .cart-quantity-value {
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.cart-page .cart-item-amount {
    display: grid;
    justify-items: end;
    min-width: 0;
    text-align: right;
}

.cart-page .cart-line-total {
    color: var(--rf-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cart-page .cart-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 44px;
    margin-top: 0.625rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--rf-border);
    border-radius: 999px;
    background: var(--rf-page);
    color: var(--rf-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.cart-page .cart-remove-button:hover:not(:disabled) {
    border-color: rgba(var(--rf-danger-rgb), 0.35);
    background: rgba(var(--rf-danger-rgb), 0.06);
    color: var(--rf-error);
}

.cart-page .cart-remove-button:disabled {
    opacity: 0.65;
    cursor: default;
}

.cart-page .cart-remove-spinner {
    display: none;
}

.cart-page .cart-remove-button[aria-busy="true"] .cart-remove-spinner {
    display: inline-block;
}

.cart-page .cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-top: 0.75rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
}

.cart-page .cart-continue-link:hover {
    color: var(--rf-text);
}

.cart-page .cart-summary-card {
    position: sticky;
    top: 1.5rem;
}

.cart-page .cart-summary-card h2 {
    margin-bottom: 1.5rem;
}

.cart-page .cart-summary-lines {
    margin: 0;
}

.cart-page .cart-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cart-page .cart-summary-row dt {
    min-width: 0;
    color: var(--rf-text-muted);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.cart-page .cart-summary-row dd {
    flex-shrink: 0;
    margin: 0;
    color: var(--rf-text);
    font-variant-numeric: tabular-nums;
}

.cart-page .cart-summary-discount dd {
    color: var(--rf-success);
}

.cart-page .cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rf-border);
    color: var(--rf-text);
    font-size: 0.875rem;
}

.cart-page .cart-summary-total strong {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.cart-page :is(.cart-primary-button, .cart-secondary-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.cart-page .cart-primary-button:hover:not(:disabled) {
    background: var(--rf-primary-hover);
}

.cart-page .cart-primary-button:disabled {
    border-color: var(--rf-border);
    background: transparent;
    color: var(--rf-text-muted);
    cursor: default;
}

.cart-page .cart-checkout-button {
    width: 100%;
    margin-top: 1.5rem;
}

.cart-page .cart-secondary-button {
    border-color: var(--rf-border);
    background: transparent;
    color: var(--rf-text-muted);
}

.cart-page .cart-secondary-button:hover {
    border-color: var(--rf-border-hover);
    color: var(--rf-text);
}

.cart-page .cart-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    text-align: center;
}

.cart-page .cart-status p {
    margin: 0;
    line-height: 1.65;
}

.cart-page .cart-status .spinner-border {
    color: var(--rf-blue-light);
}

.cart-page .cart-empty {
    display: grid;
    justify-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.cart-page .cart-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--rf-page);
    color: var(--rf-blue-light);
}

.cart-page .cart-empty h2 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: 1.375rem;
    font-weight: 600;
}

.cart-page .cart-empty p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.cart-page .cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cart-page .cart-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background: var(--rf-navy);
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

.cart-page .cart-notice--error {
    border-color: rgba(var(--rf-danger-rgb), 0.25);
    background: rgba(var(--rf-danger-rgb), 0.06);
    color: var(--rf-error);
}

.cart-page :is(a, button):focus-visible {
    outline: 2px solid var(--rf-blue-light);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .cart-page .cart-layout {
        gap: 2rem;
    }

    .cart-page .cart-item {
        grid-template-columns: minmax(0, 1fr) 3.5rem 6.5rem;
        gap: 1rem;
    }
}

@media (max-width: 991.98px) {
    .cart-page .cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-page .cart-summary-card {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .cart-page {
        padding: 1rem 0 2.5rem;
    }

    .cart-page .cart-breadcrumb {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .cart-page :is(.cart-items-panel, .cart-summary-card) {
        padding: 1.25rem;
    }

    .cart-page .cart-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .cart-page .cart-item-details {
        grid-column: 1 / -1;
    }

    .cart-page .cart-item-quantity {
        text-align: left;
    }

    .cart-page .cart-empty-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* Checkout */
.checkout-page {
    padding: 1.5rem 0 4rem;
    color: var(--rf-text);
}

.checkout-page .checkout-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    color: var(--rf-text-subtle);
    font-size: 0.8125rem;
}

.checkout-page .checkout-breadcrumb a {
    color: var(--rf-text-muted);
    text-decoration: none;
}

.checkout-page .checkout-breadcrumb a:hover {
    color: var(--rf-text);
}

.checkout-page .checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.checkout-page .checkout-title {
    color: var(--rf-text);
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.checkout-page .checkout-header p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.checkout-page .sign-in-prompt {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
}

.checkout-page .checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 23rem;
    align-items: start;
    gap: 1.5rem;
}

.checkout-page :is(.checkout-main, .checkout-sidebar) {
    min-width: 0;
}

.checkout-page .checkout-sidebar {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.5rem;
}

.checkout-page .checkout-card {
    overflow: hidden;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.checkout-page .checkout-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--rf-border);
}

.checkout-page :is(.checkout-heading, .billing-subheading) {
    margin: 0;
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.checkout-page .checkout-card-body {
    padding: 1.5rem;
}

.checkout-page #form_checkout .row.g-3 {
    --bs-gutter-y: 1.25rem;
    --bs-gutter-x: 1.25rem;
}

.checkout-page #form_checkout .row.g-3 > .mb-3 {
    margin-bottom: 0 !important;
}

.checkout-page .billing-divider {
    margin: 1.5rem 0;
    border-top: 1px solid var(--rf-border);
}

.checkout-page .checkout-required-note {
    margin: 0 0 1.25rem;
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
}

.checkout-page :is(.checkout-required-marker, .checkout-required-note span) {
    color: var(--rf-error);
}

.checkout-page :is(.form-label, .mollie-card-field-label) {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
}

.checkout-page :is(.form-control, .form-select, .input-group-text, .stripe-element-host, .mollie-card-component, .checkout-card-field) {
    min-height: 3rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: 8px;
    background-color: var(--rf-page);
    color: var(--rf-text);
    font-size: 0.9375rem;
    box-shadow: none;
}

.checkout-page :is(.form-control, .form-select) {
    padding: 0.75rem 0.875rem;
}

.checkout-page .form-control::placeholder {
    color: var(--rf-text-subtle);
    opacity: 1;
}

.checkout-page :is(.form-control, .form-select):focus,
.checkout-page :is(.StripeElement--focus, #revolut-card-field.rc-card-field--focused) {
    border-color: var(--rf-blue-300);
    outline: 2px solid rgba(92, 158, 235, 0.2);
    outline-offset: 1px;
    background-color: var(--rf-page);
    color: var(--rf-text);
    box-shadow: none;
}

.checkout-page .input-group-text {
    padding: 0.75rem;
    color: var(--rf-text-muted);
}

.checkout-page #company_vat.vat-input-standalone {
    border-radius: 0 8px 8px 0;
}

.checkout-page #remove_vat_btn {
    display: none;
    border-radius: 0 8px 8px 0;
}

.checkout-page :is(.form-control.is-invalid, .form-select.is-invalid, .form-control.error, .StripeElement--invalid, .mollie-card-component.is-invalid, #revolut-card-field.rc-card-field--invalid) {
    border-color: var(--rf-error);
}

.checkout-page :is(.invalid-feedback, .error-message, .mollie-card-field-error, .mollie-card-summary-error) {
    margin-top: 0.375rem;
    color: var(--rf-error);
    font-size: 0.75rem;
    line-height: 1.5;
}

.checkout-page .invalid-feedback {
    display: block;
}

.checkout-page .mollie-card-summary-error:empty {
    display: none;
}

.checkout-page .checkout-password-field {
    position: relative;
}

.checkout-page .checkout-password-field .form-control {
    padding-right: 3.25rem;
}

.checkout-page .checkout-password-toggle {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--rf-border);
    border-radius: 6px;
    background: var(--rf-card);
    color: var(--rf-text-muted);
}

.checkout-page .checkout-password-requirements {
    display: grid;
    gap: 0.375rem;
    color: var(--rf-text-muted);
    font-size: 0.75rem;
}

.checkout-page .checkout-password-requirements span.is-met {
    color: var(--rf-success);
}

.checkout-page :is(.checkout-secondary-button, .btn-checkout, .use-new-card-btn, .use-new-stripe-card-btn, .inxy-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.18);
    border-radius: 999px;
    background: transparent;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.checkout-page :is(.checkout-secondary-button, .use-new-card-btn, .use-new-stripe-card-btn, .inxy-btn):hover:not(:disabled) {
    border-color: rgba(var(--rf-contrast-rgb), 0.35);
    background: rgba(var(--rf-contrast-rgb), 0.04);
    color: var(--rf-text);
}

.checkout-page .btn-checkout {
    min-height: 3rem;
    border-color: var(--rf-primary-bg);
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
}

.checkout-page .btn-checkout:hover:not(:disabled) {
    border-color: var(--rf-primary-hover-cool);
    background: var(--rf-primary-hover-cool);
    color: var(--rf-primary-text);
}

.checkout-page button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.checkout-page :is(button, a):focus-visible {
    outline: 2px solid var(--rf-blue-300);
    outline-offset: 3px;
    box-shadow: none;
}

.checkout-page .checkout-discount-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.625rem;
}

.checkout-page #remove_discount_btn[hidden] {
    display: none;
}

.checkout-page .checkout-remove-discount {
    margin-top: 0.75rem;
}

.checkout-page .checkout-item-count {
    display: block;
    margin-top: 0.25rem;
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
}

.checkout-page .checkout-edit-cart-btn {
    flex-shrink: 0;
}

.checkout-page .checkout-cart-items [hidden] {
    display: none !important;
}

.checkout-page .checkout-cart-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rf-border);
    overflow-wrap: anywhere;
}

.checkout-page .checkout-cart-item:first-child {
    padding-top: 0;
}

.checkout-page .checkout-cart-item-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-page .checkout-cart-item-name {
    min-width: 0;
    margin: 0;
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.6;
}

.checkout-page .checkout-cart-item-total {
    flex-shrink: 0;
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.checkout-page .checkout-cart-item-term {
    margin: 0.375rem 0 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.checkout-page .checkout-cart-item-details {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 0;
    font-size: 0.8125rem;
}

.checkout-page .checkout-cart-item-details > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-page .checkout-cart-item-details dt {
    color: var(--rf-text-muted);
    font-weight: 400;
}

.checkout-page .checkout-cart-item-details dd {
    margin: 0;
    color: var(--rf-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.checkout-page :is(.checkout-cart-selections, .checkout-cart-instances) {
    margin-top: 1rem;
}

.checkout-page :is(.checkout-cart-selections, .checkout-cart-instances) h4 {
    margin: 0 0 0.5rem;
    color: var(--rf-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}

.checkout-page :is(.checkout-cart-item-options, .checkout-cart-instance-list) {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-page .checkout-cart-item-options li {
    display: grid;
    gap: 0.25rem;
    color: var(--rf-text);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.checkout-page :is(.checkout-cart-option-price, .checkout-cart-options-note, .checkout-cart-instance-detail) {
    color: var(--rf-text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
}

.checkout-page .checkout-cart-options-note {
    margin: 0.5rem 0 0;
}

.checkout-page .checkout-cart-instance {
    padding: 0.875rem;
    border: 1px solid var(--rf-border);
    border-radius: 8px;
    background: var(--rf-page);
}

.checkout-page .checkout-cart-instance-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
}

.checkout-page .checkout-cart-instance-heading strong {
    font-weight: 500;
}

.checkout-page .checkout-cart-instance .checkout-cart-item-options {
    margin-top: 0.75rem;
}

.checkout-page .checkout-cart-items-status {
    display: grid;
    gap: 0.875rem;
    padding-bottom: 1rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
}

.checkout-page .checkout-cart-items-status p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.checkout-page .order-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.875rem;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
}

.checkout-page .order-detail-row .price {
    flex-shrink: 0;
    color: var(--rf-text);
    font-variant-numeric: tabular-nums;
}

.checkout-page .order-detail-row.total {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rf-border);
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
}

.checkout-page .payment-selector {
    margin-bottom: 1.5rem;
}

.checkout-page .payment-option {
    position: relative;
    height: 100%;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: 10px;
    background: var(--rf-page);
    cursor: pointer;
}

.checkout-page .payment-option:hover {
    border-color: var(--rf-border-hover);
}

.checkout-page .payment-option.active-payment {
    border-color: var(--rf-blue-300);
    background: rgba(92, 158, 235, 0.08);
}

.checkout-page :is(.payment-radio, .mollie-method-option input) {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkout-page .payment-label {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 5.25rem;
    margin: 0;
    padding: 1rem 2.75rem 1rem 1rem;
    cursor: pointer;
}

.checkout-page :is(.payment-label, .mollie-method-option label)::after {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.35);
    border-radius: 50%;
    content: '';
    transform: translateY(-50%);
}

.checkout-page :is(.payment-radio:checked + .payment-label, .mollie-method-option input:checked + label)::after {
    border: 5px solid var(--rf-blue-300);
    background: var(--rf-primary-bg);
}

.checkout-page :is(.payment-radio:focus-visible + .payment-label, .mollie-method-option input:focus-visible + label) {
    border-radius: 9px;
    outline: 2px solid var(--rf-blue-300);
    outline-offset: 3px;
}

.checkout-page .payment-name {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--rf-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.checkout-page .payment-description {
    display: block;
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.checkout-page .payment-form:not(.d-none) {
    padding-top: 1.5rem;
    border-top: 1px solid var(--rf-border);
}

.checkout-page .checkout-ongoing {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rf-border);
}

.checkout-page .checkout-ongoing[hidden] {
    display: none;
}

.checkout-page .checkout-ongoing h3 {
    margin: 0 0 0.75rem;
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 600;
}

.checkout-page .checkout-ongoing .price {
    white-space: nowrap;
}

.checkout-page .checkout-total-note {
    margin: 0.5rem 0 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.checkout-page .checkout-field-feedback {
    margin: 0.625rem 0 0;
    color: var(--rf-success);
    font-size: 0.8125rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.checkout-page .checkout-field-feedback:empty,
.checkout-page .checkout-field-feedback[hidden] {
    display: none;
}

.checkout-page .checkout-field-feedback[data-state="pending"],
.checkout-page .checkout-field-feedback.is-pending {
    color: var(--rf-text-muted);
}

.checkout-page .checkout-field-feedback[data-state="error"] {
    color: var(--rf-error);
}

.checkout-page .checkout-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rf-border);
}

.checkout-page .checkout-security-note {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1rem 0 0;
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
    line-height: 1.6;
}

.checkout-page :is(.mollie-method-grid, .bank-details) {
    display: grid;
    gap: 0.75rem;
}

.checkout-page .mollie-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-page .mollie-method-option {
    position: relative;
}

.checkout-page .mollie-method-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    margin: 0;
    padding: 0.875rem 2.75rem 0.875rem 0.875rem;
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    background: var(--rf-page);
    cursor: pointer;
}

.checkout-page .mollie-method-option input:checked + label {
    border-color: var(--rf-blue-300);
    background: rgba(92, 158, 235, 0.08);
}

.checkout-page .mollie-method-logo {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    height: 2rem;
    padding: 0.25rem;
    border-radius: 4px;
    background: var(--rf-primary-bg);
}

.checkout-page .mollie-method-logo img {
    max-width: 100%;
    max-height: 1.5rem;
}

.checkout-page :is(.mollie-method-copy strong, .mollie-method-copy small) {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.checkout-page .mollie-method-copy small {
    color: var(--rf-text-muted);
    font-size: 0.75rem;
}

.checkout-page .mollie-card-panel {
    margin-top: 1.5rem;
}

.checkout-page :is(.stripe-element-host, .mollie-card-component, .checkout-card-field) {
    width: 100%;
    padding: 0.75rem 0.875rem;
}

.checkout-page #stripe-form .input-group {
    flex-wrap: nowrap;
}

.checkout-page #stripe-form .input-group-text {
    flex-shrink: 0;
}

.checkout-page .stripe-element-host {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.checkout-page .card-image {
    width: 2.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.checkout-page .saved-payment-methods h5 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.checkout-page .checkout-saved-card {
    padding: 1rem;
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    background: var(--rf-page);
}

.checkout-page .checkout-saved-card:is(:hover, .selected) {
    border-color: var(--rf-blue-300);
}

.checkout-page .checkout-saved-card.selected {
    background: rgba(92, 158, 235, 0.08);
}

.checkout-page .checkout-saved-card-select {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--rf-text);
    text-align: left;
    overflow-wrap: anywhere;
}

.checkout-page .checkout-saved-card-brand {
    font-size: 0.875rem;
    font-weight: 600;
}

.checkout-page :is(.checkout-saved-card-number, .checkout-saved-card-expiry) {
    margin-top: 0.25rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
}

.checkout-page :is(.use-new-card-btn, .use-new-stripe-card-btn) {
    width: 100%;
    margin-top: 0.5rem;
}

.checkout-page .custom-toggle {
    position: relative;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.18);
    border-radius: 999px;
    background: var(--rf-toggle-bg);
    cursor: pointer;
}

.checkout-page .custom-toggle.on {
    border-color: var(--rf-blue-400);
    background: var(--rf-blue-400);
}

.checkout-page .toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
}

.checkout-page .custom-toggle.on .toggle-slider {
    left: 19px;
}

.checkout-page .toggle-label {
    margin-bottom: 0;
    color: var(--rf-text-muted) !important;
    font-size: 0.8125rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkout-page :is(.checkout-status-banner, .alert-no-payment, .mollie-availability-note) {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    background: var(--rf-page);
    color: var(--rf-text-muted);
    overflow-wrap: anywhere;
}

.checkout-page .checkout-status-banner-danger {
    border-color: rgba(var(--rf-error-rgb), 0.25);
    background: rgba(var(--rf-error-rgb), 0.06);
    color: var(--rf-error);
}

.checkout-page :is(.checkout-status-banner-title, .alert-heading) {
    margin-bottom: 0.375rem;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
}

.checkout-page :is(.checkout-status-banner p, .alert-no-payment p) {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.checkout-page :is(.paypal-info, .bitcoin-info, .gocardless-info, .coingate-info, .payment-form .alert-info) {
    padding: 1.25rem;
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    background: var(--rf-page);
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.checkout-page :is(.paypal-icon, .bitcoin-symbol-large, .gocardless-icon, .coingate-icon) {
    color: var(--rf-text-muted);
    font-size: 1.5rem;
}

.checkout-page :is(.paypal-security, .bitcoin-security, .gocardless-security, .coingate-security) {
    margin-top: 1rem;
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
}

.checkout-page .bank-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    overflow-wrap: anywhere;
}

.checkout-page .bank-detail-value {
    color: var(--rf-text);
}

.checkout-page [data-card-appearance] {
    background-color: var(--rf-card-field-background) !important;
}

.checkout-page .safepay-card-frame {
    min-height: 4rem;
    --safepay-color-background: var(--rf-page);
    --safepay-color-background-secondary: var(--rf-page);
    --safepay-color-background-tertiary: var(--rf-payment-border);
    --safepay-color-high-contrast: var(--rf-text);
    --safepay-color-medium-contrast: var(--rf-text);
    --safepay-color-low-contrast: var(--rf-text-muted);
    --input-background: var(--rf-page);
    --input-color: var(--rf-text);
    --input-border-color: var(--rf-payment-border);
}

.checkout-page .safepay-card-frame safepay-card-atom {
    display: block;
    width: 100%;
    height: 3rem;
}

.safepay-auth-modal-dialog {
    max-width: min(40rem, calc(100vw - 1.5rem));
}

.safepay-auth-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: var(--rf-primary-bg);
}

#safepay-auth,
#safepay-auth safepay-payer-auth-atom {
    display: block;
    width: 100%;
    height: min(40rem, calc(100vh - 3rem));
}

:is(.checkout-page #form_checkout, .registration-page #registrat_form) .select2-container {
    width: 100% !important;
}

:is(.checkout-page #form_checkout, .registration-page #registrat_form) .select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:is(.checkout-page, .registration-page) .select2-container .select2-selection--single {
    height: 3rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.14);
    border-radius: 8px;
    background: var(--rf-page);
}

:is(.checkout-page, .registration-page) .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 2.5rem 0 0.875rem;
    color: var(--rf-text);
    font-size: 0.9375rem;
    line-height: 2.875rem;
}

:is(.checkout-page, .registration-page) .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 0.625rem;
    height: 3rem;
}

:is(.checkout-page, .registration-page) :is(.select2-container--focus, .select2-container--open) .select2-selection--single {
    border-color: var(--rf-blue-300);
}

:is(.checkout-page, .registration-page) .form-select.is-invalid + .select2-container .select2-selection--single {
    border-color: var(--rf-error);
}

body.theme-refresh :is(.checkout-search-dropdown, .registration-search-dropdown) {
    overflow: hidden;
    border: 1px solid var(--rf-border-hover);
    border-radius: 8px;
    background: var(--rf-card);
    color: var(--rf-text);
    font-size: 0.9375rem;
}

body.theme-refresh :is(.checkout-search-dropdown, .registration-search-dropdown) .select2-search--dropdown {
    padding: 0.5rem;
}

body.theme-refresh :is(.checkout-search-dropdown, .registration-search-dropdown) .select2-search__field {
    padding: 0.5rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.18);
    border-radius: 6px;
    outline-color: var(--rf-blue-300);
    background: var(--rf-page);
    color: var(--rf-text);
}

body.theme-refresh :is(.checkout-search-dropdown, .registration-search-dropdown) .select2-search__field:focus {
    outline: 2px solid var(--rf-blue-300);
    outline-offset: 1px;
    box-shadow: none;
}

body.theme-refresh :is(.checkout-search-dropdown, .registration-search-dropdown) .select2-results__option {
    padding: 0.625rem 0.875rem;
}

body.theme-refresh :is(.checkout-search-dropdown, .registration-search-dropdown) .select2-results__option[aria-selected='true'] {
    background: rgba(92, 158, 235, 0.12);
}

body.theme-refresh :is(.checkout-search-dropdown, .registration-search-dropdown) .select2-results__option--highlighted[aria-selected] {
    background: var(--rf-blue-700);
    color: var(--rf-text);
}

.checkout-unavailable {
    min-height: 70vh;
}

@media (max-width: 1199.98px) {
    .checkout-page .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }
}

@media (max-width: 991.98px) {
    .checkout-page .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-page .checkout-sidebar {
        position: static;
    }

    .checkout-page .checkout-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .checkout-page {
        padding: 1rem 0 2.5rem;
    }

    .checkout-page .checkout-breadcrumb {
        margin-bottom: 1.25rem;
    }

    .checkout-page :is(.checkout-card-header, .checkout-card-body) {
        padding: 1.25rem;
    }

    .checkout-page .mollie-method-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-page .checkout-actions > button {
        width: 100%;
    }

    .checkout-page .checkout-actions .btn-checkout {
        order: -1;
    }

    .checkout-page .checkout-security-note {
        justify-content: center;
    }

    .checkout-page .bank-detail-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.25rem;
    }

    .safepay-auth-modal-dialog {
        margin: 0.75rem;
    }
}

/* Receipts */
.receipt-page {
    padding: 2rem 0 4rem;
    color: var(--rf-text);
}

.receipt-page .receipt-page-heading {
    margin-bottom: 2rem;
}

.receipt-page .receipt-page-heading h1 {
    margin: 0 0 0.5rem;
    color: var(--rf-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.receipt-page .receipt-page-heading p {
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.receipt-page .receipt-card {
    overflow: hidden;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    background: var(--rf-card);
}

.receipt-page .receipt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--rf-border);
}

.receipt-page :is(.receipt-card-header h2, .receipt-section-title) {
    margin: 0;
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.receipt-page :is(.receipt-actions, .receipt-actions-bottom) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.receipt-page :is(.receipt-primary-button, .receipt-secondary-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid rgba(var(--rf-contrast-rgb), 0.18);
    border-radius: 999px;
    background: transparent;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.receipt-page .receipt-secondary-button:hover:not(:disabled) {
    border-color: rgba(var(--rf-contrast-rgb), 0.35);
    background: rgba(var(--rf-contrast-rgb), 0.04);
    color: var(--rf-text);
}

.receipt-page .receipt-primary-button {
    border-color: var(--rf-primary-bg);
    background: var(--rf-primary-bg);
    color: var(--rf-primary-text);
}

.receipt-page .receipt-primary-button:hover {
    border-color: var(--rf-primary-hover-cool);
    background: var(--rf-primary-hover-cool);
}

.receipt-page button:focus-visible {
    outline: 2px solid var(--rf-blue-300);
    outline-offset: 3px;
}

.receipt-page button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.receipt-page .receipt-card-body {
    padding: 1.5rem;
}

.receipt-page .receipt-info-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rf-border);
    overflow-wrap: anywhere;
}

.receipt-page :is(.receipt-party h3, .receipt-details dt) {
    margin: 0 0 0.5rem;
    color: var(--rf-text-subtle);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

.receipt-page .receipt-party-name {
    display: block;
    color: var(--rf-text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.6;
}

.receipt-page :is(.receipt-contact, .receipt-party address, .receipt-vat) {
    margin: 0.75rem 0 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    font-style: normal;
    line-height: 1.7;
}

.receipt-page .receipt-contact:empty {
    display: none;
}

.receipt-page .receipt-details {
    display: grid;
    gap: 0.875rem;
    margin: 0;
}

.receipt-page .receipt-details dt {
    margin-bottom: 0.25rem;
}

.receipt-page .receipt-details dd {
    margin: 0;
    color: var(--rf-text);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.receipt-page .receipt-status {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border: 1px solid rgba(var(--rf-success-rgb), 0.2);
    border-radius: 999px;
    background: rgba(var(--rf-success-rgb), 0.08);
    color: var(--rf-success);
    font-size: 0.75rem;
    font-weight: 500;
}

.receipt-page .status-pending {
    border-color: rgba(var(--rf-warning-rgb), 0.2);
    background: rgba(var(--rf-warning-rgb), 0.08);
    color: var(--rf-warning);
}

.receipt-page .receipt-items {
    margin-top: 1.5rem;
}

.receipt-page .receipt-section-title {
    margin-bottom: 1rem;
}

.receipt-page .receipt-table {
    width: 100%;
    margin: 0;
    color: var(--rf-text);
    font-size: 0.875rem;
    table-layout: fixed;
}

.receipt-page .receipt-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rf-border);
    background: var(--rf-page);
    color: var(--rf-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

.receipt-page .receipt-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--rf-border);
    background: transparent;
    color: var(--rf-text);
    vertical-align: top;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.receipt-page .receipt-table th:first-child {
    width: 52%;
    border-radius: 6px 0 0 6px;
}

.receipt-page .receipt-table th:nth-child(2) {
    width: 12%;
    text-align: center;
}

.receipt-page .receipt-table th:nth-child(n+3),
.receipt-page .receipt-table td:nth-child(n+3) {
    text-align: right;
}

.receipt-page .receipt-table th:last-child {
    border-radius: 0 6px 6px 0;
}

.receipt-page .product-name {
    font-weight: 600;
    line-height: 1.6;
}

.receipt-page :is(.product-details, .receipt-item-options) {
    margin-top: 0.375rem;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.receipt-page .receipt-summary {
    width: min(100%, 23rem);
    margin: 1.5rem 0 0 auto;
}

.receipt-page .order-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.875rem;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
}

.receipt-page .order-detail-row .price {
    flex-shrink: 0;
    color: var(--rf-text);
    font-variant-numeric: tabular-nums;
}

.receipt-page .order-detail-row.discount .price {
    color: var(--rf-success);
}

.receipt-page .order-detail-row.total {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rf-border);
    color: var(--rf-text);
    font-size: 1rem;
    font-weight: 600;
}

.receipt-page .receipt-reverse-charge {
    margin: 1.5rem 0 0;
    color: var(--rf-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: right;
}

.receipt-page .receipt-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rf-border);
}

.receipt-page .receipt-thank-you p {
    max-width: 44rem;
    margin: 0;
    color: var(--rf-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.print-only-receipt {
    display: none;
}

@media (max-width: 991.98px) {
    .receipt-page .receipt-info-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .receipt-page .receipt-details {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-top: 1.25rem;
        border-top: 1px solid var(--rf-border);
    }
}

@media (max-width: 575.98px) {
    .receipt-page {
        padding: 1rem 0 2.5rem;
    }

    .receipt-page .receipt-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .receipt-page :is(.receipt-card-header, .receipt-card-body) {
        padding: 1.25rem;
    }

    .receipt-page :is(.receipt-actions, .receipt-actions-bottom) > button {
        flex: 1;
    }

    .receipt-page .receipt-actions-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .receipt-page .receipt-actions-bottom > button {
        flex: none;
        width: 100%;
    }

    .receipt-page .receipt-info-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .receipt-page .receipt-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .receipt-page .receipt-table :is(thead) {
        display: none;
    }

    .receipt-page .receipt-table :is(tbody, tr) {
        display: block;
        width: 100%;
    }

    .receipt-page .receipt-table tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        padding: 1.25rem 0;
        border-bottom: 1px solid var(--rf-border);
    }

    .receipt-page .receipt-table td {
        padding: 0;
        border: 0;
        text-align: left;
    }

    .receipt-page .receipt-table td:first-child {
        grid-column: 1 / -1;
    }

    .receipt-page .receipt-table td[data-label]::before {
        display: block;
        margin-bottom: 0.375rem;
        color: var(--rf-text-subtle);
        font-size: 0.75rem;
        content: attr(data-label);
    }
}

/* Shared billing documents: PDF, email content and browser printing. */
.billing-document {
    background: #fff;
    border-top: 4px solid #2a6fca;
    color: #20324a;
    font: 10pt/1.55 Arial, Helvetica, sans-serif;
    padding: 24px 0 0;
    overflow-wrap: break-word;
}
.billing-document table {
    border-collapse: collapse;
    width: 100%;
}
.billing-document td, .billing-document th {
    vertical-align: top;
}
.billing-document h1 {
    color: #122a49;
    font-size: 29pt;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 0 0 8px;
}
.billing-document h2 {
    color: #1f5aa6;
    font-size: 8pt;
    font-weight: bold;
    letter-spacing: .8px;
    margin: 0 0 9px;
    text-transform: uppercase;
}
.billing-document p {
    margin: 0 0 12px;
}
.billing-document-heading {
    margin-bottom: 24px;
}
.billing-document-heading td {
    width: 50%;
}
.billing-document-brand {
    color: #122a49;
    font-size: 15pt;
    font-weight: bold;
    padding-top: 10px;
    text-align: right;
}
.billing-document-brand img {
    height: auto;
    max-height: 55px;
    max-width: 180px;
}
.billing-document-status {
    border: 1px solid #91a7c0;
    color: #122a49;
    display: inline-block;
    font-size: 7pt;
    font-weight: bold;
    letter-spacing: .5px;
    margin-top: 10px;
    padding: 3px 9px;
    text-transform: uppercase;
}
.billing-document-meta {
    border-bottom: 1px solid #dce4ee;
    margin-bottom: 24px;
    table-layout: fixed;
}
.billing-document-meta td {
    padding: 0 14px 16px 0;
    width: 33.33%;
}
.billing-document-meta span {
    color: #5d6c7e;
    display: block;
    font-size: 7pt;
    letter-spacing: .6px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.billing-document-meta strong {
    color: #20324a;
    font-size: 9pt;
}
.billing-document-parties {
    margin-bottom: 28px;
    table-layout: fixed;
}
.billing-document-parties td {
    color: #5d6c7e;
    padding-right: 28px;
    width: 50%;
}
.billing-document-parties strong {
    color: #20324a;
    display: block;
    margin-bottom: 5px;
}
.billing-document-vat {
    font-size: 8pt;
    margin-top: 8px;
}
.billing-document-items {
    font-size: 9pt;
    margin-bottom: 22px;
    table-layout: fixed;
}
.billing-document-items thead {
    display: table-header-group;
}
.billing-document-items th {
    background: #fff;
    border-bottom: 1px solid #dce4ee;
    border-top: 2px solid #122a49;
    color: #1f5aa6;
    font-size: 8pt;
    padding: 10px 8px;
    text-align: right;
    width: 20%;
}
.billing-document-items th:first-child {
    text-align: left;
    width: 48%;
}
.billing-document-items th:nth-child(2) {
    width: 12%;
}
.billing-document-items td {
    border-bottom: 1px solid #dce4ee;
    padding: 12px 8px;
    text-align: right;
}
.billing-document-items td:first-child {
    text-align: left;
}
.billing-document-items td:last-child {
    font-weight: bold;
}
.billing-document-items td strong {
    color: #20324a;
    display: block;
    margin-bottom: 3px;
}
.billing-document-items td div, .billing-document-items td ul {
    color: #5d6c7e;
    font-size: 8pt;
    margin: 0;
}
.billing-document-items td ul {
    list-style: none;
    padding: 0;
}
.billing-document-summary {
    table-layout: fixed;
}
.billing-document-note {
    color: #5d6c7e;
    font-size: 8pt;
    padding: 8px 24px 0 0;
    width: 52%;
}
.billing-document-totals-cell {
    width: 48%;
}
.billing-document-totals {
    font-size: 9pt;
    table-layout: fixed;
}
.billing-document-totals td:first-child {
    width: 64%;
}
.billing-document-totals td:last-child {
    width: 36%;
}
.billing-document-totals td {
    padding: 7px 9px;
}
.billing-document-totals td:last-child {
    text-align: right;
    white-space: nowrap;
}
.billing-document-total td {
    background: #eef4fb;
    border-top: 2px solid #2a6fca;
    color: #122a49;
    font-size: 12pt;
    font-weight: bold;
    padding: 13px 9px;
}
.billing-document-total td:last-child {
    font-size: 15pt;
}
.billing-document-legal {
    color: #5d6c7e;
    font-size: 8pt;
    margin-top: 20px !important;
}
.billing-document-footer {
    border-top: 2px solid #2a6fca;
    color: #122a49;
    font-size: 8pt;
    margin-top: 42px;
    padding-top: 13px;
}
.billing-document-items tr, .billing-document-summary, .billing-document-parties, .billing-document-heading, .billing-document-meta, .billing-document-legal, .billing-document-footer {
    break-inside: avoid;
    page-break-inside: avoid;
}
.billing-document .print-order-summary > h2 {
    display: none;
}
.billing-document .print-order-totals {
    margin-left: auto;
    width: 48%;
}
.billing-document .print-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 9px;
    font-size: 9pt;
}
.billing-document .print-grand-total {
    background: #eef4fb;
    border-top: 2px solid #2a6fca;
    color: #122a49;
    font-size: 12pt;
    font-weight: bold;
    margin-top: 8px;
    padding: 13px 9px;
}
.billing-document .print-grand-total span:last-child {
    font-size: 15pt;
}
.billing-document .print-order-totals .billing-document-legal {
    width: 208%;
    margin-left: -108%;
}
.billing-document .print-thank-you p {
    margin: 0;
}
.billing-document-pdf {
    margin: 0;
}
.billing-document-print {
    display: none;
}

@media print {
    @page {
        size: A4;
        margin: 16mm;
    }
    body.theme-refresh:has(.receipt-page) {
        margin: 0;
        background: #fff !important;
        color: #20324a !important;
    }
    body:has(.receipt-page) :is(.receipt-page, .site-header, footer, .storefront-toasts, .back-to-top, .phpdebugbar) {
        display: none !important;
    }
    .billing-document-print, .print-only-receipt {
        display: block !important;
    }
    body:has(.print-only-invoice) .invoice-content, body:has(.print-only-invoice) .fi-sidebar, body:has(.print-only-invoice) .fi-topbar, body:has(.print-only-invoice) .fi-header, body:has(.print-only-invoice) .fi-page-header, body:has(.print-only-invoice) .fi-breadcrumbs, body:has(.print-only-invoice) .fi-modal, body:has(.print-only-invoice) .fi-no {
        display: none !important;
    }
    body:has(.print-only-invoice), body:has(.print-only-invoice) .fi-layout {
        background: #fff !important;
        color: #20324a !important;
    }
    body:has(.print-only-invoice) .fi-main, body:has(.print-only-invoice) .fi-main-ctn {
        margin: 0;
        max-width: none;
        padding: 0;
    }
    body:has(.print-only-invoice) .fi-page-content {
        gap: 0;
    }
    .billing-document {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .billing-document-pdf .billing-document {
        display: block;
    }
}
/* End shared billing document styles. */
