@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/owner/manrope-latin.woff2) format('woff2');
}

/*
 * Bark & Style customer portal.
 * Uses the Owner portal's current Poppins/Inter type system, coral/blue palette,
 * compact controls, and flat bordered surfaces. Customer pages use connected
 * task surfaces and record lists instead of repeated floating card grids.
 */

#screen-customer,
.customer-modal {
  --brand: #e3593d;
  --brand-dk: #cc482f;
  --brand-lt: #fbeeea;
  --blue: #277cb7;
  --blue-dk: #1f6799;
  --blue-lt: #edf5fa;
  --amber: #f2a65a;
  --amber-dk: #cf7a2c;
  --amber-lt: #fff6eb;
  --success: #019968;
  --success-lt: #eaf8f2;
  --danger: #e3593d;
  --danger-lt: #fbeeea;
  --bg: #fafaf9;
  --surface: #fff;
  --surface-2: #f6f7f8;
  --txt-h: #111827;
  --txt-b: rgba(17, 24, 39, .76);
  --txt-m: rgba(17, 24, 39, .56);
  --txt-s: rgba(17, 24, 39, .42);
  --border: rgba(17, 24, 39, .13);
  --border-soft: rgba(17, 24, 39, .075);
  --r: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-float: 0 12px 32px rgba(31, 42, 61, .09);
  color: var(--txt-b);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

#screen-customer {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

#screen-customer [hidden] {
  display: none !important;
}

#screen-customer h1,
#screen-customer h2,
#screen-customer h3,
#screen-customer h4,
#screen-customer h5,
#screen-customer h6,
#screen-customer button,
#screen-customer .btn,
#screen-customer .book-section-title,
#screen-customer .book-mini-label,
.customer-modal h1,
.customer-modal h2,
.customer-modal h3,
.customer-modal h4,
.customer-modal label,
.customer-modal button,
.customer-modal .btn {
  font-family: "Poppins", "Inter", sans-serif;
}

#screen-customer :is(input, select, textarea),
.customer-modal :is(input, select, textarea) {
  font-family: "Inter", sans-serif;
}

#screen-customer ::selection,
.customer-modal ::selection {
  color: var(--txt-h);
  background: #f6cfc7;
}

#screen-customer :is(input, textarea),
.customer-modal :is(input, textarea) {
  caret-color: var(--blue);
}

#screen-customer .content-area {
  min-height: 0;
  overflow-y: auto;
  scroll-padding-top: 20px;
  scrollbar-color: #cbd2dc transparent;
  scrollbar-width: thin;
}

#screen-customer .content-area::-webkit-scrollbar {
  width: 9px;
}

#screen-customer .content-area::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #cbd2dc;
  background-clip: padding-box;
}

/* Product shell */
#screen-customer .sidebar {
  width: 260px;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border-soft);
  background: #fff;
  box-shadow: none;
  z-index: 102;
}

#screen-customer .sb-brand {
  min-height: 88px;
  padding: 16px 24px;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
}

#screen-customer .customer-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 11px;
  color: #fff;
  background: var(--brand);
  font-size: 16px;
}

#screen-customer .sb-brand-txt {
  display: block;
  min-width: 0;
}

#screen-customer .sb-brand-txt .bname {
  overflow: hidden;
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-customer .sb-brand-txt .bsub {
  margin-top: 3px;
  overflow: hidden;
  color: var(--txt-m);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-customer .sb-nav {
  padding: 12px 16px 20px;
}

#screen-customer .sb-label {
  padding: 15px 12px 7px;
  color: #9ba5b5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
}

#screen-customer .nav-item {
  min-height: 40px;
  margin: 0 0 3px;
  padding: 9px 12px;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #687386;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

#screen-customer .nav-item .ni {
  width: 17px;
  color: #7d8798;
  font-size: 13px;
}

#screen-customer .nav-item:hover {
  color: var(--brand-dk);
  background: #fdf4f2;
  box-shadow: none;
  transform: translateX(1px);
}

#screen-customer .nav-item:hover .ni,
#screen-customer .nav-item.active .ni {
  color: var(--brand);
}

#screen-customer .nav-item.active,
#screen-customer .nav-item.active:hover {
  color: var(--brand-dk);
  background: var(--brand-lt);
  box-shadow: inset 1px 0 0 var(--brand);
  transform: none;
}

#screen-customer .main-wrap {
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

#screen-customer .topbar {
  min-height: 106px;
  padding: 14px 32px;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

#screen-customer .topbar-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#screen-customer .customer-topbar-path {
  margin-bottom: 4px;
  color: #9aa4b4;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.3;
}

#screen-customer .topbar-left h2 {
  overflow: hidden;
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-customer .topbar-left p {
  margin-top: 4px;
  overflow: hidden;
  color: var(--txt-m);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-customer .topbar-right {
  gap: 10px;
  margin-left: auto;
}

#screen-customer .topbar-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--txt-b);
  background: #f7f8fa;
  box-shadow: none;
}

#screen-customer .topbar-btn:hover {
  color: var(--brand);
  background: var(--brand-lt);
}

#screen-customer .topbar-dot {
  background: var(--brand);
  border-color: #fff;
}

#screen-customer .customer-header-account {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 2px;
  padding: 2px 4px 2px 13px;
  border: 0;
  border-left: 1px solid var(--border-soft);
  border-radius: 9px;
  color: var(--txt-b);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}

#screen-customer .customer-header-account:hover,
#screen-customer .customer-header-account.active {
  color: var(--brand-dk);
  background: var(--brand-lt);
}

#screen-customer .customer-header-account .sb-ava {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: none;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

#screen-customer .customer-header-account .sb-user-info {
  min-width: 0;
  display: block;
}

#screen-customer .customer-header-account .uname,
#screen-customer .customer-header-account .urole {
  display: block;
}

#screen-customer .customer-header-account .uname {
  max-width: 150px;
  overflow: hidden;
  color: var(--txt-h);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-customer .customer-header-account .urole {
  margin-top: 2px;
  color: var(--txt-m);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#screen-customer .customer-account { position: relative; }
#screen-customer .customer-header-account[aria-expanded="true"] { background: var(--brand-lt); color: var(--brand-dk); }
#screen-customer .customer-account-chevron { margin: 0 3px; font-size: 10px; color: var(--txt-m); }
#screen-customer .customer-account-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  width: 220px; padding: 6px; border: 1px solid var(--border-soft);
  border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-float);
}
#screen-customer .customer-account-menu :is(button, a) {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--txt-b); text-decoration: none;
  font: 500 12px "Inter", sans-serif; text-align: left; cursor: pointer;
}
#screen-customer .customer-account-menu :is(button, a):is(:hover, :focus-visible) { background: var(--brand-lt); color: var(--brand-dk); }
#screen-customer .customer-account-menu :is(button, a) > i:first-child { width: 15px; text-align: center; }
#screen-customer .customer-menu-external { margin-left: auto; font-size: 10px; opacity: .65; }
#screen-customer .customer-account-menu-divider { height: 1px; margin: 5px 7px; background: var(--border-soft); }

