body.cp-portal-body {
  background-color: #f8fafc !important;
  color: #0b1c30;
  --cp-sidebar-width: 4.5rem;
  --cp-topnav-height: 4rem;
}

body.cp-portal-body.cp-sidebar-expanded {
  --cp-sidebar-width: 15rem;
}

.cp-portal-body .cp-portal-sidebar {
  display: none;
}

.cp-portal-main {
  width: 100%;
  box-sizing: border-box;
  padding-top: 5rem;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .cp-portal-body .cp-portal-sidebar {
    position: fixed;
    left: 0;
    top: var(--cp-topnav-height);
    bottom: 0;
    z-index: 40;
    display: flex !important;
    flex-direction: column;
    width: var(--cp-sidebar-width);
    height: auto;
    min-height: calc(100vh - var(--cp-topnav-height));
    max-height: calc(100vh - var(--cp-topnav-height));
    box-sizing: border-box;
    background-color: #eff4ff;
    border-right: 1px solid #c5c6d0;
    transition: width 0.22s ease;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 12px 8px;
  }

  .cp-portal-main {
    margin-left: var(--cp-sidebar-width) !important;
    width: calc(100% - var(--cp-sidebar-width)) !important;
    max-width: none !important;
    min-height: calc(100vh - 4rem);
    transition: margin-left 0.22s ease, width 0.22s ease;
  }

  .cp-portal-site-footer {
    margin-left: var(--cp-sidebar-width) !important;
    width: calc(100% - var(--cp-sidebar-width)) !important;
    transition: margin-left 0.22s ease, width 0.22s ease;
  }
}

/* Collapsible sidebar */
.cp-sidebar-head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 12px;
  min-height: 48px;
}

body.cp-sidebar-collapsed .cp-sidebar-head {
  flex-direction: column;
  align-items: center;
  padding-bottom: 8px;
}

.cp-sidebar-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #c5c6d0;
  border-radius: 10px;
  background: #fff;
  color: #405c9d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.cp-sidebar-toggle:hover {
  background: #eff4ff;
  border-color: #9cb7ff;
}

.cp-sidebar-toggle__icon {
  transition: transform 0.22s ease;
}

body.cp-sidebar-expanded .cp-sidebar-toggle__icon {
  transform: rotate(180deg);
}

.cp-sidebar-expand-only {
  opacity: 1;
  max-width: 12rem;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.18s ease, max-width 0.22s ease;
}

body.cp-sidebar-collapsed .cp-sidebar-expand-only {
  opacity: 0;
  max-width: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.cp-sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 2px;
}

.cp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #44464f;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

body.cp-sidebar-collapsed .cp-sidebar-link {
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
}

.cp-sidebar-link:hover {
  background: #dce9ff;
  color: #0b1c30;
}

.cp-sidebar-link.is-active {
  background: #9cb7ff;
  color: #294786;
  font-weight: 700;
}

.cp-sidebar-link__icon {
  font-size: 22px;
  flex-shrink: 0;
}

.cp-sidebar-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-sidebar-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: filter 0.15s;
}

body.cp-sidebar-collapsed .cp-sidebar-book {
  padding: 12px;
  width: 100%;
}

.cp-sidebar-book:hover {
  filter: brightness(1.08);
  color: #fff;
}

.cp-sidebar-link--logout {
  color: #b91c1c;
}

.cp-sidebar-link--logout:hover {
  background: #fef2f2;
  color: #991b1b;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* Top navigation — right-aligned cluster (works without Tailwind on portal) */
.cp-portal-topnav,
.pub-topnav {
  position: sticky;
  top: 0;
  z-index: 1090;
  background: #f8f9ff;
  border-bottom: 1px solid #c5c6d0;
}

.pub-topnav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1280px;
  min-height: 4rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.pub-topnav__cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.pub-topnav__nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .pub-topnav__nav {
    display: flex;
  }
}

.pub-topnav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pub-topnav__menu-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.5rem;
  border-radius: 999px;
  color: #44464f;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .pub-topnav__menu-btn {
    display: none;
  }
}

.pub-topnav__menu-btn:hover {
  background: #eff4ff;
}

