/* Announcement dialog and cache-busted navigation additions. */
body.store-notice-open {
    overflow: hidden;
}

.store-notice-modal {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.store-notice-modal.is-open {
    display: flex;
}

.store-notice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 31, 38, .52);
    backdrop-filter: blur(3px);
}

.store-notice-dialog {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(760px, 100%);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    outline: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(12, 26, 38, .28);
}

.store-notice-dialog__header {
    position: relative;
    padding: 20px 24px 14px;
    border-bottom: 1px solid rgba(44, 58, 70, .1);
}

.store-notice-dialog__eyebrow {
    color: #8a929b;
    font-size: 10px;
    font-weight: 800;
}

.store-notice-dialog__header h2 {
    margin: 5px 0 0;
    color: #20262d;
    font-size: 20px;
    font-weight: 800;
}

.store-notice-dialog__header h2 i {
    margin-right: 6px;
}

.store-notice-dialog__close {
    position: absolute;
    top: 16px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(44, 58, 70, .12);
    border-radius: 50%;
    background: #fff;
    color: #59636e;
    cursor: pointer;
}

.store-notice-dialog__content {
    min-height: 180px;
    padding: 22px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #48535f;
    font-size: 13px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
}

.store-notice-dialog__content img {
    max-width: 100%;
    height: auto;
}

.store-notice-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 20px 16px;
    border-top: 1px solid rgba(44, 58, 70, .1);
}

.store-notice-dialog__footer button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.store-notice-dialog__cancel {
    border: 1px solid rgba(44, 58, 70, .15);
    background: #fff;
    color: #4b5661;
}

.store-notice-dialog__confirm {
    border: 1px solid #111;
    background: #111;
    color: #fff;
}

.store-notice-dialog__footer small {
    flex: 0 0 100%;
    color: #9299a1;
    font-size: 10px;
    text-align: right;
}

@media (max-width: 767.98px) {
    .store-notice-modal {
        align-items: flex-end;
        padding: 8px;
    }

    .store-notice-dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    .store-notice-dialog__header {
        padding: 16px 17px 12px;
    }

    .store-notice-dialog__header h2 {
        font-size: 18px;
    }

    .store-notice-dialog__close {
        top: 12px;
        right: 12px;
    }

    .store-notice-dialog__content {
        min-height: 140px;
        padding: 17px;
        font-size: 12px;
        line-height: 1.75;
    }

    .store-notice-dialog__footer {
        padding: 11px 13px 13px;
    }

    .store-notice-dialog__footer button {
        flex: 1 1 0;
        min-height: 42px;
        padding: 0 10px;
    }

    .store-notice-dialog__footer small {
        text-align: center;
    }

    body.storefront-body .navbar-nav {
        gap: 4px;
    }

    body.storefront-body .navbar-nav .nav-link {
        gap: 3px;
        padding-right: 3px;
        padding-left: 3px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-notice-modal,
    .store-notice-dialog {
        scroll-behavior: auto;
    }
}
