/* Shared public/authenticated home geometry. Keep radius tokens scoped to content:
   the legacy premium rules have high specificity and consume these variables. */
html body .site-shell .store-home > :is(
    .vjs-full-home-banner, .home-slider, .home-categories,
    .home-dynamic-cms-row, .official-clean, .home-empty-state,
    .vjs-cms-managed-content-section, .vjs-cms-testimonials-section
),
html body .site-shell .benefit-strip {
    --vjs-client-premium-radius-card: 0px;
    --vjs-client-premium-radius-panel: 0px;
    --vjs-client-premium-radius-control: 0px;
    --vjs-client-premium-radius-small: 0px;
    --vjs-client-premium-radius-icon: 0px;
    --vjs-home-unified-radius: 0px;
    --vjs-home-unified-radius-sm: 0px;
    --vjs-home-pin-photo-radius: 0px;
    --vjs-uiux-radius-card: 0px;
    --vjs-uiux-radius-control: 0px;
    --vjs-radius-lg: 0px;
    --vjs-client-radius-md: 0px;
    --vjs-client-radius-sm: 0px;
}

html body .site-shell .store-home :is(
    .vjs-full-home-banner, .home-slider, .home-categories,
    .home-dynamic-cms-row, .official-clean, .home-empty-state,
    .vjs-cms-managed-content-section, .vjs-cms-testimonials-section
),
html body .site-shell .store-home :is(
    .vjs-full-home-banner, .home-slider, .home-categories,
    .home-dynamic-cms-row, .official-clean, .home-empty-state,
    .vjs-cms-managed-content-section, .vjs-cms-testimonials-section
) *,
html body .site-shell .store-home :is(
    .home-category-card, .home-category-banner, .home-product-row,
    .home-dynamic-card, .home-dynamic-item, .official-clean, .logo-card
)::before,
html body .site-shell .store-home :is(
    .home-category-card, .home-category-banner, .home-product-row,
    .home-dynamic-card, .home-dynamic-item, .official-clean, .logo-card
)::after,
html body .site-shell .benefit-strip,
html body .site-shell .benefit-strip *,
html body .site-shell .benefit-strip .benefit .benefit-icon,
html body .site-shell .benefit-strip .benefit::before,
html body .site-shell .benefit-strip .benefit::after {
    border-radius: 0 !important;
    border-start-start-radius: 0 !important;
    border-start-end-radius: 0 !important;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

/* Transparent artwork corners need an opaque backing, not a rounded mask. */
html body .site-shell .page-space .store-home :is(
    .vjs-full-home-banner, .vjs-full-home-banner__frame,
    .vjs-full-home-banner__slide, .vjs-full-home-banner__image,
    .home-categories--manual-pin .home-category-banner.has-media
) {
    background: #000 !important;
    clip-path: none !important;
    mask: none !important;
    overflow: hidden !important;
}

html body .site-shell .page-space .store-home .home-category-banner.has-media :is(img, video) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #000 !important;
}

