/* Screen-only storefront palette, enabled by the visitor's OS appearance. */
body.theme-refresh {
    --rf-page: #f4f6fa;
    --rf-card: #fff;
    --rf-card-hover: #edf2f7;
    --rf-menu: #fff;
    --rf-border: rgba(24, 48, 79, 0.14);
    --rf-border-hover: rgba(31, 90, 166, 0.4);
    --rf-contrast-rgb: 24, 48, 79;
    --rf-text: #172b43;
    --rf-body: #334155;
    --rf-text-muted: #526175;
    --rf-text-subtle: #64748b;
    --rf-panel-muted: #526175;
    --rf-code: #245ca6;
    --rf-blue-300: #245ca6;
    --rf-blue-light: #245ca6;
    --rf-primary-bg: var(--rf-navy);
    --rf-primary-text: #fff;
    --rf-primary-hover: #22528e;
    --rf-primary-hover-soft: #22528e;
    --rf-primary-hover-cool: #22528e;
    --rf-success: #18794e;
    --rf-success-rgb: 24, 121, 78;
    --rf-error: #b42332;
    --rf-error-rgb: 180, 35, 50;
    --rf-stock-rgb: 24, 121, 78;
    --rf-danger-rgb: 180, 35, 50;
    --rf-warning: #8a5b18;
    --rf-warning-rgb: 138, 91, 24;
    --rf-toggle-bg: #c0cbd9;
    --rf-payment-border: #c9d3df;
    --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='%23526175' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");

    color-scheme: light;
    color: var(--rf-text);
}

/* Navy brand surfaces retain the same contrast in either appearance. */
body.theme-refresh :is(.site-bar, .site-mobile-menu, .site-footer-panel, .page-hero-card, .blog-post .post-cta-services) {
    --rf-text: #fff;
    --rf-body: #e0e3e9;
    --rf-panel-muted: #c8d6e6;
    --rf-text-muted: #b9bec8;
    --rf-text-subtle: rgba(255, 255, 255, 0.6);
    --rf-contrast-rgb: 255, 255, 255;
    --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-blue-300: #5c9eeb;
    --rf-blue-light: #5c9eeb;
    color: var(--rf-text);
}

body.theme-refresh :is(.site-header, .site-footer) .dropdown-menu {
    --rf-text: #172b43;
    --rf-body: #334155;
    --rf-text-muted: #526175;
    --rf-text-subtle: #64748b;
    --rf-contrast-rgb: 24, 48, 79;
    --rf-primary-bg: var(--rf-navy);
    --rf-primary-text: #fff;
    --rf-blue-300: #245ca6;
    --rf-blue-light: #245ca6;
    color: var(--rf-text);
    box-shadow: 0 12px 32px rgba(24, 48, 79, 0.12);
}

body.theme-refresh :is(.text-white, .text-light, .table-dark) {
    color: var(--rf-text) !important;
}

body.theme-refresh :is(.text-muted, .text-white-50) {
    color: var(--rf-text-muted) !important;
}

body.theme-refresh :is(.portal-card, .portal-card-title) {
    color: var(--rf-text);
}

body.theme-refresh .bg-dark {
    background-color: var(--rf-card) !important;
}

body.theme-refresh .table-dark {
    --bs-table-bg: var(--rf-card);
    --bs-table-color: var(--rf-text);
    --bs-table-border-color: var(--rf-border);
    --bs-table-striped-bg: var(--rf-card-hover);
    --bs-table-striped-color: var(--rf-text);
    --bs-table-hover-bg: var(--rf-card-hover);
    --bs-table-hover-color: var(--rf-text);
}

body.theme-refresh .order-catalog .catalog-groups a[aria-current] {
    color: #fff;
}

body.theme-refresh .package-page .package-option-choice:has(input:checked) {
    background: rgba(37, 96, 172, 0.07);
}

body.theme-refresh :is(.select2-results__option--highlighted[aria-selected], .iti__country.iti__highlight) {
    --rf-text: #fff;
    --rf-text-muted: #e0e3e9;
    color: #fff;
}

body.theme-refresh .registration-page .registration-terms .form-check-input:checked {
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3.5 8 3 3 6-6'/%3E%3C/svg%3E");
}