.pub-topnav__profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #c5c6d0;
  border-radius: 999px;
  padding: 0.15rem 0.75rem 0.15rem 0.15rem;
  background: #fff;
  color: inherit;
  transition: background 0.15s ease;
}

.pub-topnav__profile:hover {
  background: #eff4ff;
  color: inherit;
}

.pub-topnav__profile-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #c5c6d0;
  background: #dce9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #405c9d;
  flex-shrink: 0;
}

.cp-notif-btn {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.5rem;
  border-radius: 999px;
  color: #44464f;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s ease;
}

.cp-notif-btn:hover {
  background: #eff4ff;
}

.cp-notif-badge {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cp-notif-badge--zero {
  background: #94a3b8;
  color: #fff;
}

.cp-notif-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #c5c6d0;
  background: #f8fafc;
}

.cp-notif-guest-cta {
  padding: 0 1rem 1rem;
}

.cp-mega-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 48, 0.4);
  backdrop-filter: blur(8px);
}

/* Mega menu — layout works without Tailwind utilities */
.cp-mega-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 4rem;
  bottom: 0;
  z-index: 1085;
}

.cp-mega-panel.is-open {
  display: block;
}

@media (max-width: 767px) {
  .cp-mega-panel {
    top: 4rem;
    z-index: 1095;
  }

  .cp-mega-panel__body {
    max-height: calc(100dvh - 4rem);
    min-height: calc(100dvh - 4rem);
  }

  .cp-mega-grid {
    padding: 1.25rem 16px 2rem;
    gap: 1.5rem;
  }
}

.cp-mega-panel__body {
  position: relative;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #c5c6d0;
  box-shadow: 0 12px 32px rgba(11, 28, 48, 0.12);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.cp-mega-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .cp-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cp-mega-col {
  min-width: 0;
}

.cp-mega-panel .flex {
  display: flex;
}

.cp-mega-panel .items-center {
  align-items: center;
}

.cp-mega-panel .gap-3 {
  gap: 0.75rem;
}

.cp-mega-panel .mb-6 {
  margin-bottom: 1.5rem;
}

.cp-mega-panel .shrink-0 {
  flex-shrink: 0;
}

.cp-mega-panel .min-w-0 {
  min-width: 0;
}

.cp-mega-panel .flex-1 {
  flex: 1 1 0%;
}

.cp-mega-col--cta {
  background: #eff4ff;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.cp-mega-col .space-y-2 > * + * {
  margin-top: 0.5rem;
}

.cp-mega-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.cp-mega-link:hover {
  background: #eff4ff;
  color: inherit;
}

.cp-mega-link .material-symbols-outlined.text-secondary {
  color: #405c9d;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.cp-mega-link p {
  margin: 0;
}

.cp-mega-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #f97316;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
  transition: filter 0.15s ease;
}

.cp-mega-cta-btn:hover {
  filter: brightness(1.08);
  color: #fff;
}

.cp-mega-footer {
  background: rgba(211, 228, 254, 0.5);
  border-top: 1px solid rgba(197, 198, 208, 0.5);
  padding: 0.75rem 24px;
}

.cp-mega-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 14px;
  color: #44464f;
}

.cp-mega-footer__inner a {
  color: inherit;
  text-decoration: none;
}

.cp-mega-footer__inner a:hover {
  color: #405c9d;
}

body.cp-mega-open {
  overflow: hidden;
}

.pub-topnav .pub-nav-trigger {
  appearance: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 0.25rem;
  margin: 0;
  line-height: 1.2;
}

.pub-topnav .pub-nav-trigger.is-open {
  color: #405c9d !important;
  border-bottom: 2px solid #405c9d !important;
}

.pub-topnav .pub-nav-link.is-active {
  color: #405c9d !important;
  border-bottom: 2px solid #405c9d !important;
  padding-bottom: 0.15rem;
}

.pub-topnav .pub-nav-trigger.is-open .pub-nav-chevron {
  transform: rotate(180deg);
}

.pub-topnav .pub-nav-chevron {
  transition: transform 0.15s ease;
}

.cp-glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 198, 208, 0.65);
}

.cp-table-wrap {
  overflow-x: auto;
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cp-table th,
.cp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #c5c6d0;
  text-align: left;
  vertical-align: top;
}