#screen-customer .page-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 32px 52px;
}

#screen-customer .customer-active-checkout-banner {
  width: calc(100% - 64px);
  max-width: 1376px;
  margin: 22px auto 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #f0b8aa;
  border-radius: 14px;
  background: #fff8f5;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

#screen-customer .customer-active-checkout-banner[hidden] {
  display: none;
}

#screen-customer .customer-active-checkout-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fde6df;
  color: var(--brand-dk);
  font-size: 15px;
}

#screen-customer .customer-active-checkout-copy {
  min-width: 0;
}

#screen-customer .customer-active-checkout-title {
  color: var(--txt-h);
  font: 700 13px/1.35 "Inter", sans-serif;
}

#screen-customer .customer-active-checkout-text {
  margin-top: 3px;
  color: var(--txt-b);
  font: 500 12px/1.5 "Inter", sans-serif;
}

#screen-customer .customer-active-checkout-meta {
  margin-top: 3px;
  color: var(--txt-m);
  font: 500 11px/1.45 "Inter", sans-serif;
}

#screen-customer .customer-active-checkout-meta:empty {
  display: none;
}

#screen-customer .customer-active-checkout-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#screen-customer .customer-active-checkout-actions .btn {
  min-height: 38px;
  white-space: nowrap;
}

#screen-customer .customer-active-checkout-banner:not([hidden]) + .page-wrap {
  padding-top: 18px;
}

#screen-customer .pg-hdr {
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

#screen-customer .pg-hdr > div:first-child {
  display: none;
}

#screen-customer :is(#cust-page-book, #cust-page-bookings, #cust-page-profile) > .pg-hdr {
  display: none;
}

#screen-customer .pg-hdr h1,
#screen-customer .cust-home-greeting {
  color: var(--txt-h);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-wrap: balance;
}

#screen-customer .pg-hdr p {
  max-width: 70ch;
  margin-top: 5px;
  color: var(--txt-m);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* Controls */
#screen-customer .btn,
.customer-modal .btn,
#screen-customer .book-btn-primary,
#screen-customer .book-btn-ghost {
  min-height: 40px;
  padding: 9px 15px;
  gap: 7px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#screen-customer .btn-sm {
  min-height: 36px;
  padding: 7px 12px;
}

#screen-customer .btn-xs,
.customer-modal .btn-xs {
  min-height: 30px;
  padding: 5px 10px;
}

#screen-customer .btn-brand,
.customer-modal .btn-brand,
#screen-customer .book-btn-primary {
  color: #fff;
  border: 1px solid var(--brand);
  background: var(--brand);
}

#screen-customer .btn-brand:hover,
.customer-modal .btn-brand:hover,
#screen-customer .book-btn-primary:hover {
  color: #fff;
  border-color: var(--brand-dk);
  background: var(--brand-dk);
  box-shadow: none;
}

#screen-customer .btn-outline,
.customer-modal .btn-outline,
#screen-customer .book-btn-ghost {
  color: var(--txt-b);
  border: 1px solid var(--border);
  background: #fff;
}

#screen-customer .btn-outline:hover,
.customer-modal .btn-outline:hover,
#screen-customer .book-btn-ghost:hover {
  color: var(--brand-dk);
  border-color: #f1b7ad;
  background: var(--brand-lt);
}

#screen-customer .btn-danger,
.customer-modal .btn-danger,
.customer-modal #customer-confirm-accept {
  color: #fff;
  border: 1px solid var(--danger);
  background: var(--danger);
}

#screen-customer .btn-danger:hover,
.customer-modal .btn-danger:hover,
.customer-modal #customer-confirm-accept:hover {
  border-color: var(--brand-dk);
  background: var(--brand-dk);
}

#screen-customer button:not(.password-toggle):active,
.customer-modal button:not(.password-toggle):active {
  transform: none;
}

#screen-customer button:disabled,
.customer-modal button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

#screen-customer :is(button, [role="button"], input, select, textarea, a, summary, [tabindex="0"]):focus-visible,
.customer-modal :is(button, [role="button"], input, select, textarea, a, [tabindex="0"]):focus-visible {
  outline: 3px solid rgba(39, 124, 183, .24);
  outline-offset: 2px;
}

#screen-customer :is(h1, .book-section-title)[tabindex="-1"]:focus,
.customer-modal h3[tabindex="-1"]:focus {
  outline: none;
}

#screen-customer .customer-skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--r);
  color: #fff;
  background: var(--txt-h);
}

#screen-customer .customer-skip-link:focus {
  top: 12px;
}

/* Shared surfaces */
#screen-customer .card {
  overflow: clip;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: none;
}

#screen-customer .card-hd {
  padding: 20px 22px 12px;
  border: 0;
  background: transparent;
}

#screen-customer .card-hd h3 {
  color: var(--txt-h);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}

#screen-customer .card-bd {
  padding: 18px 22px 22px;
}

#screen-customer .bdg {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 10px;
  font-weight: 500;
}

#screen-customer .bdg-confirmed,
#screen-customer .bdg-completed,
#screen-customer .bdg-green {
  color: var(--success);
  background: var(--success-lt);
}

#screen-customer .bdg-progress,
#screen-customer .bdg-amber,
#screen-customer .bdg-pending {
  color: #e28b2f;
  background: var(--amber-lt);
}

#screen-customer .bdg-cancelled,
#screen-customer .bdg-danger,
#screen-customer .bdg-red {
  color: var(--danger);
  background: var(--danger-lt);
}

#screen-customer .bdg-blue,
#screen-customer .bdg-grooming {
  color: var(--blue);
  background: var(--blue-lt);
}

#screen-customer .bdg-orange,
#screen-customer .bdg-boarding {
  color: var(--brand-dk);
  background: var(--brand-lt);
}

#screen-customer .bdg-customer-attention,
#screen-customer .cust-booking-attention-message {
  color: var(--amber-dk);
  background: var(--amber-lt);
}

#screen-customer .bdg-customer-attention::before {
  background: currentColor;
}

/* Home greeting and introduction. Summary cards live in customer-landing-design.css. */
#screen-customer .cust-home-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#screen-customer .cust-home-intro {
  max-width: 70ch;
}

#screen-customer .cust-home-intro p {
  margin-top: 6px;
  color: var(--txt-m);
  font-size: 13px;
  line-height: 1.55;
}

