.cwp-top-banner {
    --cwp-top-banner-bg: #1f4a8a;
    background: var(--cwp-top-banner-bg);
    color: #f5efe4;
    width: 100%;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    z-index: 999;
    font-family: Inter;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 20%;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 600ms ease,
        visibility 0ms linear 600ms;

    p,
    a {
        @media (max-width: 768px) {
            font-size: 10.5px;
            line-height: 18px;
        }
    }
}

.cwp-top-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    position: relative;
}

.cwp-top-banner__text {
    text-align: center;
}

.cwp-top-banner__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
    &:hover {
        color: #DDB8CA;
        text-decoration: underline;
    }
}

.cwp-top-banner__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0.9;

    img {
        width: 14px;
        height: 14px;
    }

    @media (max-width: 768px) {
        display: none;
    }
}

.cwp-top-banner__close:hover {
    opacity: 1;
}

.cwp-top-banner__close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.cwp-top-banner__close span {
    font-size: 22px;
    line-height: 1;
}

.cwp-top-banner.is-hidden {
    display: none !important;
}

.cwp-top-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 600ms ease,
        visibility 0ms;
}

.cwp-top-banner.is-closing {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 450ms ease,
        visibility 0ms linear 450ms;
}

@media (prefers-reduced-motion: reduce) {
    .cwp-top-banner,
    .cwp-top-banner.is-visible,
    .cwp-top-banner.is-closing {
        transition: none;
    }
}