.cp-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #44464f;
  background: #f8fafc;
}

.cp-table tr:hover td {
  background: #eff4ff;
}

.cp-table tr.cp-row-highlight td {
  background: #fff7ed;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cp-btn-primary {
  background: #00061b;
  color: #fff;
}

.cp-btn-primary:hover {
  background: #001c4e;
  color: #fff;
}

.cp-btn-outline {
  background: #fff;
  border-color: #c5c6d0;
  color: #0b1c30;
}

.cp-btn-outline:hover {
  background: #eff4ff;
}

.cp-btn-orange {
  background: #f97316;
  color: #fff;
}

.cp-btn-orange:hover {
  filter: brightness(1.05);
  color: #fff;
}

.cp-btn-danger-outline {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}

.cp-btn-sm {
  padding: 6px 10px;
  font-size: 13px;
}

.cp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.cp-badge-muted {
  background: #e5eeff;
  color: #294786;
}

.cp-badge-warn {
  background: #ffedd5;
  color: #c2410c;
}

.cp-badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.cp-badge-success {
  background: #d1fae5;
  color: #047857;
}

.cp-badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.d-none,
.cp-hidden {
  display: none !important;
}

.cp-help-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: #eff4ff;
  border: 1px solid #d3e4fe;
  border-radius: 10px;
  font-size: 14px;
  color: #44464f;
  margin: 0 0 16px;
}

.cp-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0b1c30;
  margin-bottom: 6px;
}

.cp-label-hint {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: #757780;
  margin-top: 2px;
}

.cp-input,
.cp-select,
.cp-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid #c5c6d0;
  border-radius: 10px;
  background: #fff;
  color: #0b1c30;
}

.cp-input:focus,
.cp-select:focus,
.cp-textarea:focus {
  outline: none;
  border-color: #405c9d;
  box-shadow: 0 0 0 3px rgba(64, 92, 157, 0.15);
}

.cp-input[readonly] {
  background: #f8fafc;
  color: #757780;
}

.cp-field {
  margin-bottom: 16px;
}

.cp-form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .cp-form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .cp-form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.cp-action-card {
  border-left: 4px solid #f97316;
  background: #fffbeb;
}

.cp-action-card-info {
  border-left-color: #405c9d;
  background: #eff4ff;
}

.cp-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-info-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eff4ff;
  font-size: 14px;
}

.cp-info-list li:last-child {
  border-bottom: none;
}

.cp-info-list strong {
  min-width: 120px;
  color: #44464f;
  font-weight: 600;
}

.cp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-timeline li {
  position: relative;
  padding-left: 28px;
  padding-bottom: 16px;
}

.cp-timeline li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #405c9d;
}

.cp-timeline li::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #d3e4fe;
}

.cp-timeline li:last-child::after {
  display: none;
}

.cp-booking-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cp-booking-step-pill {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eff4ff;
  color: #44464f;
}

.cp-booking-step-pill.is-active {
  background: #00061b;
  color: #fff;
}

