/*
 * Overrides loaded after site.css. site.css is kept byte-identical to the original site, so
 * fixes for defects inherited from it live here instead.
 *
 * Legal/prose tables (e.g. the cookie table) are wider than a 360-390px screen and caused
 * horizontal page scroll. On narrow screens they now scroll inside their own box.
 * Desktop rendering is unchanged.
 */
@media (max-width: 760px) {
  .prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/*
 * Advisory Products (overview cards and product pages). Reuses the service/package page classes;
 * only the few things they do not cover are here.
 */
.adv-turnaround{font-size:14px;color:var(--muted)}
.adv-hero-meta{font-size:14px;color:var(--on-dark)}
.adv-outcomes{list-style:none;margin:16px 0 24px;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.adv-outcomes .chip{display:inline-block}
.adv-enquire{max-width:860px;display:flex;flex-direction:column;gap:14px}
.adv-enquire h2{margin:0}
.adv-enquire [data-enquiry-form]{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.adv-independence .svc-suited{max-width:860px;margin:0 auto}
.adv-legal-links a{color:var(--gold)}
.adv-cards .svc-card-body .btn{white-space:normal}
.note-line a{color:var(--gold-dark);font-weight:500}
@media (min-width: 760px) {
  .adv-two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Checkout: product facts in the order summary, intake field spacing, documents checklist */
.side-card .co-facts{list-style:none;margin:16px 0 0;padding:0;border-top:1px solid rgba(255,255,255,.12)}
.side-card .co-facts li{display:block;padding:12px 0;font-size:14px}
.side-card .co-facts li b{display:block;margin-bottom:4px;font-family:inherit;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.form-step > .field + .field,.form-step > .co-group + .field{margin-top:20px}
.form-step .form-grid + .co-group{margin-top:20px}
.co-group{display:flex;flex-direction:column;gap:8px}
.co-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 20px;margin-top:6px}
.co-checks .check{min-height:44px;align-items:center}
.form-step .co-checks .check + .check{margin-top:0}

/* Advisory products: scope-boundary list uses a neutral dash, not a tick; fee-exclusion lines */
.receive-list.limit-list .limit-mark{flex-shrink:0;width:18px;text-align:center;color:var(--gold-dark);font-weight:600}
.adv-exclusions{max-width:46ch;opacity:.9}
.side-card .co-exclusions{text-align:left;line-height:1.5}

/* Client document upload page (signed link from the order emails) */
.alert.success{background:#EEF4EC;border:1px solid #B9CDB3;color:#35552C}
.upload-checklist,.upload-received{margin:8px 0 22px;padding-left:20px;color:var(--text,#44474D);font-size:14px;line-height:1.6}
.upload-received{list-style:none;padding-left:0}
.upload-received li{padding:6px 0;border-bottom:1px solid rgba(13,27,42,.08);overflow-wrap:anywhere}
.form-card input[type=file].input{padding:12px;min-height:48px;cursor:pointer}

/* Checkout promo code (App\\Payments\\PromoCodes): plain field + Apply, discount lines in the summary */
.promo-field{margin-top:8px}
.promo-row{display:flex;gap:10px;align-items:stretch}
.promo-row .input{flex:1;min-width:0;text-transform:uppercase}
.promo-row .btn{flex-shrink:0;min-height:48px}
.promo-ok{display:block;margin-top:6px;font-size:13px;color:#35552C}
.side-card .co-line{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:14px;color:var(--on-dark)}

/* Website chat (App\\Chat\\ChatMenu, site.js "Chat"): launcher bottom-left (WhatsApp is bottom-right), panel built by script */
.chat-launch{position:fixed;left:24px;bottom:24px;z-index:61;width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;background:var(--gold);color:var(--navy);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:transform .3s ease-out,background-color .3s ease-out}
.chat-launch:hover{background:#E0C394}
.chat-launch:focus-visible,.chat-panel :focus-visible{outline:3px solid var(--gold-dark);outline-offset:2px}
#cookie-banner.is-open ~ .chat-launch{display:none}
.chat-panel{position:fixed;left:24px;bottom:96px;z-index:95;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;background:var(--cream);border-radius:4px;box-shadow:0 24px 60px rgba(3,8,14,.35);overflow:hidden;font-family:Montserrat,Arial,sans-serif}
.chat-panel[hidden]{display:none}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--navy);color:#fff;padding:14px 12px 14px 20px;border-bottom:3px solid var(--gold)}
.chat-eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:.16em;color:var(--gold)}
.chat-head h2{margin:2px 0 0;font-size:18px;font-weight:300;color:#fff;line-height:1.2}
.chat-close{width:44px;height:44px;border:0;border-radius:2px;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.chat-close:hover{background:rgba(255,255,255,.08)}
.chat-log{flex:1 1 auto;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.chat-msg{max-width:92%;font-size:14px;line-height:1.55;border-radius:4px;padding:10px 14px;transition:opacity .35s ease-out,transform .35s ease-out}
.chat-msg.is-new{opacity:0;transform:translateY(6px)}
.chat-msg p{margin:0 0 8px}.chat-msg p:last-child{margin-bottom:0}
.chat-msg ul{margin:0 0 8px;padding-left:18px}.chat-msg li{margin-bottom:4px}
.chat-bot{align-self:flex-start;background:#fff;color:var(--text);border:1px solid #ECE5D7}
.chat-user{align-self:flex-end;background:var(--navy);color:#fff;font-weight:500}
.chat-title{font-weight:600;color:var(--navy)}
.chat-note{font-size:12px;color:var(--muted);font-style:italic}
.chat-links{display:flex;flex-wrap:wrap;gap:6px 14px}
.chat-link{color:var(--gold-dark);font-weight:600;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:32px}
.chat-actions{flex:0 0 auto;max-height:46%;overflow-y:auto;padding:10px 16px 12px;display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #E6DFD1;background:#FBF9F5;overscroll-behavior:contain}
.chat-opt{min-height:44px;padding:8px 14px;border:1px solid var(--navy);border-radius:2px;background:#fff;color:var(--navy);font:500 13px/1.3 Montserrat,Arial,sans-serif;text-align:left;cursor:pointer;transition:background-color .3s ease-out,color .3s ease-out}
.chat-opt:hover{background:var(--navy);color:#fff}
.chat-nav{border-color:#C9C2B4;color:var(--text);background:transparent}
.chat-actions.has-form{max-height:70%}
.chat-form{width:100%}
.chat-field{margin-bottom:10px}
.chat-field label{display:block;font-size:12px;font-weight:600;color:var(--navy);margin-bottom:4px}
.chat-field .input{width:100%;min-height:44px;padding:8px 10px;font:400 14px Montserrat,Arial,sans-serif;border:1px solid #CFC7B8;border-radius:2px;background:#fff;color:var(--ink)}
.chat-field textarea.input{min-height:72px;resize:vertical}
.chat-field .input[aria-invalid=true]{border-color:#A3352B}
.chat-check{display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:start}
.chat-check input{width:18px;height:18px;margin-top:2px;accent-color:var(--gold-dark)}
.chat-check label{font-weight:400;color:var(--text);margin:0;font-size:12px;line-height:1.5}
.chat-check label a{color:var(--gold-dark)}
.chat-check .chat-err{grid-column:2}
.chat-err{display:block;font-size:12px;color:#A3352B;margin-top:3px}
.chat-err:empty{display:none}
.chat-hp{position:absolute !important;left:-9999px;width:1px;height:1px;opacity:0}
.chat-ts{margin:6px 0 10px}
.chat-warn{margin:4px 0 10px;font-size:12px;font-weight:600;color:var(--navy)}
.chat-submit{width:100%;min-height:44px;margin-bottom:4px}
.chat-ask{display:flex;gap:8px;padding:10px 16px;border-top:1px solid #E6DFD1;background:#fff}
.chat-q{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #CFC7B8;border-radius:2px;font:400 14px Montserrat,Arial,sans-serif;color:var(--ink);background:#fff}
.chat-q::placeholder{color:#6B6B6B}
.chat-send{flex:0 0 44px;width:44px;min-height:44px;border:0;border-radius:2px;background:var(--navy);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.chat-send:hover{background:#1B3048}
.chat-suggest{width:100%;display:flex;flex-wrap:wrap;gap:8px;padding-bottom:8px;margin-bottom:2px;border-bottom:1px dashed #E0D8C8}
.chat-suggest-label{width:100%;margin:0;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-dark)}
.chat-foot{margin:0;padding:8px 16px 10px;font-size:11px;line-height:1.45;color:var(--muted);background:#FBF9F5}
@media (max-width:760px){
  .chat-launch{left:16px;bottom:16px;width:54px;height:54px}
  .chat-panel{bottom:82px;left:16px}
}
@media (max-width:600px){
  .chat-desktop-only{display:none}
  .chat-panel{inset:0;width:auto;max-width:none;height:auto;max-height:none;border-radius:0}
  .chat-open .chat-launch,.chat-open .wa{display:none}
}
@media (prefers-reduced-motion:reduce){.chat-launch,.chat-msg,.chat-opt{transition:none}}
@media print{.chat-launch,.chat-panel{display:none}}
