/* ------------------------------------------------------------------------------------------
   Service Pro theme - the public site and client portal of every organization.
   Tokens first; the organization's primary colour is injected as --sp-accent by the layout.
   Sneat's core CSS is still loaded for form controls and utilities; everything visible here
   is styled from these tokens so the site reads as the organization's, not the template's.
   ------------------------------------------------------------------------------------------ */

/* Site themes (2026-10-30): the API resolves a business's theme and settings into these variables and the layout writes
   them in an inline style block (Pages/Shared/ThemeStyle); <body> carries data-sp-* attributes that pick the variants at
   the end of this file. The values here are the defaults a page with no theme gets: the look every site had before. */
:root {
  --sp-accent: #0f6e56;
  --sp-accent-2: var(--sp-accent);
  --sp-accent-contrast: #fff;
  --sp-ink: #1c2430;
  --sp-ink-2: #4a5566;
  --sp-muted: #7b8595;
  --sp-line: #e3e6ea;
  --sp-bg: #f6f7f8;
  --sp-panel: #ffffff;
  --sp-alt-bg: var(--sp-panel);
  --sp-soft: color-mix(in srgb, var(--sp-accent) 10%, white);
  --sp-accent-ink: color-mix(in srgb, var(--sp-accent) 75%, black);
  --sp-ok: #2f7d4f;
  --sp-warn: #b9641c;
  --sp-bad: #b83232;
  --sp-radius: 10px;
  --sp-radius-lg: 16px;
  --sp-btn-radius: 8px;
  --sp-btn-transform: none;
  --sp-btn-tracking: normal;
  --sp-btn-size: .95rem;
  --sp-shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 8px 24px rgba(20, 30, 40, .06);
  --sp-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --sp-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --sp-header-bg: rgba(255,255,255,.94);
  --sp-header-border: 1px solid var(--sp-line);
  --sp-site-bg-color: var(--sp-bg);
  --sp-site-bg-image: none;
  --sp-site-bg-attach: scroll;
  --sp-site-bg-size: auto;
  --sp-hero-bg: linear-gradient(180deg, var(--sp-soft) 0%, var(--sp-bg) 100%);
  --sp-hero-ink: var(--sp-ink);
  --sp-hero-ink-2: var(--sp-ink-2);
  --sp-hero-eyebrow: var(--sp-accent-ink);
  --sp-hero-icon: var(--sp-accent);
  --sp-hero-ghost-ink: var(--sp-accent-ink);
  --sp-hero-ghost-border: var(--sp-accent);
  --sp-hero-padding: 5rem 0 4rem;
  --sp-footer-bg: #1b222c;
  --sp-footer-ink: #c9d0da;
  --sp-footer-link: #e6eaf0;
  --sp-footer-strong: #fff;
  --sp-footer-muted: #aeb7c3;
  --sp-footer-line: rgba(255,255,255,.1);
  --sp-footer-chip: rgba(255,255,255,.08);
  --sp-footer-icon: var(--sp-accent);
  --sp-footer-logo: brightness(0) invert(1);
}

html { scroll-behavior: smooth; }
body.sp-body { font-family: var(--sp-text); font-size: 17px; line-height: 1.55; color: var(--sp-ink); background-color: var(--sp-site-bg-color); background-image: var(--sp-site-bg-image); background-attachment: var(--sp-site-bg-attach); background-size: var(--sp-site-bg-size); margin: 0; }
.sp-body h1, .sp-body h2, .sp-body h3, .sp-body h4, .sp-body h5, .sp-body h6 { font-family: var(--sp-display); color: var(--sp-ink); text-wrap: balance; letter-spacing: -.01em; }
/* Not on a link drawn as a button: these outrank the theme's .btn-primary { color: #fff }, so the quote page's
   "Review and respond" was dark green on green (mobile round 2026-10-14). A button keeps the theme's colours. */
.sp-body a:not(.btn) { color: var(--sp-accent-ink); }
.sp-body a:not(.btn):hover { color: var(--sp-accent); }
/* Primary buttons wear the business's own colour, as the rest of the page does, rather than the theme's lighter green
   (white on it read at 3.4:1). */
.sp-body .btn-primary { --bs-btn-bg: var(--sp-accent); --bs-btn-border-color: var(--sp-accent); --bs-btn-hover-bg: var(--sp-accent-ink); --bs-btn-hover-border-color: var(--sp-accent-ink); --bs-btn-active-bg: var(--sp-accent-ink); --bs-btn-active-border-color: var(--sp-accent-ink); background-color: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-accent-contrast); }
.sp-body .btn-primary:hover, .sp-body .btn-primary:focus-visible, .sp-body .btn-primary:active { background-color: var(--sp-accent-ink); border-color: var(--sp-accent-ink); color: var(--sp-accent-contrast); }
.sp-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.sp-narrow { max-width: 760px; }
.sp-skip { position: absolute; left: -999px; top: 0; background: var(--sp-accent); color: var(--sp-accent-contrast); padding: .5rem 1rem; z-index: 100; }
.sp-skip:focus { left: 1rem; top: 1rem; }
.sp-pre { white-space: pre-line; }

