/* Sorenji auth — uses the theme's tokens (--c-*, --fw-*), with fallbacks. */

/* ---------- My Account (logged out) ---------- */
.sj-auth { max-width: 460px; margin-inline: auto; }
.sj-auth__card {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: #fff; border: 1px solid var(--c-line, #eee7dd); border-radius: 28px;
    box-shadow: 0 24px 60px -30px rgba(196, 106, 3, .35);
}
.sj-auth__classic { margin-block-start: 1.25rem; border: 1px solid var(--c-line, #eee7dd); border-radius: 18px; background: #fff; }
.sj-auth__classic summary {
    padding: 1rem 1.25rem; cursor: pointer; list-style: none;
    font-size: var(--fs-sm, .875rem); font-weight: var(--fw-medium, 500); color: var(--c-muted, #77737a); text-align: center;
}
.sj-auth__classic summary::-webkit-details-marker { display: none; }
.sj-auth__classic[open] summary { border-block-end: 1px solid var(--c-line, #eee7dd); }
.sj-auth__classic-body { padding: 1.25rem; }
/* WooCommerce's own login/register inside: stacked, no extra cards */
.sj-auth__classic #customer_login { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.sj-auth__classic #customer_login > div { padding: 0; border: 0; }
.sj-auth__classic h2 { font-size: var(--fs-md, 1.125rem); }

/* ---------- OTP widget ---------- */
.sj-otp__title { font-size: var(--fs-lg, 1.4rem); font-weight: var(--fw-black, 900); margin: 0 0 .35rem; }
.sj-otp__hint { color: var(--c-muted, #77737a); font-size: var(--fs-sm, .875rem); margin: 0 0 1.25rem; }
.sj-otp__label { display: block; margin-block-end: .4rem; }
.sj-otp__input { margin-block-end: 1rem; font-size: 1.15rem !important; letter-spacing: .06em; text-align: center; }
.sj-otp__link {
    border: 0; background: none; padding: 0; cursor: pointer;
    color: var(--c-orange-700, #c46a03); font-weight: var(--fw-bold, 700); font-size: inherit;
}
.sj-otp__link:disabled { color: var(--c-muted, #77737a); cursor: default; font-weight: var(--fw-medium, 500); }
.sj-otp__resend { display: block; margin: 1rem auto 0; font-size: var(--fs-sm, .875rem); }
.sj-otp__boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-block-end: 1.25rem; }
.sj-otp__box {
    min-height: 58px !important; padding: 0 !important; text-align: center;
    font-size: 1.5rem; font-weight: var(--fw-bold, 700); border-radius: 14px !important;
}
.sj-otp__box:not(:placeholder-shown), .sj-otp__box:focus { border-color: var(--c-orange, #f89b25) !important; }
.sj-otp__msg { min-height: 1.5em; margin: .9rem 0 0; font-size: var(--fs-sm, .875rem); font-weight: var(--fw-medium, 500); color: var(--c-red, #d6453d); text-align: center; }
.sj-otp__msg.is-ok { color: var(--c-green, #1f9d55); }
.sj-otp .btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Seller signup ---------- */
.sj-seller {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start;
}
.sj-seller__intro {
    position: sticky; inset-block-start: 140px;
    padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 32px; overflow: hidden;
    background: linear-gradient(140deg, var(--c-orange, #f89b25), #fbb33a 55%, var(--c-sun, #ffcf51));
    color: var(--c-ink, #2b2a2c);
}
.sj-seller__eyebrow {
    display: inline-block; padding: .25rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .75);
    font-size: var(--fs-xs, .78rem); font-weight: var(--fw-bold, 700);
}
.sj-seller__title { font-size: var(--fs-xl, 2rem); font-weight: var(--fw-black, 900); margin: 1rem 0 .5rem; line-height: 1.3; }
.sj-seller__lead { margin: 0 0 1.25rem; }
.sj-seller__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sj-seller__perks li {
    position: relative; padding: .7rem 1rem; padding-inline-start: 2.6rem; border-radius: 14px;
    background: rgba(255, 255, 255, .72); font-weight: var(--fw-medium, 500); font-size: var(--fs-sm, .875rem);
}
.sj-seller__perks li::before {
    content: "✓"; position: absolute; inset-inline-start: .9rem; inset-block-start: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--c-ink, #2b2a2c); color: #fff; font-size: .72rem;
}
.sj-seller__panel {
    padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff;
    border: 1px solid var(--c-line, #eee7dd); border-radius: 32px;
}

.sj-steps { display: flex; gap: .5rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.sj-steps__item { flex: 1; display: flex; align-items: center; gap: .5rem; padding-block-end: .75rem; border-block-end: 3px solid var(--c-line, #eee7dd); color: var(--c-muted, #77737a); font-size: var(--fs-xs, .78rem); font-weight: var(--fw-medium, 500); }
.sj-steps__num { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--c-cream, #fff4e3); font-weight: var(--fw-bold, 700); }
.sj-steps__item.is-current { border-color: var(--c-orange, #f89b25); color: var(--c-ink, #2b2a2c); font-weight: var(--fw-bold, 700); }
.sj-steps__item.is-current .sj-steps__num { background: var(--c-orange, #f89b25); color: #fff; }
.sj-steps__item.is-done { border-color: var(--c-green, #1f9d55); }
.sj-steps__item.is-done .sj-steps__num { background: var(--c-green, #1f9d55); color: #fff; }

.sj-verified { padding: .7rem 1rem; border-radius: 14px; background: #edf9f1; color: #17643a; font-size: var(--fs-sm, .875rem); font-weight: var(--fw-medium, 500); }
.sj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.25rem; }
.sj-field { display: flex; flex-direction: column; gap: .35rem; font-weight: var(--fw-medium, 500); font-size: var(--fs-sm, .875rem); }
.sj-field em { color: var(--c-red, #d6453d); font-style: normal; }
.sj-field small { color: var(--c-muted, #77737a); font-weight: var(--fw-regular, 400); }
.sj-field--wide { grid-column: 1 / -1; }
.sj-url { display: flex; align-items: stretch; border: 1.5px solid var(--c-line, #eee7dd); border-radius: 10px; overflow: hidden; background: #fff; }
.sj-url:focus-within { border-color: var(--c-orange, #f89b25); box-shadow: 0 0 0 4px rgba(248, 155, 37, .15); }
.sj-url__base { display: flex; align-items: center; padding-inline: .8rem; background: #faf6ef; color: var(--c-muted, #77737a); font-size: var(--fs-xs, .78rem); white-space: nowrap; }
.sj-url input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.sj-check { display: flex; align-items: flex-start; gap: .6rem; margin-block-end: 1.25rem; font-size: var(--fs-sm, .875rem); font-weight: var(--fw-regular, 400); cursor: pointer; }
.sj-check input { margin-block-start: .3rem; }
.sj-done { text-align: center; padding-block: 1rem; }

@media (max-width: 860px) {
    .sj-seller { grid-template-columns: 1fr; }
    .sj-seller__intro { position: static; }
    .sj-grid { grid-template-columns: 1fr; }
    .sj-steps__label { display: none; }
    .sj-steps__item.is-current .sj-steps__label { display: inline; }
}
