.site-popup-root,
.site-popup-overlay {
    box-sizing: border-box;
}

.site-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(15, 23, 42, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.site-popup-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.site-popup-root {
    position: fixed;
    z-index: 2147483001;
    width: min(400px, calc(100vw - 32px));
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.site-popup-root.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.site-popup--closing {
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-popup {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: min(78vh, 680px);
    overflow-y: auto;
    background: #fffffff0;
    color: #17202e;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .18);
    font-family: inherit;
}

.site-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: #111827;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}

.site-popup__image {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
    background: #eef1f5;
}

.site-popup__body {
    padding: 19px;
}

.site-popup__title {
    margin: 0 38px 8px 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
}

.site-popup__text {
    margin: 0 0 14px;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.site-popup__coupon {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0 0 14px;
    padding: 0 12px;
    border: 1px dashed #b7a16a;
    border-radius: 8px;
    background: #fffdf6;
    color: #6f5a24;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: copy;
}

.site-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.site-popup__cta:hover {
    color: #fff;
    background: #263244;
    transform: translateY(-1px);
}

.site-popup__countdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.site-popup__countdown span {
    display: block;
    padding: 9px 6px;
    border: 1px solid #e8ebef;
    border-radius: 8px;
    background: #f9fafb;
    text-align: center;
}

.site-popup__countdown strong {
    display: block;
    font-size: 18px;
    line-height: 1;
    color: #111827;
}

.site-popup__countdown small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}

.site-popup__posts {
    display: grid;
    gap: 10px;
}

.site-popup__post {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 14px;
    gap: 11px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 8px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    transition: border-color .18s ease, background .18s ease;
}

.site-popup__post:hover {
    color: inherit;
    border-color: #d7dde6;
    background: #fbfcfd;
}

.site-popup__post img,
.site-popup__post-empty {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: #edf0f4;
}

.site-popup__post strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #111827;
}

.site-popup__post small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.site-popup--right-bottom {
    right: 22px;
    bottom: 22px;
}

.site-popup--left-bottom {
    left: 22px;
    bottom: 22px;
}

.site-popup--right-top {
    right: 22px;
    top: 22px;
}

.site-popup--left-top {
    left: 22px;
    top: 22px;
}

.site-popup--bottom-center {
    left: 50%;
    bottom: 22px;
    transform: translate3d(-50%, 16px, 0);
}

.site-popup--bottom-center.is-visible {
    transform: translate3d(-50%, 0, 0);
}

.site-popup--center {
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -46%, 0) scale(.98);
}

.site-popup--center.is-visible {
    transform: translate3d(-50%, -50%, 0) scale(1);
}

.site-popup--fade-slide-up {
    transform: translate3d(0, 18px, 0);
}

.site-popup--fade-slide-left {
    transform: translate3d(22px, 0, 0);
}

.site-popup--soft-zoom {
    transform: scale(.96);
}

.site-popup--none {
    transition: none;
    transform: none;
}

@media (max-width: 767.98px) {
    .site-popup-root {
        width: calc(100vw - 28px);
    }

    .site-popup--right-bottom,
    .site-popup--left-bottom,
    .site-popup--bottom-center {
        left: 14px;
        right: 14px;
        bottom: 16px;
        transform: translate3d(0, 16px, 0);
    }

    .site-popup--right-top,
    .site-popup--left-top {
        left: 14px;
        right: 14px;
        top: 16px;
    }

    .site-popup--center {
        left: 14px;
        right: 14px;
        top: 50%;
        transform: translate3d(0, -46%, 0) scale(.98);
    }

    .site-popup--center.is-visible {
        transform: translate3d(0, -50%, 0) scale(1);
    }

    .site-popup__image {
        height: 138px;
    }

    .site-popup__body {
        padding: 16px;
    }

    .site-popup__title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-popup-root,
    .site-popup-overlay,
    .site-popup__cta {
        transition: none;
    }
}
