/* =========================================================================
   Shinestar OTP Login Form
   ========================================================================= */

.ss-otp-login {
    max-width: 400px;
    margin: 0 auto;
    font-family: inherit;
}

/* ---------- Standalone OTP page (My Account template override) ---------- */

.ss-otp-page {
    max-width: 440px;
    margin: 40px auto;
    padding: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.ss-otp-page h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.ss-otp-page-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: #777;
}

.ss-otp-page .ss-otp-login {
    text-align: left;
}

/* ---------- Labels ---------- */

.ss-otp-login label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* ---------- Input group with +91 prefix ---------- */

.ss-otp-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ss-otp-input-group:focus-within {
    border-color: #b8860b;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.12);
}

.ss-otp-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f7f7f7;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #ccc;
    user-select: none;
}

.ss-otp-input-group input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 12px;
    font-size: 15px;
    letter-spacing: 0.5px;
    background: transparent;
}

/* ---------- Standalone OTP input ---------- */

.ss-otp-code {
    width: 100%;
    padding: 10px 12px;
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ss-otp-code:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.12);
    outline: none;
}

/* ---------- Buttons ---------- */

.ss-otp-login .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    background: #b8860b;
    color: #fff;
}

.ss-otp-login .button:hover {
    background: #9a7209;
}

.ss-otp-login .button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ss-otp-login .button.alt {
    background: transparent;
    color: #b8860b;
    border: 1px solid #b8860b;
}

.ss-otp-login .button.alt:hover {
    background: rgba(184, 134, 11, 0.06);
}

/* ---------- Loading spinner on buttons ---------- */

.ss-otp-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ssOtpSpin 0.6s linear infinite;
}

.ss-otp-loading.alt::after {
    border-color: rgba(184, 134, 11, 0.3);
    border-top-color: #b8860b;
}

@keyframes ssOtpSpin {
    to { transform: rotate(360deg); }
}

/* ---------- Button row (verify + resend side by side) ---------- */

.ss-otp-btn-row {
    display: flex;
    gap: 10px;
}

.ss-otp-btn-row .button {
    flex: 1;
}

/* ---------- Messages ---------- */

.ss-otp-message {
    min-height: 20px;
    margin-top: 12px;
    padding: 0;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.ss-otp-message:empty {
    display: none;
}

.ss-otp-success {
    display: block;
    padding: 10px 14px;
    background: #eafbe7;
    color: #1e7e0e;
    border: 1px solid #b6e2a8;
}

.ss-otp-error {
    display: block;
    padding: 10px 14px;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ---------- Sent-to line ---------- */

.ss-otp-sent-msg {
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.ss-otp-change-phone {
    margin-left: 6px;
    font-size: 13px;
    color: #b8860b;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Checkout wrapper ---------- */

.ss-otp-checkout-wrap {
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.ss-otp-checkout-wrap h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}

/* ---------- Step transitions ---------- */

.ss-otp-step {
    animation: ssOtpFadeIn 0.25s ease-out;
}

@keyframes ssOtpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
    .ss-otp-login {
        max-width: 100%;
    }

    .ss-otp-btn-row {
        flex-direction: column;
        gap: 6px;
    }
}
