/* ============================================================
   Metropolis Font Faces
   ============================================================ */
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-300-normal.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-300-normal.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-300-italic.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-300-italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-400-normal.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-400-normal.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-400-italic.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-400-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-500-normal.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-500-normal.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-600-normal.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-600-normal.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-700-normal.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-700-normal.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-latin-800-normal.woff2') format('woff2'),
       url('../fonts/metropolis/metropolis-latin-800-normal.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Design Tokens — Sapius AI
   ============================================================ */
:root {
  --font-base: 'Metropolis', system-ui, sans-serif;

  /* Sapius colour palette */
  --sapius-900: #002330;
  --sapius-800: #26444F;
  --sapius-700: #005F84;
  --sapius-500: #047FAC;
  --sapius-100: #D6EBF5;
  --sapius-50:  #EBF5FA;

  /* Legacy aliases (kept for partials that may reference them) */
  --color-primary:      #005F84;
  --color-primary-dark: #002330;
  --color-text:         #002330;
  --color-muted:        #26444F;

  --navbar-height: 72px;
}

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: var(--font-base);
  color: var(--sapius-900);
  background: #fff;
}

/* ============================================================
   Navbar
   ============================================================ */
.site-navbar {
  height: var(--navbar-height);
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-navbar .navbar-brand img {
  height: 52px;
  width: auto;
}

.site-navbar .nav-link {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 1.25rem;        /* 20px */
  line-height: 1.75rem;      /* 28px */
  color: var(--sapius-900);
  padding: 0 0;
  margin: 0 0;
  transition: color 0.15s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--sapius-500);
}

/* Primary CTA button — pill shape */
.btn-primary-sapius {
  background-color: var(--sapius-700);
  color: #fff;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: none;
  box-shadow: 0 7px 28px rgba(0, 127, 255, 0.10);
  transition: background-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-sapius:hover {
  background-color: var(--sapius-900);
  color: #fff;
}

/* Keep old alias for pages not yet migrated */
.btn-outline-secondary {
  background-color: var(--sapius-500);
  fill: none;
  color: #fff;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  box-shadow: 0 7px 28px rgba(0, 127, 255, 0.10);
  transition: background-color 0.15s;
}
.btn-outline-secondary:hover {
  background-color: var(--sapius-900);
  color: #fff;
}
.btn-join {
  background-color: var(--sapius-700);
  color: #fff;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  box-shadow: 0 7px 28px rgba(0, 127, 255, 0.10);
  transition: background-color 0.15s;
}
.btn-join:hover {
  background-color: var(--sapius-900);
  color: #fff;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--sapius-900);
}
.icon-btn:hover { color: var(--sapius-500); }
.cart-icon svg,
.cart-icon svg path {
  fill: none !important;
  stroke: currentColor;
}

/* ============================================================
   Sidebar (Offcanvas)
   ============================================================ */
.site-sidebar .offcanvas-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.site-sidebar .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--sapius-900);
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-sidebar .nav-link:hover,
.site-sidebar .nav-link.active {
  color: var(--sapius-500);
}

/* ============================================================
   Hero — Home (no image, white→#ebf5fa gradient)
   ============================================================ */
.hero-home {
  background: linear-gradient(180deg, #fff 40%, var(--sapius-50) 100%);
  min-height: 796px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0;
}

.hero-home h1 {
  font-weight: 700;
  font-size: 3.75rem;   /* 60px */
  line-height: 4.5rem;  /* 72px */
  color: var(--sapius-900);
  max-width: 590px;
  margin: 0 auto;
}

.hero-home .hero-subtitle {
  font-weight: 400;
  font-size: 1.25rem;  /* 20px */
  line-height: 1.75rem;
  color: var(--sapius-900);
  max-width: 500px;
  margin: 0 auto;
}

.hero-home .hero-sapius_careai-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sapius-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.hero-home .hero-sapius_careai-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.hero-home .hero-sapius_careai-subtitle {
  font-size: 1rem;
  color: var(--sapius-700, #3a6070);
  margin: 0;
  max-width: 560px;
}

.hero-home .hero-sapius_careai-label + p a,
.hero-home .body-text a {
  color: var(--color-primary);
  text-decoration: none;
}

.hero-home .hero-sapius_careai-label + p a:hover,
.hero-home .body-text a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Search bar */
.sapius-search-bar {
  background: linear-gradient(90deg, var(--sapius-100) 0%, #fff 100%);
  border-radius: 100px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 4px 4px 4px 20px;
  max-width: 590px;
  width: 100%;
  margin: 0 auto;
}

.sapius-search-bar input {
  border: none;
  background: transparent;
  flex: 1;
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--sapius-800);
  outline: none;
}

.sapius-search-bar input::placeholder {
  color: var(--sapius-800);
  opacity: 0.7;
}

.sapius-search-btn {
  background: var(--sapius-100);
  border: none;
  border-radius: 100px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Feature label pills */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sapius-100);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-900);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

/* Tooltip arrow */
.feature-pill[data-hint]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--sapius-500);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}