/* Buttons ---------------------------------------------------------------------------- */
.sp-btn, .portal-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.25rem; border-radius: var(--sp-btn-radius);
  background: var(--sp-accent); color: var(--sp-accent-contrast) !important; font-family: var(--sp-display); font-weight: 700; font-size: var(--sp-btn-size);
  text-transform: var(--sp-btn-transform); letter-spacing: var(--sp-btn-tracking);
  border: 1.5px solid var(--sp-accent); text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, transform .05s;
}
.sp-btn:hover, .portal-btn:hover { background: var(--sp-accent-ink); border-color: var(--sp-accent-ink); }
.sp-btn:active, .portal-btn:active { transform: translateY(1px); }
.sp-btn.ghost, .portal-btn.ghost { background: transparent; color: var(--sp-accent-ink) !important; }
.sp-btn.ghost:hover, .portal-btn.ghost:hover { background: var(--sp-soft); }
.sp-btn.small { padding: .5rem .9rem; font-size: .875rem; }
.portal-btn.danger { background: var(--sp-bad); border-color: var(--sp-bad); }
.portal-btn.ghost.danger { background: transparent; color: var(--sp-bad) !important; border-color: var(--sp-bad); }
.portal-btn.wide { width: 100%; justify-content: center; }
.sp-btn i, .portal-btn i { font-size: 1.15em; }

/* Header ----------------------------------------------------------------------------- */
.sp-header { position: sticky; top: 0; z-index: 50; background: var(--sp-header-bg); backdrop-filter: blur(8px); border-bottom: var(--sp-header-border); }
.sp-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.sp-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--sp-ink); }
.sp-brand img { height: 36px; width: auto; }
.sp-brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--sp-accent); color: var(--sp-accent-contrast); display: grid; place-items: center; font-family: var(--sp-display); font-weight: 800; }
.sp-brand-name { font-family: var(--sp-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.sp-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.sp-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.sp-nav ul a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--sp-ink-2); font-weight: 600; text-decoration: none; }
.sp-nav ul a:hover, .sp-nav ul a.active { color: var(--sp-accent-ink); background: var(--sp-soft); }
/* The language menu is a ul inside .sp-nav: without these, the rule above keeps it open all the time. */
.sp-nav .sp-lang .dropdown-menu { display: none; }
.sp-nav .sp-lang .dropdown-menu.show { display: block; }
.sp-nav-actions { display: flex; align-items: center; gap: .6rem; }
.sp-nav-phone { display: inline-flex; align-items: center; gap: .35rem; color: var(--sp-ink); font-weight: 600; text-decoration: none; }
.sp-nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.8rem; color: var(--sp-ink); }
@media (max-width: 900px) {
  .sp-nav-toggle { display: block; }
  .sp-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--sp-panel); border-bottom: 1px solid var(--sp-line); padding: 1rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; gap: 1rem; box-shadow: var(--sp-shadow); }
  .sp-nav.open, .sp-nav.show { display: flex; }
  .sp-nav ul { flex-direction: column; }
  .sp-nav-actions { flex-wrap: wrap; }
}

/* Sections --------------------------------------------------------------------------- */
.sp-section { padding: 4.5rem 0; }
.sp-section.alt { background: var(--sp-alt-bg); border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-eyebrow { display: inline-block; font-family: var(--sp-display); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-accent-ink); margin-bottom: .6rem; }
.sp-h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.1; margin: 0 0 1rem; font-weight: 800; }
.sp-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 0 0 .75rem; font-weight: 800; }
.sp-lead { font-size: 1.15rem; color: var(--sp-ink-2); max-width: 62ch; }
.sp-section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.sp-center { text-align: center; }
.sp-center .sp-lead, .sp-center .sp-section-head, .sp-section-head.sp-center { margin-left: auto; margin-right: auto; }
/* A centred hero keeps its buttons and its points (area, hours, portal) centred too, not pinned to the left edge. */
.sp-center .sp-hero-actions, .sp-center .sp-hero-points { justify-content: center; }

/* Hero */
.sp-hero { background: var(--sp-hero-bg); padding: var(--sp-hero-padding); color: var(--sp-hero-ink); }
.sp-hero .sp-h1 { color: var(--sp-hero-ink); }
.sp-hero .sp-lead { color: var(--sp-hero-ink-2); }
/* Also under [data-sp-theme]: the kept bold rule below (an ink eyebrow outside the hero) has the same specificity and came later. */
.sp-hero .sp-eyebrow, [data-sp-theme] .sp-hero .sp-eyebrow { color: var(--sp-hero-eyebrow); }
.sp-hero .sp-btn.ghost { color: var(--sp-hero-ghost-ink) !important; border-color: var(--sp-hero-ghost-border); }
.sp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.sp-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.sp-hero-media img { width: 100%; border-radius: var(--sp-radius-lg); box-shadow: var(--sp-shadow); object-fit: cover; aspect-ratio: 4/3; }
.sp-hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--sp-hero-ink-2); font-weight: 600; }
.sp-hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.sp-hero-points i { color: var(--sp-hero-icon); }
@media (max-width: 820px) { .sp-hero-grid { grid-template-columns: 1fr; } .sp-hero { padding: 3rem 0 2.5rem; } }

