/* ============================================================
   ext-sap-otp-verify.css
   OTP Verification Page — 6.4.0
   Brand: #F58220 orange | #1A1617 dark
   ============================================================ */

:root {
    --otp-orange:      #F58220;
    --otp-dark:        #1A1617;
    --otp-text:        #3a3638;
    --otp-muted:       #6b7280;
    --otp-border:      #d1d5db;
    --otp-bg:          #f9fafb;
    --otp-white:       #ffffff;
    --otp-success:     #2E8540;
    --otp-error:       #B32D2E;
    --otp-radius:      10px;
    --otp-shadow:      0 4px 20px rgba(0,0,0,.08);
    --otp-transition:  0.18s ease;
}

/* ── Outer wrapper ───────────────────────────────────────── */
.ext-otp-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 16px 40px;
}

/* ── Card ────────────────────────────────────────────────── */
.ext-otp-card {
    width: 100%;
    max-width: 520px;
    background: var(--otp-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--otp-radius);
    box-shadow: var(--otp-shadow);
    padding: 36px 32px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .ext-otp-card {
        padding: 24px 18px;
    }
}

/* ── Header ──────────────────────────────────────────────── */
.ext-otp-header {
    text-align: center;
    margin-bottom: 24px;
}

.ext-otp-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--otp-dark);
    margin: 0 0 8px;
    line-height: 1.25;
}

.ext-otp-subtext {
    font-size: 0.9rem;
    color: var(--otp-muted);
    margin: 0;
    line-height: 1.55;
}

/* ── Step indicator ──────────────────────────────────────── */
.ext-otp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.ext-otp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity var(--otp-transition);
}

.ext-otp-step--active,
.ext-otp-step--done {
    opacity: 1;
}

.ext-otp-step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--otp-border);
    color: var(--otp-muted);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--otp-transition), color var(--otp-transition);
}

.ext-otp-step--active .ext-otp-step__num {
    background: var(--otp-orange);
    color: var(--otp-white);
}

.ext-otp-step--done .ext-otp-step__num {
    background: var(--otp-success);
    color: var(--otp-white);
}

.ext-otp-step__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--otp-muted);
    white-space: nowrap;
}

.ext-otp-step--active .ext-otp-step__label {
    color: var(--otp-dark);
}

.ext-otp-step__connector {
    flex: 1;
    height: 2px;
    background: var(--otp-border);
    min-width: 40px;
    max-width: 80px;
    margin: 0 8px;
    margin-bottom: 16px; /* align with circle centre */
}

/* ── Global message ──────────────────────────────────────── */
.ext-otp-msg {
    font-size: 0.875rem;
    text-align: center;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    display: none;
}

.ext-otp-msg.is-error {
    display: block;
    background: #fde8e8;
    color: var(--otp-error);
    border: 1px solid #f8b4b4;
}

.ext-otp-msg.is-success {
    display: block;
    background: #e6f4ea;
    color: var(--otp-success);
    border: 1px solid #c3e6cb;
}

.ext-otp-msg.is-info {
    display: block;
    background: #fff3e0;
    color: #b76800;
    border: 1px solid #ffe0b2;
}

/* ── Panel (steps) ───────────────────────────────────────── */
.ext-otp-panel--hidden {
    display: none;
}

/* ── Fields ──────────────────────────────────────────────── */
.ext-otp-field {
    margin-bottom: 18px;
}

.ext-otp-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--otp-dark);
    margin-bottom: 7px;
}

.ext-otp-field input[type="tel"],
.ext-otp-field input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    font-size: 1rem;
    border: 1.5px solid var(--otp-border);
    border-radius: 7px;
    background: var(--otp-white);
    color: var(--otp-text);
    transition: border-color var(--otp-transition), box-shadow var(--otp-transition);
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.ext-otp-field input:focus {
    outline: none;
    border-color: var(--otp-orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .15);
}

.ext-otp-field.has-error input {
    border-color: var(--otp-error);
}

.ext-otp-field__err {
    display: none;
    font-size: 0.78rem;
    color: var(--otp-error);
    margin-top: 5px;
}

.ext-otp-field.has-error .ext-otp-field__err {
    display: block;
}