/* Tooltip bubble */
.feature-pill[data-hint]::after {
  content: attr(data-hint);
  position: absolute;
  bottom: calc(100% + 13px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--sapius-50);
  color: var(--sapius-900);
  border: 1px solid var(--sapius-500);
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}

/* Desktop/trackpad: show tooltip on hover. Touch devices skip this so a tap
   navigates immediately instead of first triggering a "sticky hover" popup. */
@media (hover: hover) and (pointer: fine) {
  .feature-pill[data-hint]:hover::before,
  .feature-pill[data-hint]:hover::after {
    opacity: 1;
  }
}

/* Touch devices: a tap-and-hold (long-press, see site.js) adds this class to
   show the same tooltip as a popover, without blocking a quick tap from
   navigating normally. */
.feature-pill[data-hint].show-hint::before,
.feature-pill[data-hint].show-hint::after {
  opacity: 1;
}

/* Force-suppress underlines on pill links across all states and browsers.
   Chrome paints text-decoration on the inline text flow inside a flex <a>,
   so specificity alone is not enough — !important is required to win
   against Bootstrap's a { text-decoration: underline } in that rendering path. */
a.feature-pill,
a.feature-pill:link,
a.feature-pill:visited,
a.feature-pill:hover,
a.feature-pill:focus,
a.feature-pill:active {
  -webkit-text-decoration: none !important;
          text-decoration: none !important;
  color: var(--sapius-900);
}

/* Belt-and-suspenders: also target the <span> that carries the visible text */
.feature-pill span {
  -webkit-text-decoration: none !important;
          text-decoration: none !important;
}

.feature-pill:hover {
  background: var(--sapius-100);
  border-color: var(--sapius-500);
  color: var(--sapius-700);
}

.feature-pill img,
.feature-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================
   Hero — Image pages (Patients, Clinicians)
   ============================================================ */
.hero-image {
  position: relative;
  height: 828px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-image img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-image .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-patients .hero-overlay {
  background:
    linear-gradient(to right, rgba(0, 115, 167, 0.25) 0%, rgba(0, 115, 167, 0) 100%),
    linear-gradient(to top right, rgba(0,35,48,1) 0%, rgba(0,35,48,0.20) 100%);
}

.hero-clinicians .hero-overlay {
  background:
    linear-gradient(to right, rgba(0, 115, 167, 0.25) 0%, rgba(0, 115, 167, 0) 100%),
    linear-gradient(to top right, rgba(0,35,48,1) 0%, rgba(0,35,48,0.20) 100%);
}

.hero-organization .hero-overlay {
  background:
    linear-gradient(to right, rgba(0, 115, 167, 0.25) 0%, rgba(0, 115, 167, 0) 100%),
    linear-gradient(to top right, rgba(0,35,48,1) 0%, rgba(0,35,48,0.20) 100%);
}

.hero-government .hero-overlay {
  background:
    linear-gradient(to right, rgba(0, 115, 167, 0.25) 0%, rgba(0, 115, 167, 0) 100%),
    linear-gradient(to top right, rgba(0,35,48,1) 0%, rgba(0,35,48,0.20) 100%);
}


.hero-image .hero-content {
  position: relative;
  z-index: 1;
  padding: 0 120px;
  width: 100%;
}

.hero-image h1 {
  font-weight: 600;
  font-size: 3.1rem;
  line-height: 3.75rem;
  color: #fff;
  max-width: 793px;
  position: relative;
  top: 48px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 4px 20px rgba(0,0,0,0.35);
}

/* ============================================================
   Section — About Us (Home page, light bg)
   ============================================================ */
.section-about-home {
  background: var(--sapius-50);
  padding: 120px 0;
}

.section-about-home .section-label {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5rem;
  color: var(--sapius-500);
}

.section-about-home h2 {
  font-weight: 500;
  font-size: 2.5rem;   /* 40px */
  line-height: 3.125rem; /* 50px */
  color: #001339;
  max-width: 950px;
  margin: 0 auto;
}

.section-about-home .body-text {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--sapius-800);
  max-width: 794px;
  margin: 0 auto;
}

.section-about-home .body-text a {
  color: var(--sapius-500);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
}

/* ============================================================
   Section — Key Offerings
   ============================================================ */
.section-offerings {
  background: #fff;
  padding: 120px 0;
}

