/* Log in with a code sent by email (login-code.php, login-code.js). The box sits on dark cards on the login page and at
   checkout: white text, glass fields, Danbuzz purple buttons. On the login page its field and buttons also carry that page's
   own classes (.pd-field, .pd-btn in partners.css), which win there; these rules are for checkout and anywhere else. Fields are
   16px or more, so iPhones don't zoom in on them. */
.db-code{display:grid;gap:12px;margin:0;color:#fff;font:400 15px/1.5 "Geist",system-ui,-apple-system,"Segoe UI",sans-serif}
.db-code[hidden],.db-code [hidden]{display:none!important}
.db-code-step{display:grid;gap:12px}
.db-code-field{display:grid;gap:7px;margin:0}
.db-code-field label,.db-code .db-code-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap} /* the placeholder says it */

.db-code input.db-code-email{box-sizing:border-box;width:100%;height:54px;margin:0;padding:0 18px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font:400 16px "Geist",system-ui,sans-serif;box-shadow:none;transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease}
.db-code input.db-code-email::placeholder{color:rgba(255,255,255,.5);opacity:1}
.db-code input.db-code-email:focus{border-color:#B99BE8;background:rgba(255,255,255,.1);outline:0;box-shadow:0 0 0 4px rgba(130,36,227,.32)}
.db-code input.db-code-email:-webkit-autofill{-webkit-text-fill-color:#fff;caret-color:#fff;box-shadow:inset 0 0 0 60px #362A47}

.db-code .db-code-btn:not(.pd-btn){display:flex;align-items:center;justify-content:center;width:100%;height:54px;margin:0;padding:0 18px;border:0;border-radius:14px;background:#8224E3;color:#fff;font:600 16px/1 "Geist",system-ui,sans-serif;text-transform:none;letter-spacing:0;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 18px 30px -18px rgba(130,36,227,.95);transition:background-color .2s ease,transform .12s ease}
.db-code .db-code-btn:not(.pd-btn):hover{background:#9036F0;color:#fff}
.db-code .db-code-btn:not(.pd-btn):active{transform:translateY(1px)}
.db-code .db-code-btn:not(.pd-btn):focus-visible{outline:2px solid #fff;outline-offset:3px}
.db-code .db-code-btn:disabled{opacity:.6;cursor:default}

.db-code-note,.db-code-sent,.db-code-again,.db-code-msg{margin:0;color:rgba(255,255,255,.72);font-size:14px;line-height:1.5}
.db-code-note,.db-code-again{text-align:center}
.db-code-sent{color:rgba(255,255,255,.86);font-size:15px}
.db-code-sent b{color:#fff;font-weight:600;overflow-wrap:anywhere}

/* Change, send again and "Not you?" read as links */
.db-code .db-code-change,.db-code .db-code-resend,.db-code .db-code-other{display:inline;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;color:#fff;font:inherit;font-weight:500;text-transform:none;letter-spacing:0;text-decoration:underline;text-decoration-color:rgba(185,155,232,.8);text-decoration-thickness:1px;text-underline-offset:4px;box-shadow:none;cursor:pointer}
.db-code .db-code-change:hover,.db-code .db-code-resend:hover,.db-code .db-code-other:hover{text-decoration-color:#fff}
.db-code .db-code-other{justify-self:start;margin-top:-4px;color:rgba(255,255,255,.86);font-size:14px;line-height:1.5} /* under the remembered email, a grid item */
.db-code .db-code-resend:disabled{color:rgba(255,255,255,.72);text-decoration-color:rgba(255,255,255,.3);cursor:default}
.db-code .db-code-change:focus-visible,.db-code .db-code-resend:focus-visible,.db-code .db-code-other:focus-visible{outline:2px solid #B99BE8;outline-offset:2px;border-radius:4px}

/* The code: one real input over six painted boxes (login-code.js copies each digit into its box). The input keeps typing,
   paste and the phone's one-time-code suggestion; its own text is invisible. */
.db-code-boxes{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.db-code-cell{display:flex;align-items:center;justify-content:center;height:62px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font:600 26px/1 "Geist Mono",ui-monospace,Consolas,monospace;transition:border-color .15s ease,box-shadow .15s ease}
.db-code-cell.is-full{background:rgba(255,255,255,.12)}
.db-code-cell.is-on{border-color:#B99BE8;box-shadow:0 0 0 4px rgba(130,36,227,.32)}
.db-code .db-code-boxes input.db-code-input{position:absolute;inset:0;z-index:1;box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:14px;background:transparent;color:transparent;caret-color:transparent;font-size:16px;letter-spacing:0;box-shadow:none;outline:0;opacity:1;-webkit-text-fill-color:transparent}
.db-code .db-code-boxes input.db-code-input::selection{background:transparent}

.db-code-msg:empty{margin-top:-12px} /* takes no room while empty, but stays rendered so screen readers hear what comes */
.db-code-msg{color:#fff;text-align:center}
.db-code-msg.is-error{color:#FFB4AB}
.db-code[aria-busy="true"]{cursor:progress}

@media (max-width:380px){
	.db-code-boxes{gap:7px}
	.db-code-cell{height:54px;font-size:22px}
}
@media (prefers-reduced-motion:reduce){
	.db-code *{transition:none!important}
}
