/* Customer-facing pages (pay, save, estimate / offer, autopay thanks, portal): the www "Refined" look.
   Loaded after styles.css on views.customerShell() pages and in the portal layout. Tokens = marketing.js V2_STYLES. */
:root {
  --deep: #0f5d3b; --deep2: #0b4a2f; --night: #08321f; --lime: #8ccf6b; --lime-soft: #d6efc8;
  --gold: #f0b26b; --gold-h: #eaa452; --gold-ink: #3d2808;
  --cream: #f8f3e2; --cream2: #f1ead2; --paper: #fffdf7; --sage: #f4f8f1;
  --c-ink: #1f3127; --c-body: #33463a; --c-muted: #5b6e5f; --c-line: #dde6d9;
}
body.cust {
  /* the shared component styles' names, mapped onto the Refined palette */
  --bg: var(--cream); --card: var(--paper); --line: var(--c-line); --muted: var(--c-muted); --text: var(--c-ink);
  --green: var(--deep); --green-dark: var(--deep); --forest: var(--deep); --tint: #e6f2dd;
  background: var(--cream); color: var(--c-body); font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.cust h1, .cust h2, .cust .est-title, .cust .est-brand { font-family: Fraunces, Georgia, serif; font-weight: 650; color: var(--deep); }
.cust .est-brand { color: #fff; font-size: 18px; }
.cust .est-doc { background: var(--paper); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--c-line), 0 18px 40px -26px rgba(11, 74, 47, .38); }
.cust .est-top { background: var(--deep); }
.cust .est-where { color: var(--lime-soft); }
.cust .est-note { background: var(--cream); }
.cust .muted { color: var(--c-muted); }
/* Primary action = gold with gold ink; secondary = white with a forest border. */
.cust button.pay-btn, .cust button.est-approve, .cust a.est-approve, .cust .btn-gold {
  background: var(--gold); color: var(--gold-ink); border: 0; border-radius: 12px; font-weight: 800; font-family: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 14px 26px -16px rgba(150, 90, 20, .6); cursor: pointer;
}
.cust button.pay-btn:hover, .cust button.est-approve:hover, .cust a.est-approve:hover, .cust .btn-gold:hover { background: var(--gold-h); }
.cust button.pay-btn.btn-alt, .cust .btn-line {
  background: #fff; color: var(--deep); border: 0; box-shadow: inset 0 0 0 1.5px rgba(15, 93, 59, .45);
}
.cust button.pay-btn.btn-alt:hover, .cust .btn-line:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--deep); }
.cust .pay-status.paid, .cust .due-card { background: #e6f2dd; color: var(--deep); }
.cust .due-amt { font-family: Fraunces, Georgia, serif; font-weight: 650; color: var(--deep); }
.cust .zelle-box { background: var(--sage); }
.cust .pay-h { font-size: 15px; }
.cust table.lines td, .cust table.lines th { border-color: var(--c-line); }
.cust-foot { max-width: 440px; margin: 18px auto 0; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--c-muted); }
.cust-foot a { color: var(--deep); font-weight: 700; text-decoration: none; white-space: nowrap; }
.est-doc.wide + .cust-foot { max-width: 1000px; }
/* Pay page: "save this for future visits?" ask, paid receipt tools */
.save-ask { border: 0; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--sage); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.save-ask legend { font-weight: 800; color: var(--deep); font-size: 14.5px; padding: 0; float: left; width: 100%; margin-bottom: 6px; }
.save-ask label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 4px 0; cursor: pointer; clear: both; }
.save-ask label small { display: block; color: var(--c-muted); font-size: 12.5px; }
.save-ask .save-auth { font-size: 12px; color: var(--c-muted); margin: 6px 0 0; }
.save-ask .save-auth[hidden] { display: none; }
.pay-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px; }
.pay-tools form { display: inline; }
.pay-tools button { width: auto; font-size: 14px; padding: 10px 16px; }
@media print {
  body.cust { background: #fff; padding: 0; }
  .cust .est-doc { box-shadow: none; max-width: none; }
  .cust .est-top { background: #fff; color: var(--deep); border-bottom: 2px solid var(--deep); }
  .cust .est-top .est-brand { color: var(--deep); }
  .cust .est-top .est-where { color: var(--c-muted); }
  .pay-tools, .p2p-more, .cust form, .cust script { display: none !important; }
}