.section-offerings h2 {
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 3.125rem;
  color: #001339;
}

.offering-col {
  padding: 20px 38px 20px 0;
}

.offering-col.no-border {
  padding-right: 0;
}

.offering-col h3 {
  font-weight: 500;
  font-size: 1.875rem;  /* 30px */
  line-height: 1.2;
  color: var(--sapius-500);
}

.offering-col p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--sapius-900);
}

/* ============================================================
   Section — CTA (lower "About Us" on home)
   ============================================================ */
.section-cta-home {
  background: #fff;
  padding: 120px 0;
  text-align: center;
}

.section-cta-home p {
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.2;
  color: #404e6b;
  max-width: 996px;
  margin: 0 auto;
}

/* ============================================================
   Section — Write Up (Patients/Clinicians)
   ============================================================ */
.section-writeup {
  padding: 100px 0;
}

.section-writeup p {
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--sapius-800);
  max-width: 786px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   Service Cards
   ============================================================ */
.service-card {
  background: linear-gradient(to top, var(--sapius-100), #fff);
  border-radius: 16px;
  padding: 32px 28px 32px;
  box-shadow: 0 2px 4px rgba(191,223,255,0.12), 0 4px 4px rgba(191,223,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
}

.service-card.card-alt {
  background: linear-gradient(to top, var(--sapius-100), #fff);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.service-card-title {
  font-weight: 600;
  font-size: 1.75rem;   /* 28px */
  line-height: 1.5rem;
  color: var(--sapius-700);
}

.service-card-subtitle {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25rem;
  color: var(--sapius-800);
}

.service-card-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card-bullets {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-shrink: 0;
}

.check-circle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.service-card-text {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-900);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-card-item p {
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-900);
}

/* ============================================================
   Section — Partner CTA (Patients/Clinicians)
   ============================================================ */
.section-partner {
  padding: 100px 0;
  text-align: center;
}

.section-partner h3 {
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--sapius-900);
  max-width: 592px;
  margin: 0 auto;
}

.section-partner p {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-900);
  max-width: 592px;
  margin: 0 auto;
}

/* ============================================================
   About — Collaborations section
   ============================================================ */
.section-collab-header {
  text-align: center;
  padding: 80px 0 40px;
}

.section-collab-header h2 {
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sapius-500);
  margin-bottom: 16px;
}

.section-collab-header p {
  font-size: 1.1rem;
  line-height: 1.75rem;
  color: var(--sapius-800);
  max-width: 640px;
  margin: 0 auto;
}

.service-card.collab-card {
  gap: 12px;
}

.collab-card-title {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--sapius-700);
  margin: 0;
}

.collab-card-body {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-800);
  margin: 0;
}

/* ============================================================
   Footer — Sapius Design
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, rgba(214,235,245,0) 0%, #D6EBF5 100%);
  padding: 84px 0 24px;
  color: var(--sapius-900);
}

.site-footer .footer-section-title {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-900);
  margin-bottom: 16px;
}

.site-footer a {
  font-weight: 400;
  font-size: 0.75rem;   /* 12px */
  line-height: 1.25rem; /* 20px */
  color: var(--sapius-900);
  text-decoration: none;
}

.site-footer a:hover { color: var(--sapius-500); }

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-900);
}

.footer-contact a {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sapius-500);
  text-decoration: none;
}

/* Footer contact form */
.footer-form-field {
  background: var(--sapius-50);
  border: 1px solid var(--sapius-100);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-base);
  font-size: 0.75rem;
  color: var(--sapius-900);
  width: 100%;
  outline: none;
  box-shadow: 0 2px 4px -2px rgba(191,223,255,0.12);
}

.footer-form-field::placeholder {
  color: var(--sapius-900);
  opacity: 0.7;
}

