/* Xellence Shop – sign in / sign up sheet (bottom sheet on phones, dialog on larger screens) */
.xs-signin { position: fixed; inset: 0; z-index: 100050; display: flex; align-items: flex-end; justify-content: center; font-family: inherit; color: #1e1b2e; }
.xs-signin[hidden] { display: none; }
html.xs-auth-open, html.xs-auth-open body { overflow: hidden; }
.xs-signin__scrim { position: absolute; inset: 0; background: rgba(20, 14, 36, .55); opacity: 0; transition: opacity .22s ease; }
.xs-signin__sheet { position: relative; width: 100%; max-width: 480px; max-height: 94vh; overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(20, 14, 36, .25); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
.xs-signin.is-in .xs-signin__scrim { opacity: 1; }
.xs-signin.is-in .xs-signin__sheet { transform: none; }
.xs-signin__grab { display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: #ddd8ea; }
.xs-signin__box { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 6px 22px 24px; }
.xs-signin__top { display: flex; justify-content: space-between; align-items: center; margin: 0 -10px; }
.xs-signin__icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: #4b4763; cursor: pointer; }
.xs-signin__icon-btn:hover, .xs-signin__icon-btn:focus-visible { background: #f3eefc; color: #1e1b2e; }
.xs-signin__badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #efeafc; color: #6d28d9; }
.xs-signin__badge--big { width: 76px; height: 76px; border-radius: 22px; }
.xs-signin__badge--ok { background: #eaf6ee; color: #15803d; border-radius: 50%; width: 72px; height: 72px; }
.xs-signin__hero { display: flex; justify-content: center; padding: 4px 0 2px; }
.xs-signin__hero img { max-height: 64px; width: auto; }
.xs-signin__box[data-step="welcome"] { text-align: center; align-items: stretch; }
.xs-signin__box[data-step="welcome"] .xs-signin__hero .xs-signin__badge { margin: 0 auto; }
.xs-signin__title { margin: 2px 0 0; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.2px; color: #1e1b2e; }
.xs-signin__sub { margin: 0; font-size: 14.5px; line-height: 1.5; color: #5c5873; }
.xs-signin__sub strong { color: #1e1b2e; word-break: break-all; }
.xs-signin__perks { margin: 4px 0 6px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.xs-signin__perks li { position: relative; padding-left: 28px; font-size: 14px; color: #3a3650; }
.xs-signin__perks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #eaf6ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.xs-signin form { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; }
.xs-signin__f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #3a3650; }
.xs-signin__f input { width: 100%; min-height: 50px; box-sizing: border-box; padding: 0 14px; border: 1.5px solid #ddd8ea; border-radius: 14px; background: #fff; color: #1e1b2e; font: inherit; font-size: 16px; font-weight: 500; outline: 0; transition: border-color .15s, box-shadow .15s; }
.xs-signin__f input:focus { border-color: #6d28d9; box-shadow: 0 0 0 4px rgba(109, 40, 217, .14); }
.xs-signin__f.has-error input { border-color: #dc2626; }
.xs-signin__err { font-style: normal; font-weight: 600; font-size: 12.5px; color: #b91c1c; min-height: 0; }
.xs-signin__err:empty { display: none; }
.xs-signin__pre { display: flex; align-items: stretch; }
.xs-signin__pre b { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid #ddd8ea; border-right: 0; border-radius: 14px 0 0 14px; background: #f6f4fb; color: #3a3650; font-size: 15px; }
.xs-signin__pre input { border-radius: 0 14px 14px 0; }
.xs-signin__code { text-align: center; letter-spacing: .5em; font-size: 24px !important; font-weight: 800 !important; padding-left: calc(14px + .5em) !important; }
.xs-signin__btn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; background: #6d28d9; color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, transform .1s; }
.xs-signin__btn:hover { background: #5b21b6; }
.xs-signin__btn:active { transform: scale(.98); }
.xs-signin__btn:disabled { opacity: .7; cursor: progress; }
.xs-signin__btn.is-busy { color: transparent; }
.xs-signin__btn.is-busy::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: xs-auth-spin .7s linear infinite; }
@keyframes xs-auth-spin { to { transform: rotate(360deg); } }
.xs-signin__link { align-self: center; min-height: 44px; padding: 0 10px; border: 0; background: none; color: #6d28d9; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.xs-signin__link:disabled { color: #8a86a0; cursor: default; }
.xs-signin__row { display: flex; justify-content: space-between; margin: 0; }
.xs-signin__hint, .xs-signin__legal { margin: 0; font-size: 12.5px; color: #6b6785; text-align: center; }
.xs-signin__legal a { color: #5b21b6; }
.xs-signin__done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 16px; text-align: center; }
.xs-signin__toast { position: sticky; bottom: 0; margin: 0; padding: 10px 14px; border-radius: 12px; background: #1e1b2e; color: #fff; font-size: 13.5px; text-align: center; }
@media (min-width: 783px) {
	.xs-signin { align-items: center; }
	.xs-signin__sheet { max-width: 440px; border-radius: 24px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
	.xs-signin.is-in .xs-signin__sheet { transform: none; opacity: 1; }
	.xs-signin__grab { display: none; }
	.xs-signin__box { padding: 14px 28px 28px; }
}
@media (prefers-reduced-motion: reduce) { .xs-signin__sheet, .xs-signin__scrim { transition: none; } }

/* checkout: sign in first */
.xs-login-gate { max-width: 520px; margin: 20px auto 40px; padding: 30px 24px; border: 1px solid #ece9f3; border-radius: 22px; background: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.xs-login-gate__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #efeafc; color: #6d28d9; }
.xs-login-gate h2 { margin: 0; font-size: 21px; }
.xs-login-gate p { margin: 0; color: #5c5873; }
.xs-login-gate__cart { padding: 8px 14px; border-radius: 999px; background: #f6f4fb; font-weight: 700; color: #3a3650 !important; font-size: 14px; }
.xs-login-gate .xs-btn { min-width: 240px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.xs-login-gate__back { font-size: 14px; font-weight: 600; }

/* sign-in built into the My Account page */
.xs-signin--inline { position: static; display: block; z-index: auto; }
.xs-signin--inline .xs-signin__box { max-width: 440px; margin: 10px auto 30px; padding: 22px 24px 26px; border: 1px solid #ece9f3; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(30, 20, 60, .06); }
.xs-signin--inline .xs-signin__top { min-height: 8px; }
html.xs-signin-inline .xs-acc-classic { display: none; }
