/* ═══════════════════════════════════════════════════
   MY ACCOUNT PAGE — Hide default WooCommerce forms
   ═══════════════════════════════════════════════════ */
.woocommerce-account #customer_login {
    display: none !important;
}

/* ═══════════════════════════════════════════════════
   MY ACCOUNT PAGE — OTP form container box
   ═══════════════════════════════════════════════════ */
.wc-otp-login-wrapper {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(200, 169, 110, 0.12);
}

.wc-otp-login-wrapper h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1f242e;
    margin: 0 0 8px;
    text-align: center;
}

.wc-otp-login-wrapper > p {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin: 0 0 28px;
}

/* ═══════════════════════════════════════════════════
   SHARED — Phone/Email input + Send OTP button row
   ═══════════════════════════════════════════════════ */
.wc-otp-phone-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.wc-otp-phone-row input[type="text"],
.wc-otp-phone-row input[type="tel"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.wc-otp-phone-row input:focus {
    outline: none;
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

/* ── Send OTP button ── */
#wc-send-otp-btn {
    padding: 12px 18px;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

#wc-send-otp-btn:hover {
    background: #b8935a;
}

#wc-send-otp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════
   SHARED — OTP digit boxes row + Verify button
   ═══════════════════════════════════════════════════ */
.wc-otp-verify-row {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.wc-otp-verify-row.visible {
    display: flex;
}

/* ── 6 digit input boxes ── */
.wc-otp-digits {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.wc-otp-digits input {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1f242e;
}

.wc-otp-digits input:focus {
    outline: none;
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18);
}

.wc-otp-digits input.filled {
    border-color: #c8a96e;
    background: #fdf8f0;
}

/* ── Verify & Login button ── */
#wc-verify-otp-btn {
    width: 100%;
    padding: 13px;
    background: #1f242e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

#wc-verify-otp-btn:hover {
    background: #2f3645;
}

#wc-verify-otp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════
   SHARED — Status messages (success / error / info)
   ═══════════════════════════════════════════════════ */
.wc-otp-msg {
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
}

.wc-otp-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.wc-otp-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.wc-otp-msg.info {
    background: #fdf8f0;
    color: #856404;
    border: 1px solid #e8d9c0;
    display: block;
}

/* ═══════════════════════════════════════════════════
   SHARED — Resend OTP countdown + link
   ═══════════════════════════════════════════════════ */
.wc-otp-resend {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.wc-otp-resend.visible {
    display: block;
}

.wc-otp-resend a {
    color: #c8a96e;
    cursor: pointer;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   SHARED — Loading spinner (inside buttons)
   ═══════════════════════════════════════════════════ */
.wc-otp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: otpSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes otpSpin {
    to { transform: rotate(360deg); }
}

@keyframes otpFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   CHECKOUT PAGE — OTP wrapper box
   ═══════════════════════════════════════════════════ */
.wc-otp-checkout-wrapper {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 28px;
}

/* ── Highlighted warning style when login is required ── */
.wc-otp-checkout-wrapper.wc-otp-required {
    background: #fff9f0;
    border: 2px solid #c8a96e;
}

.wc-otp-checkout-wrapper.wc-otp-required h3 {
    color: #856404;
}

.wc-otp-checkout-wrapper.wc-otp-required > p {
    color: #856404;
}

.wc-otp-checkout-wrapper h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.wc-otp-checkout-wrapper > p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #555;
}

/* ═══════════════════════════════════════════════════
   SHARED — Inline registration form
   (slides down after OTP verification for new users)
   ═══════════════════════════════════════════════════ */
#wc-otp-inline-registration {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e8d9c0;
}

#wc-otp-inline-registration h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f242e;
    margin: 0 0 8px;
}

#wc-otp-inline-registration > p {
    color: #777;
    font-size: 14px;
    margin: 0 0 20px;
}

/* ── Registration form fields ── */
.wc-otp-form-row {
    margin-bottom: 16px;
}

.wc-otp-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wc-otp-form-row label .required {
    color: #e74c3c;
}

.wc-otp-form-row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wc-otp-form-row input:focus {
    outline: none;
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

/* ── Registration status messages ── */
.wc-otp-reg-msg {
    font-size: 13px;
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
}

.wc-otp-reg-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.wc-otp-reg-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ── Create Account button ── */
.wc-otp-submit-btn {
    width: 100%;
    padding: 13px;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.wc-otp-submit-btn:hover {
    background: #b8935a;
}

.wc-otp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile (max 540px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 540px) {
    .wc-otp-login-wrapper {
        padding: 24px 16px;
        margin: 20px 16px;
    }

    .wc-otp-digits input {
        width: 40px;
        height: 44px;
        font-size: 18px;
    }
}