.ext-otp-field__hint {
    font-size: 0.78rem;
    color: var(--otp-muted);
    margin: 5px 0 0;
}

/* ── intl-tel-input v23 integration ─────────────────────── */
/*
 * We do NOT rely on intl-tel-input's own inline padding-left calculation.
 * Instead, JS measures the rendered .iti__flag-container width after init
 * and stores it as --ext-otp-phone-left-pad on the .ext-sap-otp-phone
 * ancestor.  We then apply it here with !important so it wins over any
 * theme or ITI inline style.
 *
 * Default fallback (120px) covers most dial codes before JS fires.
 */
.iti {
    width: 100%;
    display: block;
    position: relative;
}

/* Basic width — applies globally to any ITI field on the page */
.iti input[type="tel"] {
    width: 100% !important;
    box-sizing: border-box;
}

/* ── ext-sap-otp-phone: JS-driven padding via CSS variable ─ */
.ext-sap-otp-phone {
    position: relative;
}

.ext-sap-otp-phone .iti {
    width: 100%;
    position: relative;
}

.ext-sap-otp-phone .iti__flag-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
}

/*
 * padding-left is set via CSS variable updated by JS.
 * !important is intentional here — it overrides any inline style that
 * intl-tel-input or a theme might inject, since our JS value is correct.
 */
.ext-sap-otp-phone .iti input[type="tel"] {
    padding-left: var(--ext-otp-phone-left-pad, 120px) !important;
}

/* ── Woodmart sidebar context overrides ─────────────────── */
/*
 * Woodmart's sidebar CSS may set overflow, flex, or stacking contexts
 * that interfere with ITI's absolute-positioned flag container.
 */
.login-form-side    .ext-sap-otp-phone .iti,
.wd-sidebar-account .ext-sap-otp-phone .iti,
.wd-login-popup     .ext-sap-otp-phone .iti,
.wd-header-popup    .ext-sap-otp-phone .iti {
    width: 100%;
    position: relative;
    overflow: visible;
}

.login-form-side    .ext-sap-otp-phone .iti__flag-container,
.wd-sidebar-account .ext-sap-otp-phone .iti__flag-container,
.wd-login-popup     .ext-sap-otp-phone .iti__flag-container,
.wd-header-popup    .ext-sap-otp-phone .iti__flag-container {
    z-index: 3;
}

.login-form-side    .ext-sap-otp-phone input[type="tel"],
.wd-sidebar-account .ext-sap-otp-phone input[type="tel"],
.wd-login-popup     .ext-sap-otp-phone input[type="tel"],
.wd-header-popup    .ext-sap-otp-phone input[type="tel"] {
    width: 100% !important;
    box-sizing: border-box;
}

/* ── OTP code input — large digits ──────────────────────── */
#ext-otp-code {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ── Sent-to message ─────────────────────────────────────── */
.ext-otp-sent-to {
    font-size: 0.875rem;
    color: var(--otp-muted);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

.ext-otp-sent-to strong {
    color: var(--otp-dark);
}

/* ── Buttons ─────────────────────────────────────────────── */
.ext-otp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 7px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background var(--otp-transition), color var(--otp-transition), border-color var(--otp-transition), opacity var(--otp-transition);
    line-height: 1;
}

.ext-otp-btn--primary {
    background: var(--otp-orange);
    color: var(--otp-white);
    border-color: var(--otp-orange);
}

.ext-otp-btn--primary:hover,
.ext-otp-btn--primary:focus {
    background: var(--otp-white);
    color: var(--otp-orange);
    outline: none;
}

.ext-otp-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.ext-otp-btn--ghost {
    background: transparent;
    color: var(--otp-orange);
    border-color: var(--otp-orange);
    font-size: 0.85rem;
    padding: 9px 16px;
}

.ext-otp-btn--ghost:hover,
.ext-otp-btn--ghost:focus {
    background: var(--otp-orange);
    color: var(--otp-white);
    outline: none;
}

.ext-otp-btn--ghost:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Resend row ──────────────────────────────────────────── */
.ext-otp-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ext-otp-countdown {
    font-size: 0.82rem;
    color: var(--otp-muted);
    min-width: 60px;
}

