.geek-alert-bar[hidden],
.geek-alert-popup[hidden] {
    display: none !important;
}

.geek-alert-bar,
.geek-alert-bar *,
.geek-alert-popup,
.geek-alert-popup * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.geek-alert-bar {
    position: relative;
    z-index: 9998;
    width: 100%;
    background: var(--geek-alert-accent, #0f68ff);
    color: var(--geek-alert-contrast, #fff);
    font-family: inherit;
}

.geek-alert-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    width: min(100% - 32px, 1480px);
    min-height: 42px;
    margin: 0 auto;
    padding: 7px 0;
}

.geek-alert-bar__title {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

.geek-alert-bar__title.is-bold { font-weight: 800; }

.geek-alert-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    flex: 0 0 auto;
    padding: 4px 10px;
    border: 1px solid currentColor;
    border-radius: 5px;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.geek-alert-bar__button:hover,
.geek-alert-bar__button:focus-visible {
    background: var(--geek-alert-contrast, #fff);
    color: var(--geek-alert-accent, #0f68ff);
    text-decoration: none;
}

.geek-alert-bar__close,
.geek-alert-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.geek-alert-bar__close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-left: 2px;
    padding: 0;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    opacity: 0.78;
}

.geek-alert-bar__close:hover,
.geek-alert-bar__close:focus-visible {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.geek-alert-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: inherit;
    opacity: 0;
    transition: opacity 180ms ease;
}

.geek-alert-popup.is-open {
    opacity: 1;
}

.geek-alert-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 36, 0.58);
}

.geek-alert-popup__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: min(720px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 34px;
    transform: translateY(12px);
    border-top: 5px solid var(--geek-alert-accent, #0f68ff);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 22, 36, 0.3);
    color: #172033;
    transition: transform 180ms ease;
}

.geek-alert-popup.is-open .geek-alert-popup__dialog {
    transform: translateY(0);
}

.geek-alert-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #657083;
    font-size: 26px;
    line-height: 1;
}

.geek-alert-popup__close:hover,
.geek-alert-popup__close:focus-visible {
    color: #172033;
    outline: 2px solid var(--geek-alert-accent, #0f68ff);
    outline-offset: 1px;
}

.geek-alert-popup__type {
    display: block;
    margin-bottom: 10px;
    color: var(--geek-alert-accent, #0f68ff);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.geek-alert-popup__dialog h2 {
    margin: 0;
    padding-right: 28px;
    color: #172033;
    font-size: 28px;
    line-height: 1.2;
}

.geek-alert-popup__dialog p {
    margin: 14px 0 22px;
    color: #5c6678;
    font-size: 16px;
    line-height: 1.6;
}

body.geek-alert-popup-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .geek-alert-bar__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 8px;
        width: min(100% - 20px, 1480px);
        min-height: 48px;
        padding: 8px 0;
    }

    .geek-alert-bar__title {
        text-align: left;
    }

    .geek-alert-bar__button {
        align-self: center;
        max-width: 110px;
        text-align: center;
    }

    .geek-alert-bar__close {
        align-self: center;
    }

    .geek-alert-popup {
        align-items: end;
        padding: 12px;
    }

    .geek-alert-popup__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 28px 22px 24px;
    }

    .geek-alert-popup__dialog h2 {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .geek-alert-popup,
    .geek-alert-popup__dialog {
        transition: none;
    }
}
