.xzed-phone-auth {
    --xzed-auth-ink: #17233c;
    --xzed-auth-muted: #6c7588;
    --xzed-auth-line: rgba(23, 35, 60, 0.11);
    --xzed-auth-accent: #3e2f91;
    --xzed-auth-accent-soft: rgba(62, 47, 145, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: clamp(28px, 5vw, 64px);
    margin-block-end: 30px;
    padding: clamp(24px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid var(--xzed-auth-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 0%, rgba(120, 96, 225, 0.15), transparent 32%),
        linear-gradient(145deg, #f8f8fd 0%, #fff 58%);
    box-shadow: 0 24px 64px rgba(24, 28, 58, 0.09);
}

.xzed-phone-auth__intro {
    align-self: center;
}

.xzed-phone-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    margin-block-end: 14px;
    border: 1px solid rgba(62, 47, 145, 0.12);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--xzed-auth-accent);
    font-size: .75rem;
    font-weight: 800;
}

.xzed-phone-auth__intro h2 {
    max-width: 520px;
    margin: 0 0 14px;
    color: var(--xzed-auth-ink);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.5;
}

.xzed-phone-auth__intro > p,
.xzed-phone-auth__privacy,
.xzed-phone-auth__code-header p {
    color: var(--xzed-auth-muted);
    line-height: 1.95;
}

.xzed-phone-auth__intro > p {
    max-width: 560px;
    margin: 0;
}

.xzed-phone-auth__benefits {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.xzed-phone-auth__benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4e596d;
    font-size: .84rem;
    font-weight: 650;
}

.xzed-phone-auth__benefits i {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf8f1;
    color: #277447;
    font-style: normal;
    font-weight: 900;
}

.xzed-phone-auth__workspace {
    align-self: center;
    min-width: 0;
}

.xzed-phone-auth__steps {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 9px;
    margin: 0 10px 14px;
    color: #8b92a1;
    font-size: .68rem;
    font-weight: 750;
}

.xzed-phone-auth__steps > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.xzed-phone-auth__steps b {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid #dce0ea;
    border-radius: 50%;
    background: #fff;
    color: #7b8495;
    font-size: .68rem;
}

.xzed-phone-auth__steps i {
    height: 1px;
    background: #dfe3eb;
}

.xzed-phone-auth__steps > span.is-active,
.xzed-phone-auth__steps > span.is-complete {
    color: var(--xzed-auth-accent);
}

.xzed-phone-auth__steps > span.is-active b {
    border-color: var(--xzed-auth-accent);
    background: var(--xzed-auth-accent);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(62, 47, 145, .08);
}

.xzed-phone-auth__steps > span.is-complete b {
    border-color: #b9addf;
    background: #eeeafb;
    color: var(--xzed-auth-accent);
}

.xzed-phone-auth__form {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(23, 35, 60, 0.1);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 38px rgba(24, 28, 58, .07);
}

.xzed-phone-auth__step {
    display: grid;
    gap: 14px;
}

.xzed-phone-auth__step[hidden] { display: none; }

.xzed-phone-auth__field-copy {
    display: grid;
    gap: 4px;
}

.xzed-phone-auth label {
    color: var(--xzed-auth-ink);
    font-weight: 800;
}

.xzed-phone-auth__field-copy small {
    color: var(--xzed-auth-muted);
    font-size: .74rem;
}

.xzed-phone-auth__field {
    display: flex;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid #d9deea;
    border-radius: 15px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.xzed-phone-auth__field:focus-within {
    border-color: var(--xzed-auth-accent);
    box-shadow: 0 0 0 4px rgba(62, 47, 145, 0.09);
    transform: translateY(-1px);
}

.xzed-phone-auth__field > span {
    display: grid;
    place-items: center;
    min-width: 67px;
    border-inline-end: 1px solid #e6e9f0;
    background: #fafbfc;
    color: #747d8e;
    direction: ltr;
    font-size: .86rem;
    font-weight: 750;
}

.xzed-phone-auth__field input,
.xzed-phone-auth__code {
    width: 100%;
    min-height: 56px;
    margin: 0;
    border: 0;
    border-radius: 15px;
    background: #fff;
    color: var(--xzed-auth-ink);
    font-size: 1.03rem;
    text-align: center;
    box-shadow: none;
}

.xzed-phone-auth__code {
    border: 1px solid #d9deea;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .42em;
}

.xzed-phone-auth__code:focus {
    border-color: var(--xzed-auth-accent);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(62, 47, 145, 0.09);
}

.xzed-phone-auth__submit {
    min-height: 52px;
    width: 100%;
    margin-top: 2px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 22px rgba(48, 35, 128, .16);
}

.xzed-phone-auth__code-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.xzed-phone-auth__code-header p {
    margin: 4px 0 0;
    font-size: .8rem;
}

.xzed-phone-auth__edit,
.xzed-phone-auth__resend,
.xzed-phone-auth__password-toggle {
    border: 0;
    background: transparent;
    color: var(--xzed-auth-accent);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.xzed-phone-auth__edit { padding: 5px; white-space: nowrap; }

.xzed-phone-auth__resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.xzed-phone-auth__resend:disabled { color: #949baa; cursor: not-allowed; }

.xzed-phone-auth__feedback {
    min-height: 28px;
    margin-block-start: 11px;
    color: var(--xzed-auth-muted);
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.75;
}

.xzed-phone-auth__feedback.is-error { color: #a32a2a; }
.xzed-phone-auth__feedback.is-success { color: #277447; }

.xzed-phone-auth__privacy {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 9px 0 0;
    font-size: .72rem;
}

.xzed-phone-auth__password-toggle {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 1px dashed rgba(62, 47, 145, .2);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    color: #66599e;
    font-size: .76rem;
}

.xzed-phone-auth.is-busy { opacity: .78; }

.xzed-auth-enhanced .xzed-commerce-page--account #customer_login[hidden] { display: none !important; }
.xzed-auth-enhanced .xzed-commerce-page--account #customer_login:not([hidden]) {
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--xzed-auth-line, rgba(23,35,60,.11));
}

.xzed-commerce-page--account #customer_login::before { content: none !important; }

@media (max-width: 959px) {
    .xzed-phone-auth { grid-template-columns: 1fr; }
    .xzed-phone-auth__intro { max-width: 720px; }
}

@media (max-width: 719px) {
    .xzed-phone-auth {
        gap: 22px;
        margin-inline: -4px;
        padding: 18px;
        border-radius: 21px;
    }

    .xzed-phone-auth__form { padding: 17px; border-radius: 18px; }
    .xzed-phone-auth__intro h2 { font-size: 1.55rem; }
    .xzed-phone-auth__steps { margin-inline: 2px; }
    .xzed-phone-auth__steps > span { font-size: 0; }
    .xzed-phone-auth__steps b { font-size: .68rem; }
    .xzed-phone-auth__code-header { align-items: stretch; flex-direction: column; gap: 7px; }
    .xzed-phone-auth__edit { align-self: flex-start; min-height: 38px; }
}
