/* XCart OTP core: reset scoped to wrapper, a11y helpers, shared states and behavior. No theme appearance here. */
:root{
    --primary-color: #0073aa;
    --primary-color-dark: #005a87;
    --accent-color: #13906b;
    --light-gray: #f0f2f5;
    --medium-gray: #c7c7c7;
    --dark-gray: #555;
    --error-color: #d63638;
    --success-color: #28a745;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}
/* Final UX fixes for the three supported OTP presets. */
.xcart-otp-form-wrapper:not([data-xcart-stage="otp"]) #circular-timer, .xcart-otp-form-wrapper:not([data-xcart-stage="otp"]) .xcart-flip-clock{
    display: none !important;
}
@keyframes fadeIn {from{
        opacity: 0;
    }
to{
        opacity: 1;
    }
}
@keyframes scaleUp {from{
        transform: scale(0.95);
    }
to{
        transform: scale(1);
    }
}
.fadeInCustom{
  animation: fadeIn var(--transition-speed) ease-out;
}
.xcart-otp-toast-stack{
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 100500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.xcart-otp-toast{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.25);
    font-size: 12px;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-8px);
    animation: xcartToastIn 0.25s ease forwards;
    pointer-events: auto;
}

/* Notification rail anchored below the active OTP card. */
.otp-login-container > .xcart-otp-toast-stack{
    position: fixed !important;
    top: var(--xcart-toast-top, auto) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 2147483600 !important;
    width: var(--xcart-toast-width, min(520px, calc(100vw - 24px))) !important;
    max-width: calc(100vw - 24px) !important;
    gap: 8px !important;
    align-items: stretch !important;
    transform: translateX(-50%);
    pointer-events: none;
    filter: none !important;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast{
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 52px;
    padding: 10px 12px 10px 14px;
    overflow: hidden;
    gap: 11px;
    border-radius: 10px;
    background: var(--xcart-toast-bg, rgba(255, 255, 255, 0.98));
    color: var(--xcart-toast-text, #17211e);
    border: 1px solid var(--xcart-toast-border, rgba(15, 23, 42, 0.10));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--xcart-toast-text, #17211e) 16%, transparent);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    transform: translateY(-6px);
    animation: xcartToastRailIn 0.24s ease forwards;
    pointer-events: auto;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast.is-success{ --xcart-toast-accent: var(--xcart-toast-theme-accent, #13906b); }
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast.is-error{ --xcart-toast-accent: #d13b35; }
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast.is-info{ --xcart-toast-accent: var(--xcart-toast-theme-accent, #2563eb); }
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-dot{
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--xcart-toast-accent) 8%, #ffffff);
    color: var(--xcart-toast-accent);
    flex: 0 0 32px;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-dot svg{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-dot circle{
    fill: none;
    stroke-width: 2.5;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-timer-track{
    stroke: color-mix(in srgb, var(--xcart-toast-accent) 18%, transparent);
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-timer-progress{
    stroke: var(--xcart-toast-accent);
    stroke-linecap: round;
    stroke-dasharray: 81.68;
    stroke-dashoffset: 0;
    animation: xcartToastTimerRing 5s linear forwards;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-count{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    direction: ltr;
    font: 800 11px/1 Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-number{
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    margin-inline: 3px;
    font-variant-numeric: tabular-nums;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-text{
    flex: 1 1 auto;
    color: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.7;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast-life{
    position: absolute;
    right: 4px;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--xcart-toast-accent);
    transform-origin: right center;
    animation: xcartToastLife 3.8s linear forwards;
}
.otp-login-container > .xcart-otp-toast-stack .xcart-otp-toast.is-hide{
    animation: xcartToastRailOut 0.24s ease forwards;
}
@keyframes xcartToastRailIn { to { opacity: 1; transform: translateY(0); } }
@keyframes xcartToastRailOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes xcartToastLife { to { transform: scaleX(0); } }
@keyframes xcartToastTimerRing { to { stroke-dashoffset: 81.68; } }
@media only screen and (max-width: 600px) {
    .otp-login-container > .xcart-otp-toast-stack{
        right: auto !important;
        left: 50% !important;
        width: calc(100vw - 24px) !important;
        transform: translateX(-50%);
    }
}
.otp-login-container, .xcart-otp-form-wrapper, .xcart-otp-form-area, .xcart-otp-toast-stack, .xcart-otp-toast{
    font-family: inherit;
}
.xcart-otp-form-wrapper button, .xcart-otp-form-wrapper input, .xcart-otp-form-wrapper select, .xcart-otp-form-wrapper textarea{
    font-family: inherit !important;
}
.xcart-otp-form-wrapper .xcart-otp-send-note{
    width: 100%;
    margin: 9px 0 0;
    padding: 0 4px;
    box-sizing: border-box;
    color: var(--xc-panel-muted, currentColor);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.75;
    text-align: center;
    opacity: .82;
}
.xcart-otp-form-wrapper .xcart-otp-send-note[hidden],
.xcart-otp-form-wrapper[data-xcart-stage="otp"] .xcart-otp-send-note,
.xcart-otp-form-wrapper[data-xcart-stage="auth"] .xcart-otp-send-note{
    display: none !important;
}

/* Compact timer styles use the countdown inside the verify button. */
#circular-timer[data-timer-theme="line"] #xcart-otp-clock,
#circular-timer[data-timer-theme="dots"] #xcart-otp-clock,
#circular-timer[data-timer-theme="stack"] #xcart-otp-clock,
#circular-timer[data-timer-theme="wave"] #xcart-otp-clock,
#circular-timer[data-timer-theme="pill"] #xcart-otp-clock{
    display: none !important;
}
#circular-timer[data-timer-theme="line"],
#circular-timer[data-timer-theme="dots"],
#circular-timer[data-timer-theme="stack"],
#circular-timer[data-timer-theme="wave"]{
    gap: 0 !important;
}
.xcart-otp-toast.is-success{ background: #0f766e; }
.xcart-otp-toast.is-error{ background: #b42318; }
.xcart-otp-toast.is-info{ background: #1f2937; }
.xcart-otp-toast.is-hide{
    animation: xcartToastOut 0.25s ease forwards;
}
.xcart-otp-toast-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    flex: 0 0 auto;
}
.xcart-otp-toast-text{
    display: inline-block;
    text-align: right;
}
@keyframes xcartToastIn {to{
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes xcartToastOut {to{
        opacity: 0;
        transform: translateX(-8px);
    }
}
.circular-timer{
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
    margin-bottom: 0px;
    --timer-progress: 1;
    --timer-progress-color: #13906b;
    --timer-track-color: rgba(15,23,42,0.12);
    --timer-text-color: #0f172a;
}
.timer-svg{
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
#xcart-otp-clock{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--timer-text-color);
    margin: 0;
    border-radius: 90px;
    scale: 0.7;
    font-variant-numeric: tabular-nums;
}
.timer-background, .timer-progress{
    fill: none;
    stroke-width: 7;
}
.timer-background{
    stroke: var(--timer-track-color);
}
.timer-progress{
    stroke: var(--timer-progress-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
.xcart-timer-bar{
    display: none;
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--timer-track-color);
    overflow: hidden;
}
.xcart-timer-bar-fill{
    display: block;
    height: 100%;
    width: calc(var(--timer-progress) * 100%);
    border-radius: inherit;
    background: var(--timer-progress-color);
    transition: width 1s linear;
}
#circular-timer[data-timer-theme="line"], #circular-timer[data-timer-theme="dots"], #circular-timer[data-timer-theme="stack"], #circular-timer[data-timer-theme="wave"]{
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    height: auto;
    padding: 0px 0;
    align-items: center;
    justify-content: space-between;
    margin: 0px;
}
#circular-timer[data-timer-theme="line"] .timer-svg, #circular-timer[data-timer-theme="dots"] .timer-svg, #circular-timer[data-timer-theme="stack"] .timer-svg, #circular-timer[data-timer-theme="wave"] .timer-svg, #circular-timer[data-timer-theme="pill"] .timer-svg{
    display: none;
}
#circular-timer[data-timer-theme="line"] #xcart-otp-clock, #circular-timer[data-timer-theme="dots"] #xcart-otp-clock, #circular-timer[data-timer-theme="stack"] #xcart-otp-clock, #circular-timer[data-timer-theme="wave"] #xcart-otp-clock{
        position: static;
    height: auto;
    margin: 0 0 8px 0;
    scale: 1;
    font-size: 14px;
    color: var(--timer-text-color);
    background: none;
    width: auto;
    margin: 0px 10px;
    padding: 0px;
}
#circular-timer[data-timer-theme="line"] .xcart-timer-bar, #circular-timer[data-timer-theme="dots"] .xcart-timer-bar, #circular-timer[data-timer-theme="stack"] .xcart-timer-bar, #circular-timer[data-timer-theme="wave"] .xcart-timer-bar{
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}
#circular-timer[data-timer-theme="dots"] .xcart-timer-bar{
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        rgba(15,23,42,0.12) 0 4px,
        transparent 4px 10px
    );
}
#circular-timer[data-timer-theme="dots"] .xcart-timer-bar-fill{
    background: repeating-linear-gradient(
        90deg,
        var(--timer-progress-color) 0 4px,
        transparent 4px 10px
    );
}
#circular-timer[data-timer-theme="stack"] .xcart-timer-bar{
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        rgba(15,23,42,0.16) 0 6px,
        transparent 6px 12px
    );
}
#circular-timer[data-timer-theme="stack"] .xcart-timer-bar-fill{
    background: repeating-linear-gradient(
        90deg,
        var(--timer-progress-color) 0 6px,
        transparent 6px 12px
    );
}
#circular-timer[data-timer-theme="wave"] .xcart-timer-bar{
    height: 10px;
    background: linear-gradient(90deg, var(--timer-track-color), rgba(15,23,42,0.04));
}
#circular-timer[data-timer-theme="wave"] .xcart-timer-bar-fill{
    background: linear-gradient(90deg, rgba(255,255,255,0.2), var(--timer-progress-color), rgba(255,255,255,0.35));
    background-size: 40px 100%;
    animation: xcartTimerWave 2s linear infinite;
}
#circular-timer[data-timer-theme="pill"]{
    width: 100%;
    height: 40px;
    margin: 14px auto 0;
}
#circular-timer[data-timer-theme="pill"] .xcart-timer-bar{
    display: block;
    height: 100%;
    border-radius: 999px;
}
#circular-timer[data-timer-theme="pill"] #xcart-otp-clock{
    position: absolute;
    inset: 0;
    scale: 1;
    font-size: 13px;
    color: var(--timer-text-color);
    background: none;
    border-radius: 999px;
}
#xcart-otp-login-input:focus-visible{
    outline-color: #13906b;
}
#circular-timer[data-timer-theme="none"]{
    display: none !important;
}
@keyframes xcartTimerWave {0%{ background-position: 0 0; }
100%{ background-position: 40px 0; }
}
.otp-login-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: auto;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: none;
    animation: fadeIn var(--transition-speed) ease-out;
}
body.xcart-otp-overlay-active > :not(.otp-login-container):not(.xcart-otp-toast-stack):not(script):not(style):not(link){
    filter: blur(15px);
}
body.xcart-otp-shortcode-shell-active{
    overflow: hidden !important;
}
.otp-login-container.xcart-otp-shortcode-shell{
    width: 100vw;
    min-height: 100vh;
    z-index: 2147483000;
}
.otp-login-container.xcart-otp-container--modern{
    background: rgba(255,255,255,0.88);
    backdrop-filter: none;
}
body.xcart-otp-modern-active > :not(.otp-login-container):not(.xcart-otp-toast-stack):not(script):not(style):not(link){
    filter: blur(22px);
}
.xcart-otp-form-wrapper{
    width: min(980px, 92vw);
    max-width: 980px;
    position: relative;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(15,23,42,0.14);
    overflow: hidden;
    background: #ffffff;
    animation: scaleUp var(--transition-speed) ease-out;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        border: unset !important;
}
.xcart-otp-form-wrapper.xcart-otp-is-verifying{
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}
.xcart-otp-form-wrapper.xcart-otp-is-verifying .xcart-otp-form-area{
    opacity: 0.92;
}
.xcart-otp-form-wrapper.xcart-otp-is-verifying #xcart-otp-code-container{
    filter: saturate(0.9);
}
.xcart-otp-login-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 50;
}
.xcart-otp-form-wrapper.xcart-otp-is-logging-in .xcart-otp-login-overlay{
    opacity: 1;
    pointer-events: auto;
}
.xcart-otp-form-wrapper.xcart-otp-is-logging-in .xcart-otp-form-area{
    opacity: 0.60;
    transform: scale(0.985);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.xcart-otp-login-overlay-card{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #fff;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}
.xcart-otp-login-spinner{
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    animation: xcartSpin 0.9s linear infinite;
}
.xcart-otp-login-text{
    font-size: 13px;
    line-height: 1.7;
    font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {.xcart-otp-login-overlay, .xcart-otp-form-wrapper.xcart-otp-is-logging-in .xcart-otp-form-area{
        transition: none !important;
    }
}
/* ---- Preset 12/13: mimic Panel / Version logins ---- */
.xcart-otp-form-area{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 0px;
}
#xcart-otp-send-btn{
    border: none;
    width: 90%;
    height: 44px;
    border-radius: 12px;
    display: block;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
#xcart-otp-back-btn{
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
#xcart-otp-back-btn:hover{
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}
#xcart-otp-back-btn .back-btn-text{
    line-height: 1;
    font-weight: 600;
}
#xcart-otp-send-btn:hover{
    transition: transform 0.2s ease-in-out, box-shadow 0.1s ease-in-out;
    position: relative;
    overflow: hidden;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.xcart-otp-bottom-button{
    width: 90%;
    min-height: 40px;
    margin: 10px auto 0;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: inherit;
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.xcart-otp-bottom-button:hover{
    transform: translateY(-1px);
    text-decoration: none;
}
.xcart-otp-form-wrapper[data-xcart-stage="otp"] .xcart-otp-bottom-button{
    display: none !important;
}
#xcart-otp-verify-btn:hover{
    transition: transform 0.2s ease-in-out, box-shadow 0.1s ease-in-out;
    position: relative;
    overflow: hidden;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#xcart-otp-login-input{
    border: 1px solid #c7c7c7;
    width: 90%;
    height: 40px;
    border-radius: 5px;
    display: block;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
    direction: ltr;
}
#xcart-auth-container{
    width: 100%;
    margin-top: 12px;
    text-align: center;
}
#xcart-auth-title{
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.95;
}
#xcart-auth-identifier, #xcart-auth-code{
    border: 1px solid #c7c7c7;
    width: 90%;
    height: 40px;
    border-radius: 5px;
    display: block;
    text-align: center;
    margin: 0 auto 10px;
    box-sizing: border-box;
    direction: ltr;
}
#xcart-auth-code{
    letter-spacing: 6px;
    font-size: 18px;
}
#xcart-auth-error{
    width: 90%;
    margin: 0 auto 10px;
    color: #d63638;
    font-size: 13px;
}
#xcart-auth-login-btn, #xcart-auth-back-btn{
    width: 90%;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.1s ease-in-out;
}
#xcart-auth-login-btn:hover, #xcart-auth-back-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
#xcart-auth-back-btn{
    margin-top: 8px;
    background: rgba(0,0,0,0.04);
    color: #333;
}
p.xcart-otp-line{
    padding: 5px 0px !Important;
    width: 100% !Important;
    line-height: 40px;
    margin: 0px;
}
p#xcart-otp-go-back-btn{
    line-height: 25px;
    cursor: pointer;
}
#xcart-otp-login-input::-webkit-input-placeholder{
    color: #b3b3b3e3;
    font-size: 14px;
}
.xcart-otp-verify-btn-section{
    display: flex;
    text-align: center;
    justify-content: center;
}
#xcart-otp-verify-btn{
    width: 100%;
    border: none;
    border-radius: 5px;
    margin-top: 20px !important;
    height: 35px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    cursor: pointer;
}
#xcart-otp-resend-btn{
    border: none;
    border-radius: 5px;
    width: 30%;
    height: 35px;
    margin-top: 20px !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.xcart-otp-digit{
    border: 1px solid #d6d6d6;
    direction: ltr;
    height: 40px;
    border-radius: 5px;

}
.xcart-otp-code--single .xcart-otp-digit--single{
    width: min(320px, 100%);
    /* max-width: 320px; */
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: calc(14px - (var(--otp-length, 4) * 1px));
    font-variant-numeric: tabular-nums;
}
.xcart-otp-code--multi{
    gap: 10px !important;
}
.xcart-otp-code--multi .xcart-otp-digit--box{
    width: 44px;
    text-align: center;
    font-size: 18px;
}
.xcart-otp-digit--animated{
    border-width: 2px !important;
    border-style: solid !important;
    border-color: rgba(19, 144, 107, 0.65) !important;
    background-clip: padding-box;
    box-shadow: 0 0 0 0 rgba(19, 144, 107, 0.0);
    animation: xcartOtpGlow 1.6s ease-in-out infinite;
}
.xcart-otp-digit--animated:focus-visible{
    animation-duration: 1.2s;
    box-shadow: 0 0 0 6px rgba(19, 144, 107, 0.10);
}
@keyframes xcartOtpGlow {0%, 100%{
        box-shadow: 0 0 0 0 rgba(19, 144, 107, 0.0);
    }
50%{
        box-shadow: 0 0 0 6px rgba(19, 144, 107, 0.12);
    }
}
.xcart-otp-digit:focus-visible{
    outline-color: #13906b;
}
div#xcart-otp-error{
    font-size: 12px;
    margin-top: 20px;
}
#xcart-otp-code-container{
    direction: ltr;
    justify-content: center;
        padding-top: 10px;
}
.xcart-onboarding-field{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    width: 100%;
}
.xcart-onboarding-label{
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.xcart-onboarding-required{
    color: #d63638;
    font-size: 14px;
    line-height: 1;
}
.xcart-onboarding-input{
    border: 1px solid #c7c7c7;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
}
.xcart-onboarding-input[type="tel"], .xcart-onboarding-input[type="email"]{
    direction: ltr;
    text-align: center;
}
textarea.xcart-onboarding-input{
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}
select.xcart-onboarding-input{
    height: 42px;
    background: #fff;
}
.xcart-onboarding-input:focus-visible{
    outline-color: #13906b;
}
#xcart-otp-onboarding{
    width: 70%;
    margin: 0 auto;
    text-align: right;
}
.xcart-onboarding-thumbs{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 4px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.xcart-onboarding-thumb{
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.95);
    color: #333;
    border-radius: 12px;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.xcart-onboarding-thumb:hover{
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}
.xcart-onboarding-thumb.is-active{
    background: #13906b;
    border-color: #13906b;
    color: #fff;
}
.xcart-onboarding-thumb.is-complete{
    background: rgba(19,144,107,0.12);
    border-color: rgba(19,144,107,0.35);
    color: #0b5d46;
}
.xcart-onboarding-thumb.is-disabled{
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.xcart-onboarding-thumb-num{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: rgba(0,0,0,0.08);
    color: inherit;
    flex: 0 0 auto;
}
.xcart-onboarding-thumb.is-active .xcart-onboarding-thumb-num{
    background: rgba(255,255,255,0.25);
}
.xcart-otp-code-container-title{
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
    display: block;
}
#xcart-password-error{
    text-align: center;
    margin-top: 10px;
}
#xcart-otp-error, #xcart-password-error, #xcart-otp-code-response, #xcart-otp-onboarding-error{
    display: none !important;
}
#xcart-password-input{
    border: 1px solid #c7c7c7;
    width: 70%;
    height: 40px;
    border-radius: 5px;
    display: block;
    text-align: center;
    margin: 20px auto;
    box-sizing: border-box;
    direction: ltr;
}
.xcart-otp-method-tabs{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px;
    font-size: 13px;
    user-select: none;
    direction: rtl;
}
.xcart-otp-method-tab{
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0.66;
    border-bottom: 2px solid transparent;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}
