/*=========== File Details ===========
*** Storefront site notices (banner + toast panel)
====================================*/

/* Top banner — sits just below the live nav height, under dropdowns */
.site-notice-banner {
    position: fixed;
    top: var(--mk-menu-bar-bottom, var(--mk-menu-bar-height, 5.5rem));
    left: 0;
    right: 0;
    z-index: 996;
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, #606AA0 0%, #4c5485 50%, #343a61 100%);
    color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.site-notice-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.55rem 1rem;
}

.site-notice-banner-text {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
}

.site-notice-banner-link {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-notice-banner-link:hover,
.site-notice-banner-link:focus {
    color: #000;
}

body:has(#site-notice-banner) .icons-slider.mobile-slider {
    top: calc(var(--mk-menu-bar-bottom, 98px) + var(--mk-site-notice-banner-height, 2.25rem));
}

/* Toast panel */
.site-notice-toast-root {
    display: none;
    position: fixed;
    left: 1rem;
    bottom: 20%;
    z-index: 98;
    width: min(320px, calc(100vw - 2rem));
}

.site-notice-toast-root.is-visible,
.site-notice-toast-root:not([hidden]) {
    display: block;
}

.site-notice-toast-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid #ffba00;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.site-notice-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #232323;
    color: #ffffff;
}

.site-notice-toast-header-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-notice-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
    background: transparent;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.site-notice-toast-close:hover,
.site-notice-toast-close:focus {
    background: rgba(255, 255, 255, 0.15);
}

.site-notice-toast-body {
    padding: 1rem;
    min-height: 120px;
}

.site-notice-toast-card-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #232323;
}

.site-notice-toast-card-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #333333;
}

.site-notice-toast-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.25rem;
    background: #ffba00;
    color: #232323;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.site-notice-toast-card-link:hover,
.site-notice-toast-card-link:focus {
    background: #e6a800;
    color: #000;
}

.site-notice-toast-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
    border-top: 1px solid #eeeeee;
}

.site-notice-toast-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #cccccc;
    border-radius: 0.25rem;
    background: #ffffff;
    color: #232323;
    cursor: pointer;
}

.site-notice-toast-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.site-notice-toast-nav-btn:not(:disabled):hover,
.site-notice-toast-nav-btn:not(:disabled):focus {
    border-color: #ffba00;
    color: #000;
}

.site-notice-toast-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
}

.site-notice-toast-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cccccc;
    cursor: pointer;
}

.site-notice-toast-dot.is-active {
    background: #ffba00;
}

.site-notice-reopen-btn {
    display: none;
    position: fixed;
    left: 1rem;
    bottom: 20%;
    z-index: 98;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 2px solid #ffba00;
    border-radius: 50%;
    background: #232323;
    color: #ffba00;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.site-notice-reopen-btn:hover,
.site-notice-reopen-btn:focus {
    background: #000;
    color: #ffffff;
}

.site-notice-reopen-btn.is-visible,
.site-notice-reopen-btn:not([hidden]) {
    display: inline-flex;
}

@media only screen and (max-width: 850px) {
    .site-notice-toast-root,
    .site-notice-reopen-btn {
        bottom: 5rem;
    }

    .site-notice-banner-inner {
        padding: 0.55rem 1.25rem;
    }

    .site-notice-banner-text {
        font-size: 0.82rem;
        line-height: 1.5;
    }
}
