/* Shared by the website, sign-up funnel, customer portal and admin panel. */
:root {
  --brand: #E0482F; --brand-600: #C63A22; --brand-700: #A82F1B; --brand-50: #FDF0EC; --brand-100: #FADCD3;
  --teal: #2E8794; --teal-50: #E9F4F5; --green: #18A957; --green-50: #E7F7EE; --amber: #F2A93B; --amber-50: #FEF5E6;
  --red: #C5221F; --red-50: #FDECEA; --blue: #2563EB; --blue-50: #EAF1FE; --violet: #7C5CFF;
  --ink: #0F1218; --ink-2: #262B36; --muted: #5A6170; --muted-2: #8A909C; --line: #E8E4DD; --line-2: #F0EDE7;
  --bg: #FBF9F6; --surface: #fff; --dark: #0E1015;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15,18,24,.06); --shadow: 0 1px 2px rgba(15,18,24,.05), 0 8px 24px -6px rgba(15,18,24,.1); --shadow-lg: 0 2px 4px rgba(15,18,24,.04), 0 24px 60px -12px rgba(15,18,24,.22);
  --ring: 0 0 0 4px rgba(224,72,47,.18); --ease: cubic-bezier(.2,.8,.2,1);
}
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.hp-field { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-700); font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger, .danger { color: var(--red) !important; }

/* Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; margin-bottom: 14px; border: 1px solid transparent; }
.alert .ico { margin-top: 2px; }
.alert.ok { background: var(--green-50); color: #0F6B39; border-color: #BDE8CF; }
.alert.err { background: var(--red-50); color: #A50E0E; border-color: #F5C2C0; }
.alert.warn { background: var(--amber-50); color: #8A5300; border-color: #F7DDB0; }
.alert.info { background: var(--blue-50); color: #1E40AF; border-color: #C9DAFB; }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; text-transform: capitalize; }
.badge .ico { width: 13px; height: 13px; }
.b-green { background: var(--green-50); color: #0F6B39; } .b-teal { background: var(--teal-50); color: var(--teal); }
.b-amber { background: var(--amber-50); color: #8A5300; } .b-red { background: var(--red-50); color: var(--red); }
.b-blue { background: var(--blue-50); color: var(--blue); } .b-grey { background: var(--line-2); color: var(--muted); }

/* Payment methods */
.pm-box { display: grid; gap: 12px; }
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-item { display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "brand num badge" "brand actions actions"; gap: 4px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pm-brand { grid-area: brand; height: 34px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: .04em; color: #fff; background: #1A1F71; }
.pm-brand.mastercard { background: linear-gradient(90deg, #EB001B, #F79E1B); } .pm-brand.amex { background: #2E77BC; }
.pm-num { grid-area: num; font-weight: 700; font-variant-numeric: tabular-nums; } .pm-num small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.pm-item .badge { grid-area: badge; }
.pm-actions { grid-area: actions; display: flex; gap: 14px; flex-wrap: wrap; } .pm-actions form { margin: 0; }
.pm-empty { display: flex; gap: 10px; align-items: center; padding: 16px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); }
.pm-add { padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; }
.card-el { padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.pm-err { color: var(--red); font-size: 13.5px; font-weight: 600; }
.pm-secure { display: flex; gap: 6px; align-items: center; margin: 0; }

/* Filter checkboxes */
.ff { border: 0; margin: 0 0 18px; padding: 0; }
.ff legend { font-weight: 800; font-size: 15px; margin-bottom: 10px; padding: 0; }
.ff legend small { font-weight: 500; color: var(--muted); font-size: 13px; }
.ff-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; min-height: 44px; outline: none; }
.ff-input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.ff > small { display: block; margin-top: 6px; font-size: 12.5px; }
.ff-actions { display: flex; gap: 14px; margin: -4px 0 10px; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.cc { position: relative; cursor: pointer; }
.cc input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cc span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.chip-checks.big .cc span { padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.cc input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand); }
.cc input:checked + span::before { content: "✓"; font-weight: 800; }
.cc input:focus-visible + span { box-shadow: var(--ring); }
.ff-more { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 18px; background: var(--surface); }
.ff-more summary { cursor: pointer; padding: 12px 0; font-weight: 700; display: flex; gap: 8px; align-items: center; list-style: none; }
.ff-more summary::-webkit-details-marker { display: none; }
.ff-more summary small { font-weight: 500; color: var(--muted); }
.ff-more[open] summary { border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.range-row { display: flex; align-items: center; gap: 14px; } .range-row input { flex: 1; accent-color: var(--brand); } .range-row output { font-weight: 800; font-size: 20px; min-width: 2.5ch; color: var(--brand); }

/* Chat widget */
.chatw { position: fixed; right: 20px; bottom: 20px; z-index: 120; font-family: var(--font); }
.chatw-btn { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 800 15px var(--font); cursor: pointer; box-shadow: 0 16px 36px -10px rgba(15,18,24,.55); transition: transform .2s var(--ease); }
.chatw-btn:hover { transform: translateY(-2px); }
.chatw-btn .ico { width: 20px; height: 20px; }
.chatw.open .chatw-btn { display: none; }
.chatw-panel { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chatw-panel[hidden] { display: none; }
.chatw-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink); color: #fff; }
.chatw-head strong { display: block; font-size: 15px; } .chatw-head small { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.chatw-head .dot { width: 7px; height: 7px; border-radius: 50%; background: #3BD67A; }
.chatw-avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.chatw-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chatw-log, .chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); } .msg.typing::after { content: "…"; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.chatw-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; background: var(--bg); }
.chatw-suggest button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 11px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.chatw-suggest button:hover { border-color: var(--brand); color: var(--brand-700); }
.chatw-form, .chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); background: #fff; }
.chatw-form input, .chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; font: 15px var(--font); outline: none; }
.chatw-form input:focus, .chat-form input:focus { border-color: var(--brand); }
.chatw-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
@media (max-width: 760px) { .chatw { right: 12px; bottom: 84px; } .chatw-btn span { display: none; } .chatw-btn { width: 54px; padding: 0; justify-content: center; } }
@media print { .chatw { display: none; } }
/* Small legal footer (sign-up, sign-in, customer portal) */
.legal-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; padding: 22px 16px 28px; font-size: 13px; color: var(--muted); text-align: center; }
.legal-foot a { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.legal-foot a:hover { color: var(--brand); text-decoration-color: currentColor; }
.content > .legal-foot { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
