/* Modernized Classic Popup 2 (subscribe_2) - 100% diy_style compatible */
.custom-class-popup-2 {
    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-2,
.custom-class-popup-2 * {
    box-sizing: border-box;
}

.custom-class-popup-2 .popup-content {
    width: 100%;
    max-width: 100%;
    position: relative;
    color: #111827;
    background-color: #ffffff;
    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-2 .popup-content {
        width: 100% !important;
        max-width: 390px;
    }
}

.custom-class-popup-2 .popup-content .subscription-before,
.custom-class-popup-2 .popup-content .subscription-after {
    padding: 48px 56px 44px;
}

@media (max-width: 769px) {
    .custom-class-popup-2 .popup-content .subscription-before,
    .custom-class-popup-2 .popup-content .subscription-after {
        padding: 36px 22px 32px;
    }
}

.custom-class-popup-2 .popup-content .subscription-after .subtitle {
    margin-bottom: 24px;
}

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

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

.custom-class-popup-2 .popup-content .subtitle {
    padding: 0 8px;
    font-size: 15px;
    line-height: 1.55;
    word-break: break-word;
    margin: 10px auto 0;
}

.custom-class-popup-2 .popup-content .input-box {
    margin-top: 28px;
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.custom-class-popup-2 .popup-content .input-box input {
    width: 100%;
    padding: 0 18px;
    font-size: 14px;
    height: 48px;
    line-height: 48px;
    min-height: 48px;
    text-align: center;
    border-radius: 12px;
    outline: none;
}

.custom-class-popup-2 .popup-content .sub-button {
    padding: 0 24px;
    min-height: 48px;
    line-height: 48px;
    outline: none;
    cursor: pointer;
    min-width: 100px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: opacity 0.18s ease, transform 0.16s ease;
}

.custom-class-popup-2 .popup-content .sub-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.custom-class-popup-2 .popup-content .error-message {
    text-align: left;
    font-size: 13px;
    color: #fca5a5;
}

.custom-class-popup-2 .popup-content .discount-coupon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 12px;
    gap: 6px;
}

.custom-class-popup-2 .popup-content .discount-coupon .coupon-number {
    background: #ffffff;
    height: 48px;
    line-height: 48px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1.5px dashed;
    border-radius: 12px;
    cursor: pointer;
}

.custom-class-popup-2 .popup-content .discount-coupon .coupon-copy {
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.custom-class-popup-2 .popup-content .continue-btn-box .continue-btn {
    margin-top: 16px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

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