.ss-link-button { padding: 0; border: 0; background: none; color: var(--pss-blue, #9e4f2e); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ss-link-button:disabled { color: var(--pss-muted, #6e5a4b); text-decoration: none; cursor: default; }

/* Phone box */
.ss-phone-auth { max-width: 420px; }
.ss-phone-heading { margin: 0 0 6px; }
.ss-phone-intro { margin: 0 0 16px; }
.ss-phone-step { margin: 0; }
.ss-phone-step[hidden] { display: none; }
.ss-phone-step label { display: block; margin-bottom: 6px; font-weight: 800; }
.ss-phone-row { display: flex; align-items: stretch; }
.ss-phone-prefix { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--pss-line, #e3d4bf); border-right: 0; border-radius: 10px 0 0 10px; background: var(--pss-photo, #f6eee2); font-weight: 800; }
.ss-phone-row input { flex: 1; min-width: 0; border-radius: 0 10px 10px 0 !important; }
.ss-phone-auth input[type="tel"] { font-size: 20px !important; min-height: 52px; letter-spacing: .02em; }

/* Main button: the store's clay pill, wherever the box sits (My Account, checkout, punch card). */
.ss-phone-auth .ss-phone-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 16px 0 0; padding: 12px 24px; border: 0; border-radius: var(--pss-pill, 999px); background: var(--pss-blue, #9e4f2e); color: #fffaf3 !important; box-shadow: 0 2px 0 var(--pss-blue-dark, #7a3a1f); font-family: var(--pss-body, inherit); font-size: 17px !important; font-weight: 800; letter-spacing: .01em; text-transform: none; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
.ss-phone-auth .ss-phone-primary:hover:not(:disabled) { transform: translateY(-2px); background: var(--pss-blue-dark, #7a3a1f); box-shadow: 0 4px 0 #5f2c16; }
.ss-phone-auth .ss-phone-primary:disabled { opacity: .75; cursor: default; transform: none; }

/* Code screen */
.ss-phone-sent { margin: 0 0 14px; line-height: 1.5; }
.ss-phone-number { white-space: nowrap; }
.ss-phone-change { margin-left: 4px; font-size: 14px; }
/* Six boxes, 3 – 3, sized to fit the box on any phone. The real input sits on top, invisible, so typing, pasting and
   the phone's "fill code from Messages" all work as normal. */
.ss-code-cells { position: relative; display: grid; grid-template-columns: repeat(3, 1fr) 16px repeat(3, 1fr); gap: 8px; align-items: center; margin: -3px; padding: 3px; }
.ss-code-cells input[data-ss-code] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: transparent; caret-color: transparent; font-size: 16px; opacity: 0; cursor: text; }
.ss-code-cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 6; min-width: 0; border: 1.5px solid var(--pss-line, #e3d4bf); border-radius: 12px; background: #fff; color: var(--pss-ink, #3a2a20); font-family: var(--pss-body, inherit); font-size: clamp(26px, 7vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; transition: border-color .15s, box-shadow .15s, background .15s; }
.ss-code-cell.is-filled { border-color: var(--pss-clay, #c98a5e); background: var(--pss-card, #fffaf3); }
.ss-code-cell.is-active { border-color: var(--pss-blue, #9e4f2e); box-shadow: 0 0 0 3px rgba(158, 79, 46, .18); }
.ss-code-cell.is-active:not(.is-filled)::after { content: ""; width: 2px; height: 1.1em; background: var(--pss-blue, #9e4f2e); animation: ss-caret 1s steps(1) infinite; }
.ss-code-dash { color: var(--pss-muted, #6e5a4b); font-size: 24px; font-weight: 700; text-align: center; }
@keyframes ss-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ss-code-cell.is-active:not(.is-filled)::after { animation: none; } }
.ss-phone-links { margin: 16px 0 0; color: var(--pss-muted, #6e5a4b); font-size: 15px; text-align: center; }
.ss-phone-links .ss-link-button:disabled { font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-sms-status { min-height: 1.3em; margin: 12px 0 0; font-weight: 700; }
.ss-sms-status.is-error { color: var(--pss-blue-dark, #7a3a1f); }
.ss-sms-note { margin: 12px 0 0; color: var(--pss-muted, #6e5a4b); font-size: 13px; line-height: 1.5; }

/* Account details */
.ss-sms-account { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--pss-line, #e3d4bf); }
.ss-sms-account .ss-sms-step label { display: block; margin-bottom: 8px; font-weight: 700; }
.ss-sms-account .ss-sms-step input { display: block; width: 100%; max-width: 320px; margin-top: 6px; }

/* Full sign-in text terms (pop-up) */
.ss-sms-note .ss-terms-open { font-weight: 700; color: inherit; }
.ss-terms-dialog { width: min(440px, calc(100vw - 32px)); padding: 22px; border: 0; border-radius: 16px; background: var(--pss-paper, #fffaf3); color: var(--pss-ink, #3a2a20); box-shadow: 0 24px 60px rgba(46, 30, 20, .3); }
.ss-terms-dialog::backdrop { background: rgba(46, 30, 20, .55); }
.ss-terms-dialog h3 { margin: 0 0 10px; font-size: 20px; }
.ss-terms-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; }
.ss-terms-dialog .ss-terms-close { margin-top: 4px; }
