/* ============================================================
   WooCommerce OTP Registration v2 — Styles
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
#woo-otp-wrapper {
    margin: 0 auto 32px;
}

/* ── Card ────────────────────────────────────────────────── */
#woo-otp-box {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
    padding: 44px 40px 36px;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
    font-family: inherit;
}

/* ── Back button ─────────────────────────────────────────── */
#woo-otp-back {
    position: absolute;
    top: 16px;
    left: 18px;
    background: none;
    border: none;
    color: #7f54b3;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}
#woo-otp-back:hover {
    background: #f5f0fb;
}

/* ── Icon ────────────────────────────────────────────────── */
#woo-otp-box .otp-icon {
    font-size: 52px;
    margin-bottom: 14px;
    line-height: 1;
}

/* ── Heading ─────────────────────────────────────────────── */
#woo-otp-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

/* ── Subtitle ────────────────────────────────────────────── */
#woo-otp-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ── Notices ─────────────────────────────────────────────── */
#woo-otp-box .woocommerce-message,
#woo-otp-box .woocommerce-error {
    margin-bottom: 18px;
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
    padding: 10px 14px;
    list-style: none;
}

/* ── Digit inputs ────────────────────────────────────────── */
#woo-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.otp-digit {
    width: 50px !important;
    height: 58px !important;
    text-align: center !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    border: 2px solid #d4d4d4 !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
    color: #1a1a2e !important;
    background: #fafafa !important;
    padding: 0 !important;
    line-height: 58px !important;
    box-sizing: border-box !important;
    caret-color: transparent;
}

.otp-digit:focus {
    border-color: #7f54b3 !important;
    box-shadow: 0 0 0 3px rgba(127, 84, 179, 0.18) !important;
    background: #fff !important;
}

.otp-digit:not([value=""]):not(:placeholder-shown),
.otp-digit.has-value {
    border-color: #7f54b3 !important;
    background: #fdf9ff !important;
}

/* ── Submit button ───────────────────────────────────────── */
#woo-otp-submit {
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    background: #7f54b3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.12s !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}

#woo-otp-submit:hover:not(:disabled) {
    background: #6d44a0 !important;
}

#woo-otp-submit:active:not(:disabled) {
    transform: scale(0.98) !important;
}

#woo-otp-submit:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* ── Resend row ──────────────────────────────────────────── */
.otp-resend {
    font-size: 13px;
    color: #888;
    min-height: 20px;
}

#woo-otp-timer {
    display: inline-block;
}

#woo-otp-resend {
    color: #7f54b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

#woo-otp-resend:hover {
    color: #5e3a8c;
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    #woo-otp-box {
        padding: 36px 18px 28px;
        border-radius: 10px;
    }

    #woo-otp-inputs {
        gap: 7px;
    }

    .otp-digit {
        width: 42px !important;
        height: 50px !important;
        font-size: 22px !important;
        line-height: 50px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 360px) {
    .otp-digit {
        width: 36px !important;
        height: 44px !important;
        font-size: 18px !important;
        line-height: 44px !important;
    }
    #woo-otp-inputs { gap: 5px; }
}


/* ============================================================
   SET-PASSWORD FORM
   ============================================================ */

#woo-set-password-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0 40px;
}

#woo-set-password-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(0,0,0,.08);
    padding: 44px 40px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    font-family: inherit;
}

#woo-set-password-box .sp-icon {
    font-size: 48px;
    margin-bottom: 14px;
    line-height: 1;
}

#woo-set-password-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

#woo-set-password-box > p {
    color: #666;
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ── Notices inside set-password form ── */
#woo-set-password-box .woocommerce-message,
#woo-set-password-box .woocommerce-error {
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
    padding: 10px 14px;
    margin-bottom: 18px;
    list-style: none;
}

/* ── Fields ── */
.sp-field {
    margin-bottom: 18px;
    text-align: left;
}

.sp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.sp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sp-input-wrap input[type="password"],
.sp-input-wrap input[type="text"] {
    width: 100% !important;
    padding: 12px 44px 12px 14px !important;
    border: 2px solid #d4d4d4 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color .18s, box-shadow .18s !important;
    box-sizing: border-box !important;
    color: #1a1a2e !important;
    background: #fafafa !important;
}

.sp-input-wrap input:focus {
    border-color: #7f54b3 !important;
    box-shadow: 0 0 0 3px rgba(127,84,179,.15) !important;
    background: #fff !important;
}

.sp-eye {
    position: absolute !important;
    right: 12px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #999 !important;
    transition: color .15s !important;
}

.sp-eye:hover {
    color: #7f54b3 !important;
}

/* ── Strength bar ── */
.sp-strength-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

#sp-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .3s, background .3s;
}

.sp-strength-label {
    font-size: 12px;
    margin: 4px 0 0;
    min-height: 16px;
    font-weight: 600;
}

/* ── Rules checklist ── */
.sp-rules {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.sp-rules li {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-rules .sp-rule-icon {
    font-size: 14px;
    width: 16px;
    display: inline-block;
    text-align: center;
}

.sp-rules li.rule-ok {
    color: #27ae60;
}

/* ── Submit ── */
#sp-submit {
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: #7f54b3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background .2s, transform .12s !important;
    letter-spacing: .3px !important;
}

#sp-submit:hover:not(:disabled) {
    background: #6d44a0 !important;
}

#sp-submit:active:not(:disabled) {
    transform: scale(.98) !important;
}

#sp-submit:disabled {
    opacity: .6 !important;
    cursor: not-allowed !important;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    #woo-set-password-box {
        padding: 36px 18px 28px;
        border-radius: 10px;
    }
}
