/* ================================================================
   CUSTOMER BASE — Dark Theme (Orange Brand)
   BBP Packaging B2B Platform
   ================================================================ */
:root {
  --bg-body: #0b0f14;
  --bg-nav: rgba(15,19,25,.92);
  --bg-card: #151920;
  --bg-input: rgba(255,255,255,.06);
  --brand: #f5690b;
  --brand-hover: #d97706;
  --brand-glow: rgba(245,105,11,.15);
  --accent: #f5690b;
  --text-primary: #f3f4f6;
  --text-secondary: rgba(255,255,255,.55);
  --text-muted: #9ca3af;
  --text-heading: #fff;
  --border: rgba(255,255,255,.08);
  --border-input: rgba(255,255,255,.12);
  --green: #22c55e;
  --red: #ef4444;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }

body.customer-body {
  margin: 0; padding: 0;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

/* ================================================================
   TOP NAVIGATION
   ================================================================ */
.customer-nav {
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 28px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 900;
}

/* Left brand block: logo + store breadcrumb */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo img {
  height: 46px;
  max-height: 46px;
  flex-shrink: 0;
}

/* Store breadcrumb context */
.nav-context {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}
.nav-context-sep {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.nav-context-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Back to stores link */
.nav-back {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px 6px 8px;
  border-right: 1px solid rgba(255,255,255,.07);
  margin-right: 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s;
}
.nav-back:hover { color: var(--text-primary); }
.nav-back svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; fill: none; }

/* Nav links — push to right with spacer */
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}
.nav-link.active {
  color: var(--brand);
  background: rgba(245,105,11,.10);
}

/* Back to stores pill button */
.nav-stores-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s;
  flex-shrink: 0;
}
.nav-stores-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.nav-stores-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Phone number in nav */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  padding: 6px 12px;
  border-right: 1px solid rgba(255,255,255,.07);
  margin-right: 4px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-phone strong { color: var(--brand); font-weight: 700; }
.nav-phone:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-phone svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--brand); }

/* Cart badge */
.nav-badge {
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav-badge.bump {
  animation: badgeBump .4s ease;
}
@keyframes badgeBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Notification badge pulse */
#notif-badge {
  animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 105, 11, 0.7); }
  50%  { transform: scale(1.1); box-shadow: 0 0 8px 4px rgba(245, 105, 11, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 105, 11, 0); }
}

/* Nav right — stores btn + user dropdown */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-user-dropdown {
  position: relative;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.nav-user-btn:hover,
.nav-user-btn.active {
  background: rgba(255,255,255,.06);
  border-color: var(--border);
  color: var(--text-primary);
}
.nav-user-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .5;
  transition: transform .2s;
}
.nav-user-btn.active .nav-chevron { transform: rotate(180deg); }
.nav-user-email {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #151920;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  overflow: hidden;
  z-index: 999;
  animation: menuFade .15s ease;
}
.nav-user-menu.open { display: block; }
@keyframes menuFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-menu-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.nav-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
}
.nav-menu-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .12s, color .12s;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font);
}
.nav-menu-item:hover {
  background: rgba(255,255,255,.06);
  color: var(--text-primary);
}
.nav-menu-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nav-menu-logout {
  border-top: 1px solid var(--border);
  color: var(--red);
}
.nav-menu-logout:hover {
  background: rgba(239,68,68,.08);
  color: var(--red);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* ================================================================
   SESSION BAR (hide on customer pages — handled in staff)
   ================================================================ */
.customer-body .session-bar { display: none; }

/* ================================================================
   CONTENT
   ================================================================ */
.customer-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 40px) 60px;
}