/* Cards / grids */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.sp-card { background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 1.5rem; box-shadow: var(--sp-shadow); }
.sp-service { display: flex; flex-direction: column; gap: .5rem; }
.sp-service h3 { font-size: 1.15rem; margin: 0; }
.sp-service p { color: var(--sp-ink-2); margin: 0; flex: 1; }
.sp-service .sp-price { font-family: var(--sp-display); font-weight: 700; color: var(--sp-accent-ink); }
/* The button sits at the bottom of the card, so a card with no description or price lines up with its neighbours. */
.sp-service .sp-btn { align-self: flex-start; margin-top: auto; }
.sp-team { text-align: center; }
.sp-team img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: .75rem; }
.sp-team .role { color: var(--sp-muted); font-size: .9rem; }
.sp-rich { max-width: 72ch; }
.sp-rich img { max-width: 100%; border-radius: var(--sp-radius); }
.sp-carousel { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.sp-carousel img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--sp-radius); }
.sp-ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 460px)); justify-content: center; gap: 1.5rem; }
.sp-ba { margin: 0; }
.sp-ba-frame { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--sp-radius); background: var(--sp-soft); }
.sp-ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sp-ba-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); pointer-events: none; }
.sp-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
/* The range input is invisible, so its keyboard focus is drawn on the frame (prospect review, 2026-10-09). */
.sp-ba-frame:has(.sp-ba-range:focus-visible) { outline: 3px solid var(--sp-accent); outline-offset: 3px; }
.sp-ba-tag { position: absolute; top: .6rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; font-weight: 600; pointer-events: none; }
.sp-ba-tag-before { left: .6rem; }
.sp-ba-tag-after { right: .6rem; }
.sp-ba figcaption { margin-top: .5rem; color: var(--sp-ink-2); text-align: center; }
.sp-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--sp-radius); }
.sp-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.sp-contact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.sp-contact-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--sp-ink-2); }
.sp-contact-list i { color: var(--sp-accent); font-size: 1.25rem; }
@media (max-width: 820px) { .sp-contact-grid { grid-template-columns: 1fr; } }
.sp-cta { background: var(--sp-accent); color: var(--sp-accent-contrast); padding: 3.5rem 0; }
.sp-cta h2, .sp-cta p { color: var(--sp-accent-contrast); }
.sp-cta .sp-btn { background: var(--sp-panel); color: var(--sp-accent-ink) !important; border-color: var(--sp-panel); }
.sp-page { padding: 3.5rem 0 4.5rem; }
.sp-page-head { margin-bottom: 1.75rem; }
.sp-check { width: 64px; height: 64px; border-radius: 50%; background: var(--sp-soft); color: var(--sp-accent); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }
.sp-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer ----------------------------------------------------------------------------- */
.sp-footer { background: var(--sp-footer-bg); color: var(--sp-footer-ink); padding: 3.5rem 0 1.5rem; margin-top: 3rem; font-size: .95rem; }
.sp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.sp-footer h6 { color: var(--sp-footer-strong); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .9rem; }
.sp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.sp-footer li { display: flex; gap: .5rem; align-items: flex-start; }
.sp-footer li i { color: var(--sp-footer-icon); font-size: 1.1rem; margin-top: .15rem; }
.sp-footer a { color: var(--sp-footer-link); text-decoration: none; }
.sp-footer a:hover { color: var(--sp-footer-strong); text-decoration: underline; }
.sp-footer .sp-brand { color: var(--sp-footer-strong); }
.sp-footer .sp-brand img { filter: var(--sp-footer-logo); }
.sp-footer-brand p { margin: .75rem 0 0; color: var(--sp-footer-muted); max-width: 36ch; }
.sp-social { display: flex; gap: .5rem; margin-top: 1rem; }
.sp-social a { width: 36px; height: 36px; border-radius: 8px; background: var(--sp-footer-chip); display: grid; place-items: center; font-size: 1.15rem; }
.sp-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--sp-footer-line); margin-top: 2.5rem; padding-top: 1.25rem; color: var(--sp-footer-muted); font-size: .875rem; }
.sp-powered a { color: var(--sp-footer-link); }
@media (max-width: 900px) { .sp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sp-footer-grid { grid-template-columns: 1fr; } }