/* ── Change number link ──────────────────────────────────── */
.ext-otp-change-link {
    display: block;
    text-align: center;
    background: none;
    border: none;
    color: var(--otp-muted);
    font-size: 0.82rem;
    cursor: pointer;
    margin-top: 14px;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ext-otp-change-link:hover {
    color: var(--otp-dark);
}

/* ── Success panel ───────────────────────────────────────── */
.ext-otp-success {
    text-align: center;
    padding: 16px 0 8px;
}

.ext-otp-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--otp-success);
    color: var(--otp-white);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.ext-otp-success__msg {
    font-size: 0.95rem;
    color: var(--otp-text);
    line-height: 1.6;
    margin: 0;
}

/* ── Phone-verified confirmation bar (top of email panel) ── */
.ext-otp-phone-verified-msg {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--otp-success);
    background: #e6f4ea;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* ── Required mark ───────────────────────────────────────── */
.ext-otp-req {
    color: var(--otp-orange);
    margin-left: 2px;
}

/* ── Mobile: tighten 3-step indicator on small screens ───── */
@media (max-width: 400px) {
    .ext-otp-step__label {
        font-size: 0.62rem;
    }
    .ext-otp-step__connector {
        min-width: 16px;
        max-width: 32px;
    }
}

/* ── Dev mode badge ──────────────────────────────────────── */
.ext-otp-dev-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #fffde7;
    border: 1px solid #ffe082;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a5c00;
    margin-top: 14px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ── Woodmart side-panel context ─────────────────────────── */
/*
 * When the OTP UI is rendered inside Woodmart's header account popup or
 * side-login panel, remove the outer centering wrapper padding and the
 * card's border/shadow so it fills the panel flush without double chrome.
 *
 * Selectors cover the most common Woodmart panel wrappers:
 *   .login-form-side           — Woodmart side login block class
 *   .wd-sidebar-account        — Woodmart sidebar account panel
 *   .wd-login-popup            — Woodmart login popup overlay
 *   .wd-header-popup           — generic Woodmart header popup
 */
.login-form-side .ext-otp-wrap,
.wd-sidebar-account .ext-otp-wrap,
.wd-login-popup .ext-otp-wrap,
.wd-header-popup .ext-otp-wrap {
    padding: 0;
    display: block;
}

.login-form-side .ext-otp-card,
.wd-sidebar-account .ext-otp-card,
.wd-login-popup .ext-otp-card,
.wd-header-popup .ext-otp-card {
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 16px 16px;
}

/* Tighten heading in narrow panels */
.login-form-side .ext-otp-heading,
.wd-sidebar-account .ext-otp-heading,
.wd-login-popup .ext-otp-heading,
.wd-header-popup .ext-otp-heading {
    font-size: 1.1rem;
}

/* Allow step labels to wrap in very narrow containers */
.login-form-side .ext-otp-step__label,
.wd-sidebar-account .ext-otp-step__label,
.wd-login-popup .ext-otp-step__label,
.wd-header-popup .ext-otp-step__label {
    white-space: normal;
    max-width: 56px;
    text-align: center;
}

/* ============================================================
   Flow 1 — new panels (6.5.0)
   ============================================================ */

/* ── Lookup loading state ────────────────────────────────── */
.ext-otp-lookup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 0 8px;
    text-align: center;
}

.ext-otp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--otp-border);
    border-top-color: var(--otp-orange);
    border-radius: 50%;
    animation: ext-otp-spin 0.8s linear infinite;
}

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

.ext-otp-lookup-msg {
    font-size: 0.9rem;
    color: var(--otp-muted);
    margin: 0;
}

/* ── Confirm email intro ─────────────────────────────────── */
.ext-otp-confirm-intro {
    font-size: 0.875rem;
    color: var(--otp-text);
    margin: 0 0 18px;
    line-height: 1.55;
}

/* ── Masked email list (multiple matches) ────────────────── */
.ext-otp-masked-list {
    margin-bottom: 16px;
}

.ext-otp-masked-email-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ext-otp-masked-email-list li {
    background: var(--otp-bg);
    border: 1px solid var(--otp-border);
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 0.875rem;
    color: var(--otp-text);
    font-family: monospace;
}

