/* Lenci · billing details (v3/billing-details.js): the form on /account#details, the dialog over the buy panel and the card dialog, and
   the "Billed to … Change" row. Studio tokens (studio.css :root); logical properties only, so Arabic mirrors itself. */
.bd-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.bd-form.compact { grid-template-columns: 1fr; gap: 10px; }
.bd-seg { grid-column: 1 / -1; display: inline-flex; justify-self: start; padding: 3px; gap: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2, rgba(255,255,255,.14)); }
.bd-seg-b { border: 0; background: transparent; color: var(--muted, #a3a3b6); padding: 8px 16px; border-radius: 999px; font: 600 13.5px/1 inherit; font-family: inherit; cursor: pointer; }
.bd-seg-b.on { background: rgba(139,92,246,.28); color: #fff; box-shadow: inset 0 0 0 1px rgba(139,92,246,.7); }
.bd-seg-b:focus-visible { outline: 2px solid var(--accent-2, #c9b8ff); outline-offset: 2px; }
.bd-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bd-field[hidden] { display: none; }
.bd-name, .bd-address { grid-column: 1 / -1; }
.bd-form.compact .bd-field { grid-column: auto; }
.bd-cap { font-size: 13px; color: var(--muted, #a3a3b6); }
.bd-field input, .bd-field textarea { width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--line-2, rgba(255,255,255,.14)); color: var(--ink, #ececf4); border-radius: 10px; padding: 10px 12px; font: 14.5px/1.4 inherit; font-family: inherit; color-scheme: dark; resize: vertical; }
.bd-field input:focus, .bd-field textarea:focus { outline: none; border-color: var(--accent, #8b5cf6); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.bd-field input[aria-invalid="true"], .bd-field textarea[aria-invalid="true"] { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.bd-hint { font-size: 12px; color: var(--dim, #74748c); }
.bd-hint:empty { display: none; }
.bd-status { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: 13.5px; color: var(--accent-2, #c9b8ff); }
.bd-status.err { color: #fca5a5; }
.bd-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.bd-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.bd-dl dt { color: var(--muted, #a3a3b6); font-size: 13.5px; }
.bd-dl dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.bd-modal { z-index: 90; }
.bd-card { max-width: 520px; width: 100%; max-height: calc(100dvh - 40px); overflow: auto; }
.bd-title { margin: 0 0 4px; }
.bd-lead { margin: 0 0 14px; font-size: 13.5px; }
.bd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2, rgba(255,255,255,.18)); font-size: 13.5px; color: var(--muted, #a3a3b6); }
.bd-row-text { min-width: 0; overflow-wrap: anywhere; }
.bd-row-b { flex: none; border: 1px solid var(--line-2, rgba(255,255,255,.18)); background: transparent; color: var(--ink, #ececf4); border-radius: 999px; padding: 6px 12px; font: 600 12.5px/1 inherit; font-family: inherit; cursor: pointer; }
.bd-row-b:hover { border-color: var(--accent-2, #c9b8ff); }
.bl-billedto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bl-billedto p { margin: 0; }
@media (max-width: 640px) { .bd-form { grid-template-columns: 1fr; } .bd-dl { grid-template-columns: 1fr; gap: 2px; } .bd-dl dd { margin-bottom: 8px; } }
.bd-note-ok { margin: 14px 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: #bbf7d0; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); }