#screen-customer .cust-status-chip {
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-lt);
  font-size: 10px;
  font-weight: 500;
}

/* Booking: one task surface with quiet, owner-style selections. */
#screen-customer #cust-page-book {
  --book-orange: var(--brand);
  --book-orange-dark: var(--brand-dk);
  --book-orange-soft: var(--brand-lt);
  --book-blue: var(--blue);
  --book-blue-soft: var(--blue-lt);
  --book-border: var(--border);
  --book-muted: var(--txt-m);
}

#screen-customer .book-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#screen-customer .book-stepper {
  gap: 0;
  margin: 0 0 22px;
  padding: 0 8px 22px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

#screen-customer .book-step-wrap {
  min-width: 0;
  flex: 1;
}

#screen-customer .book-step-line {
  min-width: 8px;
  margin-top: -22px;
  background: #dfe3e8;
}

#screen-customer .book-step-ind {
  width: 30px;
  height: 30px;
  border: 1px solid #d7dde5;
  background: #fff;
  color: var(--txt-m);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

#screen-customer .book-step-wrap.active .book-step-ind {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

#screen-customer .book-step-wrap.done .book-step-ind {
  border-color: var(--success);
  color: #fff;
  background: var(--success);
}

#screen-customer .book-step-wrap.active .book-step-label {
  color: var(--brand-dk);
}

#screen-customer .book-step-wrap.done .book-step-label {
  color: var(--success);
}

#screen-customer .book-step-label {
  margin-top: 8px;
  color: var(--txt-m);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#screen-customer .book-pane.active {
  padding: 26px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  animation: none;
}

#screen-customer .book-section-title {
  margin-bottom: 14px;
  color: var(--txt-h);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.4;
  text-transform: none;
}

#screen-customer .book-pane > .book-section-title:first-child {
  margin-bottom: 20px;
  font-size: 18px;
}

#screen-customer .book-section-sub {
  max-width: 70ch;
  margin-bottom: 22px;
  color: var(--txt-m);
  font-size: 12px;
}

#screen-customer .book-service-grid {
  gap: 12px;
}

#screen-customer :is(.book-service-card, .book-payment-card, .book-choice-card) {
  position: relative;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--txt-b);
  background: #fff;
  box-shadow: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#screen-customer :is(.book-service-card, .book-payment-card, .book-choice-card):hover {
  border-color: var(--border);
  background: #fcfdfe;
  box-shadow: none;
  transform: none;
}

#screen-customer :is(.book-service-card, .book-payment-card, .book-choice-card).selected {
  border-color: #efb5aa;
  color: var(--brand-dk);
  background: var(--brand-lt);
  box-shadow: none;
}

#screen-customer :is(.book-service-card, .book-payment-card, .book-choice-card).selected :is(.book-service-name, .book-choice-title, .book-payment-name, .book-service-price) {
  color: var(--brand-dk);
}

#screen-customer :is(.book-service-card, .book-payment-card, .book-choice-card).selected :is(.book-choice-desc, .book-payment-desc, .book-pill-note) {
  color: #8f5145;
}

#screen-customer :is(.book-service-card, .book-payment-card).selected :is(.book-service-icon, .book-payment-icon) {
  color: #fff !important;
  background: var(--brand) !important;
}

#screen-customer .book-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
}

#screen-customer :is(#book-type-grooming, #book-type-boarding) {
  grid-template-columns: 40px minmax(0, 1fr);
}

#screen-customer .book-service-icon {
  width: 36px;
  height: 36px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 14px;
}

#screen-customer :is(.book-service-name, .book-choice-title, .book-payment-name) {
  padding: 0;
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

#screen-customer .book-service-price {
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: var(--blue);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#screen-customer .book-service-notice {
  grid-column: 1 / -1;
  margin-top: -2px;
  color: var(--txt-m);
  font-size: 10.5px;
  line-height: 1.4;
}
#screen-customer .book-service-notice.warning { color: #9a5b14; }

#screen-customer .book-pill-note {
  margin-top: 5px;
  padding: 0;
  color: var(--txt-m);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
}

#screen-customer .customer-service-extras {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #f8f9fb;
}

#screen-customer .customer-service-extras > summary {
  padding: 14px 0;
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#screen-customer .customer-service-extras .book-service-grid {
  margin: 2px 0 16px;
}

#screen-customer .book-mini-label,
.customer-modal .form-g > label {
  display: block;
  margin-bottom: 7px;
  color: var(--txt-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
  text-transform: none;
}

#screen-customer .book-mini-label > span {
  margin-left: 5px;
  color: var(--txt-s);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}


#screen-customer :is(.book-field, .book-select, .book-textarea),
.customer-modal .form-g :is(input, select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--txt-h);
  background: var(--surface-2);
  box-shadow: none;
  font-size: 12px;
  line-height: 1.5;
}

#screen-customer :is(.book-field, .book-select, .book-textarea):focus,
.customer-modal .form-g :is(input, select, textarea):focus {
  outline: 0;
  border-color: rgba(39, 124, 183, .4);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 124, 183, .1);
}

#screen-customer :is(input, textarea)::placeholder,
.customer-modal :is(input, textarea)::placeholder {
  color: #8d97a6;
  opacity: 1;
}

#screen-customer .book-select {
  padding-right: 36px;
}

#screen-customer .book-textarea,
.customer-modal .form-g textarea {
  min-height: 92px;
  resize: vertical;
}

#screen-customer .pet-age-estimate,
.customer-modal .pet-age-estimate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

#screen-customer .pet-age-choice,
.customer-modal .pet-age-choice { min-width: 0; }
#screen-customer .pet-age-choice label,
.customer-modal .pet-age-choice label { display: block; margin-bottom: 5px; color: var(--txt-b); font-size: 11px; font-weight: 600; }
#screen-customer .pet-age-choice select,
.customer-modal .pet-age-choice select { width: 100%; min-width: 0; }

#screen-customer .pet-field-error,
.is-management-portal .pet-field-error,
.customer-modal .pet-field-error,
#modal-adjust-weight .pet-field-error,
#modal-staff-safety .pet-field-error {
  margin-top: 5px;
  color: #b42318;
  font-size: 10px;
  line-height: 1.4;
}

#screen-customer [aria-invalid="true"],
.is-management-portal #website-cms-form [aria-invalid="true"],
.customer-modal [aria-invalid="true"],
#modal-adjust-weight [aria-invalid="true"],
#modal-staff-safety [aria-invalid="true"] {
  border-color: #d92d20 !important;
}

#screen-customer .book-grid-2,
#screen-customer .book-grid-3 {
  gap: 18px;
}

#screen-customer .book-status-strip {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#screen-customer .book-status-strip strong {
  color: var(--txt-m);
  font-size: 12px;
  font-weight: 400;
}

