/* Modernized Classic Popup 1 (subscribe_1) - 100% diy_style compatible */
.custom-class-popup-1 {
    max-width: min(100%, calc(100vw - 24px));
    background: transparent;
    position: relative;
    width: auto;
    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-1,
.custom-class-popup-1 * {
    box-sizing: border-box;
}

.custom-class-popup-1 .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.28);
}

.custom-class-popup-1 .subscription-before,
.custom-class-popup-1 .subscription-after {
    padding: 48px 56px 40px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .popup-content {
        width: 100% !important;
        max-width: 390px;
    }
    .custom-class-popup-1 .subscription-before,
    .custom-class-popup-1 .subscription-after {
        padding: 38px 24px 28px;
    }
}

.custom-class-popup-1 .title {
    font-size: 32px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    word-break: break-word;
}

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

.custom-class-popup-1 .subtitle {
    margin-top: 12px;
    padding: 0 8px;
    font-size: 15px;
    line-height: 1.55;
    word-break: break-word;
}

.custom-class-popup-1 .input-box {
    margin-top: 28px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .input-box {
        margin-top: 22px;
        flex-direction: column;
    }
}

.custom-class-popup-1 .input-box input {
    flex: 1;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    min-height: 48px;
    height: 48px;
    border-radius: 12px;
    transition: box-shadow 0.18s ease;
}

.custom-class-popup-1 .input-box input:focus {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.custom-class-popup-1 .input-box .button {
    padding: 0 24px;
    height: 48px;
    line-height: 46px;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.custom-class-popup-1 .input-box .button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-class-popup-1 .cancel-btn {
    margin-top: 26px;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.78;
}

.custom-class-popup-1 .cancel-btn:hover {
    opacity: 1;
}

.custom-class-popup-1 .discount-coupon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 6px;
}

.custom-class-popup-1 .coupon-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    border: 1.5px dashed;
    border-radius: 12px;
    cursor: pointer;
}

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

.custom-class-popup-1 .continue-btn-box {
    padding: 0 40px;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .continue-btn-box {
        padding: 0;
    }
}

.custom-class-popup-1 .continue-btn {
    margin-top: 24px;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.16s ease;
}

.custom-class-popup-1 .continue-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

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

.custom-class-popup-1 .error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 8px;
    text-align: left;
    padding-left: 4px;
    position: relative;
}

.custom-class-popup-1.preview-mode .close-icon,
.custom-class-popup-1.preview-mode .cancel-btn {
    pointer-events: none;
    opacity: 0.5;
}

.custom-class-popup-1 .pointer {
    cursor: pointer;
}
