/* Shared form surfaces use the same pale blue as the Herrera hero. */
body.herrera-storefront {
    --herrera-form-surface: #edf7f9;
    --herrera-form-pattern-size: 100vw max(900px, 100vh);
}

body.herrera-storefront:is(.commerce-body, .mobile-commerce-body) {
    --commerce-surface: var(--herrera-form-surface);
    --commerce-form-surface: var(--herrera-form-surface);
}

body.herrera-storefront :is(.checkout-shell, .mobile-checkout) {
    --checkout-surface: var(--herrera-form-surface);
    --checkout-form-surface: var(--herrera-form-surface);
}

/* Neutral inset panels include consent blocks, help panels and payment details. */
body.herrera-storefront :is(.commerce-main, .checkout-shell, .checkout-status-card)
    :is(div, section, aside, article, label, fieldset, thead, li):is(.bg-slate-50, .bg-slate-100, [class~="bg-slate-100/70"]),
body.herrera-storefront :is(.auth-form-card, .auth-side-card, .contact-form-card, .returns-form-card, .returns-help-card, .checkout-card, .checkout-login-card, .auth-mobile-form, .contact-mobile-form, .returns-mobile-form),
body.herrera-storefront .commerce-main fieldset,
body.herrera-storefront.account-profile-commerce-body .commerce-main form.border-slate-200.bg-white,
body.herrera-storefront.account-commerce-body .commerce-account-nav > div,
body.herrera-storefront.account-commerce-body :is([data-account-status="approved"], .quick-order-search-panel, .quick-order-selection-heading, .quick-order-footer),
body.herrera-storefront.mobile-commerce-body .card.card-style:has(> .content > form),
body.herrera-storefront .commerce-main table thead,
body.herrera-storefront .product-detail-lower .product-detail-comment-form {
    background-color: var(--herrera-form-surface);
    background-image: var(--herrera-surface-pattern);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: var(--herrera-form-pattern-size);
    background-attachment: fixed;
}

@media (max-width: 1023px) {
    body.herrera-storefront {
        --herrera-form-pattern-size: 100vw max(600px, 100vh);
    }
}

/* Text links are explicit so navigation, product titles and action buttons keep their design. */
body.herrera-storefront .store-text-link,
body.herrera-storefront .content-richtext a,
body.herrera-storefront .legal-warranty-notice:not(.legal-warranty-notice--footer) > a,
body.herrera-storefront .legal-warranty-modal-footer > a {
    color: var(--herrera-action, #007b8b);
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}

body.herrera-storefront .store-text-link:hover,
body.herrera-storefront .content-richtext a:hover,
body.herrera-storefront .legal-warranty-notice:not(.legal-warranty-notice--footer) > a:hover,
body.herrera-storefront .legal-warranty-modal-footer > a:hover {
    color: #005f6c;
    text-decoration: underline;
}

body.herrera-storefront .store-text-link:focus-visible,
body.herrera-storefront .content-richtext a:focus-visible {
    outline: 2px solid var(--herrera-action, #007b8b);
    outline-offset: 3px;
}

.store-form-required {
    display: inline;
    margin-inline-start: .2em;
    color: #bd3042;
    font-weight: 600;
    line-height: 1;
}

body.herrera-storefront .herrera-newsletter-email-label {
    margin-bottom: -4px;
    color: #58686e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
