.cv-popup-overlay {
    display: none;
}

.cv-popup-overlay.is-active {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, .78);
}

.cv-popup-box {
    width: min(940px, 100%);
    min-height: 390px;
    position: relative;
    padding: 34px 55px 56px;
    border-radius: 24px;
    background: #f3f3f3;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.cv-popup-close {
  position: absolute;
    top: 38px;
    right: 42px;
    border: 0;
    background: #ff4d86;
    color: white;
    border-radius: 20px;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px 5px 12px;
}

.cv-popup-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 28px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-popup-store-logo {
    max-width: 78%;
    max-height: 60%;
    object-fit: contain;
}

.cv-popup-content-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 44px;
}

.cv-popup-badge {
    width: 110px;
    height: 110px;
    position: relative;
    border: 2px solid #ff4d86;
    border-radius: 50%;
    background: #fff;
    color: #151947;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cv-popup-badge strong {
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.cv-popup-badge span {
    margin-top: 5px;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
}

.cv-popup-badge::after {
    content: "";
    width: 26px;
    height: 26px;
    position: absolute;
    left: 50%;
    bottom: -17px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 6px 6px 6px 0;
    background: #ff4d86;
}

.cv-popup-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    position: absolute;
    left: 50%;
    bottom: -5px;
    z-index: 2;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #fff;
}

.cv-popup-title {
    max-width: 560px;
    margin: 0;
    color: #25264f;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 400;
    text-align: left;
}

.cv-popup-code-wrap {
    width: 100%;
    max-width: 640px;
    height: 58px;
    margin: 0 auto;
    display: none;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    overflow: hidden;
}

.cv-popup-code-input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 28px;
    background: transparent;
    color: #000;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

.cv-popup-copy {
    height: 42px;
    min-width: 116px;
    margin-right: 8px;
    border: 0;
    border-radius: 999px;
    background: #ff4d86;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.cv-popup-store-btn {
    height: 46px;
    min-width: 155px;
    padding: 0 28px;
    border-radius: 999px;
    background: #ff4d86;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.cv-popup-store-btn:hover,
.cv-popup-copy:hover {
    background: #670BFF;
    color: #fff;
}

body.cv-popup-open {
    overflow: hidden;
}

i.cv-popup-badge-icon {
    color: #ff4d86;
    font-size: 32px;
}

@media (max-width: 575px) {

    .cv-popup-overlay.is-active {
        align-items: center;
        justify-content: center;
        padding: 22px 16px;
    }

    .cv-popup-box {
        width: 100%;
        max-width: 340px;
        min-height: auto;
        height: auto;
        padding: 24px 18px 24px;
        border-radius: 26px;
    }

    .cv-popup-close {
        top: 38px;
        right: 34px;
        font-size: 22px;
        padding: 7px 11px 5px;
    }

    .cv-popup-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto 55px;
        border-radius: 8px;
    }

    .cv-popup-store-logo {
        max-width: 82%;
        max-height: 70%;
    }

    .cv-popup-content-row {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 22px;
        align-items: center;
        margin-bottom: 34px;
        text-align: left;
    }

    .cv-popup-badge {
        width: 82px;
        height: 82px;
    }

    .cv-popup-badge strong {
        font-size: 17px;
    }

    .cv-popup-badge span {
        font-size: 13px;
    }

    i.cv-popup-badge-icon {
        font-size: 20px;
    }

    .cv-popup-title {
        max-width: 150px;
        margin: 0;
        font-size: 22px;
        line-height: 1.22;
        font-weight: 500;
        text-align: left;
    }

    .cv-popup-code-wrap {
        width: 100%;
        max-width: 100%;
        height: 48px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 88px;
        align-items: center;
        gap: 4px;
        padding: 5px;
        border-radius: 999px;
        background: #fff;
        overflow: hidden;
    }

    .cv-popup-code-input {
        width: 100%;
        min-width: 0;
        height: 38px;
        padding: 0 8px 0 12px;
        font-size: 14px;
        line-height: 38px;
        letter-spacing: .8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cv-popup-copy {
        position: static;
        width: 88px;
        min-width: 88px;
        height: 38px;
        margin: 0;
        padding: 0 8px;
        font-size: 12px;
        border-radius: 999px;
    }

    .cv-popup-store-btn {
        height: 44px;
        min-width: 150px;
        font-size: 14px;
    }

    .cv-popup-box > *:last-child {
        margin-bottom: 0;
    }
}