/* ── No-match / manual-review panel ─────────────────────── */
.ext-otp-no-match {
    text-align: center;
    padding: 12px 0 8px;
}

.ext-otp-no-match p {
    font-size: 0.9rem;
    color: var(--otp-muted);
    line-height: 1.6;
    margin: 0;
}

.ext-otp-no-match__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--otp-dark);
    margin: 0 0 12px;
}

.ext-otp-no-match__contact-btn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

/* ── Flow 2 Case 3 — company cards ──────────────────────── */
.ext-otp-company-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}

.ext-otp-company-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
}

/* Company name + badge top row */
.ext-otp-company-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ext-otp-company-card__name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--otp-dark);
    line-height: 1.3;
}

.ext-otp-company-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.ext-otp-company-badge--pending  { color: #8a5a00; background: #fff7e6; border-color: #ffe2a8; }
.ext-otp-company-badge--sent     { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.ext-otp-company-badge--verified { color: #1f7a3a; background: #ecf7ef; border-color: #bfe7c9; }

/* Inputs: full width, margin below */
.ext-otp-company-email-input,
.ext-otp-company-otp-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.ext-otp-company-otp-input {
    letter-spacing: 0.08em;
}

/* OTP section appears below the email section */
.ext-otp-company-otp-wrap {
    margin-top: 4px;
}

/* Buttons: 50% width, left-aligned block, not full card width */
.ext-otp-company-card .ext-otp-btn {
    display: block;
    width: 50%;
    min-width: 180px;
    max-width: 240px;
    margin-bottom: 12px;
    white-space: nowrap;
}

.ext-otp-company-err {
    display: block;
    font-size: 0.82rem;
    color: #b32d2e;
    margin: 4px 0 8px;
    min-height: 1em;
}

/* Verified state */
.ext-otp-company-verified-msg {
    color: #1f7a3a;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 4px 0 0;
}

/* ── Flow 3 account type selection ───────────────────── */

.ext-otp-flow3-type-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1617;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.3;
}

.ext-otp-flow3-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 0 4px;
}

/* Card */
.ext-otp-flow3-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #FFFFFF;
    border: 2px solid #F58220;
    border-radius: 16px;
    padding: 32px 24px 28px;
    cursor: pointer;
    width: 100%;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-width .1s ease;
}

.ext-otp-flow3-type-card:hover {
    background: #FFF7F0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 130, 32, .13);
}

.ext-otp-flow3-type-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .3);
}

.ext-otp-flow3-type-card.is-selected {
    background: #FFF7F0;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(245, 130, 32, .12);
}

.ext-otp-flow3-type-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Check badge — top-right, hidden until selected */
.ext-otp-flow3-type-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #F58220;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.ext-otp-flow3-type-card__check svg {
    width: 13px;
    height: 13px;
    fill: #fff;
    display: block;
}

.ext-otp-flow3-type-card.is-selected .ext-otp-flow3-type-card__check {
    opacity: 1;
}

/* Icon */
.ext-otp-flow3-type-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: #F58220;
}

.ext-otp-flow3-type-card__icon svg {
    width: 48px;
    height: 48px;
    fill: #F58220;
    display: block;
}

.ext-otp-flow3-type-card__icon svg:hover{fill: #ffffff;}


/* Title */
.ext-otp-flow3-type-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A1617;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* Description */
.ext-otp-flow3-type-card__desc {
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
}

/* Trust message */
.ext-otp-flow3-trust-msg {
    text-align: center;
    font-size: 0.78rem;
    color: #9CA3AF;
    margin: 20px 0 0;
    line-height: 1.5;
}

/* Responsive — tablet keeps 2 cols; mobile goes 1 col */
@media (max-width: 600px) {
    .ext-otp-flow3-type-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ext-otp-flow3-type-card {
        padding: 24px 20px;
    }
}

/* Mobile: inputs and buttons go full width */
@media (max-width: 767px) {
    .ext-otp-company-card .ext-otp-btn {
        width: 100%;
        max-width: none;
    }
}

/* Account selection */
.ext-otp-company-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.ext-otp-company-account-btn {
    width: 100%;
    text-align: center;
}

/* ── B2C+B2B role selector ───────────────────────────────── */
.ext-otp-role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 380px) {
    .ext-otp-role-cards {
        grid-template-columns: 1fr;
    }
}