/* Flash messages */
.messages-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
}
.msg-success { background: rgba(34,197,94,.12); color: var(--green); border: 1px solid rgba(34,197,94,.15); }
.msg-error   { background: rgba(239,68,68,.12); color: var(--red); border: 1px solid rgba(239,68,68,.15); }
.msg-warning { background: rgba(245,158,11,.12); color: #f59e0b; border: 1px solid rgba(245,158,11,.15); }
.msg-info    { background: rgba(0,136,204,.12); color: #0088cc; border: 1px solid rgba(0,136,204,.15); }

/* ================================================================
   COMMON COMPONENTS
   ================================================================ */

/* Badges (customer-side) */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-pending   { background: rgba(245,158,11,.15); color: #f59e0b; }
.badge-confirmed { background: rgba(0,136,204,.15); color: #0088cc; }
.badge-processing{ background: rgba(99,102,241,.15); color: #6366f1; }
.badge-shipped   { background: rgba(107,114,128,.15); color: #9ca3af; }
.badge-delivered { background: rgba(34,197,94,.15); color: var(--green); }
.badge-cancelled { background: rgba(239,68,68,.15); color: var(--red); }
.badge-sent      { background: rgba(34,197,94,.15); color: var(--green); }
.badge-active    { background: rgba(34,197,94,.15); color: var(--green); }
.badge-draft     { background: rgba(148,163,184,.15); color: var(--text-muted); }
.badge-accepted  { background: rgba(34,197,94,.15); color: var(--green); }
.badge-rejected  { background: rgba(239,68,68,.15); color: var(--red); }
.badge-expired   { background: rgba(148,163,184,.15); color: var(--text-muted); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #1a1202;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  transition: transform .12s, box-shadow .12s, background .12s;
  box-shadow: 0 4px 12px rgba(245,105,11,.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,105,11,.35);
  color: #1a1202;
}
.btn-primary:active {
  transform: translateY(0);
  background: var(--brand-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  color: var(--text-primary);
}

/* Small buttons */
.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  transition: opacity .15s;
}
.btn-sm:hover { opacity: .85; }
.btn-view   { background: rgba(245,105,11,.15); color: var(--brand); }
.btn-accept { background: rgba(34,197,94,.15); color: var(--green); }
.btn-reject { background: rgba(239,68,68,.15); color: var(--red); }

/* Tables */
.customer-content table {
  width: 100%;
  border-collapse: collapse;
}
.customer-content table thead th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.customer-content table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
  color: var(--text-primary);
}
.customer-content table tbody tr:hover td {
  background: rgba(255,255,255,.02);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  justify-content: center;
}
.pagination a,
.pagination .current,
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.pagination a {
  color: var(--text-secondary);
  background: rgba(255,255,255,.04);
}
.pagination a:hover {
  background: rgba(255,255,255,.08);
  color: var(--text-primary);
}
.pagination .current,
.pagination .page-link.active {
  background: var(--brand);
  color: #fff;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ================================================================
   FOOTER
   ================================================================ */
/* Hide base footer when page has its own site-footer */
body.customer-body:has(.site-footer) > .customer-footer {
  display: none;
}
.customer-footer {
  background: linear-gradient(160deg, #0f0c09 0%, #0d1018 50%, #0b0f14 100%);
  border-top: 1px solid rgba(245,105,11,.1);
  margin-top: auto;
}
.customer-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 40px) 16px;
}
.customer-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}
.customer-footer .footer-col {}
.customer-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.customer-footer .footer-logo {
  height: 48px;
  width: auto;
}
.customer-footer .footer-address {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.customer-footer .footer-address-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.customer-footer .footer-link-sep {
  color: var(--text-muted);
  font-size: 12px;
}
.customer-footer .footer-address-links a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.customer-footer .footer-address-links a:hover { color: var(--brand-hover); }
.customer-footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.customer-footer .footer-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 2px;
}
.customer-footer .footer-contact-item a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.customer-footer .footer-contact-item a:hover { color: var(--brand); }
.customer-footer .footer-detail {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.customer-footer .footer-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.customer-footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.customer-footer .footer-nav a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.customer-footer .footer-nav a:hover { color: var(--text-primary); }
.customer-footer .footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ================================================================
   CONTACT WIDGET (floating)
   ================================================================ */
.contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  transition: right .25s ease, left .25s ease;
}
.contact-widget.drawer-open {
  right: auto;
  left: 24px;
  align-items: flex-start;
}
.contact-widget-panel {
  background: #151920;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  display: none;
  animation: cwSlideUp .2s ease;
}
.contact-widget-panel.open { display: block; }
@keyframes cwSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cw-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 4px;
}
.cw-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.cw-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background .15s;
  margin-bottom: 4px;
}
.cw-item:hover {
  background: rgba(255,255,255,.06);
  color: var(--text-primary);
}
.cw-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cw-icon svg {
  width: 18px;
  height: 18px;
}
.cw-icon-phone { background: rgba(34,197,94,.15); color: var(--green); }
.cw-icon-email { background: rgba(245,105,11,.15); color: var(--brand); }
.cw-icon-form  { background: rgba(99,102,241,.15); color: #818cf8; }
.cw-label {
  font-size: 13px;
  font-weight: 600;
}
.cw-label-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.contact-widget-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245,105,11,.35);
  transition: transform .15s, box-shadow .15s;
}
.contact-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,105,11,.45);
}
.contact-widget-btn svg {
  width: 24px;
  height: 24px;
  transition: transform .2s;
}
.contact-widget-btn.active svg {
  transform: rotate(45deg);
}