/* Client portal ---------------------------------------------------------------------- */
.portal-shell { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; align-items: start; }
.portal-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; position: sticky; top: 90px; }
.portal-nav a, .portal-nav button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .65rem .85rem; border-radius: 8px; color: var(--sp-ink-2); font-weight: 600; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.portal-nav a:hover, .portal-nav button:hover { background: var(--sp-soft); color: var(--sp-accent-ink); }
.portal-nav a.active { background: var(--sp-accent); color: var(--sp-accent-contrast); }
.portal-nav i { font-size: 1.25rem; }
.portal-nav-signout { margin-top: 1rem; border-top: 1px solid var(--sp-line); padding-top: .75rem; }
.portal-main { min-width: 0; display: grid; gap: 1.25rem; }
.portal-head h1 { font-size: 1.9rem; margin: 0 0 .25rem; }
.portal-sub { color: var(--sp-ink-2); margin: 0; }
.portal-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.portal-back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.portal-card { background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 1.35rem 1.5rem; box-shadow: var(--sp-shadow); }
.portal-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.portal-card-head h2 { font-size: 1.15rem; margin: 0; }
.portal-h3 { font-size: 1rem; margin: 1.5rem 0 .75rem; }
.portal-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.portal-link.small, .portal-muted.small, .small { font-size: .875rem; }
.portal-muted { color: var(--sp-muted); }
.portal-pre { white-space: pre-line; }
.portal-flash { display: flex; gap: .6rem; align-items: center; padding: .85rem 1rem; border-radius: 8px; font-weight: 600; }
.portal-flash.ok { background: #e6f4ea; color: var(--sp-ok); }
.portal-flash.err { background: #fbe9e9; color: var(--sp-bad); }
.portal-flash i { font-size: 1.3rem; }
.portal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.portal-stat { background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 1.1rem 1.25rem; text-decoration: none; display: grid; gap: .1rem; box-shadow: var(--sp-shadow); }
.portal-stat .n { font-family: var(--sp-display); font-size: 1.75rem; font-weight: 800; color: var(--sp-ink); font-variant-numeric: tabular-nums; }
.portal-stat .l { color: var(--sp-muted); font-size: .9rem; }
.portal-stat.warn .n { color: var(--sp-warn); }
.portal-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.portal-quick a { background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 1.1rem 1.25rem; text-decoration: none; display: grid; gap: .15rem; color: var(--sp-ink); }
.portal-quick a:hover { border-color: var(--sp-accent); }
.portal-quick i { font-size: 1.5rem; color: var(--sp-accent); }
.portal-quick span { color: var(--sp-muted); font-size: .9rem; }
.portal-list { list-style: none; padding: 0; margin: 0; display: grid; }
.portal-list > li + li { border-top: 1px solid var(--sp-line); }
.portal-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; text-decoration: none; color: var(--sp-ink); }
.portal-row:hover .portal-row-title { color: var(--sp-accent-ink); }
.portal-row-body { flex: 1; min-width: 0; }
/* A row with actions (an invoice: amount, View and pay, PDF) wraps its buttons under the text on a phone instead of
   pushing the page past the screen - the Invoices page was 414-425 px wide on a 390 px phone (prospect review, 2026-10-09,
   rounds 5-6). The number and the date wrap at their spaces, not one character per line. */
.portal-row.static { flex-wrap: wrap; }
.portal-row.static .portal-row-body { flex: 1 1 11rem; }
.portal-row.static .portal-amount { white-space: nowrap; }
.portal-row.static .portal-btn { white-space: nowrap; }
.portal-row-title { font-weight: 700; }
.portal-row > .bx-chevron-right { color: var(--sp-muted); font-size: 1.4rem; }
.portal-appt { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.portal-appt-body { flex: 1; min-width: 200px; display: grid; gap: .15rem; }
.portal-appt-title { font-weight: 700; font-size: 1.05rem; }
.portal-appt-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.portal-appt-when { width: 58px; flex: none; text-align: center; background: var(--sp-soft); border-radius: 8px; padding: .4rem 0; display: grid; }
.portal-appt-when .d { font-family: var(--sp-display); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--sp-accent-ink); }
.portal-appt-when .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-ink-2); }
.portal-appt-when.muted { background: var(--sp-bg); }
.portal-appt-when.muted .d { color: var(--sp-ink-2); }
.portal-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--sp-soft); color: var(--sp-accent-ink); white-space: nowrap; }
.portal-badge.ok { background: #e6f4ea; color: var(--sp-ok); }
.portal-badge.off { background: var(--sp-bg); color: var(--sp-muted); }
.portal-badge.bad { background: #fbe9e9; color: var(--sp-bad); }
.portal-dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.portal-dl dt { color: var(--sp-muted); font-weight: 600; }
.portal-dl dd { margin: 0; }
.portal-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.portal-amount { text-align: right; display: grid; }
.portal-amount .n { font-family: var(--sp-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.portal-amount .s { font-size: .8rem; color: var(--sp-muted); }
.portal-form { display: grid; gap: .35rem; }
.portal-form label { font-weight: 600; font-size: .9rem; color: var(--sp-ink-2); margin-top: .6rem; }
.portal-form input:not([type=checkbox]), .portal-form select, .portal-form textarea { width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--sp-line); border-radius: 8px; font: inherit; background: var(--sp-panel); color: var(--sp-ink); }
.portal-form input:focus, .portal-form select:focus, .portal-form textarea:focus { outline: none; border-color: var(--sp-accent); box-shadow: 0 0 0 3px var(--sp-soft); }
.portal-form input:disabled { background: var(--sp-bg); color: var(--sp-muted); }
.portal-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.portal-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .portal-grid2, .portal-grid3 { grid-template-columns: 1fr; } }
.portal-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; margin: .25rem 0; }
.portal-check { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .6rem; align-items: center; border: 1.5px solid var(--sp-line); border-radius: 8px; padding: .6rem .75rem; cursor: pointer; margin: 0; font-weight: 500; }
.portal-check:has(input:checked) { border-color: var(--sp-accent); background: var(--sp-soft); }
.portal-check input { width: 18px; height: 18px; accent-color: var(--sp-accent); grid-row: span 2; }
.portal-check .t { font-weight: 700; }
.portal-check .p { color: var(--sp-accent-ink); font-weight: 700; font-size: .9rem; }
.portal-check .d { grid-column: 2 / span 2; color: var(--sp-muted); font-size: .85rem; }
.portal-check.inline { display: flex; border: 0; padding: .5rem 0; }
.portal-slots { display: grid; gap: 1rem; }
.portal-slot-date { font-weight: 700; margin-bottom: .4rem; }
.portal-slot-times { display: flex; flex-wrap: wrap; gap: .4rem; }
.portal-slot { padding: .45rem .8rem; border-radius: 8px; border: 1.5px solid var(--sp-line); background: var(--sp-panel); font: inherit; font-weight: 600; cursor: pointer; color: var(--sp-ink); }
.portal-slot:hover { border-color: var(--sp-accent); background: var(--sp-soft); color: var(--sp-accent-ink); }
.portal-slot.window { min-width: 8.5rem; }
/* Booking arrival windows (contract 4c): the day strip. */
.booking-daystrip { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem .1rem .5rem; margin-bottom: .5rem; scroll-snap-type: x proximity; }
.booking-day-chip { flex: 0 0 auto; scroll-snap-align: start; display: grid; justify-items: center; gap: .05rem; min-width: 4.25rem; min-height: 44px; padding: .4rem .6rem; border-radius: 10px; border: 1.5px solid var(--sp-line); background: var(--sp-panel); font: inherit; color: var(--sp-ink); cursor: pointer; }
.booking-day-chip .dow { font-size: .8rem; color: var(--sp-muted); text-transform: uppercase; letter-spacing: .04em; }
.booking-day-chip .dom { font-weight: 700; }
.booking-day-chip[aria-selected="true"] { border-color: var(--sp-accent); background: var(--sp-soft); color: var(--sp-accent-ink); }
.booking-day-chip:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 2px; }
@media (max-width: 820px) {
  /* minmax(0, …): a plain 1fr track grows to its longest content, so "Appointments" with its icon and padding pushed the
     three nav columns, and with them every portal page, past a 390 px phone (prospect review, 2026-10-09, rounds 5-6). */
  .portal-shell { grid-template-columns: minmax(0, 1fr); padding-top: 1.25rem; }
  .portal-nav ul { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Icon over label, the label free to wrap: side by side at 390 px they were cut to "Appointm…" and "Refer a fri…"
     (prospect review, 2026-10-09, r7-client L12). */
  .portal-nav a, .portal-nav button { min-width: 0; padding: .55rem .35rem; gap: .2rem; flex-direction: column; justify-content: center; text-align: center; }
  .portal-nav a span, .portal-nav button span { font-size: .8rem; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
  .portal-nav-signout { margin: 0; border: 0; padding: 0; }
}

/* Sign-in */
.portal-auth-wrapper { min-height: calc(100vh - 8rem); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.portal-auth-card { width: 100%; max-width: 440px; background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: 14px; padding: 2rem; box-shadow: var(--sp-shadow); }
.portal-auth-title { font-size: 1.6rem; margin: 0 0 .5rem; }
.portal-code { font-family: var(--sp-display); font-size: 1.5rem; letter-spacing: .3em; text-align: center; }
.portal-auth-foot { margin: 1.25rem 0 0; text-align: center; }

/* Testimonials, FAQ, trust badges ---------------------------------------------------- */
.sp-quote { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.sp-stars { color: #e0a51b; letter-spacing: .1em; font-size: .9rem; }
.sp-quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--sp-ink); flex: 1; }
.sp-quote blockquote::before { content: "\201C"; color: var(--sp-accent); font-family: var(--sp-display); font-size: 1.6em; line-height: 0; margin-right: .1em; }
.sp-quote figcaption { color: var(--sp-muted); font-size: .9rem; }
.sp-faq { display: grid; gap: .5rem; }
.sp-faq-item { background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 0 1.1rem; }
.sp-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; font-family: var(--sp-display); font-weight: 700; }
.sp-faq-item summary::-webkit-details-marker { display: none; }
.sp-faq-item summary i { font-size: 1.4rem; color: var(--sp-muted); transition: transform .15s; }
.sp-faq-item[open] summary i { transform: rotate(180deg); }
.sp-faq-answer { padding: 0 0 1rem; color: var(--sp-ink-2); }
.sp-badges { background: var(--sp-panel); border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); padding: 1.1rem 0; }
.sp-badges ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.25rem; }
.sp-badges li { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sp-display); font-weight: 700; color: var(--sp-ink-2); font-size: .95rem; }
.sp-badges li i { color: var(--sp-accent); font-size: 1.35rem; }

