.site-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.site-popup-overlay.show .site-popup-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

body.site-popup-open {
    overflow: hidden;
}

.site-popup-dialog {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    transform: translateY(18px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-popup-design-image_left,
.site-popup-design-split_dark {
    max-width: 860px;
}

.site-popup-design-minimal {
    max-width: 460px;
}

.site-popup-design-promo {
    max-width: 560px;
}

.site-popup-design-newsletter {
    max-width: 520px;
}

.site-popup-design-glass {
    max-width: 540px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.site-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #19191a;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-popup-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.site-popup-body {
    padding: 36px;
}

.site-popup-body-split {
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
}

.site-popup-body-classic {
    position: relative;
    overflow: hidden;
}

.site-popup-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tp-theme-shop), #ff6b6b);
}

.site-popup-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.site-popup-image-side {
    flex: 0 0 44%;
    min-width: 240px;
}

.site-popup-image-side img {
    height: 100%;
    min-height: 300px;
    border-radius: 16px 0 0 16px;
}

.site-popup-image-hero img {
    max-height: 280px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.site-popup-design-image_top .site-popup-body {
    padding: 0;
}

.site-popup-design-image_top .site-popup-content {
    padding: 28px 36px 36px;
}

.site-popup-image-badge img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.06);
}

.site-popup-image-glass img {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.site-popup-title {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--tp-common-black);
    font-family: var(--tp-ff-onest);
    font-weight: 600;
}

.site-popup-title-promo {
    font-size: 42px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--tp-theme-shop);
    letter-spacing: -0.02em;
}

.site-popup-title-light {
    color: #fff;
}

.site-popup-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tp-theme-shop);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
}

.site-popup-kicker-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.site-popup-subtitle {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--tp-theme-shop);
    font-weight: 500;
}

.site-popup-text {
    font-size: 16px;
    line-height: 1.65;
    color: #5a5a5a;
}

.site-popup-body-minimal {
    padding: 28px 32px;
}

.site-popup-body-minimal .site-popup-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.site-popup-body-promo {
    background: linear-gradient(180deg, #fff9f5 0%, #fff 55%);
    border-radius: 16px;
}

.site-popup-body-newsletter {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.site-popup-newsletter-inner {
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 28px 24px;
}

.site-popup-split-dark-panel {
    position: relative;
    flex: 0 0 46%;
    min-width: 260px;
    background: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.site-popup-image-cover {
    position: absolute;
    inset: 0;
}

.site-popup-image-cover img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.site-popup-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.site-popup-split-dark-content {
    position: relative;
    z-index: 1;
    padding: 32px 28px;
}

.site-popup-split-light-panel {
    flex: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-popup-design-image_left .site-popup-content {
    padding: 36px 32px 36px 0;
}

.site-popup-design-image_left .site-popup-body-split .site-popup-content {
    padding: 36px 32px;
}

.site-popup-actions .ss-shop-btn {
    min-width: 140px;
}

.site-popup-actions .ss-shop-btn.cancel-btn {
    background: transparent;
    color: var(--tp-common-black);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    .site-popup-body {
        padding: 24px 20px;
    }

    .site-popup-body-split {
        flex-direction: column;
    }

    .site-popup-image-side {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-popup-image-side img {
        min-height: 200px;
        border-radius: 16px 16px 0 0;
    }

    .site-popup-split-dark-panel {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 220px;
        border-radius: 16px 16px 0 0;
    }

    .site-popup-split-light-panel {
        padding: 24px 20px 28px;
    }

    .site-popup-design-image_top .site-popup-content {
        padding: 20px;
    }

    .site-popup-design-image_left .site-popup-body-split .site-popup-content {
        padding: 24px 20px;
    }

    .site-popup-title-promo {
        font-size: 30px;
    }

    .site-popup-title {
        font-size: 24px;
    }
}