/* ================================================================
   FORMS (customer)
   ================================================================ */
.customer-content input[type="text"],
.customer-content input[type="email"],
.customer-content input[type="password"],
.customer-content input[type="tel"],
.customer-content input[type="url"],
.customer-content input[type="number"],
.customer-content select,
.customer-content textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.customer-content input:focus,
.customer-content select:focus,
.customer-content textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245,105,11,.15);
}
.customer-content textarea {
  min-height: 100px;
  resize: vertical;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(13,17,23,.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px 12px;
    z-index: 899;
  }
  /* Bigger tap area for each menu row */
  .nav-links.open .nav-link {
    min-height: 44px;
    padding: 10px 14px;
  }
  /* Hamburger sits to the right, next to the user menu; 44px touch target */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-user-btn { min-height: 44px; }
  .nav-user-email { display: none; }
  .nav-chevron { display: none; }
  .nav-context { display: none; }
  .nav-stores-btn { display: none; }
  .customer-content { padding: 16px; }
}

@media (max-width: 480px) {
  .customer-nav { padding: 0 12px; gap: 8px; }
  .nav-logo img { height: 42px; max-height: 42px; }
  .footer-links { flex-direction: column; gap: 8px; }
  .nav-phone { display: none; }
  .customer-content { padding: 12px; }
  .customer-footer .footer-inner { padding: 20px 12px 12px; }
  .customer-footer .footer-grid { gap: 16px; }
  .contact-widget { bottom: 16px; right: 16px; }
  .contact-widget-btn { width: 46px; height: 46px; }
  .contact-widget-btn svg { width: 20px; height: 20px; }
  .contact-widget-panel { width: min(260px, calc(100vw - 32px)); }
}

/* Never scroll the page sideways on phones.
   overflow-x: clip (not hidden) does NOT create a scroll container,
   so the sticky top nav keeps working. Wide content still scrolls
   inside its own overflow-x container. */
@media (max-width: 640px) {
  body.customer-body { overflow-x: clip; }
}

/* iOS zoom prevention — inputs must be 16px+ */
.customer-content input[type="text"],
.customer-content input[type="email"],
.customer-content input[type="password"],
.customer-content input[type="tel"],
.customer-content input[type="number"],
.customer-content select,
.customer-content textarea {
  font-size: max(16px, 1em);
}

/* Touch targets — minimum 44px */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-primary { min-height: 44px; }
  .btn-secondary { min-height: 44px; }
  .pagination a, .pagination .current, .pagination .page-link { min-width: 40px; min-height: 40px; }
}

/* ================================================================
   IMAGE LIGHTBOX / ZOOM
   ================================================================ */
.zoomable-img {
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.zoomable-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: zoom-out;
  animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color .15s;
}
.lightbox-close:hover { color: #fff; }

/* ================================================================
   PAGE LOADING OVERLAY
   ================================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-body, #0b0f14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.page-loader.active {
  opacity: 1;
  pointer-events: all;
}
.page-loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: var(--brand, #f5690b);
  border-radius: 50%;
  animation: loaderSpin .7s linear infinite;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
.page-loader-text {
  color: rgba(255,255,255,.4);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
}

/* Keyboard focus adds no layout space and preserves field/state borders. */
.customer-body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #ffaf75;
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .customer-body :is(a, button, input, select, textarea, summary):focus-visible {
    outline-color: Highlight;
  }
}

.customer-preview-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:14px 24px;background:#30251e;color:#ffe0c7;border-bottom:1px solid #a76332;font-size:14px;line-height:1.6}.customer-preview-banner strong{overflow-wrap:anywhere}.customer-preview-banner small{display:block;color:#dfc4af;font-size:12px}.customer-preview-banner a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid #bd8050;border-radius:8px;color:#ffe0c7;text-decoration:none;box-sizing:border-box}.customer-preview-banner a:hover{background:#ffffff0d}.customer-preview-banner a:focus-visible{outline:2px solid #ffaf75;outline-offset:3px}

.customer-content > .page-back-navigation{margin:0 0 24px}
.customer-content > .page-back-navigation a{display:inline-flex;align-items:center;gap:10px;min-height:48px;max-width:100%;padding:10px 18px;border:1px solid #637189;border-radius:8px;background:var(--bg-card);color:#f3f6fb;font-size:16px;font-weight:600}
.customer-content > .page-back-navigation a:hover{border-color:#ff9d57;color:#ffbd8c}
.customer-content > .page-back-navigation a:focus-visible{outline:3px solid #ff9d57;outline-offset:3px}
