/* Shared styling for the sitepreview.nu color trials. The live comparison uses the theme's own styles. */
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose {
    --rose-paper: #fdf9f7;
    --rose-wash: #fbf2ef;
    --rose-band: #f8e8e2;
    --rose-accent: #f1d7cd;
    --rose-line: #ead5cd;
    --rose-field: #ad8477;
    --rose-ink: #2d201d;
    --rose-muted: #694f47;
    --rose-action: #5a342b;
    --rose-action-hover: #442820;
    --rose-detail: #c48473;
    --preview-logo-filter: url("glowlie-preview-navy.svg?v=2#rose");
    --preview-promo-surface: color-mix(in srgb, var(--rose-accent) 75%, var(--rose-paper));
    --preview-campaign-wash: color-mix(in srgb, var(--preview-promo-surface) 62%, var(--rose-paper));
    --preview-purchase-surface: color-mix(in srgb, var(--rose-accent) 55%, var(--rose-paper));
    --preview-button-radius: 6px;
    --cream: var(--rose-paper);
    --paper: var(--rose-paper);
    --beige: var(--rose-accent);
    --sand: var(--rose-band);
    --line: var(--rose-line);
    --ink: var(--rose-ink);
    --muted: var(--rose-muted);
    background: var(--rose-paper);
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-announcement, .announcement) {
    background: var(--rose-action) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--rose-detail) 55%, var(--rose-action));
    color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-site-header, .gl3-mobile-menu, .gl3-search-panel, .search-panel, .glocheckout-masthead) {
    background: var(--rose-paper);
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main,
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-product-page, .gl3-beige, .is-beige) {
    --gl90-beige: var(--rose-band);
    --gl90-pale: var(--rose-wash);
    --gl3-beige: var(--rose-accent);
    background-color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > section:not(.gl3-hero, .gl3-routine),
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > #reviews > section,
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.single-product #main .gl3-product-page > :is(section, aside) {
    background: var(--rose-paper) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.single-product #main .gl3-product-page > :is(.gl3-product-ugc, .gl3-product-faq, .gl3-bundle-steps) {
    background: linear-gradient(180deg, var(--rose-wash), var(--rose-band)) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > section:is(.gl3-home-faq, .gl3-videos) {
    background: var(--rose-wash) !important;
    border-block: 1px solid var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > .gl3-usp {
    background: var(--rose-wash) !important;
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl9-newsletter, .gl3-footer-bottom, .glocheckout-footer, .gl3-cookie-dialog) {
    background: var(--rose-wash);
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > .gl3-routine {
    --routine-edge: var(--rose-line);
    --routine-card: var(--rose-paper);
    --routine-media: var(--rose-wash);
    --routine-action: var(--rose-action);
    background: color-mix(in srgb, var(--rose-band) 72%, var(--rose-paper));
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl3-routine .gl3-routine-step > summary > span {
    background: var(--rose-accent) !important;
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl3-routine :is(.gl-quiz-entry, .gl3-product-chip) {
    background: var(--rose-wash);
    border-color: var(--rose-field);
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl3-routine :is(.gl-quiz-entry, .gl3-product-chip):hover {
    background: var(--rose-band);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl3-skin-shop, .gl3-results) .gl3-tabs > button[aria-selected='true'] {
    background: var(--rose-accent);
    border-color: var(--rose-field);
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl3-skin-shop, .gl3-results) .gl3-tabs > button[aria-selected='false'] {
    background: var(--rose-paper);
    border-color: var(--rose-field);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.button.is-white, .button.button-light, .gl3-guide .g3-tool-info .button) {
    background: var(--rose-accent);
    border-color: var(--rose-field);
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-hero .button, .gl3-cart-drawer .gl3-cart-checkout),
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glocheckout .woocommerce #payment #place_order {
    background: var(--rose-action) !important;
    border-color: var(--rose-action) !important;
    color: #fff !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-hero .button, .gl3-cart-drawer .gl3-cart-checkout):hover,
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glocheckout .woocommerce #payment #place_order:hover:not(:disabled) {
    background: var(--rose-action-hover) !important;
    border-color: var(--rose-action-hover) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl3-home-faq details, .gl3-product-faq details, .g3-accordions details, .gl-quiz-panel) {
    background: #fffdfc;
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-product-page :is(.product-buy form.cart .single_add_to_cart_button, .sticky-atc .button, .gl3-product-upsell .gl3-add-small, .gl3-product-review-summary .button, .gl3-review-form > button) {
    background: var(--rose-accent) !important;
    border-color: var(--rose-field) !important;
    color: var(--rose-ink) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-product-page :is(.product-buy form.cart .single_add_to_cart_button, .sticky-atc .button, .gl3-product-upsell .gl3-add-small, .gl3-product-review-summary .button, .gl3-review-form > button):hover {
    background: #eacabe !important;
    border-color: var(--rose-action) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.sticky-atc, .gl3-cart-sticky, .gl90-routine .gl90-routine-box, .gl3-buy-box, .shop-filter-wrap) {
    background: var(--rose-wash);
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl3-guide, .gl3-story, .gl5-service) {
    --g3-beige: var(--rose-accent);
    --g3-light: var(--rose-wash);
    --s3-light: var(--rose-wash);
    --s3-beige: var(--rose-accent);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.s3-timeline, .s3-intro-heading > .eyebrow, .g3-intro .eyebrow, .g3-cause-card, .g3-accordions summary, .g3-note, .g3-illustration-panel, .gl5-service-toc, .gl5-service-form) {
    background: var(--rose-wash);
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.s3-moment-icon, .s3-moment h3, .g3-illustration-row h3, .gl5-service-hero) {
    background: var(--rose-accent);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer {
    --drawer-paper: var(--rose-paper);
    --drawer-edge: var(--rose-line);
    --drawer-ink: var(--rose-action);
    --glowlie-cart-progress-base: var(--rose-field);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer .gl3-free-shipping .gl3-progress {
    background: var(--rose-accent);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl-account {
    --account-line: var(--rose-line);
    --account-field: var(--rose-field);
    --account-warm: var(--rose-wash);
    --account-accent: var(--rose-action);
    --account-muted: var(--rose-muted);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl-account .woocommerce-MyAccount-navigation .is-active a,
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl-account__icon {
    background: var(--rose-accent);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glocheckout {
    --checkout-paper: var(--rose-paper);
    --checkout-warm: var(--rose-wash);
    --checkout-edge: var(--rose-line);
    --checkout-control-edge: var(--rose-field);
    --checkout-muted: var(--rose-muted);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glocheckout :is(.glocheckout-overview, .glocheckout-delivery-table) {
    --checkout-divider: var(--rose-line);
    background: var(--rose-wash);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glocheckout :is(.glocheckout-steps [aria-current='step'] > span, #payment li:has(> input:checked), .glocheckout-voucher .button) {
    background: var(--rose-band);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat {
    --glo7-beige: var(--rose-accent);
    --glo7-soft: var(--rose-wash);
    --glo7-line: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat :is(.glo7-chat-header, .glo11-chat-menu-card) {
    background: var(--rose-wash);
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat .glo7-chat-panel {
    border-color: var(--rose-line);
}

/* The comparison controls use the same neutral treatment in every palette. */
.glo-preview-palette-bar:not([hidden]) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    padding: 4px 12px;
    background: #f5f2f2;
    border-bottom: 1px solid #d8cfd2;
    color: #30252a;
    font: 600 .8125rem/1.3 system-ui, sans-serif;
}

.glo-preview-palette-bar select {
    max-width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #82717a;
    border-radius: 6px;
    background: #fff;
    color: #30252a;
    font: 500 1rem/1.2 system-ui, sans-serif;
}

.glo-preview-palette-bar select:focus-visible {
    outline: 2px solid #4e2f40;
    outline-offset: 2px;
}

:where(html[data-glo-preview-palette="berry"]) body.glo-preview-rose {
    --rose-paper: #fff8f4;
    --rose-wash: #fbecf0;
    --rose-band: #f8e4ea;
    --rose-accent: #f5dce4;
    --rose-line: #e8cbd5;
    --rose-field: #9b6678;
    --rose-ink: #281a24;
    --rose-muted: #69515e;
    --rose-action: #892149;
    --rose-action-hover: #6c1839;
    --preview-logo-filter: url("glowlie-preview-navy.svg?v=2#berry");
    --rose-detail: #c48473;
}

:where(html[data-glo-preview-palette="clay"]) body.glo-preview-rose {
    --rose-paper: #fef8f2;
    --rose-wash: #faf0e7;
    --rose-band: #f8e7dc;
    --rose-accent: #f5dfd0;
    --rose-line: #e8cfc0;
    --rose-field: #986b59;
    --rose-ink: #32231e;
    --rose-muted: #6c5144;
    --rose-action: #91452f;
    --rose-action-hover: #703420;
    --preview-logo-filter: url("glowlie-preview-navy.svg?v=2#clay");
    --rose-detail: #be8269;
}

:where(html[data-glo-preview-palette="mineral"]) body.glo-preview-rose {
    --rose-paper: #faf9f5;
    --rose-wash: #f0f6f6;
    --rose-band: #e6eff1;
    --rose-accent: #e0ecef;
    --rose-line: #ccdde2;
    --rose-field: #5f7b86;
    --rose-ink: #22282a;
    --rose-muted: #4c626b;
    --rose-action: #214759;
    --rose-action-hover: #183744;
    --preview-logo-filter: url("glowlie-preview-navy.svg?v=2#mineral");
    --rose-detail: #c48473;
}

/* The same hierarchy applies to all full branding trials. */
:where(html[data-glo-preview-palette="navy"]) body.glo-preview-rose {
    --rose-paper: #fbf9f5;
    --rose-wash: #f6f1e9;
    --rose-band: #ede5d9;
    --rose-accent: #e7ddd1;
    --rose-line: #ddd3c6;
    --rose-field: #667281;
    --rose-ink: #000;
    --rose-muted: #514a42;
    --rose-action: #192942;
    --rose-action-hover: #263d5b;
    --rose-detail: #c9a75e;
    --preview-promo-surface: color-mix(in srgb, var(--rose-detail) 24%, var(--rose-paper));
    --preview-purchase-surface: color-mix(in srgb, var(--rose-detail) 17%, var(--rose-paper));
    --preview-logo-filter: url("glowlie-preview-navy.svg?v=2#navy");
}

:where(html[data-glo-preview-palette="olive"]) body.glo-preview-rose {
    --rose-paper: #f7f5f0;
    --rose-wash: #e8e1d6;
    --rose-band: #dce2d7;
    --rose-accent: #dce2d7;
    --rose-line: #d0d6cc;
    --rose-field: #697366;
    --rose-ink: #252725;
    --rose-muted: #4b5649;
    --rose-action: #424b3c;
    --rose-action-hover: #333c2f;
    --rose-detail: #a4b09b;
    --preview-logo-filter: url("glowlie-preview-navy.svg?v=2#olive");
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose {
    --preview-brand: var(--rose-action);
    --preview-on-brand: var(--rose-paper);
    --preview-on-brand-muted: var(--rose-accent);
    --preview-brand-edge: color-mix(in srgb, var(--preview-on-brand) 40%, var(--preview-brand));
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-announcement, .announcement) :is(a, button) {
    color: inherit;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-announcement :focus-visible {
    outline-color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-cart-count, .gl3-cart-badge, .cart-count) {
    background: var(--preview-brand);
    color: var(--preview-on-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > .gl3-routine > .gl3-section-heading :is(.eyebrow, h2, p) {
    color: var(--preview-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > .gl3-routine .gl-quiz-entry {
    background: transparent;
    border-color: var(--preview-brand);
    color: var(--preview-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main > .gl3-routine .gl-quiz-entry:hover {
    background: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-footer.gl9-footer .gl3-footer-panel {
    background: var(--preview-brand) !important;
    color: var(--preview-on-brand);
    border-radius: 0;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-footer.gl9-footer {
    padding: 0;
    background: var(--preview-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer :is(.gl3-newsletter, .gl3-footer-lower, .gl3-footer-bottom, .gl3-footer-columns details) {
    background-color: transparent;
    border-color: var(--preview-brand-edge);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer :is(.gl9-newsletter-copy h2, .gl3-footer-columns summary, .gl3-footer-columns a, .gl3-social-links a, .gl3-company strong, .gl3-footer-bottom a, .gl3-footer-bottom button) {
    color: var(--preview-on-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer :is(.gl3-newsletter-privacy, .gl3-company, .gl3-company span, .gl3-footer-bottom, .gl8-payment-caption) {
    color: var(--preview-on-brand-muted);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer :is(.gl3-footer-brand .wordmark img, .gl3-social-links svg) {
    filter: brightness(0) invert(1);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer :is(.gl3-social-links a, .gl3-email-row) {
    border-color: var(--preview-brand-edge);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer .gl3-email-row > input {
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer .gl3-email-row > button {
    background: var(--rose-accent);
    color: var(--preview-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer .gl3-email-row > button:hover {
    background: var(--preview-brand);
    color: var(--preview-on-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer :focus-visible {
    outline: 2px solid var(--preview-on-brand);
    outline-offset: 3px;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl9-footer .gl3-email-row :focus-visible {
    outline-color: var(--preview-brand);
    outline-offset: 1px;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-product-page :is(.product-buy form.cart .single_add_to_cart_button, .sticky-atc .button, .gl90-routine-summary .button),
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-cart-checkout, .glocheckout-cart .checkout-button, .gl-quiz .gl-quiz-add, .gl3-results-cta .button),
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.woocommerce-account #customer_login button.woocommerce-button[type="submit"] {
    background: var(--preview-brand) !important;
    border-color: var(--preview-brand) !important;
    color: var(--preview-on-brand) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-product-page :is(.product-buy form.cart .single_add_to_cart_button, .sticky-atc .button, .gl90-routine-summary .button):hover:not(:disabled),
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-cart-checkout, .glocheckout-cart .checkout-button, .gl-quiz .gl-quiz-add, .gl3-results-cta .button):hover:not(:disabled),
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.woocommerce-account #customer_login button.woocommerce-button[type="submit"]:hover:not(:disabled) {
    background: var(--rose-action-hover) !important;
    border-color: var(--rose-action-hover) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-product-page :is(.gl3-product-upsell .gl3-add-small, .gl3-product-review-summary .button, .gl3-review-form > button):hover {
    background: var(--rose-band) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer .gl3-free-shipping .gl3-progress > span {
    background: var(--preview-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer .gl3-drawer-coupon input {
    border-color: var(--rose-field);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.glocheckout, .gl-account, .gl90-routine-row) input:is([type="radio"], [type="checkbox"]):enabled {
    accent-color: var(--preview-brand);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glocheckout .woocommerce #payment ul.payment_methods > li:has(> input:checked) {
    background: var(--rose-wash);
    border-color: var(--rose-field);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.woocommerce-account #main #customer_login > .u-column2 {
    background: var(--rose-wash);
    border-color: var(--rose-line);
}

/* Reuse palette colors for the store's smaller controls and standalone screens. */
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-header-icons .cart-link > span, .gl3-cart-heading h2 > span, .cart-count, .glo-nav-count, .gl-cart-count, [data-cart-count], [data-gl3-cart-count], [data-gl5-counter]) {
    background: var(--rose-action) !important;
    color: var(--rose-paper) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-site-header .gl3-header-icons .cart-link > span {
    background: var(--rose-accent) !important;
    color: var(--rose-action) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(a, button, input, select, textarea, summary):focus-visible {
    outline-color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.bodycare-shop-filters button, .bodycare-category-tabs button, .gl-bundle-compare-product-link, .product-card .card-cta) {
    border-color: var(--rose-field);
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.bodycare-shop-filters button[aria-pressed="true"], .bodycare-category-tabs button[aria-selected="true"], .gl-bundle-compare-product-link:hover, .product-card .card-cta:hover) {
    background: var(--rose-action);
    border-color: var(--rose-action);
    color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl50-collection-card .product-open, .gl3-skin-product-open, .gl-bundle-compare-card, .gl90-routine-row) {
    background-color: var(--rose-paper);
    border-color: var(--rose-line);
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl90-routine-row {
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl-bundle-compare, .gl90-routine-summary .gl90-routine-total, .gl5-service-help, .gl5-return-form-card, .gl5-service-copy th) {
    background: var(--rose-wash);
    border-color: var(--rose-line);
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl90-routine-summary, .gl-bundle-compare-contents, .gl-bundle-compare-image) {
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl90-routine-summary p, .gl5-service-nav > a[aria-current="page"], .gl5-service-toc a[aria-current="location"], .gl-quiz .gl-quiz-badge) {
    background: var(--rose-accent);
    border-color: var(--rose-field);
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.gl3-results, .gl3-videos) .gl3-dots button[aria-current="true"] {
    background: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl-quiz {
    --quiz-paper: var(--rose-paper);
    --quiz-ink: var(--rose-ink);
    --quiz-muted: var(--rose-muted);
    --quiz-beige: var(--rose-accent);
    --quiz-border: var(--rose-field);
    --quiz-progress: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl5-service {
    --gl5-beige: var(--rose-accent);
    --gl5-line: var(--rose-line);
    background: var(--rose-paper);
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(#main .gl-quiz-actions .button, #main .gl5-service-form .button, .gl3-cookie-dialog .button, .glo-order-status__button) {
    background: var(--rose-action);
    border-color: var(--rose-action);
    color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(#main .gl-quiz-actions .button, #main .gl5-service-form .button, .gl3-cookie-dialog .button, .glo-order-status__button):hover:not(:disabled) {
    background: var(--rose-action-hover);
    border-color: var(--rose-action-hover);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cookie-dialog input {
    accent-color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat {
    --glo7-ink: var(--rose-ink);
    --glo11-pink: var(--rose-accent);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat :is(.glo7-chat-launcher, .glo7-chat-panel, .glo7-chat-form) {
    background: var(--rose-paper);
    border-color: var(--rose-field);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat :is(.glo7-chat-launcher-icon, .glo7-chat-mark, .glo7-chat-message.is-user .glo7-chat-bubble, .glo11-chat-product-actions > button:enabled, .glo7-chat-compose > button:disabled) {
    background: var(--rose-accent);
    border-color: var(--rose-line);
    color: var(--rose-ink);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat .glo7-chat-compose {
    border-color: var(--rose-field);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat .glo7-chat-compose:focus-within {
    border-color: var(--rose-action);
    box-shadow: 0 0 0 1px var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo7-chat .glo7-chat-compose > button:enabled {
    background: var(--rose-action);
    color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.glo-order-status {
    --glo-status-ink: var(--rose-ink);
    --glo-status-muted: var(--rose-muted);
    --glo-status-border: var(--rose-line);
    --glo-status-surface: var(--rose-wash);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.glo-order-status :is(.glo-order-status__link, .glo-order-status__footer a) {
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .glo-order-status__steps :is(.is-current, .is-complete) .glo-order-status__dot {
    background: var(--rose-action);
    border-color: var(--rose-action);
}

/* Brand color repeats in the header and on the main action. */
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-site-header .wordmark img, .gl3-mobile-menu .wordmark img, .glocheckout-masthead .wordmark img, .glo-order-status__masthead img) {
    filter: var(--preview-logo-filter);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(.gl3-site-header .gl3-desktop-nav a, .gl3-site-header .gl3-desktop-nav button, .gl3-header-icons .icon-button, .gl3-menu-open, .gl3-mobile-menu nav a, .gl3-mobile-menu nav button, .glocheckout-masthead .glocheckout-back, .glocheckout-masthead .glocheckout-help) {
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main .gl3-hero h1 {
    color: var(--rose-action);
}

:where(html[data-glo-preview-palette="navy"]) body.glo-preview-rose .gl9-footer .gl3-footer-brand .wordmark img {
    filter: url("glowlie-preview-navy.svg#ivory");
}

:where(html[data-glo-preview-palette="navy"]) body.glo-preview-rose #main .gl3-routine .gl3-routine-step > summary > span {
    background: var(--rose-detail) !important;
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl90-routine .gl90-routine-actions [data-gl90-routine-saving] {
    background: color-mix(in srgb, var(--rose-detail) 34%, var(--rose-paper));
    border-color: var(--rose-detail);
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main :is(.gl4-results .gl5-result-link, .gl3-videos .button) {
    background: var(--rose-action);
    border-color: var(--rose-action);
    color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main :is(.gl4-results .gl5-result-link, .gl3-videos .button):hover {
    background: var(--rose-action-hover);
    border-color: var(--rose-action-hover);
}

/* Keep product rows and entry fields light. Tint the areas that group the buying decisions. */
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer :is(.gl3-cart-top, .gl3-cart-upsells) {
    background: var(--rose-wash);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer .gl3-cart-total,
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main :is(.glocheckout .glocheckout-overview, .glocheckout-cart .cart_totals) {
    background: var(--preview-purchase-surface);
    border-color: var(--rose-line);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer .gl3-drawer-coupon button {
    background: transparent;
    border-color: var(--rose-field);
    color: var(--rose-action);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose .gl3-cart-drawer .gl3-drawer-coupon button:hover {
    background: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .glocheckout .glocheckout-entry {
    --checkout-paper: var(--rose-paper);
    background-color: var(--rose-paper);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose #main .gl3-product-page :is(.gl90-routine-swatches, .gl3-upgrade-colours) > button[aria-pressed="true"] {
    border-color: var(--rose-action);
}

/* Use a tint behind the hero copy and keep the campaign photography visible. */
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main .gl3-hero.gl3-hero-overlay {
    --preview-hero-angle: 90deg;
    background: var(--preview-campaign-wash);
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main .gl3-hero.gl3-hero-overlay[data-text-position="right"] {
    --preview-hero-angle: 270deg;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main .gl3-hero.gl3-hero-overlay::before {
    background: linear-gradient(var(--preview-hero-angle), var(--preview-campaign-wash), color-mix(in srgb, var(--preview-campaign-wash) 88%, transparent) 29%, color-mix(in srgb, var(--preview-campaign-wash) 36%, transparent) 52%, transparent 76%);
}

@media (min-width: 601px) {
    :where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main .gl3-hero.gl3-hero-overlay[data-text-position="center"]::before {
        background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--preview-campaign-wash) 94%, transparent) 34% 66%, transparent);
    }
}

@media (max-width: 600px) {
    :where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main .gl3-hero.gl3-hero-overlay::before {
        background:
            linear-gradient(180deg, var(--preview-campaign-wash), color-mix(in srgb, var(--preview-campaign-wash) 92%, transparent) 29%, color-mix(in srgb, var(--preview-campaign-wash) 56%, transparent) 65%, transparent 80%),
            linear-gradient(180deg, transparent 57%, #20171419 68%, #2017148c 85%, #201714a3);
    }

    :where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main .gl3-hero.gl3-hero-overlay .glowlie-hero-actions > .button {
        min-height: 48px;
    }
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose.home #main :is(.gl3-skin-product-image, .gl3-video-card .gl3-product-chip) {
    background-color: var(--rose-paper);
    border: 1px solid var(--rose-line);
}

/* Reserve filled buttons for primary actions. Keep utilities and icon controls distinct. */
:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(
    .gl3-hero .button,
    .gl4-results .gl5-result-link.button,
    .gl3-videos .button,
    .gl3-product-page .product-buy form.cart .single_add_to_cart_button,
    .gl3-product-page .sticky-atc .button,
    .gl90-routine-summary .button,
    .gl3-cart-checkout,
    .glocheckout-cart .checkout-button,
    .glocheckout #payment #place_order,
    .gl-account #customer_login button.woocommerce-button[type="submit"],
    .gl-quiz-actions .button,
    .glo-order-status__button
) {
    border-radius: var(--preview-button-radius) !important;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(
    #main .gl3-routine .gl-quiz-entry,
    #main .glocheckout .glocheckout-voucher .button,
    #main .gl3-product-page .gl3-product-upsell .gl3-add-small,
    .gl3-cart-drawer .gl3-drawer-coupon button,
    .gl3-cart-drawer .gl3-cart-upsells .gl3-add-small
):not(:disabled, [aria-disabled="true"]) {
    border-radius: var(--preview-button-radius) !important;
    border-color: var(--rose-field) !important;
    background: transparent !important;
    color: var(--rose-action) !important;
}

:where(html:not([data-glo-preview-palette="live"])) body.glo-preview-rose :is(
    #main .gl3-routine .gl-quiz-entry,
    #main .glocheckout .glocheckout-voucher .button,
    #main .gl3-product-page .gl3-product-upsell .gl3-add-small,
    .gl3-cart-drawer .gl3-drawer-coupon button,
    .gl3-cart-drawer .gl3-cart-upsells .gl3-add-small
):hover:not(:disabled, [aria-disabled="true"]) {
    border-color: var(--rose-action) !important;
    background: var(--rose-accent) !important;
}