.cp-booking-step-pill.is-done {
  background: #10b981;
  color: #fff;
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

.device-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.device-radio {
  display: block;
  cursor: pointer;
}

.device-card {
  border: 2px solid #d3e4fe;
  border-radius: 14px;
  padding: 1rem;
  min-height: 110px;
  background: #f8f9ff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.device-card__icon-wrap {
  align-items: center;
  background: #e5eeff;
  border-radius: 12px;
  color: #405c9d;
  display: flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 10px;
  width: 48px;
}

.device-card__icon {
  font-size: 28px;
}

.device-card-category {
  display: flex;
  flex-direction: column;
}

.device-card-saved .device-card__icon-wrap {
  margin-bottom: 8px;
}

.device-radio input:checked + .device-card,
.device-radio input:focus-visible + .device-card {
  border-color: #405c9d;
  box-shadow: 0 0 0 3px rgba(64, 92, 157, 0.12);
}

.device-radio input:checked + .device-card .device-card__icon-wrap,
.device-radio input:focus-visible + .device-card .device-card__icon-wrap {
  background: #9cb7ff;
  color: #294786;
}

.device-card__icon-wrap--sm {
  height: 40px;
  margin-bottom: 0;
  width: 40px;
}

.device-card__icon-wrap--sm .device-card__icon {
  font-size: 22px;
}

.cp-field--fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.cp-field--fieldset .cp-label {
  margin-bottom: 8px;
}

.cp-device-type-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-device-type-option {
  cursor: pointer;
  display: block;
}

.cp-device-type-option input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.cp-device-type-option__card {
  align-items: center;
  background: #f8f9ff;
  border: 2px solid #d3e4fe;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cp-device-type-option__label {
  color: #294786;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.cp-device-type-option input:checked + .cp-device-type-option__card,
.cp-device-type-option input:focus-visible + .cp-device-type-option__card {
  border-color: #405c9d;
  box-shadow: 0 0 0 3px rgba(64, 92, 157, 0.12);
}

.cp-device-type-option input:checked + .cp-device-type-option__card .device-card__icon-wrap--sm,
.cp-device-type-option input:focus-visible + .cp-device-type-option__card .device-card__icon-wrap--sm {
  background: #9cb7ff;
  color: #294786;
}

.cp-device-row {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.cp-device-row .device-card__icon-wrap--sm {
  flex-shrink: 0;
}

.device-section-title {
  color: #44464f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#bookingMap {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: 1px solid #c5c6d0;
}

.service-area-message {
  border: 1px solid #d3e4fe;
  border-radius: 14px;
  padding: 14px;
  background: #eff4ff;
}

.service-area-message.is-unavailable {
  border-color: #fed7aa;
  background: #fff7ed;
}

.service-area-message img {
  width: 48px;
  height: 48px;
}

.cp-portal-site-footer .site-footer {
  font-size: 14px;
}

.cp-portal-site-footer {
  margin-top: 32px;
  border-top: 1px solid #c5c6d0;
  padding-left: 0;
}

/* Keep legacy Bootstrap form controls usable inside portal when needed */
.cp-portal-main .form-control,
.cp-portal-main .form-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c5c6d0;
  font-size: 16px;
}

.cp-portal-main .jf-survey-card .form-label {
  font-weight: 600;
  color: #0b1c30;
}

.cp-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c5c6d0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}

.cp-check-row input {
  margin-top: 3px;
}

.cp-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cp-alert-warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.cp-notif-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, 92vw);
  background: #fff;
  border: 1px solid #c5c6d0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11, 28, 48, 0.12);
  z-index: 80;
  overflow: hidden;
}

.cp-notif-menu.is-open {
  display: flex;
  flex-direction: column;
}

.cp-notif-menu [data-customer-notification-menu-body] {
  max-height: min(420px, 60vh);
  overflow-y: auto;
  overflow-x: hidden;
}

.cp-notif-empty {
  margin: 0;
  padding: 16px;
  font-size: 14px;
  color: #44464f;
}

.cp-notif-menu .cp-notif-item,
.cp-notif-menu a.cp-notif-item,
.cp-notif-menu .nav-notification-item {
  display: block !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #e5eeff !important;
  text-decoration: none !important;
  color: #0b1c30 !important;
  line-height: 1.4;
}

.cp-notif-menu .cp-notif-item:last-child,
.cp-notif-menu .nav-notification-item:last-child {
  border-bottom: none !important;
}

.cp-notif-menu .cp-notif-item:hover,
.cp-notif-menu .nav-notification-item:hover {
  background: #eff4ff !important;
}

.cp-notif-menu .cp-notif-item strong,
.cp-notif-menu .nav-notification-item strong {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0b1c30 !important;
  margin: 0 0 4px !important;
  line-height: 1.35 !important;
}

.cp-notif-menu .cp-notif-item small,
.cp-notif-menu .nav-notification-item small {
  display: block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #44464f !important;
  margin: 0 0 4px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.cp-notif-menu .cp-notif-item em,
.cp-notif-menu .nav-notification-item em {
  display: block !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  color: #757780 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.cp-notif-item.is-action,
.nav-notification-item.is-action {
  border-left: 3px solid #f97316;
  padding-left: 11px !important;
}

.cp-popup-host {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cp-popup-host.d-none {
  display: none !important;
}

.cp-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 48, 0.45);
}

.cp-popup-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cp-popup-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0b1c30;
}

