/* ── GS OTP Login — theme-compatible styles ─────────────────────────────── */

/* ─── OTP panel outer wrapper ────────────────────────────────────────────── */
/* Inherits .myAcountFormOuter: padding: 60px 0; background: #292828 */
#gs-otp-panel.myAcountFormOuter {
    padding-top: 60px;
}

/* ─── OTP form wrap — inherits .myAcountForm (dark card) ────────────────── */
/* .myAcountForm: max-width:420px; margin:0 auto; background:#3e3e3e */
.gs-otp-form-wrap {
    padding-bottom: 20px;
}

/* h2 already styled by theme: color:#fff; text-align:center */

/* ─── Method switcher (Mobile OTP / Email OTP) — single mode ────────────── */
.gs-otp-method-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
}

.gs-otp-method-btn {
    flex: 1;
    padding: 7px 10px;
    background: transparent;
    border: 1px solid #866600;
    color: #d6bf36;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.gs-otp-method-btn.gs-method-active {
    background: #866600;
    color: #fff;
}

.gs-otp-method-btn:hover:not(.gs-method-active) {
    background: rgba(134, 102, 0, 0.2);
}

/* ─── Labels and inputs ──────────────────────────────────────────────────── */
.gs-otp-form-wrap label {
    color: #fff !important;
    font-weight: 500;
    font-size: 16px;
}

.gs-otp-form-wrap .woocommerce-form-row {
    padding: 4px 20px;
}

.gs-otp-form-wrap input[type="tel"],
.gs-otp-form-wrap input[type="email"],
.gs-otp-form-wrap input[type="text"] {
    height: 42px !important;
    padding: 0 14px !important;
    background: transparent !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    border: 1px solid #999 !important;
    color: #fff !important;
    width: 100%;
    box-sizing: border-box;
}

.gs-otp-form-wrap input[type="tel"]:focus,
.gs-otp-form-wrap input[type="email"]:focus,
.gs-otp-form-wrap input[type="text"]:focus {
    border-color: #d6bf36 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(214, 191, 54, 0.15);
}

.gs-otp-form-wrap input::placeholder {
    color: #666 !important;
}

/* ─── OTP code input ─────────────────────────────────────────────────────── */
.gs-otp-code-input {
    text-align: center !important;
    letter-spacing: 12px !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
}

/* ─── Action buttons ─────────────────────────────────────────────────────── */
.gs-otp-form-wrap .formBtn,
.gs-otp-form-wrap .woocommerce-button {
    display: block;
    width: 100%;
    background-color: #866600 !important;
    border: 1px solid #866600 !important;
    color: #fff !important;
    text-transform: uppercase;
    padding: 10px 0 12px !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 0;
    transition: 0.6s;
    text-align: center;
}

.gs-otp-form-wrap .formBtn:hover,
.gs-otp-form-wrap .woocommerce-button:hover {
    background-color: #d6bf36 !important;
    border-color: #d6bf36 !important;
    color: #000 !important;
    transition: 0.6s;
}

.gs-otp-form-wrap .formBtn:disabled,
.gs-otp-form-wrap .woocommerce-button:disabled {
    background-color: #555 !important;
    border-color: #555 !important;
    color: #aaa !important;
    cursor: not-allowed;
}

/* ─── Intro note (both mode) ─────────────────────────────────────────────── */
.gs-otp-intro-note {
    color: #ccc;
    font-size: 14px;
    padding: 0 20px 16px;
    margin: 0;
    line-height: 1.5;
}

/* ─── Sent note ──────────────────────────────────────────────────────────── */
.gs-otp-sent-note {
    color: #ccc;
    font-size: 14px;
    padding: 0 20px 12px;
    margin: 0;
}

.gs-otp-sent-note strong {
    color: #d6bf36;
}

/* ─── Resend row ─────────────────────────────────────────────────────────── */
.gs-otp-resend-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 20px 0 !important;
    margin: 0 !important;
}

/* ─── Link-style buttons ─────────────────────────────────────────────────── */
.gs-otp-link-btn {
    background: none;
    border: none;
    color: #d6bf36;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
    line-height: 1.5;
}

.gs-otp-link-btn:disabled {
    color: #666;
    cursor: not-allowed;
    text-decoration: none;
}

.gs-otp-link-btn:hover:not(:disabled) {
    color: #fff;
}

/* ─── Countdown timer ────────────────────────────────────────────────────── */
.gs-otp-timer {
    font-size: 12px;
    color: #888;
}

/* ─── Alert messages ─────────────────────────────────────────────────────── */
.gs-otp-alert {
    margin: 0 20px 12px;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.gs-otp-error {
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid #c0392b;
    color: #ff8a80;
}

.gs-otp-success {
    background: rgba(139, 195, 74, 0.15);
    border: 1px solid #8bc34a;
    color: #8bc34a;
}

/* ─── Separator ──────────────────────────────────────────────────────────── */
.gs-otp-resend-row .gs-sep {
    color: #555;
}

/* ─── Button busy spinner ────────────────────────────────────────────────── */
.gs-otp-form-wrap .formBtn:disabled,
.gs-otp-form-wrap .woocommerce-button:disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gs-otp-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gs-otp-spin 0.6s linear infinite;
    flex: 0 0 auto;
}

@keyframes gs-otp-spin {
    to { transform: rotate(360deg); }
}
