/* THE CLIENT PAGE'S YES (Peter, 9 Oct 2026): the deposit bar, and "send this to someone else".
   The bar takes the proposal's own colours (--pa-bg, --pa-fg, --pa-acc, set by the page from the palette). */

/* the deposit bar: up once the client has reached the price, down when the closing section is on screen.
   The deposit leads, with the full total right beside it (research, 9 Oct: anchoring, and companies and
   consumer law need the total up front). */
.pa-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 50;
  transform: translate(-50%, calc(100% + 32px));
  width: min(880px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--pa-bg, #111); color: var(--pa-fg, #fff);
  border-radius: 999px; padding: 10px 10px 10px 28px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pa-bar.is-up { transform: translate(-50%, 0); }
/* the proposal's own corners (doc.look.corners): square for a square look */
.pa-bar--square, .pa-bar--square .pa-bar__go { border-radius: 0; }
.pa-bar__t { font-size: var(--text-base); line-height: 1.35; text-wrap: balance; }   /* no word left alone (first-proposal review, 1 Nov 2026) */
.pa-bar__t strong { font-weight: var(--weight-medium); }
.pa-bar__total { opacity: .9; margin-left: 6px; }   /* the full total is read beside the deposit, not faded out (22 Oct 2026) */
.pa-bar__go {
  flex: none; border: none; border-radius: 999px; padding: 14px 28px; cursor: pointer;
  background: var(--pa-acc, #fff); color: var(--pa-acc-fg, #111);
  font: inherit; font-size: var(--text-base); font-weight: var(--weight-medium);
}
.pa-bar__go:hover { filter: brightness(1.06); }
@media (max-width: 640px) {
  .pa-bar { border-radius: 18px; padding: 12px 12px 12px 18px; }
  .pa-bar__total { display: block; margin: 2px 0 0; }
  .pa-bar__dot { display: none; }   /* the total has its own line here, so its leading dot goes (first-proposal review, 1 Nov 2026) */
  .pa-bar__go { padding: 12px 18px; }
}

/* "send this to someone else", under Accept and Decline */
.pa-fwd { margin: 32px 0 0; position: relative; }
.pa-fwd__b {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; opacity: 1;
  font: inherit; font-size: var(--text-base); text-decoration: underline; text-underline-offset: 4px;
}
.pa-fwd__b:hover { opacity: 1; }

/* the dialog: the app's light modal (tokens.css --modal-scrim, --shadow-modal) */
.pa-dlg { position: fixed; inset: 0; z-index: 60; background: var(--modal-scrim, rgba(0,0,0,.12)); display: grid; place-items: center; padding: 16px; }
.pa-dlg[hidden] { display: none; }
.pa-dlg__box {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: #fff; color: var(--color-text); border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-modal, 0 30px 60px -20px rgba(0,0,0,.35)); padding: 40px;
  animation: paIn .5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes paIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pa-dlg__x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--color-text-muted); }
.pa-dlg__x:hover { background: var(--color-bg-subtle); color: var(--color-text); }
.pa-dlg__x svg { width: 20px; height: 20px; }
.pa-dlg h2 { font-size: var(--text-heading); font-weight: var(--weight-regular); margin: 0 0 8px; }
.pa-dlg p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 24px; line-height: 1.6; }
.pa-dlg .field { margin-bottom: 16px; }
.pa-dlg__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { .pa-bar, .pa-dlg__box { transition: none; animation: none; } }
@media print { .pa-bar, .pa-fwd, .pa-dlg { display: none !important; } }