.cp-popup-card p {
  margin: 0 0 16px;
  color: #44464f;
  font-size: 14px;
}

.cp-popup-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Legacy cdv2 pages inside new portal shell */
.cp-portal-main .customer-dashboard-v2 {
  display: block;
  min-height: auto;
}

.cp-portal-main .cdv2-sidebar,
.cp-portal-main .cdv2-mobile-nav {
  display: none !important;
}

.cp-portal-main .cdv2-content {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

.cp-mobile-bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  .cp-portal-main {
    padding-bottom: 5rem;
  }

  .cp-mobile-bottom-nav {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .cp-portal-main {
    padding-top: 4.5rem;
  }
}

.cp-alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.cp-empty-state {
  text-align: center;
  padding: 16px 12px;
}

.cp-empty-state__mascot {
  margin: 0 auto 12px;
  opacity: 0.92;
}

.cp-empty-state__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #0b1c30;
}

.cp-empty-state__text {
  margin: 0 auto;
  max-width: 360px;
  font-size: 14px;
  color: #44464f;
  line-height: 1.5;
}

.cp-quote-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-quote-bubble {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.cp-quote-bubble-partner {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cp-quote-bubble-admin {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.cp-quote-bubble-customer {
  background: #f8fafc;
}

.cp-onboarding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff4ff 0%, #fff7ed 100%);
  border: 1px solid #c5c6d0;
}

.cp-onboarding-banner.cp-hidden {
  display: none !important;
}

.cp-onboarding-banner__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #0b1c30;
}

.cp-onboarding-banner__text {
  margin: 0;
  font-size: 14px;
  color: #44464f;
  max-width: 52rem;
  line-height: 1.5;
}

.cp-onboarding-steps {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #0b1c30;
}

.cp-onboarding-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media print {
  body.cp-print-layout > header,
  body.cp-print-layout .cp-portal-sidebar,
  body.cp-print-layout .cp-mobile-bottom-nav,
  body.cp-print-layout .cp-portal-site-footer,
  body.cp-print-layout .cp-onboarding-banner,
  body.cp-print-layout .cp-mega-overlay,
  body.cp-print-layout .no-print,
  body.cp-print-layout .cp-popup-host {
    display: none !important;
  }

  body.cp-print-layout .cp-portal-main {
    margin-left: 0 !important;
    padding-top: 0 !important;
    max-width: none !important;
  }

  body.cp-print-layout .cp-glass-card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

.cp-support-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  margin-bottom: 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d3e4fe;
  box-shadow: 0 4px 16px rgba(11, 28, 48, 0.06);
}

.cp-support-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff4ff;
  color: #405c9d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-support-card__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #0b1c30;
}

.cp-support-card__text {
  margin: 0;
  font-size: 14px;
  color: #44464f;
  line-height: 1.5;
}

.cp-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  font-size: 11px;
  color: #44464f;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-width: 56px;
}

.cp-mobile-nav-item.is-active {
  color: #00061b;
  font-weight: 700;
}

.cp-mobile-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.cp-mobile-more-sheet.cp-hidden {
  display: none !important;
}

.cp-mobile-more-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 48, 0.45);
}

.cp-mobile-more-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 70vh;
  overflow-y: auto;
}

.cp-mobile-more-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #0b1c30;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.cp-mobile-more-link:hover,
.cp-mobile-more-link.is-active {
  background: #eff4ff;
  color: #00061b;
}

body.cp-mobile-menu-open {
  overflow: hidden;
}

.cp-portal-site-footer .site-footer {
  background-color: #f2f3f6;
  color: #252b3b;
  border-top: 1px solid #dfe5f0;
}

.cp-portal-site-footer .container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.cp-portal-site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.cp-portal-site-footer .col-md-3 {
  flex: 1 1 200px;
  min-width: 160px;
}

.cp-portal-site-footer .footer-heading {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cp-portal-site-footer .footer-link {
  display: block;
  color: #4f586f;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.cp-portal-site-footer .footer-link:hover {
  color: #1f3f87;
}

.cp-portal-site-footer .border-bottom {
  border-bottom: 1px solid #dfe5f0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.cp-portal-site-footer .g-4 {
  gap: 1rem;
}

.cp-portal-site-footer .py-5 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