/* Honeypot — invisible to humans, bots fill it in */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Contact form inline feedback */
.contact-feedback { font-size: 0.875rem; margin-bottom: 0.75rem; }
.contact-feedback--ok  { color: #0a7d5a; }
.contact-feedback--err { color: #c5372a; }

.footer-disclaimer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(0,35,48,0.1);
  margin-top: 40px;
  padding-top: 16px;
  font-size: 0.625rem; /* 10px */
  line-height: 1rem;
  color: var(--sapius-800);
}

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-toggle { gap: 0.375rem; }

.lang-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.btn-lang-option {
  background: var(--sapius-50);
  border: 1px solid var(--sapius-100);
  border-radius: 100px;
  padding: 0.375rem 0.875rem;
  font-family: var(--font-base);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sapius-900);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-lang-option:hover,
.btn-lang-option.active {
  background: var(--sapius-100);
  border-color: var(--sapius-500);
  color: var(--sapius-700);
}

/* ============================================================
   Utility
   ============================================================ */
main { min-height: 60vh; }

.text-sapius-500 { color: var(--sapius-500) !important; }
.text-sapius-700 { color: var(--sapius-700) !important; }
.bg-sapius-50    { background-color: var(--sapius-50) !important; }
.bg-sapius-100   { background-color: var(--sapius-100) !important; }

@media (max-width: 991.98px) {
  .hero-home h1 { font-size: 2.5rem; line-height: 3rem; }
  .page-hero h1 { font-size: 1.9rem; line-height: 2.4rem; }
  .hero-image h1 { font-size: 1.9rem; line-height: 2.4rem; }
  .hero-image .hero-content { padding: 0 24px; }
  .hero-image { height: auto; min-height: 400px; padding: 80px 0; }
  .section-about-home h2 { font-size: 1.75rem; line-height: 2.25rem; }
  .offering-col { padding: 20px 0; }
  .offering-col.no-border { padding: 20px 0; }
}

/* ============================================================
   Cart — Badge
   ============================================================ */
.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sapius-500);
  color: #fff;
  font-family: var(--font-base);
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
  border: 1.5px solid #fff;
}

/* ============================================================
   Cart — Page hero
   ============================================================ */
.page-hero {
  background: linear-gradient(180deg, #fff 40%, var(--sapius-50) 100%);
  padding: 64px 0 48px;
}

.page-hero h1 {
  font-weight: 700;
  font-size: 3.1rem;
  line-height: 3.75rem;
  color: var(--sapius-900);
  max-width: 590px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 35, 48, 0.12);
}

.page-hero h2 {
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--sapius-800);
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* ============================================================
   Error page
   ============================================================ */
.error-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
  opacity: 0.55;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.12;
  margin: 0 auto 0.25rem;
  letter-spacing: -0.04em;
}

.error-page-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================================
   Cart — Cart page sections
   ============================================================ */
.cart-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.cart-section--request {
  background: var(--sapius-50);
  border-color: var(--sapius-100);
}

.cart-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sapius-800);
  opacity: 0.65;
  margin-bottom: 1rem;
}

/* ── Cart item row ── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item:last-of-type {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--sapius-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-item-tag--paid    { background: var(--sapius-100); color: var(--sapius-700); }
.cart-item-tag--free    { background: #e8f5e9; color: #2e7d32; }
.cart-item-tag--request { background: #fff3e0; color: #e65100; }

.cart-item-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--sapius-900);
  white-space: nowrap;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sapius-800);
  opacity: 0.4;
  font-size: 0.875rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
}

.cart-remove-btn:hover { opacity: 1; color: #c00; }

/* ── Subtotal ── */
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sapius-100);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sapius-900);
}

/* ── Cart actions ── */
.cart-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cart-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sapius-800);
  font-family: var(--font-base);
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.cart-clear-btn:hover { opacity: 1; color: #c00; }

/* ── Empty cart state ── */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
}

.cart-empty-msg {
  font-size: 1.125rem;
  color: var(--sapius-800);
  margin-bottom: 1.25rem;
}

/* ── Cart summary sidebar ── */
.cart-summary-box {
  background: var(--sapius-50);
  border-radius: 16px;
  padding: 1.5rem;
}

.cart-summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sapius-900);
  margin-bottom: 0.5rem;
}

.cart-summary-text {
  font-size: 0.9375rem;
  color: var(--sapius-800);
  margin-bottom: 0.5rem;
}

.cart-summary-text a {
  color: var(--sapius-500);
  text-decoration: underline;
  font-weight: 500;
}

/* ============================================================
   Cart — Checkout result pages (success / cancel)
   ============================================================ */
.checkout-result-box {
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.checkout-result-box--success { background: #f0fdf4; border: 1px solid #bbf7d0; }
.checkout-result-box--cancel  { background: var(--sapius-50); border: 1px solid var(--sapius-100); }

.checkout-result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.checkout-result-icon--success { background: #dcfce7; color: #16a34a; }
.checkout-result-icon--cancel  { background: var(--sapius-100); color: var(--sapius-700); }

.checkout-result-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sapius-900);
  margin-bottom: 0.75rem;
}

.checkout-result-msg {
  font-size: 1rem;
  color: var(--sapius-800);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ============================================================
   Cart — Toast notifications
   ============================================================ */
.sapius-cart-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--sapius-900);
  color: #fff;
  font-family: var(--font-base);
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0, 35, 48, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.sapius-cart-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sapius-cart-toast--success { background: #166534; }
.sapius-cart-toast--error   { background: #9b1c1c; }
.sapius-cart-toast--info    { background: var(--sapius-700); }
