/* 💷 Deposit pop-up — shared by the Scheduler diary and the phone portal.
   Self-contained and scoped under .cf-deposit-sheet, like payment-ui.css: no
   host's own styles leak in, so both render the same. 44px hit areas
   throughout — it is used one-handed, standing up. */

.cf-deposit-sheet { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: flex-end; justify-content: center; }
.cf-deposit-sheet .booking-sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.cf-deposit-sheet .booking-sheet__panel {
  position: relative; background: #fff; width: 100%; max-width: 520px;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
  font-family: inherit; color: #111827; box-sizing: border-box;
}
@media (min-width: 600px) {
  .cf-deposit-sheet { align-items: center; }
  .cf-deposit-sheet .booking-sheet__panel { border-radius: 16px; }
}
.cf-deposit-sheet .booking-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cf-deposit-sheet .booking-sheet__title { font-size: 18px; font-weight: 700; }
.cf-deposit-sheet .booking-sheet__when { font-size: 14px; color: #4b5563; margin-top: 2px; }
.cf-deposit-sheet .booking-sheet__close {
  background: none; border: 0; font-size: 26px; line-height: 1; color: #6b7280; cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 0;
}
.cf-deposit-sheet .booking-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-deposit-sheet .booking-field > span,
.cf-deposit-sheet .booking-field > legend {
  font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.04em; padding: 0; margin-bottom: 6px;
}
.cf-deposit-sheet .booking-sheet__foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
/* Cancel / Save are PINNED to the bottom of the sheet, as in the diary's
   pop-ups. Five ways to pay, three boxes and a note make the sheet taller than
   a phone screen, and the buttons scrolled out of sight (Allan, 25 Nov 2026).
   The bar runs edge to edge across the panel's side and bottom padding, with a
   white background, so nothing shows through underneath it. 🪤 bottom is
   MINUS the panel's bottom padding: the browser sticks it inside that padding,
   and at 0 the fields scrolled past in a 16px strip below the buttons. */
.cf-deposit-sheet .booking-sheet__foot {
  position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); z-index: 1; background: #fff; border-top: 1px solid #e5e7eb;
  margin: 0 -16px calc(-16px - env(safe-area-inset-bottom));
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.cf-deposit-sheet .booking-cancel {
  min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid #d9e0e6;
  background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: #111827;
}
.cf-deposit-sheet .booking-save {
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 0;
  background: #006aac; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.cf-deposit-sheet .booking-save:disabled { opacity: 0.5; cursor: not-allowed; }
/* Remove sits apart, on the left: it is not the next step, and it reads in
   words (never colour alone) as the one that takes something away. */
.cf-deposit-sheet .dep-remove { color: #b91c1c; border-color: #fca5a5; }
.cf-deposit-sheet .dep-gap { flex: 1; }

.cf-deposit-sheet .dep-help {
  margin: 0; padding: 10px 12px; border-radius: 8px; background: #f1f5f9;
  font-size: 13px; color: #334155; line-height: 1.5;
}

/* How it was taken: one choice per row, the whole row tappable. */
.cf-deposit-sheet .dep-methods { gap: 6px; }
.cf-deposit-sheet .dep-method {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  border: 1px solid #d9e0e6; border-radius: 8px; cursor: pointer; font-size: 15px;
}
.cf-deposit-sheet .dep-method input { width: 18px; height: 18px; margin: 0; accent-color: #006aac; }
.cf-deposit-sheet .dep-method:has(input:checked) { border-color: #006aac; background: #f8fbfd; font-weight: 700; }

.cf-deposit-sheet .dep-amount-wrap {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1px solid #d9e0e6; border-radius: 8px; background: #fff;
}
.cf-deposit-sheet .dep-amount-currency { color: #6b7280; font-weight: 600; }
.cf-deposit-sheet .dep-amount { flex: 1; min-width: 0; border: 0; outline: none; padding: 10px 0; font: inherit; font-size: 16px; }
.cf-deposit-sheet .dep-date,
.cf-deposit-sheet .dep-note {
  min-height: 44px; padding: 0 12px; border: 1px solid #d9e0e6; border-radius: 8px;
  font: inherit; font-size: 16px; box-sizing: border-box; width: 100%; background: #fff; color: #111827;
}
/* An iPhone gives a date box its own minimum width and ignores width:100%, so
   "Date taken" ran off the right of the sheet with the date centred in it
   (Allan's screenshot, 25 Nov 2026). Drop the iPhone's own box styling, let it
   shrink, keep it inside the sheet, and put the date on the left like the
   other boxes. */
.cf-deposit-sheet .dep-date {
  -webkit-appearance: none; appearance: none; display: block;
  min-width: 0; max-width: 100%; text-align: left; line-height: 42px;
}
.cf-deposit-sheet .dep-date::-webkit-date-and-time-value { text-align: left; }
.cf-deposit-sheet .dep-sub { font-size: 13px; color: #4b5563; }
.cf-deposit-sheet .dep-msg { margin: 0; font-size: 14px; line-height: 1.5; }
.cf-deposit-sheet .dep-msg--err { color: #b91c1c; }