.xcart-otp-method-tab:hover{
    opacity: 0.95;
    transform: translateY(-1px);
}
.xcart-otp-method-tab.is-active{
    opacity: 1;
    color: var(--xc-panel-button, #13906b);
    border-color: currentColor;
    font-weight: 700;
}
.xcart-otp-method-sep{
    opacity: 0.45;
    font-size: 13px;
}
.xcart-otp-alt-methods{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.xcart-otp-alt-btn{
    flex: 1;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(0,0,0,0.03);
    color: #333;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.xcart-otp-alt-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.xcart-otp-alt-btn:active{
    transform: translateY(0);
}
.xcart-otp-alt-btn--google{
    background: rgba(255,255,255,0.85);
}
.xcart-otp-alt-btn--auth{
    background: rgba(255,255,255,0.85);
}
@media (max-width: 420px) {.xcart-otp-alt-methods{ flex-direction: column; }
.xcart-otp-alt-btn{ width: 100%; }
}
.loading-spinner{
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}
@keyframes spin {0%{
        transform: rotate(0deg);
    }
100%{
        transform: rotate(360deg);
    }
}
.xcart-btn-loader{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.xcart-btn-loader--spinner{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: currentColor;
    animation: xcartSpin 0.65s linear infinite;
    backface-visibility: hidden;
    will-change: transform;
}
@keyframes xcartSpin {from{
        transform: rotate(0deg);
    }
to{
        transform: rotate(360deg);
    }
}
.xcart-btn-loader--dots{
    gap: 4px;
}
.xcart-btn-loader--dots span{
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
    animation: xcartDots 0.9s infinite ease-in-out;
    opacity: 0.7;
}
.xcart-btn-loader--dots span:nth-child(2){ animation-delay: 0.15s; }
.xcart-btn-loader--dots span:nth-child(3){ animation-delay: 0.3s; }
@keyframes xcartDots {0%, 80%, 100%{ transform: scale(0.6); opacity: 0.55; }
40%{ transform: scale(1); opacity: 1; }
}
.xcart-btn-loader--bar{
    width: 22px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}
.xcart-btn-loader--bar::before{
    content: "";
    position: absolute;
    inset: 0;
    width: 50%;
    background: currentColor;
    border-radius: inherit;
    transform: translateX(-120%);
    animation: xcartBar 1s infinite ease-in-out;
}
@keyframes xcartBar {0%{ transform: translateX(-120%); }
100%{ transform: translateX(220%); }
}
.xcart-otp-form-wrapper-no-image{
    width: min(460px, 92vw);
    max-width: 460px;
}
.animated-button{
  background-color: var(--btn-bg-color);
  color: var(--btn-text-color);
  font-size: var(--btn-font-size);

  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;

  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;

  position: relative;
  overflow: hidden;
}
.animated-button:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.animated-button:active{
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
@media only screen and (max-width: 600px) {.xcart-otp-form-wrapper{
    align-items: center;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0px;
}
.xcart-otp-form-wrapper .xcart-otp-form-area{
    order: 1;
}
.xcart-otp-form-image{
    width: 100%;
    display: flex
;
    justify-content: center;
    height: auto;
    min-height: 220px;
    align-items: center;
    order: 2;
}
img.xcart-otp-login-img.skip-lazy{
    width: 100%;
}
.xcart-otp-form-image{
    width: 100%;
    display: flex
;
    justify-content: center;
    height: auto;
    min-height: 220px;
    overflow: unset;
    align-items: center;
    order: 2;
}
.xcart-otp-form-area{
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}
.otp-login-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
#xcart-otp-onboarding{
    width: 100%;
}
}
@media only screen and (min-width: 601px) and (max-width: 1024px) {.xcart-otp-form-wrapper{
    width: 90%;
    max-width: 90%;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    box-shadow: 1px 1px 3px 0px #d6d6d638;
    overflow: hidden;
    background: white;
}
}
@media only screen and (max-width: 600px) {.otp-login-container{
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}
}
@media only screen and (min-width: 601px) and (max-width: 1024px) {.otp-login-container{
    padding: 28px;
    box-sizing: border-box;
}
}
.xcart-otp-background-wrapper{
    display: flex
;
    justify-content: center;
    align-items: center;
}
.xcart-otp-form-image{
    display: flex
;
    object-fit: cover;
    height: 450px;
}
img.xcart-otp-login-img.skip-lazy{
    object-fit: cover;
    width: 100%;
}
/* Refined panel themes: shared structure, two palettes */
@keyframes xcartOtpActionReveal {from{
        opacity: 0;
        transform: translateY(6px);
    }
to{
        opacity: 1;
        transform: translateY(0);
    }
}
@media only screen and (max-width: 600px) {.otp-login-container.xcart-otp-container--panel{
        align-items: flex-start !important;
        height: 100dvh;
        padding-top: max(30%, env(safe-area-inset-top)) !important;
        padding-bottom: 16px !important;
    }
}
/* Preset 14: modern minimal white flow */
/* Final winning layer for the three supported OTP presets. */
/* OTP login polish final override: RTL toast, compact code boxes, and tighter preset 14 spacing. */
.xcart-otp-toast-stack{
    right: 18px !important;
    left: auto !important;
    align-items: flex-end !important;
}
.xcart-otp-toast{
    max-width: min(360px, calc(100vw - 36px)) !important;
    text-align: right !important;
    direction: rtl !important;
    transform: translateX(8px);
}
@media only screen and (max-width: 600px) {.xcart-otp-toast-stack{
        top: 12px !important;
        right: 12px !important;
        left: 12px !important;
        align-items: stretch !important;
    }
.xcart-otp-toast{
        width: 100% !important;
        max-width: none !important;
    }
}
/* Mobile hardening for the three supported login presets. */
@media only screen and (max-width: 600px) {html, body{
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
.otp-login-container{
        position: fixed !important;
        inset: 0 !important;
        width: 100dvw !important;
        max-width: 100dvw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}
/* Respect the editor form layout switch for the dark and light panel presets. */
/* Final OTP editor/runtime polish: two-column side, OTP boxes, and timer modes. */
.xcart-otp-code--multi{
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(6px, 1.4vw, 10px) !important;
    box-sizing: border-box !important;
}
.xcart-otp-code--multi .xcart-otp-digit--box{
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 56px !important;
    height: clamp(46px, 9vw, 54px) !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
#xcart-otp-timer-wrapper{
    width: 100% !important;
    max-width: 100% !important;
}
#circular-timer{
    box-sizing: border-box !important;
    --timer-progress-color: var(--xc-panel-button, #13906b);
    --timer-track-color: var(--xc-panel-subtle, rgba(15,23,42,0.14));
    --timer-text-color: var(--xc-panel-muted, #475569);
}
#circular-timer[data-timer-theme="default"], #circular-timer:not([data-timer-theme]){
    width: 96px !important;
    height: 96px !important;
    margin: 10px auto 0 !important;
}
#circular-timer[data-timer-theme="line"], #circular-timer[data-timer-theme="dots"], #circular-timer[data-timer-theme="stack"], #circular-timer[data-timer-theme="wave"]{
    width: 100% !important;
    min-height: 28px !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    direction: ltr !important;
}
#circular-timer[data-timer-theme="line"] #xcart-otp-clock, #circular-timer[data-timer-theme="dots"] #xcart-otp-clock, #circular-timer[data-timer-theme="stack"] #xcart-otp-clock, #circular-timer[data-timer-theme="wave"] #xcart-otp-clock{
    position: static !important;
    width: 42px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    scale: 1 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: var(--timer-text-color) !important;
    background: transparent !important;
    direction: ltr !important;
}
#circular-timer[data-timer-theme="line"] .xcart-timer-bar, #circular-timer[data-timer-theme="dots"] .xcart-timer-bar, #circular-timer[data-timer-theme="stack"] .xcart-timer-bar, #circular-timer[data-timer-theme="wave"] .xcart-timer-bar{
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 7px !important;
}
#circular-timer[data-timer-theme="dots"] .xcart-timer-bar, #circular-timer[data-timer-theme="dots"] .xcart-timer-bar-fill{
    height: 8px !important;
}
#circular-timer[data-timer-theme="stack"] .xcart-timer-bar, #circular-timer[data-timer-theme="stack"] .xcart-timer-bar-fill{
    height: 10px !important;
}
#circular-timer[data-timer-theme="wave"] .xcart-timer-bar{
    height: 9px !important;
}
#circular-timer[data-timer-theme="pill"]{
    width: 100% !important;
    height: 38px !important;
    margin: 10px 0 0 !important;
}
#circular-timer[data-timer-theme="pill"] #xcart-otp-clock{
    font-size: 13px !important;
    scale: 1 !important;
}
.xcart-flip-clock{
    width: 100% !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 10px auto 0 !important;
}
.xcart-flip-clock .flip-unit{
    width: 36px !important;
    height: 44px !important;
}
.xcart-flip-clock .flip-card{
    font-size: 24px !important;
    border-radius: 12px !important;
}
@media only screen and (max-width: 600px) {.xcart-otp-code--multi{
        gap: 7px !important;
    }
.xcart-otp-code--multi .xcart-otp-digit--box{
        height: clamp(42px, 11vw, 50px) !important;
        max-width: 52px !important;
    }
}
.xcart-otp-form-wrapper[data-xcart-stage="otp"] .xcart-otp-line[data-xcart-show-otp="0"]{
    display: none !important;
}
.xcart-otp-form-wrapper[data-xcart-stage="otp"] .xcart-otp-line[data-xcart-show-otp="1"]{
    display: block !important;
}
/* OTP timer theme polish. Keep this last so editor settings win over older preset CSS. */
#circular-timer{
    --timer-progress-color: var(--xc-panel-button, #13906b);
    --timer-track-color: rgba(19, 144, 107, 0.14);
    --timer-text-color: var(--xc-panel-muted, #475569);
}
#circular-timer .timer-background{
    stroke: var(--timer-track-color) !important;
}
#circular-timer .timer-progress{
    stroke: var(--timer-progress-color) !important;
}
#circular-timer .xcart-timer-bar{
    background: var(--timer-track-color) !important;
}
#circular-timer .xcart-timer-bar-fill{
    background: var(--timer-progress-color) !important;
}
#circular-timer[data-timer-theme="line"], #circular-timer[data-timer-theme="dots"], #circular-timer[data-timer-theme="stack"], #circular-timer[data-timer-theme="wave"]{
    min-height: 24px !important;
    margin: 4px 0 0 !important;
    gap: 10px !important;
}
#circular-timer[data-timer-theme="line"] .xcart-timer-bar{
    height: 6px !important;
}
#circular-timer[data-timer-theme="dots"] .xcart-timer-bar, #circular-timer[data-timer-theme="dots"] .xcart-timer-bar-fill{
    height: 7px !important;
}
#circular-timer[data-timer-theme="stack"] .xcart-timer-bar, #circular-timer[data-timer-theme="stack"] .xcart-timer-bar-fill{
    height: 9px !important;
}
#circular-timer[data-timer-theme="wave"] .xcart-timer-bar{
    height: 8px !important;
}
#circular-timer[data-timer-theme="dots"] .xcart-timer-bar{
    background: repeating-linear-gradient(
        90deg,
        var(--timer-track-color) 0 5px,
        transparent 5px 11px
    ) !important;
}
#circular-timer[data-timer-theme="dots"] .xcart-timer-bar-fill{
    background: repeating-linear-gradient(
        90deg,
        var(--timer-progress-color) 0 5px,
        transparent 5px 11px
    ) !important;
}
#circular-timer[data-timer-theme="stack"] .xcart-timer-bar{
    background: repeating-linear-gradient(
        90deg,
        var(--timer-track-color) 0 8px,
        transparent 8px 14px
    ) !important;
}
#circular-timer[data-timer-theme="stack"] .xcart-timer-bar-fill{
    background: repeating-linear-gradient(
        90deg,
        var(--timer-progress-color) 0 8px,
        transparent 8px 14px
    ) !important;
}
#circular-timer[data-timer-theme="wave"] .xcart-timer-bar-fill{
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--timer-progress-color) 76%, #ffffff),
        var(--timer-progress-color),
        color-mix(in srgb, var(--timer-progress-color) 62%, #ffffff)
    ) !important;
    background-size: 42px 100% !important;
    animation: xcartTimerWave 2s linear infinite !important;
}
#circular-timer[data-timer-theme="line"] #xcart-otp-clock, #circular-timer[data-timer-theme="dots"] #xcart-otp-clock, #circular-timer[data-timer-theme="stack"] #xcart-otp-clock, #circular-timer[data-timer-theme="wave"] #xcart-otp-clock{
    flex: 0 0 42px !important;
    color: var(--timer-text-color) !important;
    font-variant-numeric: tabular-nums !important;
    text-align: left !important;
}
.xcart-flip-clock{
    display: none;
    width: 100% !important;
    max-width: 190px !important;
    direction: ltr !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
}
.xcart-flip-clock .flip-unit{
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 46px !important;
    perspective: 700px !important;
}
.xcart-flip-clock .flip-card{
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: var(--flip-card-bg, #111827) !important;
    color: var(--flip-card-color, #ffffff) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: none !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums !important;
}
@media only screen and (max-width: 600px) {.xcart-flip-clock{
        max-width: 174px !important;
        gap: 5px !important;
    }
.xcart-flip-clock .flip-unit{
        flex-basis: 36px !important;
        width: 36px !important;
        height: 42px !important;
    }
.xcart-flip-clock .flip-card{
        font-size: 22px !important;
    }
}
.xcart-otp-form-wrapper .screen-reader-text{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
