:root {
    --wpaan-bg: #111827;
    --wpaan-text: #ffffff;
}

.wpaan-alert,
.wpaan-alert * {
    box-sizing: border-box;
}

.wpaan-alert {
    position: fixed;
    z-index: 999999;
    background: var(--wpaan-bg);
    color: var(--wpaan-text);
    font-family: inherit;
    line-height: 1.45;
}

.wpaan-alert a {
    color: var(--wpaan-text);
}

.wpaan-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wpaan-text);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    opacity: .78;
}

.wpaan-close:hover,
.wpaan-close:focus {
    opacity: 1;
}

.wpaan-ticker {
    left: 0;
    right: 0;
    top: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 56px 0 0;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
}

.wpaan-ticker-label {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-right: 1px solid currentColor;
    white-space: nowrap;
}

.wpaan-ticker-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0 18px;
}

.wpaan-title-link {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
    animation: wpaan-ticker-scroll 18s linear infinite;
}

@keyframes wpaan-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.admin-bar .wpaan-ticker {
    top: 32px;
}

.wpaan-popup {
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 34px;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    opacity: 0;
    transform: translate(-50%, -46%);
    transition: opacity .25s ease, transform .25s ease;
}

.wpaan-popup.wpaan-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.wpaan-slidein {
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 32px));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateX(calc(100% + 40px));
    transition: opacity .3s ease, transform .3s ease;
}

.wpaan-slidein.wpaan-visible {
    opacity: 1;
    transform: translateX(0);
}

.wpaan-kicker {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .78;
}

.wpaan-title {
    margin: 0 42px 10px 0;
    color: var(--wpaan-text);
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.18;
}

.wpaan-excerpt {
    margin: 0 0 18px;
    color: var(--wpaan-text);
    opacity: .9;
}

.wpaan-button {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid currentColor;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
}

.wpaan-button:hover,
.wpaan-button:focus {
    background: var(--wpaan-text);
    color: var(--wpaan-bg);
}

.wpaan-hidden {
    display: none !important;
}

@media (max-width: 782px) {
    .admin-bar .wpaan-ticker {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .wpaan-ticker {
        min-height: 48px;
    }

    .wpaan-ticker-label {
        padding: 0 10px;
        font-size: 11px;
    }

    .wpaan-ticker-track {
        padding: 0 10px;
    }

    .wpaan-slidein {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpaan-popup,
    .wpaan-slidein {
        transition: none;
    }

    .wpaan-title-link {
        padding-left: 0;
        animation: none;
    }
}
