.cms-alert {
    --alert-accent: #7c9a55;
    --alert-text: #342d2c;
    --alert-heading: #5a1f2b;
    --alert-surface: #f5f0e3;
    --alert-border: rgba(90, 31, 43, 0.14);
    color: var(--alert-text);
    padding-top: var(--alert-padding-top, 0);
    padding-bottom: var(--alert-padding-bottom, 0);
}

.cms-alert--info {
    --alert-accent: #2fbeef;
}

.cms-alert--warning {
    --alert-accent: #e0be53;
}

.cms-alert--urgent {
    --alert-accent: #a64d3b;
}

.cms-alert__inner {
    align-items: center;
    display: flex;
    gap: 22px;
    margin: 0 auto;
    max-width: 1180px;
    width: min(100% - 32px, 1180px);
}

.cms-alert--banner {
    background: var(--alert-surface);
    border-bottom: 1px solid var(--alert-border);
    border-top: 1px solid var(--alert-border);
    position: sticky;
    top: 0;
    z-index: 1200;
}

.cms-alert--banner .cms-alert__inner {
    gap: 14px;
    min-height: 54px;
    padding: 8px 0;
}

.cms-alert--banner .cms-alert__icon {
    flex-basis: 38px;
    font-size: 16px;
    height: 38px;
    width: 38px;
}

.cms-alert--banner .cms-alert__content h2 {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.12;
    margin-bottom: 2px;
}

.cms-alert--banner .cms-alert__content p {
    font-size: 14px;
    line-height: 1.35;
}

.cms-alert--banner .cms-alert__button {
    font-size: 12px;
    min-height: 34px;
    padding: 8px 15px;
}

.cms-alert__icon {
    align-items: center;
    background: var(--alert-accent);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 54px;
    font-size: 22px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.cms-alert__content {
    flex: 1 1 auto;
}

.cms-alert__content h2 {
    color: var(--alert-heading);
    font-family: "Calistoga", Georgia, serif;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
    margin: 0 0 8px;
}

.cms-alert__content p {
    color: #3d3837;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

.cms-alert__button {
    align-items: center;
    background: #7c9a55;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    letter-spacing: 0;
    min-height: 44px;
    padding: 12px 22px;
    text-decoration: none;
    text-transform: uppercase;
}

.cms-alert__actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.cms-alert--popup .cms-alert__actions {
    margin-top: 18px;
}

.cms-alert__button--document {
    background: #5a1f2b;
}

.cms-alert__button:focus,
.cms-alert__button:hover {
    background: #5a1f2b;
    color: #fff;
    text-decoration: none;
}

.cms-alert-popup[hidden] {
    display: none;
}

.cms-alert-popup {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 99999;
}

.cms-alert-popup__overlay {
    background: rgba(21, 19, 18, 0.58);
    inset: 0;
    position: absolute;
}

.cms-alert--popup {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 13, 12, 0.28);
    max-width: 720px;
    padding: 36px;
    position: relative;
    width: min(100%, 720px);
}

.cms-alert--popup .cms-alert__inner {
    align-items: flex-start;
    width: 100%;
}

.cms-alert-popup__close {
    align-items: center;
    background: #f5f0e3;
    border: 0;
    border-radius: 50%;
    color: #5a1f2b;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
}

.cms-alert-popup__close:hover,
.cms-alert-popup__close:focus {
    background: #e0be53;
    color: #342d2c;
    outline: 3px solid #551d26;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .cms-alert__inner,
    .cms-alert--popup .cms-alert__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cms-alert__button {
        width: 100%;
    }

    .cms-alert__actions {
        width: 100%;
    }

    .cms-alert--popup {
        padding: 34px 22px 24px;
    }
}