#screen-customer .book-status-strip span {
  margin-top: 4px;
  font-size: 11px;
}

#screen-customer :is(#book-grooming-schedule, #book-boarding-schedule) > .card {
  border: 0;
  border-radius: 0;
}

#screen-customer :is(#book-grooming-schedule, #book-boarding-schedule) .card-bd {
  padding: 0;
}

#screen-customer .book-stay-date-grid {
  gap: 20px;
  align-items: start;
}

#screen-customer .book-stay-date-column {
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
  background: #f8f9fb;
}

#screen-customer .book-time-options {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

#screen-customer .book-time-options:has(.book-time-chip-row:empty) {
  display: none;
}

#screen-customer .book-stay-date-column .book-time-chip-row {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

#screen-customer .book-stay-date-column .book-time-chip {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}

#screen-customer .book-slot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

#screen-customer .book-slot-card,
#screen-customer .book-time-chip {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--txt-b);
  background: var(--surface-2);
  box-shadow: none;
}

#screen-customer .book-slot-card {
  padding: 12px 8px;
}

#screen-customer .book-slot-card strong {
  color: var(--txt-h);
  font-size: 12px;
}

#screen-customer .book-slot-card span {
  color: var(--txt-m);
  font-size: 10px;
}

#screen-customer :is(.book-slot-card, .book-time-chip):hover {
  color: var(--blue);
  border-color: #bfd9e9;
  background: var(--blue-lt);
  box-shadow: none;
  transform: none;
}

#screen-customer :is(.book-slot-card, .book-time-chip).selected {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: none;
}

#screen-customer .book-slot-card.selected :is(strong, span) {
  color: #fff;
}

#screen-customer .book-slot-card.taken {
  opacity: 1;
  color: var(--txt-s);
  background: #eef0f2;
}

#screen-customer .book-slot-card.taken :is(strong, span) {
  color: var(--txt-s);
  text-decoration: none;
}

#screen-customer .book-time-empty,
#screen-customer :is(.book-help, .book-alert, .book-placeholder) {
  padding: 11px 13px;
  border: 0;
  border-radius: var(--r);
  color: var(--txt-b);
  background: var(--surface-2);
  font-size: 11px;
  line-height: 1.5;
}

#screen-customer .book-help-warning {
  color: #9a5d17;
  background: var(--amber-lt);
}

#screen-customer .book-summary-grid {
  gap: 18px;
}

#screen-customer .book-price-box,
#screen-customer .book-terms-box {
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
  box-shadow: none;
}

#screen-customer .book-price-box {
  font-variant-numeric: tabular-nums;
}

#screen-customer .book-price-row {
  padding: 9px 0;
  gap: 16px;
  border-bottom-color: var(--border-soft);
}

#screen-customer .book-price-row strong {
  overflow-wrap: anywhere;
}

#screen-customer .book-terms-box {
  width: 100%;
  max-width: none;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #cbd2dc transparent;
  scrollbar-gutter: stable;
  color: var(--txt-b);
  font-size: 12px;
  line-height: 1.75;
}

#screen-customer .book-terms-box::-webkit-scrollbar {
  width: 9px;
}

#screen-customer .book-terms-box::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #cbd2dc;
  background-clip: padding-box;
}

#screen-customer .book-terms-box p {
  margin: 0;
}

#screen-customer .book-terms-box p + p {
  margin-top: 12px;
}

#screen-customer .book-check-row {
  margin-top: 18px;
  padding: 12px 0;
}

#screen-customer .book-check-row input {
  flex-shrink: 0;
  accent-color: var(--brand);
}

#customer-reschedule-policy p { margin: 0 0 10px; line-height: 1.5; }
#customer-reschedule-policy .book-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  line-height: 1.5;
  cursor: pointer;
}
#customer-reschedule-confirm {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

#screen-customer .book-payment-grid {
  grid-template-columns: 1fr;
}

#screen-customer .book-payment-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 3px 14px;
}

#screen-customer .book-payment-icon {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 9px;
}

#screen-customer .book-payment-desc {
  margin: 0;
  color: var(--txt-m);
  font-size: 11px;
}

#screen-customer .book-nav {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  flex-direction: row;
}

/* Generic booking summaries remain accessible; field errors stay beside their controls. */
.booking-validation-description,
#screen-customer #cust-page-book .book-inline-error {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
[data-required-marker], #screen-customer .book-mini-label > [data-required-marker] { color: var(--danger, #DC2626); font-size: 1.2em; font-weight: 700; line-height: 1; }
[data-required-marker="inline"] { font: inherit; }
/* Same-pet conflicts must remain visible beside the selected schedule window. */
#screen-customer #cust-page-book #book-schedule-pet-error {
  position: static; width: auto; height: auto; margin: 12px 0; padding: 0;
  overflow: visible; clip-path: none; white-space: normal; overflow-wrap: anywhere;
  color: var(--danger); font-size: 12px; line-height: 20px;
}
#cust-page-book :is(.book-time-chip-row,.book-slot-grid)[aria-invalid="true"],
#modal-customer-confirm #customer-cancellation-ack[aria-invalid="true"] { outline: 2px solid var(--danger, #d94a32); outline-offset: 2px; }
#screen-customer .book-inline-error[hidden] {
  display: none;
}

#screen-customer [aria-invalid="true"] {
  border-color: var(--danger);
}

#screen-customer .customer-field-hint {
  margin-top: 6px;
  color: var(--txt-m);
  font-size: 11px;
}

#screen-customer .book-stay-limit-hint {
  display: block;
  margin-top: 6px;
  color: var(--txt-m);
  font-size: 11px;
}

/* Boarding choices use operational tiles, not decorative cards. */
#screen-customer #cust-page-book .book-cage-overview {
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#screen-customer #cust-page-book .book-cage-overview > div {
  min-width: 0;
}

#screen-customer #cust-page-book .book-cage-overview strong {
  display: block;
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

#screen-customer #cust-page-book .book-cage-overview > div > span {
  display: block;
  margin-top: 3px;
  color: var(--txt-m);
  font-size: 11px;
}

#screen-customer #cust-page-book .book-cage-overview .mini-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-lt);
  font-size: 10px;
  font-weight: 500;
}

#screen-customer #cust-page-book .book-cage-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
}

#screen-customer #cust-page-book .book-cage-metric-card {
  min-width: 0;
  padding: 13px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#screen-customer #cust-page-book .book-cage-metric-card + .book-cage-metric-card {
  border-left: 1px solid var(--border-soft);
}

#screen-customer #cust-page-book .book-cage-metric-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--txt-m);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
}

#screen-customer #cust-page-book .book-cage-metric-card strong {
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

