/* The shared notice is intentionally independent of the store/payment dialogs. */
body.urgent-notice-open {
    overflow: hidden;
}

.urgent-notice {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(480px, calc(100vw - 32px));
    max-width: 480px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 26px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(225, 25, 25, .48);
    border-radius: 18px;
    color: #f5f5f5;
    background: #111214;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .025) inset;
    font-family: Arial, sans-serif;
    text-align: left;
    color-scheme: dark;
}

.urgent-notice::backdrop {
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(3px);
}

.urgent-notice__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.urgent-notice__eyebrow {
    color: #e5e5e5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
}

.urgent-notice .urgent-notice__close {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: -7px -7px -7px 0;
    padding: 0;
    border: 1px solid #3e3e41;
    border-radius: 10px;
    background: #1c1d20;
    color: #fafafa;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.urgent-notice .urgent-notice__close:hover:not(:disabled) {
    border-color: #e11919;
    background: #30191a;
}

.urgent-notice .urgent-notice__close:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.urgent-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 1px solid rgba(225, 25, 25, .65);
    border-radius: 14px;
    background: rgba(225, 25, 25, .12);
    color: #ff5555;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.urgent-notice h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(23px, 5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.urgent-notice .urgent-notice__message {
    margin: 0;
    color: #d8d8da;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.urgent-notice .urgent-notice__link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    margin-top: 24px;
    padding: 12px 18px;
    border: 1px solid #e11919;
    border-radius: 9px;
    background: #e11919;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.urgent-notice .urgent-notice__link:hover {
    border-color: #f32b2b;
    background: #f32b2b;
}

.urgent-notice .urgent-notice__countdown {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid #2b2c2f;
    color: #a8a8ae;
    font-size: 12px;
    line-height: 1.5;
}

.urgent-notice :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.urgent-notice:focus {
    outline: none;
}

@media (max-width: 520px) {
    .urgent-notice {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 22px;
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .urgent-notice .urgent-notice__close { transition: none; }
}
