body.acs-popup-open {
    overflow: hidden;
}

.acs-site-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.acs-site-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.acs-site-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    cursor: pointer;
}

.acs-site-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    animation: acsPopupIn 0.3s ease;
}

.acs-site-popup__dialog--wide {
    width: min(100%, 720px);
}

@keyframes acsPopupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.acs-site-popup__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease;
}

.acs-site-popup__close:hover {
    background: #fff;
    color: #0f172a;
}

.acs-site-popup__image-wrap {
    display: block;
    line-height: 0;
}

.acs-site-popup__image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.acs-site-popup__image-wrap:last-child img {
    border-radius: 12px;
}

.acs-site-popup__body {
    padding: 1.75rem 1.75rem 1.5rem;
}

.acs-site-popup__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.acs-site-popup__text {
    margin: 0 0 1.25rem;
    color: #475569;
    line-height: 1.6;
    white-space: pre-line;
}

.acs-site-popup__btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    background: #278ef2;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.acs-site-popup__btn:hover {
    background: #1a73d9;
    color: #fff !important;
}

.acs-site-popup__footer {
    padding: 0 1.75rem 1.25rem;
    text-align: center;
}

.acs-site-popup__dismiss {
    border: none;
    background: none;
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem;
}

.acs-site-popup__dismiss:hover {
    color: #334155;
}

@media (max-width: 575px) {
    .acs-site-popup__body {
        padding: 1.25rem 1.25rem 1rem;
    }

    .acs-site-popup__title {
        font-size: 1.15rem;
        padding-right: 2rem;
    }
}