#screen-customer #cust-page-book .book-cage-metric-card.available strong {
  color: var(--success);
}

#screen-customer #cust-page-book .book-cage-metric-card.booked strong {
  color: var(--danger);
}

#screen-customer #cust-page-book .book-cage-metric-card.pending strong {
  color: var(--amber-dk);
}

#screen-customer #cust-page-book .book-cage-legend {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--txt-m);
  font-size: 10px;
}

#screen-customer #cust-page-book .book-cage-legend i {
  border: 0;
}

#screen-customer #cust-page-book .book-cage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#screen-customer #cust-page-book .book-cage-card {
  min-height: 104px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--txt-h);
  background: #fff;
  box-shadow: none;
  text-align: left;
}

#screen-customer #cust-page-book .book-cage-card::before {
  display: none;
}

#screen-customer #cust-page-book .book-cage-card:hover {
  border-color: var(--border);
  background: #fcfdfe;
  box-shadow: none;
  transform: none;
}

#screen-customer #cust-page-book .book-cage-card strong {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

#screen-customer #cust-page-book .book-cage-card .book-cage-description {
  margin: 8px 0;
  color: currentColor;
  font-size: 10px;
  line-height: 1.45;
}

#screen-customer #cust-page-book .book-cage-card em {
  margin-top: 9px;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-lt);
  font-size: 9px;
  font-weight: 600;
}

#screen-customer #cust-page-book .book-cage-card:is(.booked, .blocked) {
  border-color: #f1b7ad;
  color: #a23e2d;
  background: var(--danger-lt);
  opacity: 1;
}

#screen-customer #cust-page-book .book-cage-card.pending {
  border-color: #f4d2a7;
  color: #9a5d17;
  background: var(--amber-lt);
  opacity: 1;
}

#screen-customer #cust-page-book .book-cage-card.maintenance {
  color: var(--txt-s);
  background: #f0f2f5;
  opacity: 1;
}

#screen-customer #cust-page-book .book-cage-card.selected,
#screen-customer #cust-page-book .book-cage-card.selected:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

#screen-customer #cust-page-book .book-cage-card.selected :is(strong, .book-cage-description) {
  color: #fff;
}

#screen-customer #cust-page-book .book-cage-card.selected em {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

#screen-customer #cust-page-book .book-cage-selection-strip {
  margin-top: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  color: var(--txt-m);
  background: #fbfcfd;
}

#screen-customer #cust-page-book .book-cage-selection-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--txt-m);
  font-size: 11px;
}

#screen-customer #cust-page-book .book-cage-selection-strip strong {
  color: var(--txt-h);
}

/* Booking records: one connected list instead of stacked cards. */
#screen-customer #cust-page-bookings .cust-bookings-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#screen-customer #cust-page-bookings .cust-bookings-tab {
  min-height: 34px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--txt-b);
  background: #eff1f4;
  box-shadow: none;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

#screen-customer #cust-page-bookings .cust-bookings-tab:hover {
  color: var(--brand-dk);
  background: var(--brand-lt);
}

#screen-customer #cust-page-bookings .cust-bookings-tab.active,
#screen-customer #cust-page-bookings .cust-bookings-tab.active:hover {
  color: #fff;
  background: var(--brand);
}

#screen-customer #cust-page-bookings .cust-bookings-tab-count {
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  color: inherit;
  background: rgba(104, 115, 134, .1);
}

#screen-customer #cust-page-bookings .cust-bookings-tab.active .cust-bookings-tab-count {
  color: #fff;
  background: rgba(255, 255, 255, .3);
}

#screen-customer #cust-page-bookings .cust-bookings-list {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}

#screen-customer #cust-page-bookings .res-card {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#screen-customer #cust-page-bookings .res-card:last-child {
  border-bottom: 0;
}

#screen-customer #cust-page-bookings .res-card:hover {
  background: #fcfdfe;
  box-shadow: none;
  transform: none;
}

#screen-customer #cust-page-bookings .res-card-hd {
  padding: 14px 20px 6px;
  border: 0;
  background: transparent;
}

#screen-customer #cust-page-bookings :is(.cust-bookings-header-pending, .cust-bookings-header-confirmed, .cust-bookings-header-completed, .cust-bookings-header-cancelled) {
  background: transparent;
}

#screen-customer #cust-page-bookings .res-card-id {
  color: var(--txt-m);
  font-size: 10.5px;
  font-weight: 500;
}

#screen-customer #cust-page-bookings .res-card-bd {
  padding: 14px 20px 16px;
}

#screen-customer #cust-page-bookings .cust-bookings-card-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

#screen-customer #cust-page-bookings .cust-bookings-field-label {
  margin-bottom: 6px;
  color: var(--txt-m);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#screen-customer #cust-page-bookings .cust-bookings-field-main {
  color: var(--txt-h);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#screen-customer #cust-page-bookings .cust-bookings-field-sub {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--txt-m);
  font-size: 11px;
}

#screen-customer #cust-page-bookings .res-card-ft {
  padding: 0 20px 16px;
  border: 0;
  background: transparent;
}

#screen-customer #cust-page-bookings .cust-bookings-actions {
  flex-wrap: wrap;
  gap: 7px;
}

#screen-customer :is(.cust-sync-empty, .cust-bookings-empty, .empty-state) {
  padding: 36px 24px;
  border: 1px dashed #d7dde5;
  border-radius: 13px;
  color: var(--txt-m);
  background: #fbfcfd;
  box-shadow: none;
  text-align: center;
}

#screen-customer #cust-page-bookings :is(.cust-sync-empty, .cust-bookings-empty) {
  border: 0;
  border-radius: 0;
}

#screen-customer :is(.cust-sync-empty, .cust-bookings-empty, .empty-state) h3,
#screen-customer :is(.cust-sync-empty, .cust-bookings-empty, .empty-state) h4 {
  color: var(--txt-h);
  font-size: 14px;
}

#screen-customer :is(.cust-sync-empty, .cust-bookings-empty, .empty-state) p {
  max-width: 44ch;
  margin: 7px auto 0;
  color: var(--txt-m);
  font-size: 12px;
}

#screen-customer :is(.cust-sync-empty, .empty-state) .btn {
  margin-top: 18px;
}

#screen-customer .customer-loading {
  min-height: 200px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: none;
}

#screen-customer .customer-loading span {
  display: block;
  width: 65%;
  height: 13px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: #e9edf1;
}

#screen-customer .customer-loading span:nth-child(2) {
  width: 45%;
}

/* Pet records: readable rows with actions at the point of use. */
#screen-customer #customer-pets-grid {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}

#screen-customer .pcard {
  min-height: 118px;
  margin: 0;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 48px minmax(160px, .85fr) minmax(220px, 1.15fr) auto;
  grid-template-areas:
    "avatar name meta actions"
    "avatar sub meta actions";
  gap: 4px 16px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

