/* Modernized Classic Popup 8 (campaign_discount) - 100% diy_style compatible */
.custom-class-popup-8 {
    max-width: min(100%, calc(100vw - 24px));
    background: transparent;
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.custom-class-popup-8,
.custom-class-popup-8 * {
    box-sizing: border-box;
}

.custom-class-popup-8 .popup-content {
    width: 100%;
    max-width: 100%;
    position: relative;
    color: #111827;
    line-height: 1.5;
    text-align: center;
    font-size: 14px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px -12px rgba(15, 23, 42, 0.3);
}

@media (max-width: 769px) {
    .custom-class-popup-8 .popup-content {
        width: 100% !important;
        max-width: 390px;
    }
}

.custom-class-popup-8 .popup-content .subscription-before {
    display: flex;
    align-items: stretch;
}

.custom-class-popup-8 .popup-content .subscription-before .left-box {
    width: 46%;
    min-height: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.custom-class-popup-8 .popup-content .subscription-before .right-box {
    width: 54%;
    flex: 1;
    padding: 52px 36px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 769px) {
    .custom-class-popup-8 .popup-content .subscription-before {
        display: block;
    }
    .custom-class-popup-8 .popup-content .subscription-before .left-box {
        width: 100%;
        min-height: 190px;
        height: 190px;
    }
    .custom-class-popup-8 .popup-content .subscription-before .right-box {
        width: 100%;
        padding: 28px 22px 26px;
    }
}

.custom-class-popup-8 .popup-content .title {
    word-break: break-word;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (max-width: 769px) {
    .custom-class-popup-8 .popup-content .title {
        font-size: 25px;
    }
}

.custom-class-popup-8 .popup-content .subtitle {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    word-break: break-word;
}

.custom-class-popup-8 .popup-content .discount-coupon .coupon-number {
    border: 1.5px dashed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 26px auto 0;
    height: 46px;
    line-height: 46px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.custom-class-popup-8 .popup-content .discount-coupon .coupon-copy {
    display: inline-block;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.custom-class-popup-8 .popup-content .continue-btn-box {
    text-align: center;
    width: 100%;
}

.custom-class-popup-8 .popup-content .continue-btn-box .continue-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    min-height: 46px;
    height: 46px;
    line-height: 46px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    margin: 18px 0 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.custom-class-popup-8 .popup-content .close-icon {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 15;
}