.ext-otp-role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 16px;
    background: var(--otp-white);
    border: 2px solid var(--otp-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color var(--otp-transition), background var(--otp-transition);
    font-family: inherit;
    text-align: center;
}

.ext-otp-role-card:hover,
.ext-otp-role-card:focus {
    border-color: var(--otp-orange);
    outline: none;
    background: #fff8f2;
}

.ext-otp-role-card.is-selected {
    border-color: var(--otp-orange);
    background: #fff3e0;
}

.ext-otp-role-card__icon {
    font-size: 1.8rem;
    line-height: 1;
}

.ext-otp-role-card__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--otp-dark);
    line-height: 1.25;
}

/* ============================================================
   Scoped button branding — OTP UI only
   Overrides any WooCommerce/Woodmart .button theme styles that
   may leak into .ext-otp-wrap or .ext-otp-card.
   !important only used on rules Woodmart is known to override.
   ============================================================ */

/* All buttons inside the OTP card/wrapper */
.ext-otp-wrap button,
.ext-otp-wrap .button,
.ext-otp-card button,
.ext-otp-card .button,
/* Woodmart side-login context */
.login-form-side .ext-otp-wrap button,
.login-form-side .ext-otp-wrap .button,
.login-form-side .ext-otp-card button,
.login-form-side .ext-otp-card .button,
.wd-sidebar-account .ext-otp-wrap button,
.wd-sidebar-account .ext-otp-wrap .button {
    background-color: #ffffff !important;
    color:            #F58220 !important;
    border:           1px solid #F58220 !important;
    border-radius:    5px;
    font-weight:      700;
    transition:       background-color .16s ease, color .16s ease, border-color .16s ease;
    cursor:           pointer;
    text-decoration:  none;
}

.ext-otp-wrap button:hover,
.ext-otp-wrap button:focus,
.ext-otp-wrap .button:hover,
.ext-otp-wrap .button:focus,
.ext-otp-card button:hover,
.ext-otp-card button:focus,
.ext-otp-card .button:hover,
.ext-otp-card .button:focus,
.login-form-side .ext-otp-wrap button:hover,
.login-form-side .ext-otp-wrap button:focus,
.login-form-side .ext-otp-card button:hover,
.login-form-side .ext-otp-card button:focus,
.wd-sidebar-account .ext-otp-wrap button:hover,
.wd-sidebar-account .ext-otp-wrap button:focus {
    background-color: #F58220 !important;
    color:            #ffffff !important;
    border-color:     #F58220 !important;
    outline:          none;
}

.ext-otp-wrap button:disabled,
.ext-otp-wrap .button:disabled,
.ext-otp-card button:disabled,
.ext-otp-card .button:disabled {
    opacity:        0.55 !important;
    cursor:         not-allowed !important;
    pointer-events: auto; /* keep cursor: not-allowed visible */
}

/* Ghost / outline buttons (Resend Code) override within wrapper */
.ext-otp-wrap .ext-otp-btn--ghost,
.ext-otp-card .ext-otp-btn--ghost {
    background-color: transparent !important;
    color:            #F58220 !important;
    border:           1.5px solid #F58220 !important;
}

.ext-otp-wrap .ext-otp-btn--ghost:hover,
.ext-otp-wrap .ext-otp-btn--ghost:focus,
.ext-otp-card .ext-otp-btn--ghost:hover,
.ext-otp-card .ext-otp-btn--ghost:focus {
    background-color: #F58220 !important;
    color:            #ffffff !important;
}

/* Change-number text link — keep as plain link, not solid button */
.ext-otp-wrap .ext-otp-change-link,
.ext-otp-card .ext-otp-change-link {
    background:       none !important;
    border:           none !important;
    color:            #6b7280 !important;
    font-size:        0.82rem;
    text-decoration:  underline;
    cursor:           pointer;
}

.ext-otp-wrap .ext-otp-change-link:hover,
.ext-otp-card .ext-otp-change-link:hover {
    background: none !important;
    color:      #1A1617 !important;
}
