/* hosting/public/shared/card-sheet.css
 *
 * The card form (shared/card-sheet.js), in a sheet or on the page. Card
 * number and CVV are Cardcom's frames (Open Fields), drawn to look exactly
 * like .field input; everything else is ours. Needs base.css.
 */

dialog.paysheet { max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.sheet-head h2 { margin: 0; }
.sheet-head h2 .num { font-family: var(--amount); }
.icon-btn {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-inline-end: -8px;
  border: 0; border-radius: 12px; background: var(--tint); color: var(--muted); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.wallets { display: flex; flex-direction: column; gap: 10px; }
.wallets iframe { display: block; width: 100%; height: 52px; border: 0; }
.wallets:has(iframe:not([hidden])) + .or-divider { display: flex; }
.or-divider {
  display: none; align-items: center; gap: 12px; margin: 18px 0;
  font-size: 14px; color: var(--muted);
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sheet-form .field { margin-bottom: 14px; }
.sheet-form .field > label { margin-bottom: 4px; }
/* A frame is 8px taller than the box inside it, so the focus ring shows. */
.cc-frame { display: block; width: calc(100% + 8px); height: 64px; margin: -4px; border: 0; background: transparent; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-form .btn { margin-top: 6px; }
.note.plain { display: block; text-align: center; }
.bit { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.bit small { font-size: 13px; color: var(--muted); text-align: center; }
.challenge h2 { font-size: 17px; }
.challenge iframe { display: block; width: 100%; height: 440px; border: 0; border-radius: 14px; background: #FFFFFF; }
.sheet-wait { min-height: 220px; display: grid; place-items: center; }

/* The installments picker: the same field as the inputs. */
.field select {
  display: block; width: 100%; min-height: 56px; padding: 0 16px;
  border: 1.5px solid var(--field); border-radius: 14px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 17px;
}
.field select:focus { outline: none; border-color: var(--clay-cta); box-shadow: 0 0 0 4px rgba(185, 89, 38, 0.18); }