#screen-customer .pcard:last-child {
  border-bottom: 0;
}

#screen-customer .pcard:hover {
  background: #fcfdfe;
  box-shadow: none;
  transform: none;
}

#screen-customer .pcard-ava {
  grid-area: avatar;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  color: var(--brand-dk);
  background: var(--brand-lt);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

#screen-customer .pcard-name {
  grid-area: name;
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

#screen-customer .pcard-sub {
  grid-area: sub;
  color: var(--txt-m);
  font-size: 11px;
  line-height: 1.5;
}

#screen-customer .pcard-actions {
  grid-area: actions;
  margin: 0;
  justify-content: flex-end;
}

#screen-customer .pcard-meta {
  grid-area: meta;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#screen-customer .pmeta-row {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--txt-m);
  font-size: 11px;
}

#screen-customer .pmeta-row i {
  width: 15px;
  color: var(--blue);
}

#screen-customer .customer-pets-empty {
  border: 0;
  border-radius: 0;
}

/* Profile: one identity surface and two deliberate account areas. */
#screen-customer .customer-profile-summary,
#screen-staff #staff-page-profile .customer-profile-summary {
  margin-bottom: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: none;
}

#screen-customer .customer-profile-summary .ava-orange,
#screen-staff #staff-page-profile .customer-profile-summary .ava-orange {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}

#screen-customer #profile-ava-big {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}
#screen-customer :is(#cust-ava, #profile-ava-big) img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

#screen-customer .customer-profile-identity,
#screen-staff #staff-page-profile .customer-profile-identity {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

:is(#screen-customer #profile-fullname, #screen-staff #staff-profile-fullname) {
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

#screen-customer .customer-profile-identity p,
#screen-staff #staff-page-profile .customer-profile-identity p {
  margin-top: 4px;
  color: var(--txt-m);
  font-size: 11px;
  line-height: 1.4;
}

:is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) > .g2 {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 20px;
  align-items: start;
}

#screen-staff #staff-page-profile > .customer-profile-grid { align-items: stretch; }

:is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) .card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: none;
}

:is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) .card-hd {
  padding: 22px 24px 14px;
}

:is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) .card-bd {
  padding: 14px 24px 24px;
}

:is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) .card-hd p {
  max-width: 48ch;
  margin-top: 5px;
  color: var(--txt-m);
  font-size: 11px;
  line-height: 1.5;
}

:is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) .customer-profile-label {
  margin-bottom: 5px;
  color: var(--txt-m);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
}

:is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) [id$="-value"] {
  overflow-wrap: anywhere;
}

#screen-customer .customer-profile-name-grid,
#screen-staff #staff-page-profile .customer-profile-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

#screen-customer .customer-profile-field,
#screen-staff #staff-page-profile .customer-profile-field {
  margin-bottom: 16px;
}

#screen-customer .customer-profile-field:last-child,
#screen-staff #staff-page-profile .customer-profile-field:last-child {
  margin-bottom: 0;
}

#screen-customer .customer-profile-value,
#screen-staff #staff-page-profile .customer-profile-value {
  color: var(--txt-h);
  font-size: 13px;
  font-weight: 600;
}

#screen-customer .customer-security-row,
#screen-staff #staff-page-profile .customer-security-row {
  margin: 0;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
}

#screen-customer .customer-security-icon,
#screen-staff #staff-page-profile .customer-security-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-lt);
}

#screen-customer .customer-security-copy,
#screen-staff #staff-page-profile .customer-security-copy {
  min-width: 0;
  flex: 1;
}

#screen-customer .customer-security-copy strong,
#screen-staff #staff-page-profile .customer-security-copy strong {
  display: block;
  color: var(--txt-h);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

#screen-customer .customer-security-copy span,
#screen-staff #staff-page-profile .customer-security-copy span {
  display: block;
  margin-top: 2px;
  color: var(--txt-m);
  font-size: 10.5px;
  line-height: 1.45;
}

/* Notifications */
#screen-customer #cust-notif {
  width: min(390px, calc(100vw - 32px));
  top: calc(100% - 4px);
  right: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}

#screen-customer .notif-panel-hd {
  padding: 17px 18px;
  gap: 12px;
  border-bottom-color: var(--border-soft);
}

#screen-customer .notif-panel-hd h4 {
  font-size: 14px;
  font-weight: 700;
}

#screen-customer .notif-mark-read {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
}

#screen-customer .notif-empty {
  padding: 34px 20px;
  color: var(--txt-m);
}

/* Customer dialogs mirror Owner dialog geometry and controls. */
body:has(.customer-modal.show) {
  overflow: hidden;
}

.customer-modal {
  padding: 24px;
  background: rgba(23, 29, 43, .38);
  backdrop-filter: blur(4px);
}

.customer-modal .modal {
  width: 100%;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(23, 29, 43, .2);
}

.customer-modal .modal-hd {
  padding: 18px 22px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}

.customer-modal .modal-hd h3 {
  color: var(--txt-h);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.customer-modal .modal-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--txt-m);
  background: #fff;
}

.customer-modal .modal-bd {
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--txt-b);
}

.customer-modal .modal-ft {
  padding: 14px 22px 18px;
  flex-shrink: 0;
  gap: 9px;
  border-top: 1px solid var(--border-soft);
  background: #fbfcfd;
}

.customer-modal .form-grid {
  gap: 16px;
}

.customer-modal .form-g {
  margin-bottom: 0;
}

.customer-modal :is(.info-box, .warn-box, .success-box) {
  padding: 11px 13px;
  border: 0;
  border-radius: var(--r);
  font-size: 11px;
}

.customer-modal .info-box {
  color: var(--blue);
  background: var(--blue-lt);
}

.customer-modal .warn-box {
  color: #9a5d17;
  background: var(--amber-lt);
}

.customer-modal .msg-error:not(:empty) {
  display: block;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: var(--r);
  color: #a23e2d;
  background: var(--danger-lt);
}

.customer-modal .msg-error:empty {
  display: none;
}

.customer-modal .customer-modal-intro {
  max-width: 70ch;
  margin: 0 0 18px;
  color: var(--txt-m);
  font-size: 12px;
  line-height: 1.55;
}

.customer-modal .customer-modal-hint {
  margin: 7px 0 0;
  color: var(--txt-m);
  font-size: 10.5px;
  line-height: 1.5;
}

.customer-modal .customer-feedback-summary {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fbfcfd;
}

.customer-modal #booking-payment-status {
  padding: 11px;
  border-radius: var(--r);
  background: var(--surface-2);
}

.customer-modal #booking-payment-amount {
  font-variant-numeric: tabular-nums;
}