html body .site-shell .page-space .store-home :is(
    .home-category-card, .home-product-list, .home-dynamic-card, .official-clean
) {
    background: var(--vjs-client-surface, #fff) !important;
}

html body .site-shell .page-space .store-home .home-product-list {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Containers stay still; feedback belongs to the individual interactive item. */
html body .site-shell .page-space .store-home :is(
    .home-category-card, .home-dynamic-card, .official-clean
),
html body .site-shell .page-space .store-home :is(
    .home-category-card, .home-dynamic-card, .official-clean
):is(:hover, :focus-within) {
    transform: none !important;
    border-color: var(--vjs-client-border, #dbe7ef) !important;
    box-shadow: var(--vjs-client-shadow-card, none) !important;
}

html body .site-shell .page-space .store-home :is(.home-product-row, .home-dynamic-item) {
    background: var(--vjs-client-surface, #fff) !important;
    background-image: none !important;
    border: 1px solid var(--vjs-client-border-soft, #e4ebf3) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .16s ease, border-color .16s ease !important;
}

html body .site-shell .page-space .store-home :is(.home-product-row, .home-dynamic-item):is(:hover, :focus-visible, :active) {
    background: color-mix(in srgb, var(--brand-soft, #e0f2f2) 46%, var(--vjs-client-surface, #fff)) !important;
    border-color: rgba(var(--vjs-primary-rgb, 0, 102, 102), .25) !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}

html body .site-shell .page-space .store-home :is(.home-product-row, .home-dynamic-item, a.logo-card):focus-visible {
    outline: 2px solid var(--brand, #006666) !important;
    outline-offset: -2px !important;
}

html body .site-shell .page-space .store-home .logo-card,
html body .site-shell .page-space .store-home .logo-card:is(:hover, :focus-visible),
html body .site-shell .benefit-strip .benefit,
html body .site-shell .benefit-strip .benefit:is(:hover, :focus-within) {
    transform: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html body .site-shell .benefit-strip .benefit,
html body .site-shell .benefit-strip .benefit:hover {
    border-color: rgba(var(--vjs-primary-rgb, 0, 102, 102), .16) !important;
    background: var(--vjs-client-surface, #fff) !important;
}

/* Keep decorative surfaces separate from the square geometry of content. */
html body .site-shell .benefit-strip .benefit::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Compact section spacing without changing service rows or their content. */
html body .site-shell .page-space .store-home .home-dynamic-card--service-grid {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

html body .site-shell .page-space .store-home .home-dynamic-card--service-grid .home-dynamic-head {
    margin-bottom: 6px !important;
}

html body .site-shell .page-space .store-home .official-clean {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

html body .site-shell .page-space .store-home .official-clean .official-logo-rail {
    margin-top: 0 !important;
}

html body .site-shell .page-space .store-home .official-clean > .home-dynamic-subtitle {
    margin-bottom: 8px !important;
}

html body .site-shell .page-space .store-home .official-clean .logo-card {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
}

html body .site-shell .page-space .store-home .official-clean .logo-card.is-empty-photo .home-photo-placeholder-icon {
    width: 54px !important;
    height: 54px !important;
}

@media (max-width: 900px) {
    html body .site-shell .page-space .store-home .official-clean .logo-card {
        height: 86px !important;
        min-height: 86px !important;
        max-height: 86px !important;
    }

    html body .site-shell .page-space .store-home .official-clean .logo-card.is-empty-photo .home-photo-placeholder-icon {
        width: 46px !important;
        height: 46px !important;
    }
}

html body .site-shell .page-space .store-home .official-clean .section-title {
    display: block !important;
    margin: 0 18px 8px !important;
    padding: 0 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: none !important;
}

html body .site-shell .page-space .store-home .official-clean .section-title,
html body .site-shell .page-space .store-home .official-clean .official-title-text {
    color: #b8860b !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-box-reflect: initial !important;
    animation: none !important;
}

html body .site-shell .page-space .store-home .official-clean .official-title-text {
    display: inline !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 1px 0 rgba(255, 221, 128, .48), 0 2px 4px rgba(120, 78, 0, .14) !important;
}

html body .site-shell .page-space .store-home .official-clean .section-title::before,
html body .site-shell .page-space .store-home .official-clean .section-title::after,
html body .site-shell .page-space .store-home .official-clean .official-title-text::before,
html body .site-shell .page-space .store-home .official-clean .official-title-text::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 700px) {
    html body .site-shell .page-space .store-home .official-clean .section-title {
        font-size: 24px !important;
        margin-inline: 16px !important;
    }
}

/* The terms modal moves outside site-shell; compact only its top and bottom bars. */
html body .home-terms-modal__header {
    padding-top: 8px;
    padding-bottom: 8px;
}

html body .home-terms-modal__header > div {
    min-width: 0;
}

html body .home-terms-modal__footer {
    padding-top: 6px;
    padding-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
    html body .site-shell .store-home :is(.home-product-row, .home-dynamic-item) {
        transition: none !important;
    }
}

/* The primary home banner keeps a subtle radius despite the square-edge reset. */
html body .site-shell .store-home .vjs-full-home-banner,
html body .site-shell .store-home .vjs-full-home-banner .vjs-full-home-banner__frame,
html body .site-shell .store-home .vjs-full-home-banner .vjs-full-home-banner__slide,
html body .site-shell .store-home .vjs-full-home-banner .vjs-full-home-banner__image,
html body .site-shell .store-home .vjs-full-home-banner .vjs-full-home-banner__empty-photo {
    border-radius: 8px !important;
    overflow: hidden !important;
}
/* Home mandatory notice: visual treatment only; content and acceptance flow stay unchanged. */
html body .home-terms-modal {
    align-items: center !important;
    padding: 16px !important;
    background: rgba(8, 35, 34, .58) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}

html body .home-terms-modal__dialog {
    width: min(560px, 100%) !important;
    height: min(94dvh, 760px) !important;
    max-height: calc(100dvh - 28px) !important;
    border: 1px solid #c9dfd1 !important;
    border-radius: 16px !important;
    background: #f7fbf7 !important;
    box-shadow: 0 24px 64px rgba(8, 35, 34, .28), 0 4px 16px rgba(15, 118, 110, .12) !important;
    overflow: hidden !important;
}

html body .home-terms-modal__header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 22px 10px !important;
    border-bottom-color: #dcebe0 !important;
    background: #f1f8f2 !important;
    text-align: center !important;
}

html body .home-terms-modal__heading {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-align: center !important;
}

html body .home-terms-modal__notice {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 24px !important;
}

html body .home-terms-modal__mark {
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #d97706 !important;
}

html body .home-terms-modal__icon {
    width: 22px !important;
    height: 22px !important;
    color: #d97706 !important;
}

html body .home-terms-modal__eyebrow {
    margin: 0 !important;
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
}

html body .home-terms-modal__header h2 {
    text-align: center !important;
}

html body .home-terms-modal__header h2 {
    color: #173b30 !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
    font-weight: 720 !important;
    letter-spacing: 0 !important;
}

html body .home-terms-modal__content {
    padding: 18px 22px !important;
    color: #33483d !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    overscroll-behavior: contain !important;
    scrollbar-color: #16816e rgba(20, 123, 104, .12) !important;
}

html body .home-terms-modal__content::-webkit-scrollbar {
    width: 8px !important;
}

html body .home-terms-modal__content::-webkit-scrollbar-track {
    border-radius: 999px !important;
    background: rgba(20, 123, 104, .08) !important;
}

html body .home-terms-modal__content::-webkit-scrollbar-thumb {
    border: 2px solid transparent !important;
    border-radius: 999px !important;
    background: #16816e !important;
    background-clip: padding-box !important;
}

html body .home-terms-modal__content :where(h2, h3, strong) {
    color: #173b30 !important;
}

html body .home-terms-modal__content :where(p, blockquote, ul, ol, li) {
    white-space: normal !important;
}

html body .home-terms-modal__content :where(p, blockquote, ul, ol) {
    margin-bottom: 10px !important;
}

html body .home-terms-modal__content li {
    margin-bottom: 4px !important;
}

html body .home-terms-modal__content blockquote {
    border-left-color: #14816f !important;
    border-radius: 0 8px 8px 0 !important;
    background: #edf6ef !important;
}

html body .home-terms-modal__content a {
    color: #087b6b !important;
}

html body .home-terms-modal__footer {
    gap: 10px !important;
    padding: 7px 22px 8px !important;
    border-top-color: #dcebe0 !important;
    background: #f1f8f2 !important;
}

/* Both home flash modals follow the active public theme palette. */
html body [data-vjs-home-terms-modal] .home-terms-modal__header,
html body [data-vjs-home-terms-modal] .home-terms-modal__footer,
html body [data-vjs-home-welcome-modal] .home-terms-modal__header,
html body [data-vjs-home-welcome-modal] .home-terms-modal__footer {
    border-color: rgba(var(--vjs-primary-rgb, 0, 102, 102), .24) !important;
    background: var(--brand-soft, #E0F2F2) !important;
    background: linear-gradient(
        115deg,
        color-mix(in srgb, var(--brand, #006666) 12%, var(--brand-soft, #E0F2F2)),
        color-mix(in srgb, var(--vjs-seasonal-secondary, var(--brand-2, #004949)) 10%, var(--brand-soft, #E0F2F2))
    ) !important;
}

html body [data-vjs-home-terms-modal] .home-terms-modal__header h2,
html body [data-vjs-home-welcome-modal] .home-terms-modal__header h2 {
    color: var(--brand-2, #004949) !important;
}

html body .home-terms-modal__button {
    min-height: 42px !important;
    padding: 0 17px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

html body .home-terms-modal__button--decline {
    border-color: #cbd9cf !important;
    background: #fff !important;
    color: #405349 !important;
}

html body .home-terms-modal__button--decline:hover {
    border-color: #93bca3 !important;
    background: #edf6ef !important;
}

html body .home-terms-modal__button--accept,
html body .home-terms-modal__button--accept[disabled]:hover,
html body .home-terms-modal__button--accept[aria-disabled="true"]:hover {
    border-color: #147b68 !important;
    background: #147b68 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(20, 123, 104, .18) !important;
}

html body .home-terms-modal__button--accept:hover {
    border-color: #106858 !important;
    background: #106858 !important;
}

html body .home-terms-modal__button:focus-visible,
html body .home-terms-modal__content:focus-visible {
    outline-color: rgba(20, 123, 104, .35) !important;
}

@media (max-width: 520px) {
    html body .home-terms-modal {
        padding: 12px !important;
    }

    html body .home-terms-modal__dialog {
        width: 100% !important;
        height: 88dvh !important;
        max-height: calc(100dvh - 24px) !important;
    }

    html body .home-terms-modal__header {
        padding: 10px 16px 9px !important;
    }

    html body .home-terms-modal__header h2 {
        font-size: 20px !important;
    }

    html body .home-terms-modal__content {
        padding: 16px !important;
        font-size: 13px !important;
    }

    html body .home-terms-modal__footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        padding: 7px 16px 8px !important;
    }

    html body .home-terms-modal__button {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .home-terms-modal__dialog,
    html body .home-terms-modal__button {
        transition-duration: .001ms !important;
    }
}

/* Keep the unread count circular after the page-wide square-corner reset. */
html body[data-vjs-theme-engine="1"] .site-shell .header-stack .topbar .vjs-message-center-bell .vjs-message-center-bell__badge.vjs-safe-number {
    border-radius: 50% !important;
}

