/* Checkout Login Popup Styles */

.mo-clp-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mo-clp-modal {
    background: #fff;
    border-radius: 10px;
    width: 480px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: moClpSlideIn 0.25s ease-out;
}

@keyframes moClpSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.mo-clp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 0;
}

.mo-clp-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.mo-clp-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.mo-clp-close:hover {
    color: #333;
}

/* Steps */
.mo-clp-step {
    display: none;
}

.mo-clp-step.mo-clp-step-active {
    display: block;
}

.mo-clp-body {
    padding: 20px 28px 28px;
}

/* Fields */
.mo-clp-field {
    margin-bottom: 4px;
}

.mo-clp-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mo-clp-required {
    color: #e53e3e;
}

.mo-clp-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.mo-clp-input:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.15);
}

.mo-clp-input[readonly] {
    background: #f7f7f7;
    color: #666;
}

/* Hint text */
.mo-clp-hint {
    font-size: 13px;
    color: #666;
    margin: 8px 0 16px;
    line-height: 1.5;
}

/* Remember me */
.mo-clp-remember {
    margin-bottom: 16px;
}

.mo-clp-remember label,
.mo-clp-remember-label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mo-clp-remember input[type="checkbox"],
.mo-clp-remember-label input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

/* Buttons */
.mo-clp-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mo-clp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.mo-clp-btn-primary {
    background: #00bcd4;
    color: #fff;
}

.mo-clp-btn-primary:hover:not(:disabled) {
    background: #00a5bb;
}

.mo-clp-btn-outline {
    background: #fff;
    color: #00bcd4;
    border: 2px solid #00bcd4;
}

.mo-clp-btn-outline:hover:not(:disabled) {
    background: #f0fdff;
}

.mo-clp-btn-inline {
    width: auto;
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

/* Links */
.mo-clp-link {
    display: block;
    font-size: 13px;
    color: #555;
    text-decoration: underline;
    margin-top: 16px;
    cursor: pointer;
}

.mo-clp-link:hover {
    color: #111;
}

.mo-clp-lost-password {
    color: #666;
    margin-top: 18px;
}

.mo-clp-back-link {
    text-align: center;
}

/* Step 2: OTP */
.mo-clp-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.mo-clp-otp-info {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 4px;
}

.mo-clp-otp-info strong {
    color: #222;
}

#mo-clp-use-different-email {
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 20px;
    display: inline-block;
}

.mo-clp-otp-section {
    margin-bottom: 20px;
}

.mo-clp-otp-label {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.mo-clp-otp-digits {
    display: flex;
    gap: 10px;
}

.mo-clp-otp-digit {
    width: 50px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 6px;
    color: #333;
    transition: border-color 0.2s;
}

.mo-clp-otp-digit:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.15);
}

/* Resend */
.mo-clp-resend-wrap {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

#mo-clp-resend-otp {
    color: #00bcd4;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

#mo-clp-resend-otp:hover {
    color: #008fa1;
}

/* Divider */
.mo-clp-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.mo-clp-divider::before,
.mo-clp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.mo-clp-divider span {
    padding: 0 14px;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Step 3: Password */
.mo-clp-password-wrap {
    position: relative;
}

.mo-clp-password-wrap .mo-clp-input {
    padding-right: 44px;
}

.mo-clp-toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 4px;
    display: flex;
    align-items: center;
}

.mo-clp-toggle-pw:hover {
    color: #444;
}

.mo-clp-pass-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    gap: 12px;
}

.mo-clp-remember-label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Messages */
.mo-clp-message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.4;
}

.mo-clp-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mo-clp-msg-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Loader */
.mo-clp-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
}

.mo-clp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top-color: #00bcd4;
    border-radius: 50%;
    animation: moClpSpin 0.7s linear infinite;
}

@keyframes moClpSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 520px) {
    .mo-clp-modal {
        width: 100%;
        max-width: 100vw;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
        position: fixed;
        bottom: 0;
        animation: moClpSlideUp 0.3s ease-out;
    }

    @keyframes moClpSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .mo-clp-backdrop {
        align-items: flex-end;
    }

    .mo-clp-otp-digit {
        width: 42px;
        height: 46px;
        font-size: 18px;
    }

    .mo-clp-otp-digits {
        gap: 6px;
    }

    .mo-clp-pass-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mo-clp-btn-inline {
        width: 100%;
    }
}