.customer-modal #booking-payment-qr-image {
  padding: 8px;
  background: #fff;
}

.customer-modal #booking-payment-qr-empty {
  min-height: 150px;
  display: grid;
  align-items: center;
}

/* Responsive composition */
@media (max-width: 1180px) {
  #screen-customer #cust-page-book .book-cage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #screen-customer .pcard {
    grid-template-columns: 48px minmax(150px, .8fr) minmax(190px, 1fr);
    grid-template-areas:
      "avatar name actions"
      "avatar sub actions"
      ". meta meta";
  }
}

@media (max-width: 980px) {
  #screen-customer {
    flex-direction: column;
  }

  #screen-customer .sidebar {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    position: relative;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  #screen-customer .main-wrap {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }

  #screen-customer .sb-brand {
    min-height: 68px;
    padding: 10px 18px;
    border-bottom: 0;
  }

  #screen-customer .customer-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  #screen-customer .sb-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 5px;
    padding: 0 16px 10px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  #screen-customer .sb-nav::-webkit-scrollbar {
    display: none;
  }

  #screen-customer .sb-label {
    display: none;
  }

  #screen-customer .nav-item {
    width: auto;
    min-height: 40px;
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 12px;
  }

  #screen-customer .nav-item:hover {
    transform: none;
  }

  #screen-customer .topbar {
    min-height: 90px;
    padding: 12px 24px;
  }

  #screen-customer .book-grid-2,
  #screen-customer .book-grid-3,
  #screen-customer .book-summary-grid,
  #screen-customer .book-choice-grid,
  #screen-customer .book-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #screen-customer .customer-active-checkout-banner {
    width: calc(100% - 36px);
    margin-top: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  #screen-customer .customer-active-checkout-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 52px;
  }

  #screen-customer .page-wrap {
    padding: 22px 18px 38px;
  }
  :is(#screen-customer #cust-page-profile, #screen-staff #staff-page-profile) > .g2 {
    grid-template-columns: 1fr;
  }

  #screen-customer #cust-page-book .book-time-chip-row {
    max-width: 100%;
    padding: 1px 1px 8px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: #cbd2dc transparent;
    scrollbar-width: thin;
  }

  #screen-customer #cust-page-book .book-time-chip {
    width: 92px;
    flex: 0 0 92px;
    scroll-snap-align: start;
  }

  #screen-customer #cust-page-book .book-cage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #screen-customer #cust-page-bookings .cust-bookings-card-grid,
  #screen-customer :is(.book-grid-2, .book-grid-3, .book-summary-grid, .book-choice-grid, .book-service-grid) {
    grid-template-columns: 1fr;
  }

  #screen-customer .pcard {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar name actions"
      "avatar sub actions"
      ". meta meta";
  }

  #screen-customer .pcard-meta {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  #screen-customer .customer-active-checkout-banner {
    width: calc(100% - 32px);
    padding: 14px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  #screen-customer .customer-active-checkout-icon {
    width: 34px;
    height: 34px;
  }

  #screen-customer .customer-active-checkout-actions {
    padding-left: 44px;
    flex-wrap: wrap;
  }

  #screen-customer .customer-active-checkout-actions .btn {
    flex: 1 1 145px;
  }

  #screen-customer .sb-brand {
    min-height: 60px;
    padding: 9px 14px;
  }

  #screen-customer .customer-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 14px;
  }

  #screen-customer .sb-brand-txt .bsub {
    display: none;
  }

  #screen-customer .sb-nav {
    padding: 0 12px 8px;
  }

  #screen-customer .topbar {
    min-height: 76px;
    padding: 10px 16px;
  }

  #screen-customer .customer-topbar-path,
  #screen-customer .topbar-left p {
    display: none;
  }

  #screen-customer .topbar-left h2 {
    max-width: 150px;
    font-size: 20px;
  }

  #screen-customer .customer-header-account {
    padding: 2px 2px 2px 10px;
  }

  #screen-customer .customer-header-account .sb-user-info {
    display: none;
  }

  #screen-customer .customer-header-account .sb-ava {
    width: 36px;
    height: 36px;
  }

  #screen-customer .page-wrap {
    padding: 20px 16px 34px;
  }

  #screen-customer .pg-hdr {
    margin-bottom: 18px;
  }

  #screen-customer .pg-hdr h1,
  #screen-customer .cust-home-greeting {
    font-size: 22px;
  }

  #screen-customer .book-stepper {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 18px;
    padding: 0 2px 18px;
    display: grid;
  }

  #screen-customer .book-step-line {
    display: none;
  }

  #screen-customer .book-step-label {
    font-size: 8px;
    line-height: 1.25;
    white-space: normal;
  }

  #screen-customer .book-step-ind {
    width: 26px;
    height: 26px;
  }

  #screen-customer .book-pane.active {
    padding: 20px 16px;
    border-radius: 13px;
  }

  #screen-customer .book-pane > .book-section-title:first-child {
    font-size: 17px;
  }

  #screen-customer .book-stay-date-column {
    padding: 14px;
  }

  #screen-customer .book-terms-box {
    max-height: 320px;
  }

  #screen-customer :is(.book-field, .book-select, .book-textarea),
  .customer-modal .form-g :is(input, select, textarea) {
    font-size: 16px;
  }

  #screen-customer .book-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #screen-customer .book-nav {
    gap: 8px;
  }

  #screen-customer .book-btn-primary,
  #screen-customer .book-btn-ghost {
    padding-inline: 11px;
    font-size: 10.5px;
  }

  #screen-customer #cust-page-book .book-cage-overview {
    margin-top: 18px;
    align-items: flex-end;
  }

  #screen-customer #cust-page-book .book-cage-overview > div > span {
    max-width: 24ch;
  }

  #screen-customer #cust-page-book .book-cage-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #screen-customer #cust-page-book .book-cage-metric-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }

  #screen-customer #cust-page-book .book-cage-metric-card:nth-child(4) {
    border-top: 1px solid var(--border-soft);
  }

  #screen-customer #cust-page-book .book-cage-card {
    min-height: 88px;
    padding: 12px;
  }

  #screen-customer #cust-page-book .book-cage-selection-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  #screen-customer #cust-page-bookings .cust-bookings-tab {
    padding: 7px 10px;
    font-size: 10px;
  }

  #screen-customer #cust-page-bookings .res-card-hd,
  #screen-customer #cust-page-bookings .res-card-bd {
    padding-inline: 16px;
  }

  #screen-customer #cust-page-bookings .res-card-ft {
    padding-inline: 16px;
  }

  #screen-customer .pcard {
    padding: 18px 16px;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar sub"
      "meta meta"
      "actions actions";
    gap: 4px 12px;
  }

  #screen-customer .pcard-ava {
    width: 40px;
    height: 40px;
  }

  #screen-customer .pcard-actions {
    width: 100%;
    margin-top: 12px;
  }

  #screen-customer .pcard-actions .btn {
    flex: 1;
    justify-content: center;
  }

  #screen-customer .customer-profile-summary,
