/* Weekly store-closure overlay (layout/partials/closedModal.html).
   Deliberately NOT a Bootstrap modal: this is a real closure, so it must not be
   dismissible by Esc / backdrop click / a stray data-dismiss, and it must not depend
   on Bootstrap's JS having initialised. A fixed full-viewport layer at a z-index above
   the sticky header, revealed by the .is-open class from storeClosed.js. */

.store-closed-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 0; right: 0; bottom: 0; left: 0;   /* explicit sides for older WebKit */
    z-index: 20000;
    background: rgba(20, 20, 24, .82);
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.store-closed-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Locks the page behind the overlay so the closed store can't be scrolled/used. */
body.store-closed-locked {
    overflow: hidden;
}

.store-closed-panel {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
    max-width: 460px;
    width: 100%;
    margin: auto;
    padding: 36px 32px 32px;
    text-align: center;
}

.store-closed-panel .store-closed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--brand-primary-rgb), .10);
    color: var(--brand-primary);
    margin-bottom: 18px;
}

.store-closed-panel .store-closed-icon i {
    font-size: 32px;
    line-height: 1;
}

.store-closed-panel h3 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 500;
    color: #222;
}

.store-closed-panel p {
    margin: 0 0 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.55;
}

.store-closed-panel .store-closed-reopen {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--brand-primary);
    font-weight: 500;
}

.store-closed-panel .store-closed-countdown {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #8a8a8a;
}

@media (max-width: 480px) {
    .store-closed-overlay { padding: 16px; }
    .store-closed-panel { padding: 28px 22px 24px; }
    .store-closed-panel h3 { font-size: 22px; }
}