/* Theme variants (site themes, 2026-10-30) --------------------------------------------------
   The colours, shapes and fonts of a theme are variables set by the layout; what a variable cannot express is keyed on
   the data-sp-* attributes the layout puts on <body>. Two cosmetic rules of the old presets stay keyed on the theme. */
[data-sp-theme="warm-local"] .sp-eyebrow { letter-spacing: .08em; }
[data-sp-theme="bold"] .sp-h1 { font-weight: 800; letter-spacing: -.03em; text-transform: none; }
[data-sp-theme="bold"] .sp-eyebrow { color: var(--sp-ink); }
/* Dark, glowing and photo heroes: light type on the block, ghost buttons drawn in white. */
[data-sp-hero="dark"] .sp-hero .sp-btn.ghost:hover, [data-sp-hero="glow"] .sp-hero .sp-btn.ghost:hover, [data-sp-hero="photo"] .sp-hero .sp-btn.ghost:hover { background: rgba(255,255,255,.1); }
[data-sp-hero="photo"] .sp-hero { background-size: cover; background-position: center; }
/* Stacked layout: the hero centred, its image under the text. */
[data-sp-layout="stacked"] .sp-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
[data-sp-layout="stacked"] .sp-hero-grid .sp-lead { margin-left: auto; margin-right: auto; }
[data-sp-layout="stacked"] .sp-hero-grid .sp-hero-actions, [data-sp-layout="stacked"] .sp-hero-grid .sp-hero-points { justify-content: center; }
[data-sp-layout="stacked"] .sp-hero-media { max-width: 760px; margin: 0 auto; width: 100%; }
/* Cards: shadow (the default), flat (a tinted block, no line), outline (a line, no shadow). */
[data-sp-cards="flat"] .sp-card, [data-sp-cards="flat"] .portal-card, [data-sp-cards="flat"] .sp-faq-item, [data-sp-cards="flat"] .portal-stat { box-shadow: none; border-color: transparent; background: var(--sp-alt-bg); }
[data-sp-cards="outline"] .sp-card, [data-sp-cards="outline"] .portal-card, [data-sp-cards="outline"] .sp-faq-item, [data-sp-cards="outline"] .portal-stat, [data-sp-cards="outline"] .sp-hero-media img { box-shadow: none; }
/* Dark surfaces: the few fixed tints that assumed a light page. */
[data-sp-mode="dark"] .portal-flash.ok, [data-sp-mode="dark"] .portal-badge.ok { background: rgba(47,125,79,.25); color: #9fdcb5; }
[data-sp-mode="dark"] .portal-flash.err, [data-sp-mode="dark"] .portal-badge.bad { background: rgba(184,50,50,.25); color: #f3a3a3; }
[data-sp-mode="dark"] .sp-emergency { background: rgba(184,50,50,.14); }
[data-sp-mode="dark"] .sp-header { backdrop-filter: blur(10px); }
/* A photo credit in the footer's small print. */
.sp-footer-credits { display: inline-flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--sp-footer-muted); }
.sp-footer-credits a { color: var(--sp-footer-link); }

/* Referrals: portal page + overview teaser + landing notice */
.portal-referral-hero { border-top: 4px solid var(--sp-accent, #2f5be6); }
.portal-label { display: block; font-size: 0.85rem; font-weight: 600; margin: 14px 0 6px; color: var(--sp-muted, #667085); }
.portal-copy-row { display: flex; gap: 8px; }
.portal-copy-row input { flex: 1; font-family: ui-monospace, Menlo, monospace; }
.portal-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.portal-share-row form { margin: 0; }
.portal-btn.ghost { background: transparent; color: var(--sp-accent, #2f5be6); border: 1px solid currentColor; }
.portal-referral-teaser { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 16px; border-radius: 12px; background: linear-gradient(90deg, rgba(47,91,230,.10), rgba(47,91,230,.02)); border: 1px solid rgba(47,91,230,.25); color: inherit; text-decoration: none; }
.portal-referral-teaser > i.bx-gift { font-size: 1.6rem; color: var(--sp-accent, #2f5be6); }
.portal-referral-teaser span { display: flex; flex-direction: column; flex: 1; }
.portal-referral-teaser small { color: var(--sp-muted, #667085); }
.portal-list { list-style: none; margin: 0; padding: 0; }
.portal-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sp-line, #e4e7ec); }
.portal-list-row:first-child { border-top: 0; }
.portal-list-right { text-align: right; }
.portal-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(47,91,230,.12); color: var(--sp-accent, #2f5be6); }
.portal-pill.ok { background: rgba(18,183,106,.14); color: #12b76a; }
.portal-pill.muted { background: rgba(102,112,133,.14); color: #667085; }

/* Quote and pay link line items: a card per line on phones ---------------------------------------
   Under 600 px the Item / Qty / Price / Amount table wrapped a description one word per line. Each line becomes a card
   there: name and description across the top, "qty x unit" under them, the amount on the right. Wider screens keep the table.
   The pay link (Portal/Invoice) uses it too: French money ("164,00 $") clipped its Amount column and totals on a 390 px phone.
   An amount never breaks between the figure and its "$" (prospect review, 2026-10-09). */
.quote-lines .quote-line-meta { display: none; }
.quote-lines .quote-col-unit, .quote-lines .quote-col-amount, .quote-lines tfoot td:last-child { white-space: nowrap; }
@media (max-width: 599.98px) {
  .quote-lines, .quote-lines tbody, .quote-lines tfoot { display: block; width: 100%; }
  .quote-lines thead { display: none; }
  .quote-lines tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: start; padding: .85rem 0; border-bottom: 1px solid var(--sp-line, #e4e7ec); }
  .quote-lines tbody tr.d-none { display: none; }
  .quote-lines tbody td { display: block; border: 0; padding: 0; }
  .quote-lines tbody td[colspan] { grid-column: 1 / -1; }
  .quote-lines .quote-col-qty, .quote-lines .quote-col-unit { display: none; }
  .quote-lines .quote-col-amount { font-weight: 700; white-space: nowrap; }
  .quote-lines .quote-line-meta { display: block; margin-top: .2rem; }
  .quote-lines tfoot tr { display: flex; justify-content: space-between; gap: 1rem; }
  .quote-lines tfoot tr.d-none { display: none; }
  .quote-lines tfoot td { border: 0; padding: .35rem 0; }
}

/* No-website landing (Pages/Index when the business has not published a front store) */
.sp-landing-contact { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; font-weight: 600; }
.sp-landing-contact li { display: inline-flex; align-items: center; gap: .45rem; }
.sp-landing-contact i { color: var(--sp-accent); font-size: 1.25rem; }

/* Dead ends (Pages/Shared/_DeadEnd): the business's name, phone and e-mail under the message */
.dead-end-contact { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; padding: .75rem 1.25rem; border-radius: 10px; background: var(--sp-soft, #eef4f1); }
.dead-end-contact a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; min-height: 44px; }

/* Accessibility ---------------------------------------------------------------------------
   Read by screen readers, not shown (the embed layout has no Bootstrap, so no .visually-hidden there). */
.sp-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
/* 44 px touch targets on the booking flow and the quote and pay links: a thumb, not a mouse pointer. */
.sp-btn, .portal-btn, .portal-slot { min-height: 44px; }
.portal-slot { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.portal-check { min-height: 44px; }
.portal-check input[type=radio], .portal-check input[type=checkbox] { width: 22px; height: 22px; }
.portal-invoice-wrapper .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.portal-invoice-wrapper .btn.btn-link { min-width: 44px; }
.portal-invoice-wrapper .quote-choice { width: 1.375rem; height: 1.375rem; flex: none; }
.portal-invoice-wrapper .quote-choice ~ label { min-height: 44px; display: block; cursor: pointer; }

/* Emergency path (contract 4c): /book, the landing, and /request-service?urgent=1. */
.sp-emergency { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem; margin: 0 0 1.25rem; border-radius: var(--sp-radius); border: 1.5px solid color-mix(in srgb, var(--sp-bad) 35%, white); background: #fdf3f3; }
.sp-emergency > i { font-size: 1.6rem; color: var(--sp-bad); margin-top: .1rem; }
.sp-emergency-body p { margin: .35rem 0 0; }
.sp-emergency-title { font-size: 1.05rem; margin: 0; }
.sp-emergency-phone { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: 1.25rem; font-weight: 800; color: var(--sp-bad); text-decoration: none; }
.sp-selectable { user-select: text; -webkit-user-select: text; }
.sp-urgent-check { border-color: color-mix(in srgb, var(--sp-bad) 35%, white); }

/* Address typeahead (contract 4c, wwwroot/js/address-suggest.js). */
.addr-suggest { position: relative; }
.addr-suggest-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .25rem; list-style: none; max-height: 18rem; overflow-y: auto; background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: 10px; box-shadow: var(--sp-shadow); }
.addr-suggest-option { padding: .6rem .7rem; border-radius: 8px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.addr-suggest-option:hover, .addr-suggest-option[aria-selected="true"] { background: var(--sp-soft); color: var(--sp-accent-ink); }
/* Booking step 2: what the chosen service costs and how long it takes. */
.booking-summary { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: -.25rem 0 .4rem; font-weight: 600; color: var(--sp-ink-2); }
.booking-summary span { display: inline-flex; align-items: center; gap: .3rem; }

/* Portal home card (Pages/Portal/Index): next appointment, what is waiting, Request work. */
.portal-home { display: grid; gap: 1.1rem; }
.portal-home-label { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sp-muted); }
.portal-home-when { font-family: var(--sp-display); font-size: 1.3rem; font-weight: 800; margin: .15rem 0 .1rem; }
.portal-home-next .portal-muted { margin: 0; }
.portal-home-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.portal-home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.portal-home-tiles .portal-stat { box-shadow: none; background: var(--sp-bg); }
.portal-home-cta { justify-self: start; }

/* Portal Quotes list (Pages/Portal/Quotes, contract 4d R5). */
.portal-quote-row { min-height: 56px; }
.portal-quote-row .portal-muted .portal-badge { margin-left: .35rem; }
.portal-quote-action { font-weight: 700; color: var(--sp-accent-ink); }
@media (max-width: 560px) { .portal-quote-action { display: none; } }

/* Quote link as option cards (Pages/Portal/Quote, contract 4d R5) ---------------------------------------------------------
   Each choose-one group is a card set: side by side on desktop, stacked on phones. Optional extras are a checklist. The
   summary ("Your total · Deposit due on acceptance") sticks to the bottom of the screen on phones. */
.quote-sec { border: 0; padding: 0; margin: 1.75rem 0 0; min-width: 0; }
.quote-sec-title { color: var(--sp-ink); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; font-family: var(--sp-display); font-size: 1.1rem; font-weight: 800; margin: 1.5rem 0 .75rem; float: none; width: 100%; padding: 0; }
.quote-sec > .quote-sec-title { margin-top: 0; }
.quote-sec-hint { font-family: var(--sp-text); font-size: .85rem; font-weight: 600; color: var(--sp-muted); }
.quote-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: stretch; padding-top: .7rem; }
.quote-option { position: relative; display: flex; flex-direction: column; gap: .6rem; margin: 0; padding: 1.35rem 1.15rem 1.1rem; border: 2px solid var(--sp-line); border-radius: calc(var(--sp-radius) + 2px); background: var(--sp-panel); color: var(--sp-ink); font-weight: 400; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.quote-option:hover { border-color: color-mix(in srgb, var(--sp-accent) 45%, var(--sp-line)); }
.quote-option.is-recommended { border-color: color-mix(in srgb, var(--sp-accent) 55%, var(--sp-line)); }
.quote-option.is-selected, .quote-option:has(.quote-option-input:checked) { border-color: var(--sp-accent); box-shadow: 0 0 0 3px var(--sp-soft), var(--sp-shadow); }
.quote-option:has(.quote-option-input:focus-visible) { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
.quote-option.is-dim { opacity: .55; cursor: default; }
.portal-invoice-wrapper { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.quote-option .quote-option-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.quote-option-badge { position: absolute; top: 0; left: 1rem; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; background: var(--sp-accent); color: var(--sp-accent-contrast); font-family: var(--sp-display); font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.quote-option-title { font-family: var(--sp-display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.quote-option-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; color: var(--sp-ink-2); font-size: .95rem; flex: 1; }
.quote-option-includes li { display: flex; gap: .4rem; align-items: flex-start; }
.quote-option-includes i { color: var(--sp-accent); font-size: 1.1rem; margin-top: .15rem; flex: none; }
.quote-option-price { font-family: var(--sp-display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; margin-top: auto; display: grid; }
.quote-option-price small { font-family: var(--sp-text); font-size: .8rem; font-weight: 400; color: var(--sp-muted); }
.quote-option-select { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; border-radius: 8px; border: 1.5px solid var(--sp-line); font-weight: 700; color: var(--sp-ink-2); }
.quote-option-select .on { display: none; }
.quote-option.is-selected .quote-option-select, .quote-option:has(.quote-option-input:checked) .quote-option-select { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-accent-contrast); }
.quote-option.is-selected .quote-option-select .on, .quote-option:has(.quote-option-input:checked) .quote-option-select .on { display: inline; }
.quote-option.is-selected .quote-option-select .off, .quote-option:has(.quote-option-input:checked) .quote-option-select .off { display: none; }
.quote-option-select i { font-size: 1.2rem; }
.quote-addons { display: grid; gap: .5rem; }
.quote-addon .p { font-variant-numeric: tabular-nums; }
.quote-addon.static { cursor: default; }
.quote-addon.static > i { font-size: 1.3rem; color: var(--sp-accent); grid-row: span 2; }
.quote-addon.is-dim { opacity: .6; }
.quote-addon.is-dim > i { color: var(--sp-muted); }
.quote-totals { margin: 1.5rem 0 0; margin-left: auto; max-width: 22rem; display: grid; gap: .3rem; }
.quote-totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.quote-totals > div.d-none { display: none; }
.quote-totals dt { font-weight: 400; color: var(--sp-ink-2); }
.quote-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.quote-totals .text-success dt, .quote-totals .text-success dd { color: var(--sp-ok); }
.quote-totals-total { border-top: 1px solid var(--sp-line); padding-top: .5rem; margin-top: .2rem; font-family: var(--sp-display); font-weight: 800; font-size: 1.2rem; }
.quote-totals-total dt { color: var(--sp-ink); font-weight: 800; }
.quote-totals.is-pricing dd, .quote-summary.is-pricing strong { opacity: .45; transition: opacity .15s; }
.quote-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-top: 1rem; padding: .9rem 1.25rem; border-radius: var(--sp-radius); background: var(--sp-panel); border: 1px solid var(--sp-line); box-shadow: var(--sp-shadow); }
.quote-summary-text { display: grid; gap: .1rem; }
.quote-summary-total { font-family: var(--sp-display); font-weight: 700; font-size: 1.05rem; }
.quote-summary-total strong { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: .25rem; }
.quote-summary-deposit { color: var(--sp-ink-2); font-size: .92rem; }
@media (max-width: 767.98px) {
  .quote-options { grid-template-columns: 1fr; }
  .portal-invoice-wrapper { padding: 1.25rem 1rem 2rem; }
  .quote-summary { position: sticky; bottom: 0; z-index: 40; margin: 1rem -1rem 0; border-radius: 14px 14px 0 0; border-bottom: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(20, 30, 40, .12); }
  .quote-summary-go { flex: 1 0 100%; }
  body:has(.quote-summary) .sp-chat { bottom: 7.5rem; }
  .quote-totals { max-width: none; }
}


/* Branded portal header (contract 4d R5): /Portal/* pages - sign-in, the signed-in portal, the pay and quote links. Same header
   as the website, plus "Powered by crewduo" under the name and the phone kept outside the menu so it is one tap on a phone. */
.sp-brand-text { display: grid; line-height: 1.15; }
.sp-brand-powered { font-family: var(--sp-text); font-size: .72rem; font-weight: 600; color: var(--sp-muted); letter-spacing: .01em; }
.sp-header-call { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .85rem; border-radius: 999px; border: 1.5px solid var(--sp-line); color: var(--sp-ink) !important; font-weight: 700; text-decoration: none; white-space: nowrap; order: 3; }
.sp-header-call:hover { border-color: var(--sp-accent); background: var(--sp-soft); }
.sp-header-call i { font-size: 1.15rem; color: var(--sp-accent); }
.sp-portal-chrome .sp-nav { order: 2; }
.sp-portal-chrome .sp-nav-toggle { order: 4; }
.sp-portal-chrome .sp-nav-phone { display: none; }
@media (max-width: 900px) {
  .sp-portal-chrome .sp-header-inner { gap: .75rem; }
  .sp-header-call { margin-left: auto; }
  .sp-header-call + .sp-nav-toggle { margin-left: 0; }
  .sp-portal-chrome .sp-brand { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .sp-portal-chrome .sp-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sp-portal-chrome .sp-brand-text { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .sp-portal-chrome .sp-brand img, .sp-portal-chrome .sp-brand-mark { flex: none; }
}
@media (max-width: 520px) {
  .sp-header-call { padding: 0; width: 44px; justify-content: center; }
  .sp-header-call span { display: none; }
}

/* Generated sites (R6) ----------------------------------------------------------------- */
/* A long business name or an unbroken word in a heading wraps instead of pushing the page sideways on a phone. */
.sp-h1, .sp-h2, .sp-service h3, .sp-contact-list a, .sp-contact-list span { overflow-wrap: anywhere; }
/* Short RichText blocks side by side ("Where we work", "Hours"), stacked on a phone. */
.sp-rich-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; align-items: start; }
.sp-rich-row .sp-rich { max-width: none; }
.sp-rich h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 .75rem; }
.sp-rich > :last-child { margin-bottom: 0; }
/* A plain list in a card (the opening hours) reads as a table: one row per line, ruled. */
.sp-card.sp-rich ul { list-style: none; padding: 0; margin: 0; }
.sp-card.sp-rich li { padding: .55rem 0; border-bottom: 1px solid var(--sp-line); color: var(--sp-ink-2); font-variant-numeric: tabular-nums; }
.sp-card.sp-rich li:last-child { border-bottom: 0; }
/* The emergency card straight under the hero. */
.sp-emergency-band { padding: 1.5rem 0 0; }
@media (max-width: 560px) { .sp-hero-actions .sp-btn { flex: 1 1 100%; justify-content: center; } }

/* T30-194: on a phone the footer links, the small print and a payment's Receipt link were under the 24 px tap target (WCAG 2.2
   target size); each is at least 24 px tall there. */
@media (max-width: 767.98px) {
  .sp-footer li a, .sp-powered a, .sp-footer-credits a, .portal-tap { display: inline-flex; align-items: center; min-height: 24px; padding-block: 2px; }
  .sp-powered { line-height: 2; }
}