#screen-staff #staff-page-profile .customer-profile-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
  }


  #screen-customer .customer-profile-name-grid,
#screen-staff #staff-page-profile .customer-profile-name-grid {
    grid-template-columns: 1fr;
  }

  #screen-customer .customer-security-row,
#screen-staff #staff-page-profile .customer-security-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #screen-customer .customer-security-row .btn,
#screen-staff #staff-page-profile .customer-security-row .btn {
    width: 100%;
    justify-content: center;
  }

  #screen-customer #cust-notif {
    right: 16px;
  }

  .customer-modal {
    padding: 12px;
  }

  .customer-modal .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }

  .customer-modal .modal-hd,
  .customer-modal .modal-bd {
    padding: 18px;
  }

  .customer-modal .modal-ft {
    padding: 14px 18px 16px;
    flex-wrap: wrap;
  }

  .customer-modal .form-grid {
    grid-template-columns: 1fr;
  }

  .customer-modal .btn {
    padding-inline: 11px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #screen-customer *,
  .customer-modal * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Pet age method: compact segmented switch without pushing the date input down. */
:is(#screen-customer, .customer-modal) .pet-age-heading { position: relative; }
:is(#screen-customer, .customer-modal) .pet-age-title {
  display: block; margin-bottom: 7px; color: var(--txt-b); font-size: 11px;
  font-weight: 600; letter-spacing: .01em; line-height: 1.5; text-transform: none;
}
:is(#screen-customer, .customer-modal) .pet-age-mode {
  position: absolute; top: -3px; right: 0; display: inline-flex; gap: 2px;
  margin: 0; padding: 2px; border-radius: 999px; background: var(--surface-2);
}
:is(#screen-customer, .customer-modal) .pet-age-mode label { position: relative; margin: 0; cursor: pointer; }
:is(#screen-customer, .customer-modal) .pet-age-mode span {
  display: block; padding: 3px 7px; border-radius: 999px; color: var(--txt-m);
  font-size: 9.5px; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
:is(#screen-customer, .customer-modal) .pet-age-mode input[type="radio"] {
  position: absolute; width: 1px; height: 1px; opacity: 0;
}
:is(#screen-customer, .customer-modal) .pet-age-mode input:checked + span {
  color: var(--brand-dk); background: var(--surface); box-shadow: 0 0 0 1px var(--border); font-weight: 600;
}
:is(#screen-customer, .customer-modal) .pet-age-mode input:focus-visible + span {
  outline: 2px solid rgba(39, 124, 183, .35); outline-offset: 1px;
}
@media (max-width: 760px) {
  :is(#screen-customer, .customer-modal) .pet-age-heading .pet-age-title { margin-bottom: 0; }
  :is(#screen-customer, .customer-modal) .pet-age-heading .pet-age-mode {
    position: static; width: max-content; max-width: 100%; margin: 6px 0 8px;
  }
}

#screen-customer .pet-age-estimate[hidden],
.customer-modal .pet-age-estimate[hidden],
#screen-customer [id$="-pet-dob-wrap"][hidden],
.customer-modal [id$="-pet-dob-wrap"][hidden] {
  display: none;
}

/* Boarding turnover-cleaning state: distinct from fully booked cages/slots. */
#screen-customer .book-time-chip.turnover-cleaning,
#screen-customer .book-cage-card.turnover {
  background: repeating-linear-gradient(135deg, #f3f4f6 0, #f3f4f6 8px, #e5e7eb 8px, #e5e7eb 16px);
  color: #6b7280;
  border-color: #d1d5db;
  cursor: help;
}
#screen-customer .book-time-chip.turnover-cleaning:hover::after,
#screen-customer .book-time-chip.turnover-cleaning:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}
#screen-customer .book-time-chip.turnover-cleaning { position: relative; }
#screen-customer .turnover-slot-help,
#screen-customer .turnover-cleaning-help { margin-top: 8px; color: #6b7280; font-size: 12px; }
#screen-customer .book-time-options:has(.book-time-empty) .turnover-slot-help { display: none; }

#customer-pet-basic-fields[hidden], #customer-pet-core-summary[hidden] { display:none; }
.customer-pet-core-summary h4 { margin:0 0 12px; }
.customer-pet-core-summary dl { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:0; }
.customer-pet-core-summary dt { color:var(--txt-m);font-size:12px; }
.customer-pet-core-summary dd { margin:3px 0 0;font-weight:600;overflow-wrap:anywhere; }
.customer-pet-core-summary p { margin:16px 0;color:var(--txt-m);font-size:13px;line-height:1.5; }
.customer-pet-care-heading { margin:20px 0 8px; }
@media(max-width:480px) { .customer-pet-core-summary dl { grid-template-columns:minmax(0,1fr); } }

/* Staff confirmation dialogs reuse the Adjust Pet Weight modal styling. */
#modal-staff-safety .pet-field-error[hidden] { display: none; }
#modal-staff-safety textarea { min-height: 100px; resize: vertical; }
.is-owner-portal.owner-theme-dark #modal-staff-safety .pet-field-error { color: #ff9b8a; }
.is-owner-portal.owner-theme-dark #modal-staff-payment .info-box { color: #69addc; background: var(--admin-blue-soft); }
.is-owner-portal.owner-theme-dark #modal-staff-safety .danger-box { color: #ff9a84; background: var(--admin-red-soft); }

#customer-cancellation-ack-wrap label { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; line-height: 1.5; cursor: pointer; }
#customer-cancellation-ack { flex: 0 0 auto; margin: 3px 0 0; }
#modal-customer-confirm #customer-cancellation-ack[aria-invalid="true"] + span { color: var(--danger, #d94a32); }
#customer-cancellation-reason-wrap { margin-top: 16px; }
#customer-cancellation-reason-wrap label { display: block; margin-bottom: 6px; font-weight: 600; }
#customer-cancellation-reason { display: block; width: 100%; min-height: 90px; resize: vertical; }
#customer-cancellation-reason-help { display: block; margin-top: 6px; color: var(--txt-m); font-size: 12px; line-height: 1.5; }
#customer-cancellation-reason-wrap .cancellation-required,
#customer-cancellation-reason-error { color: var(--danger, #d94a32); }
#customer-cancellation-reason-error:not([hidden]) { display: block; margin-top: 6px; }
#customer-cancellation-reason[aria-invalid="true"] { border-color: var(--danger, #d94a32); }
