:root {
  --ink: #34243d;
  --muted: #7c647d;
  --line: #f4c9dc;
  --surface: #ffffff;
  --soft: #fff6fa;
  --fresh: #d31f6b;
  --berry: #9b174f;
  --fresh-dark: #8b4bc6;
  --coral: #f05494;
  --gold: #f6bf4f;
  --navy: #4b2885;
  --shadow: 0 18px 45px rgba(126, 52, 104, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h2,
h3,
h4,
strong {
  color: var(--berry);
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero strong,
button strong {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--fresh-dark);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(74px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #edf3f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.driver-tabs {
  display: flex;
  gap: 8px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.driver-app-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 12px;
}

.driver-menu-button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--fresh-dark);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.driver-menu-panel {
  display: none;
  position: fixed;
  top: 66px;
  left: 18px;
  z-index: 34;
  width: min(280px, calc(100vw - 36px));
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.driver-menu-panel.active {
  display: grid;
  gap: 8px;
}

.support-link {
  text-decoration: none;
}

.driver-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.driver-tab.active {
  color: #fff;
  background: var(--fresh);
}

.admin-ribbon-tabs {
  display: none;
}

.driver-page {
  display: none;
}

.driver-page.active {
  display: block;
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
}

.employee-login {
  width: min(460px, calc(100% - 32px));
  margin: 0 auto 60px;
}

.login-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel img {
  width: 120px;
  justify-self: center;
}

.login-panel h2 {
  margin: 0;
  text-align: center;
}

.login-panel label,
.schedule-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.completion-form {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.completion-form.active {
  display: grid;
  gap: 14px;
}

#receiptPhotoField {
  display: none;
}

#receiptPhotoField.active {
  display: grid;
}

.login-panel input,
.schedule-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 74px;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 6px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--fresh-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transform: translateY(-50%);
}

.employee-private {
  display: none;
}

.employee-private.active {
  display: block;
}

.hidden {
  display: none;
}

.pay-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pay-summary article {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pay-summary span {
  color: var(--muted);
  font-size: 0.86rem;
}

.availability-actions {
  display: flex;
  justify-content: flex-start;
}

.availability-editor-intro {
  display: grid;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 13px;
  color: var(--muted);
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.availability-editor-intro strong {
  color: var(--berry);
}

.availability-exact-time-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.availability-exact-time-heading,
.availability-exact-time-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.availability-exact-time-heading > div {
  display: grid;
  gap: 3px;
}

.availability-exact-time-heading small {
  color: var(--muted);
}

.availability-exact-time-list {
  display: grid;
  gap: 8px;
}

.availability-exact-time-row label {
  flex: 1;
  min-width: 0;
}

.availability-exact-time-row input {
  width: 100%;
}

.availability-remove-time {
  min-height: 42px;
  padding: 0 12px;
  color: #9f1239;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.monthly-activity-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.monthly-activity-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.monthly-activity-overview article {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.monthly-activity-overview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.monthly-activity-overview strong {
  color: var(--berry);
}

.monthly-activity-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.monthly-activity-breakdown > div {
  padding: 16px;
  background: linear-gradient(180deg, #fff7fb, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.monthly-activity-breakdown h4 {
  margin: 0 0 12px;
  color: var(--ink);
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr 28px;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
}

.activity-row > span,
.activity-row > strong {
  font-size: 0.84rem;
}

.activity-row > strong {
  color: var(--berry);
  text-align: right;
}

.activity-meter {
  height: 9px;
  overflow: hidden;
  background: #f4dfeb;
  border-radius: 999px;
}

.activity-meter i {
  display: block;
  min-width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--fresh), var(--fresh-dark));
  border-radius: inherit;
}

.monthly-activity-breakdown small {
  display: block;
  margin: 2px 0 0 82px;
  color: var(--muted);
}

.availability-builder,
.availability-history-section {
  display: grid;
  gap: 12px;
}

.availability-day-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-day-card legend {
  padding: 0 4px;
  color: var(--berry);
  font-weight: 900;
}

.availability-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.availability-block-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-block-option input {
  width: 18px;
  min-height: 18px;
}

.availability-block-option span {
  display: grid;
  gap: 2px;
}

.availability-block-option small {
  color: var(--muted);
}

.availability-record-card {
  margin-top: 10px;
}

.message-thread,
.message-form,
.message-list,
.quick-reply-grid,
.export-format-actions,
.daily-update-status,
.daily-toast {
  display: grid;
  gap: 10px;
}

.message-thread {
  margin-top: 12px;
  padding: 12px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-thread-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.message-thread-header div {
  display: grid;
  gap: 3px;
}

.message-thread-header span,
.message-window-status,
.message-bubble small {
  color: var(--muted);
}

.message-list {
  max-height: 280px;
  overflow: auto;
}

.message-bubble {
  justify-self: start;
  max-width: 86%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-bubble.mine {
  justify-self: end;
  background: #f7e8ff;
}

.message-bubble p {
  margin: 4px 0;
  color: var(--ink);
}

.message-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
}

.request-conversation-stack,
.admin-messages-panel,
#adminMessagesBoard,
.admin-message-section,
.admin-message-request-card,
.admin-observer-conversation,
.admin-direct-message-grid > section,
.archived-conversation-list,
.admin-customer-grid {
  display: grid;
  gap: 14px;
}

.admin-message-section + .admin-message-section {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.archived-message-card summary {
  cursor: pointer;
}

.archived-conversation-list {
  margin-top: 14px;
}

.message-thread-readonly {
  background: #faf7fb;
  border-style: dashed;
}

.admin-message-request-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(125, 44, 141, 0.08);
}

.admin-message-request-header,
.message-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-message-request-header > div,
.admin-message-parties,
.message-section-heading > div {
  display: grid;
  gap: 4px;
}

.admin-message-request-header > div > span,
.admin-message-parties > span:not(.pill),
.message-section-heading span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-observer-conversation {
  padding: 14px;
  background: #fcf8fb;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.admin-direct-message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-direct-message-grid > section {
  align-content: start;
  padding: 14px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-customer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-record-card p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.quick-reply-grid,
.export-format-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-toast {
  display: none;
  margin-bottom: 12px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-radius: 8px;
}

.daily-toast.active {
  display: grid;
  animation: toastFade 5s ease forwards;
}

.daily-update-status {
  margin-top: 12px;
  padding: 12px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.export-category-card {
  gap: 12px;
}

@keyframes toastFade {
  0%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.nav-link {
  min-width: 94px;
  padding: 9px 14px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
}

.nav-link.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 52, 74, 0.09);
}

.role-nav {
  display: none;
}

.role-nav.visible {
  display: block;
}

.login-hero {
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px clamp(18px, 4vw, 38px) 70px;
  text-align: center;
  align-content: center;
}

.login-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1180px, 142vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(211, 31, 107, 0.12) 0 27%, transparent 27.5%),
    radial-gradient(circle at center, transparent 0 38%, rgba(139, 75, 198, 0.1) 38.5% 39.5%, transparent 40%),
    radial-gradient(circle at center, transparent 0 48%, rgba(211, 31, 107, 0.07) 48.5% 49.5%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.login-wordmark {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--fresh);
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(3rem, 9vw, 5.8rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(139, 75, 198, 0.16);
}

.login-hero .eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--fresh-dark);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.login-hero > img {
  width: min(230px, 58vw);
  justify-self: center;
}

.login-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.role-login-grid {
  display: grid;
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.staff-login-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  min-height: 40px;
  padding: 0 14px;
  color: var(--fresh-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(126, 52, 104, 0.12);
}

.owner-site-switcher {
  display: none;
  position: fixed;
  z-index: 35;
}

.owner-site-switcher {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.owner-site-switcher.active {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.owner-menu-group {
  position: relative;
}

.owner-menu-button,
.owner-menu-panel button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--fresh-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.owner-menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  margin-top: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.owner-menu-panel.active {
  display: grid;
  gap: 8px;
}

.staff-login-panel {
  display: none;
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.staff-login-panel.active {
  display: grid;
}

.login-hero.staff-mode .role-login-grid {
  display: none;
}

.login-switch-title {
  margin: -6px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.text-button {
  width: fit-content;
  justify-self: center;
  padding: 0;
  color: var(--fresh-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
}

.login-panel .login-only-field,
.login-panel .verification-panel {
  display: none;
}

.login-panel.login-mode .signup-field {
  display: none;
}

.login-panel.login-mode .login-only-field,
.login-panel .verification-panel.active {
  display: grid;
}

.login-panel:not(.login-mode) .login-only-field {
  display: none !important;
}

.verification-panel {
  gap: 12px;
  padding: 14px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.verification-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.cart-icon {
  font-size: 20px;
  line-height: 1;
}

.customer-cart-summary {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 12px));
  right: 18px;
  z-index: 34;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.customer-cart-summary[hidden] {
  display: none;
}

.customer-resume-cart {
  min-height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  box-shadow: 0 10px 24px rgba(126, 52, 104, 0.2);
}

.customer-running-total {
  display: grid;
  align-content: center;
  min-width: 104px;
  padding: 7px 12px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #f3c9de;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(126, 52, 104, 0.16);
}

.customer-running-total span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.customer-running-total strong {
  font-size: 1rem;
  line-height: 1.2;
}

.customer-service-status {
  width: fit-content;
  margin: 12px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.hero .customer-service-status {
  font-size: 0.82rem;
  line-height: 1.25;
}

.hero .customer-service-status.available {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.hero .customer-service-status.unavailable {
  color: #881337;
  background: #fff1f2;
  border: 1px solid #fb7185;
  box-shadow: 0 4px 14px rgba(136, 19, 55, 0.2);
}

.availability-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(41, 24, 51, 0.68);
}

.availability-gate-modal[hidden] {
  display: none;
}

.availability-gate-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--fresh);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(41, 24, 51, 0.28);
}

.availability-gate-card h2 {
  margin: 4px 0 12px;
  color: var(--berry);
}

.availability-gate-card p {
  color: var(--muted);
  line-height: 1.55;
}

.availability-gate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: var(--berry);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
}

.call-operations-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(231, 51, 131, 0.22);
  font-weight: 900;
}

body.availability-gate-open {
  overflow: hidden;
}

body.shopping-price-modal-open {
  overflow: hidden;
}

body.customer-help-open {
  overflow: hidden;
}

.customer-page-help-button {
  position: fixed;
  right: 18px;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 33;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), #7f3fbf);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(86, 38, 115, 0.28);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 950;
}

.customer-page-help-button:hover,
.customer-page-help-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(86, 38, 115, 0.34);
}

.customer-help-card {
  width: min(640px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  text-align: left;
  background: linear-gradient(155deg, #fff8fc, #f6eaff);
}

.customer-help-card > .eyebrow,
.customer-help-card > h2 {
  text-align: center;
}

.customer-help-body > p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.customer-help-list {
  display: grid;
  gap: 9px;
}

.customer-help-list article {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #fff1f8, #f3e9ff);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.customer-help-list strong {
  color: var(--berry);
}

.customer-help-list span {
  color: var(--muted);
  line-height: 1.4;
}

.customer-help-done {
  display: block;
  margin: 18px auto 0;
}

@media (max-width: 640px) {
  .customer-page-help-button {
    right: 12px;
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    width: 44px;
    height: 44px;
  }

  .customer-help-card {
    padding: 22px 16px;
  }
}

body.admin-preview-open {
  overflow: hidden;
}

.admin-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 12px;
  background: rgba(41, 24, 51, 0.78);
}

.admin-preview-modal[hidden] {
  display: none;
}

.admin-preview-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: 14px;
  background: #f6f2f5;
  border: 2px solid var(--fresh);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(41, 24, 51, 0.3);
}

.admin-preview-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 14px;
}

.admin-preview-toolbar .eyebrow,
.admin-preview-toolbar h2 {
  margin: 0;
}

.admin-preview-toolbar h2 {
  color: var(--berry);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.admin-preview-size-controls {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-preview-size-controls button,
.admin-preview-close {
  min-height: 38px;
  padding: 0 13px;
  color: var(--fresh-dark);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.admin-preview-size-controls button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
}

.admin-preview-close {
  width: 42px;
  padding: 0;
  border-color: var(--line);
  font-size: 1.5rem;
}

.admin-preview-help {
  margin: 8px 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.admin-preview-stage {
  display: flex;
  min-height: 0;
  align-items: stretch;
  justify-content: center;
  overflow: auto;
  background: #d8d1d7;
  border: 1px solid #c9bec7;
  border-radius: 12px;
}

.admin-preview-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  background: #fff;
  border: 0;
  transition: width 180ms ease, border-radius 180ms ease;
}

.admin-preview-stage[data-preview-size="mobile"] {
  align-items: flex-start;
  padding: 14px;
}

.admin-preview-stage[data-preview-size="mobile"] iframe {
  flex: 0 0 390px;
  width: 390px;
  max-width: 100%;
  height: min(780px, calc(100vh - 170px));
  min-height: 560px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(41, 24, 51, 0.24);
}

.admin-preview-frame .owner-site-switcher {
  display: none !important;
}

@media (max-width: 640px) {
  .owner-site-switcher {
    top: 12px;
  }

  .owner-menu-button {
    min-height: 38px;
    padding: 0 10px;
  }

  .admin-preview-modal {
    padding: 0;
  }

  .admin-preview-shell {
    padding: 9px;
    border: 0;
    border-radius: 0;
  }

  .admin-preview-toolbar {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .admin-preview-size-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .admin-preview-close {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-preview-help {
    margin: 5px 0;
  }

  .admin-preview-stage[data-preview-size="mobile"] {
    padding: 0;
  }
}

.shopping-price-card {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  text-align: left;
}

.shopping-price-card h2,
.shopping-price-card > .eyebrow,
.shopping-price-intro {
  text-align: center;
}

.shopping-price-intro {
  max-width: 680px;
  margin: 0 auto 18px;
}

.shopping-price-modal-body,
.shopping-price-empty {
  display: grid;
  gap: 14px;
}

.shopping-price-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shopping-price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shopping-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.shopping-price-table th,
.shopping-price-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.shopping-price-table th {
  color: var(--berry);
  background: #fff5fa;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shopping-price-table tbody tr:last-child td {
  border-bottom: 0;
}

.shopping-price-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.shopping-price-source {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 800;
}

.shopping-price-source.ready {
  color: #166534;
  background: #dcfce7;
}

.shopping-price-source.needs-review {
  color: #9f1239;
  background: #fff1f2;
}

.shopping-price-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 16px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shopping-price-hold {
  color: var(--fresh-dark);
  font-size: 1.05rem;
}

.shopping-price-review-note {
  margin: 0;
  padding: 11px 13px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 9px;
}

.shopping-price-review-note.ready {
  color: #166534;
  background: #dcfce7;
}

.shopping-price-done {
  display: block;
  margin: 18px auto 0;
}

@media (max-width: 640px) {
  .shopping-price-card {
    padding: 22px 14px;
  }

  .shopping-price-table-wrap {
    overflow: visible;
    border: 0;
  }

  .shopping-price-table thead {
    display: none;
  }

  .shopping-price-table,
  .shopping-price-table tbody,
  .shopping-price-table tr,
  .shopping-price-table td {
    display: block;
    width: 100%;
  }

  .shopping-price-table tr {
    margin-bottom: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .shopping-price-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    border: 0;
  }

  .shopping-price-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .shopping-price-summary {
    grid-template-columns: 1fr;
  }
}

.driver-clock-panel {
  margin-top: 14px;
}

.driver-clock-panel > div,
.owner-status-summary > div {
  display: grid;
  gap: 3px;
}

.driver-clock-panel > div:first-child {
  padding: 12px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.driver-clock-panel span,
.owner-status-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.driver-clock-panel small {
  color: var(--muted);
}

.driver-clock-actions,
.owner-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.driver-clock-actions button,
.owner-status-actions button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--berry);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.driver-automatic-schedule {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(145deg, #fff7fb, #faf5ff);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.driver-automatic-schedule[hidden],
#driverManualAvailabilityArea[hidden] {
  display: none;
}

.driver-auto-schedule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.driver-auto-schedule-heading > div {
  display: grid;
  gap: 4px;
}

.driver-auto-schedule-heading > div > span,
.driver-schedule-time-zone {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.driver-auto-schedule-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.driver-weekly-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.driver-schedule-day {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.driver-schedule-day.current {
  border-color: var(--fresh);
  box-shadow: 0 0 0 2px rgba(211, 31, 107, 0.1);
}

.driver-schedule-day strong {
  color: var(--berry);
}

.driver-schedule-day span,
.driver-schedule-day small {
  color: var(--muted);
  line-height: 1.35;
}

.driver-schedule-day small {
  font-size: 0.76rem;
}

.owner-status-actions button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
}

.operations-schedule-layout {
  align-items: start;
}

.owner-status-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.owner-status-summary > div {
  padding: 12px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.operations-status-value,
.driver-operations-row .pill {
  width: fit-content;
}

.sms-configuration-status.ready {
  color: #166534;
}

.sms-configuration-status.needs-setup {
  color: #9f1239;
}

.admin-force-schedule-panel { margin-top: 18px; }
.admin-force-schedule-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.admin-force-schedule-form label { display: grid; gap: 6px; font-weight: 700; color: #55334d; }
.admin-force-schedule-form input, .admin-force-schedule-form select { min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; }
@media (max-width: 860px) { .admin-force-schedule-form { grid-template-columns: 1fr 1fr; } .admin-force-schedule-form button { grid-column: 1 / -1; } }

.status-online {
  color: #166534 !important;
  background: #dcfce7 !important;
}

.status-busy {
  color: #92400e !important;
  background: #fef3c7 !important;
}

.status-offline,
.status-vacation-mode {
  color: #9f1239 !important;
  background: #ffe4e6 !important;
}

.automatic-schedule-note {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px;
  color: var(--muted);
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 9px;
}

.driver-operations-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.driver-operations-row:last-child {
  border-bottom: 0;
}

.driver-operations-row > div {
  display: grid;
  gap: 4px;
}

.driver-operations-row > div:last-child {
  justify-items: end;
}

.driver-operations-row span,
.driver-operations-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.operations-alert-panel {
  margin-top: 16px;
}

#operationsAlertsBoard {
  display: grid;
  gap: 10px;
}

.operations-alert-card {
  padding: 13px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-left: 5px solid var(--fresh);
  border-radius: 9px;
}

.operations-alert-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.operations-alert-card span,
.operations-alert-card p {
  color: var(--muted);
  font-size: 0.82rem;
}

.operations-alert-card p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.customer-resume-cart .cart-icon {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resume-cart-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.resume-cart-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
}

.resume-cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  color: var(--fresh-dark);
  background: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.customer-menu-button,
.admin-app-bar .driver-menu-button,
.driver-app-bar .driver-menu-button {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 12px));
  z-index: 34;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(126, 52, 104, 0.18);
}

.customer-menu-button {
  left: 18px;
}

body[data-customer-mode="request"] #storefront.view.active,
body[data-customer-mode="memberships"] #storefront.view.active,
body[data-customer-mode="account"] #storefront.view.active,
body[data-customer-mode="orders"] #storefront.view.active,
body[data-customer-mode="payments"] #storefront.view.active {
  padding-top: max(96px, calc(env(safe-area-inset-top) + 88px));
}

.admin-app-bar .driver-menu-button,
.driver-app-bar .driver-menu-button {
  left: 18px;
}

.customer-menu-panel {
  display: none;
  position: fixed;
  top: 66px;
  left: 18px;
  z-index: 34;
  width: min(280px, calc(100vw - 36px));
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.customer-menu-panel.active {
  display: grid;
  gap: 8px;
}

.customer-menu-status {
  padding: 10px 12px;
  color: var(--fresh-dark);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.customer-menu-panel button,
.customer-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--fresh-dark);
  text-decoration: none;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view:not(#login).active {
  padding-top: 12px;
}

#storefront.view.active {
  padding-top: 24px;
}

.hero {
  position: relative;
  min-height: min(72vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #14251f;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(66, 27, 76, 0.8), rgba(66, 27, 76, 0.32) 58%, rgba(66, 27, 76, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100% - 32px));
  margin-left: clamp(16px, 7vw, 86px);
  padding: 80px 0 120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.workspace-header h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-logo {
  display: none;
}

.hero-brand {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 18px rgba(35, 12, 38, 0.42);
}

.hero p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action,
.checkout-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
}

.secondary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border: 0;
  box-shadow: 0 10px 24px rgba(126, 52, 104, 0.18);
}

.store-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 310px;
  gap: 22px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 72px;
  align-items: start;
  position: relative;
  z-index: 2;
}

body[data-customer-mode="home"] .store-shell,
body[data-customer-mode="home"] .membership-page,
body[data-customer-mode="home"] .customer-account-page,
body[data-customer-mode="request"] .membership-page,
body[data-customer-mode="request"] .customer-account-page,
body[data-customer-mode="memberships"] .store-shell,
body[data-customer-mode="memberships"] .customer-account-page,
body[data-customer-mode="account"] .store-shell,
body[data-customer-mode="account"] .membership-page,
body[data-customer-mode="orders"] .store-shell,
body[data-customer-mode="orders"] .membership-page,
body[data-customer-mode="orders"] .customer-account-page,
body[data-customer-mode="payments"] .store-shell,
body[data-customer-mode="payments"] .membership-page,
body[data-customer-mode="payments"] .customer-account-page {
  display: none;
}

body[data-customer-mode="request"] .store-shell {
  display: grid;
  margin-top: 0;
}

body[data-customer-mode="memberships"] .membership-page {
  display: block;
}

body[data-customer-mode="account"] .customer-account-page {
  display: block;
}

body[data-customer-mode="orders"] #customerOrdersPage,
body[data-customer-mode="payments"] #customerPaymentsPage {
  display: block;
}

body[data-customer-mode="request"] .hero,
body[data-customer-mode="memberships"] .hero,
body[data-customer-mode="account"] .hero,
body[data-customer-mode="orders"] .hero,
body[data-customer-mode="payments"] .hero,
body[data-customer-mode="restaurants"] .hero {
  display: none;
}

body[data-customer-mode="restaurants"] .store-shell,
body[data-customer-mode="restaurants"] .membership-page,
body[data-customer-mode="restaurants"] .customer-account-page { display: none; }

.customer-account-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 72px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #fffafd, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(126, 52, 104, 0.08);
}

.account-card h3,
.account-card p {
  margin: 0;
}

.account-card h3 {
  color: var(--berry);
}

.account-card p {
  color: var(--muted);
}

.account-profile-card {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 900;
}

.compact-edit-action {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
}

.membership-dashboard {
  display: grid;
  gap: 14px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 18px;
}

.membership-dashboard-empty,
.membership-active-card,
.membership-benefit-card,
.membership-perk-card {
  padding: 16px;
  background: linear-gradient(180deg, #fffafd, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(126, 52, 104, 0.08);
}

.membership-dashboard-empty h3,
.membership-dashboard-empty p,
.membership-active-card h3,
.membership-active-card p,
.membership-benefit-card h3 {
  margin: 0;
}

.membership-active-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.membership-active-card h3,
.membership-benefit-card h3,
.membership-perk-card strong {
  color: var(--berry);
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.membership-perk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.membership-perk-card {
  display: grid;
  gap: 4px;
}

.membership-perk-card span,
.membership-perk-card small,
.membership-benefit-card li,
.membership-dashboard-empty p,
.membership-active-card p {
  color: var(--muted);
}

.membership-perk-card strong {
  font-size: 1.4rem;
}

.membership-benefit-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.membership-checkout-shell {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 0;
}

.customer-flow-tabs {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 0;
}

.store-shell .filters,
.store-shell .catalog,
.store-shell .cart-panel {
  display: none;
}

.service-area-note {
  display: none;
  gap: 6px;
  margin: 0 0 12px;
  padding: 12px;
  color: var(--fresh-dark);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.4;
}

.store-shell[data-customer-page="customerAreas"] .service-area-note {
  display: none;
}

.service-area-note strong,
.service-area-note span {
  display: block;
}

.store-shell .catalog > .section-heading {
  display: grid;
  justify-content: center;
  gap: 0;
  text-align: center;
  margin-bottom: 10px;
}

.store-shell .catalog > .section-heading > div {
  display: grid;
  justify-items: center;
}

#productCount {
  display: none;
}

.quote-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(231, 51, 131, 0.18);
}

.store-shell[data-customer-page="customerServices"] .catalog,
.store-shell[data-customer-page="customerAddons"] .catalog,
.store-shell[data-customer-page="customerAreas"] .catalog,
.store-shell[data-customer-page="customerInfo"] .filters,
.store-shell[data-customer-page="serviceInfo"] .filters,
.store-shell[data-customer-page="pickupInfo"] .filters,
.store-shell[data-customer-page="dropoffInfo"] .filters,
.store-shell[data-customer-page="customerTip"] .cart-panel,
.store-shell[data-customer-page="customerCheckout"] .cart-panel {
  display: block;
  grid-column: 1 / -1;
  position: static;
}

.store-shell #checkoutButton,
.store-shell[data-customer-page="customerTip"] .terms-check,
.store-shell[data-customer-page="customerTip"] #checkoutButton {
  display: none;
}

.store-shell[data-customer-page="customerCheckout"] #checkoutButton {
  display: inline-flex;
}

.store-shell[data-customer-page="customerCheckout"] #customerFlowNextButton {
  display: none;
}

.store-shell[data-customer-page="customerTip"] .cart-panel > h2,
.store-shell[data-customer-page="customerTip"] #cartItems,
.store-shell[data-customer-page="customerTip"] .promo-code-panel,
.store-shell[data-customer-page="customerTip"] .cart-total,
.store-shell[data-customer-page="customerTip"] .payment-note,
.store-shell[data-customer-page="customerTip"] #requestValidation,
.store-shell[data-customer-page="customerTip"] #requestProfile,
.store-shell[data-customer-page="customerTip"] #checkoutCarryover,
.store-shell[data-customer-page="customerTip"] #deliveryPinCard,
.store-shell[data-customer-page="customerTip"] #testConfirmationCard,
.store-shell[data-customer-page="customerTip"] #embeddedCheckoutShell,
.store-shell[data-customer-page="customerTip"] #customerFlowNextButton,
.store-shell[data-customer-page="customerCheckout"] label[for="tipInput"] {
  display: none;
}

.store-shell[data-customer-page="customerInfo"] .pickup-panel,
.store-shell[data-customer-page="serviceInfo"] .pickup-panel,
.store-shell[data-customer-page="pickupInfo"] .pickup-panel,
.store-shell[data-customer-page="dropoffInfo"] .pickup-panel,
.store-shell[data-customer-page="customerInfo"] label[for="searchInput"],
.store-shell[data-customer-page="serviceInfo"] label[for="searchInput"],
.store-shell[data-customer-page="pickupInfo"] label[for="searchInput"],
.store-shell[data-customer-page="dropoffInfo"] label[for="searchInput"],
.store-shell[data-customer-page="customerInfo"] #searchInput,
.store-shell[data-customer-page="serviceInfo"] #searchInput,
.store-shell[data-customer-page="pickupInfo"] #searchInput,
.store-shell[data-customer-page="dropoffInfo"] #searchInput,
.store-shell[data-customer-page="customerInfo"] label[for="categoryFilter"],
.store-shell[data-customer-page="serviceInfo"] label[for="categoryFilter"],
.store-shell[data-customer-page="pickupInfo"] label[for="categoryFilter"],
.store-shell[data-customer-page="dropoffInfo"] label[for="categoryFilter"],
.store-shell[data-customer-page="customerInfo"] #categoryFilter,
.store-shell[data-customer-page="serviceInfo"] #categoryFilter,
.store-shell[data-customer-page="pickupInfo"] #categoryFilter,
.store-shell[data-customer-page="dropoffInfo"] #categoryFilter {
  display: none;
}

.request-info-card {
  display: none;
  gap: 10px;
}

.store-shell[data-customer-page="customerInfo"] [data-info-card="customerInfo"],
.store-shell[data-customer-page="serviceInfo"] [data-info-card="serviceInfo"],
.store-shell[data-customer-page="pickupInfo"] [data-info-card="pickupInfo"],
.store-shell[data-customer-page="dropoffInfo"] [data-info-card="dropoffInfo"] {
  display: grid;
}

.store-shell[data-customer-page="customerInfo"] .filters,
.store-shell[data-customer-page="serviceInfo"] .filters,
.store-shell[data-customer-page="pickupInfo"] .filters,
.store-shell[data-customer-page="dropoffInfo"] .filters {
  width: min(820px, 100%);
  margin: 0 auto;
}

.store-shell[data-customer-page="customerInfo"] .filters > h2,
.store-shell[data-customer-page="serviceInfo"] .filters > h2,
.store-shell[data-customer-page="pickupInfo"] .filters > h2,
.store-shell[data-customer-page="dropoffInfo"] .filters > h2 {
  text-align: center;
}

.membership-page {
  display: none;
  width: min(1480px, calc(100% - 32px));
  margin: 24px auto 72px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.membership-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.membership-card.featured {
  border-color: var(--fresh);
  box-shadow: 0 14px 28px rgba(231, 51, 131, 0.14);
}

.membership-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}

.membership-body {
  display: grid;
  gap: 10px;
  padding: 14px;
  align-content: start;
}

.membership-body h3,
.membership-body p,
.membership-body ul {
  margin: 0;
}

.membership-body ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.membership-body .checkout-button {
  align-self: end;
  margin-top: 4px;
}

.additional-stop-details {
  display: none;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.additional-stop-details.active {
  display: grid;
}

.location-helper {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.service-area-address-warning {
  margin-top: 8px;
  padding: 10px 12px;
  color: #9f1239;
  background: #fff1f2;
  border: 2px solid #e11d48;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.4;
}

.service-area-address-warning[hidden] {
  display: none;
}

input.field-error {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.13);
}

.location-suggestions {
  display: none;
  gap: 6px;
  margin-top: 8px;
}

.location-suggestions.active {
  display: grid;
}

.location-suggestions button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.location-suggestions span {
  color: var(--muted);
  font-size: 0.8rem;
}

.driver-home-summary {
  margin-bottom: 16px;
}

.driver-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.driver-status-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.driver-status-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-status-grid strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.driver-status-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.demand-pill.not-busy {
  background: #f4e9ff;
  color: var(--fresh-dark);
}

.demand-pill.busy {
  background: #fff0cf;
  color: #8a5a00;
}

.demand-pill.very-busy {
  background: #ffe1ee;
  color: var(--fresh);
}

.dispatch-waiting-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.dispatch-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dispatch-toolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.dispatch-toolbar span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dispatch-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dispatch-filter-actions button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--fresh-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.dispatch-filter-actions button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-color: transparent;
}

.dispatch-request-card {
  gap: 0;
}

.dispatch-request-card[open] {
  border-color: var(--fresh);
  box-shadow: 0 14px 30px rgba(126, 52, 104, 0.1);
}

.dispatch-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.dispatch-summary::-webkit-details-marker {
  display: none;
}

.dispatch-summary p {
  margin: 4px 0 0;
}

.dispatch-review-body {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dispatch-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dispatch-detail-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: #fffafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dispatch-detail-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dispatch-detail-item strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.dispatch-detail-wide {
  grid-column: 1 / -1;
}

.dispatch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatch-actions button,
.dispatch-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.dispatch-actions button:disabled {
  cursor: not-allowed;
  background: #cbb7d3;
}

.admin-reason-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-reason-field input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.system-link-card {
  color: inherit;
  text-decoration: none;
}

#handoffPinField {
  display: none;
}

#handoffPinField.active {
  display: grid;
}

.map-preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#customerMapCanvas {
  min-height: 150px;
  background: linear-gradient(135deg, #ffe8f2, #f2e8ff);
  border-radius: 8px;
}

.map-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hidden-field {
  display: none !important;
}

.filters,
.cart-panel,
.ops-column,
.admin-panel,
.admin-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filters,
.cart-panel {
  position: sticky;
  top: 82px;
  padding: 18px;
}

.filters h2,
.cart-panel h2,
.catalog h2,
.ops-column h2,
.admin-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.filters label,
.settings-form label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.filters input,
.filters select,
.filters textarea,
.settings-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.profile-form {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-form h3 {
  margin: 0;
  font-size: 1rem;
}

.delivery-choice {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-choice legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.delivery-choice label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.delivery-choice input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.details-guidance,
.shopping-estimate-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: var(--muted);
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.45;
}

.shopping-estimate-note strong {
  color: var(--fresh-dark);
}

.shopping-product-picker,
.shopping-product-suggestions,
.selected-shopping-products {
  display: grid;
  gap: 10px;
}

.shopping-product-picker {
  padding: 14px;
  background: linear-gradient(180deg, #fff7fb, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shopping-product-picker > div:first-child {
  display: grid;
  gap: 3px;
}

.shopping-product-picker > div:first-child span,
.selected-shopping-products > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.shopping-product-suggestions {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(126, 52, 104, 0.12);
}

.shopping-product-suggestion,
.selected-shopping-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shopping-product-suggestion {
  color: var(--ink);
  cursor: pointer;
}

.shopping-product-suggestion:hover,
.shopping-product-suggestion:focus-visible {
  background: #fff1f7;
  border-color: var(--fresh);
}

.shopping-product-suggestion > span:nth-child(2),
.selected-shopping-product > div:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shopping-product-suggestion small,
.selected-shopping-product span,
.selected-shopping-product small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.shopping-product-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-radius: 8px;
  font-weight: 900;
}

.shopping-product-quantity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.shopping-product-quantity button {
  min-width: 34px;
  min-height: 34px;
  color: var(--fresh-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.shopping-product-quantity .remove-shopping-product {
  padding: 0 9px;
}

.shopping-product-empty {
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.shopping-estimate-confidence {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.shopping-estimate-confidence.ready {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.shopping-estimate-confidence.needs-review,
.shopping-estimate-warning {
  color: #9f1239;
  font-weight: 800;
}

.shopping-estimate-confidence.needs-review {
  background: #fff1f2;
  border: 1px solid #fda4af;
}

@media (max-width: 640px) {
  .shopping-product-suggestion,
  .selected-shopping-product {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shopping-product-suggestion > strong,
  .shopping-product-quantity {
    grid-column: 1 / -1;
  }
}

.mini-heading {
  margin-bottom: 2px;
}

.profile-save {
  margin-top: 14px;
}

.pickup-panel {
  margin-top: 18px;
  padding: 14px;
  background: #edf8f4;
  border-radius: 8px;
}

.pickup-panel span,
.admin-metrics span,
.admin-metrics small {
  color: var(--muted);
  font-size: 0.84rem;
}

.pickup-panel strong {
  display: block;
  margin-top: 4px;
}

.pickup-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.catalog {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading > span {
  color: var(--muted);
  font-weight: 700;
}

.compact {
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  min-height: 398px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(28, 45, 52, 0.08);
}

.product-card.selected-card {
  border-color: var(--fresh);
  box-shadow: 0 18px 38px rgba(231, 51, 131, 0.16);
}

.product-art {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff2f8;
}

.product-body {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.product-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-body h3 {
  margin: 0;
  color: var(--berry);
  font-size: 1.03rem;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.service-time-estimate {
  display: grid;
  gap: 8px;
  margin: 3px 0 2px;
  padding: 10px;
  background: linear-gradient(135deg, #fff4f9, #faf4ff);
  border: 1px solid #f3c9de;
  border-radius: 8px;
}

.service-time-estimate > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.service-time-estimate span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.service-time-estimate strong {
  color: var(--berry);
  font-size: 0.88rem;
  text-align: right;
}

.service-time-estimate .current-service-estimate strong {
  color: var(--fresh-dark);
  font-size: 0.96rem;
}

.service-time-estimate small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-footer strong {
  color: var(--berry);
  font-size: 1.15rem;
}

.product-footer button,
.order-card button {
  min-height: 38px;
  padding: 0 13px;
  color: #fff;
  background: var(--fresh-dark);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.product-footer button:disabled {
  cursor: not-allowed;
  background: #cbb7d3;
}

.service-stepper {
  display: inline-grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  overflow: hidden;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-stepper button {
  min-height: 38px;
  padding: 0;
  color: #fff;
  background: var(--fresh-dark);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.service-stepper span {
  text-align: center;
  color: var(--fresh-dark);
  font-weight: 900;
}

.locked-card {
  opacity: 0.68;
}

.locked-card .product-art {
  filter: grayscale(0.25);
}

.no-service-area-card {
  min-height: 0;
  background: linear-gradient(180deg, #fff7fb, #fff);
}

.no-service-area-body {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 16px;
}

.no-service-area-body h3,
.no-service-area-body p {
  margin: 0;
}

.no-service-area-body strong {
  color: var(--berry);
  font-size: 1.35rem;
}

.cart-panel {
  display: grid;
  gap: 14px;
}

.store-shell[data-customer-page="customerCheckout"] .cart-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.store-shell[data-customer-page="customerCheckout"] .cart-panel > h2 {
  text-align: center;
  color: var(--berry);
}

.store-shell[data-customer-page="customerCheckout"] .cart-panel > #cartItems {
  display: none;
}

.promo-code-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #fff1f8, #ffffff 58%, #f4edff);
  border: 2px solid rgba(231, 51, 131, 0.42);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(126, 52, 104, 0.14);
}

.promo-code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promo-code-heading span {
  color: var(--fresh-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-code-heading strong {
  color: var(--berry);
  font-size: 1.04rem;
}

.promo-code-panel input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(231, 51, 131, 0.38);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
}

.checkout-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkout-summary-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 12px;
  color: var(--ink);
  background: linear-gradient(180deg, #fffafd, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(126, 52, 104, 0.08);
}

.checkout-summary-card h3 {
  margin: 0;
  color: var(--berry);
  font-size: 1rem;
}

.checkout-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.checkout-card-lines {
  display: grid;
  gap: 3px;
}

.checkout-card-lines strong {
  color: var(--berry);
}

.checkout-card-lines span {
  color: var(--muted);
}

.payment-summary-card,
.delivery-code-card {
  background: linear-gradient(145deg, #fff4fb, #f7edff);
}

.payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(231, 51, 131, 0.14);
}

.payment-line span {
  color: var(--muted);
}

.payment-line strong {
  color: var(--berry);
}

.payment-total {
  margin-top: 4px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border: 0;
  border-radius: 8px;
}

.payment-total span,
.payment-total strong {
  color: #fff;
}

.tax-note {
  font-size: 0.78rem;
}

.delivery-code-badge {
  justify-self: start;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.legacy-total-values,
.store-shell:not([data-customer-page="customerCheckout"]) #checkoutReviewGrid {
  display: none;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.cart-line-actions button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--fresh-dark);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.empty-state {
  color: var(--muted);
  padding: 18px 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.checkout-button {
  width: 100%;
  color: #fff;
  background: var(--coral);
}

.checkout-button:disabled {
  cursor: wait;
  background: #cbb7d3;
}

.checkout-status {
  min-height: 20px;
  margin: 0;
  color: var(--fresh-dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.test-confirmation-card {
  display: none;
  border-color: #93d7bd;
  background: #effbf5;
}

.test-confirmation-card.active {
  display: grid;
}

.test-confirmation-card strong {
  color: #155b43;
}

.embedded-checkout-shell {
  display: none;
  gap: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 245, 250, 0.98), rgba(249, 233, 255, 0.96)),
    #fff;
  border: 1px solid rgba(231, 51, 131, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(126, 52, 104, 0.12);
}

.embedded-checkout-shell.active {
  display: grid;
}

.embedded-checkout-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  border-radius: 8px;
  font-weight: 900;
}

.embedded-checkout-brand strong {
  white-space: nowrap;
}

.stripe-embedded-checkout {
  min-height: 420px;
}

.embedded-checkout-shell.test-mode .stripe-embedded-checkout {
  min-height: 0;
}

.embedded-loading {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.fake-payment-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fake-payment-card h3,
.fake-payment-card p {
  margin: 0;
}

.fake-payment-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.fake-payment-card input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.fake-payment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fake-payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  color: var(--fresh-dark);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.tip-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.tip-field input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tip-field textarea {
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.shop-details {
  display: none;
  gap: 12px;
  padding: 12px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shop-details.active {
  display: grid;
}

.secondary-admin-action {
  min-height: 40px;
  color: var(--fresh-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.secondary-admin-action.active {
  color: #fff;
  background: var(--fresh-dark);
  border-color: var(--fresh-dark);
}

.nonpartner-order-entry {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nonpartner-order-entry small,
.form-help {
  color: var(--muted);
  font-size: 0.85rem;
}

.external-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.flow-actions,
.social-login-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.save-login-option {
  display: flex;
  align-items: center;
  gap: 8px !important;
}

.save-login-option input {
  min-height: auto;
}

.tip-page-image {
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(126, 52, 104, 0.12);
}

.tip-choice-card {
  display: none;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 14px;
  background: #fff7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.store-shell[data-customer-page="customerTip"] .tip-choice-card {
  display: grid;
}

.store-shell:not([data-customer-page="customerTip"]) #tipAmountField,
.store-shell:not([data-customer-page="customerTip"]) #applyTipButton {
  display: none !important;
}

.tip-choice-card h3,
.tip-choice-card p {
  margin: 0;
}

.tip-choice-card p {
  color: var(--muted);
  line-height: 1.45;
}

.tip-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(480px, 100%);
}

.tip-amount-field {
  margin-top: 14px;
}

.shopping-driver-panel h3 {
  margin: 0 0 10px;
}

.payment-note,
.discount-box,
.request-profile {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.45;
}

.discount-box {
  display: grid;
  gap: 4px;
}

.request-profile {
  display: grid;
  gap: 5px;
}

.request-profile strong {
  color: var(--ink);
}

.discount-total {
  color: var(--fresh);
  border-top: 0;
  padding-top: 0;
}

.shopping-hold-total {
  color: var(--fresh-dark);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1480px, calc(100% - 32px));
  margin: 42px auto 24px;
  align-items: end;
}

.workspace-header h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-strip span {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.operations-grid,
.admin-layout,
.driver-dashboard {
  display: grid;
  gap: 18px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 60px;
}

.operations-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.driver-dashboard {
  margin-top: 0;
}

.ops-column,
.admin-panel,
.driver-dashboard {
  padding: 18px;
}

.driver-dashboard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-card,
.alert-card {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.order-card:last-child,
.alert-card:last-child {
  border-bottom: 0;
}

.order-top,
.alert-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  align-self: start;
  padding: 5px 8px;
  color: var(--fresh-dark);
  background: #e6f5f0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-card p,
.alert-card p {
  margin: 0;
  color: var(--muted);
}

.route-preview {
  display: grid;
  gap: 6px;
  padding: 10px;
  color: var(--muted);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.route-preview strong {
  color: var(--ink);
}

.driver-job-card {
  display: grid;
  gap: 16px;
}

.driver-job-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.driver-job-main h3 {
  margin: 10px 0 6px;
}

.driver-job-main p {
  margin: 0;
  color: var(--muted);
}

.driver-info-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.driver-info-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.driver-info-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-map-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--fresh-dark);
  text-decoration: none;
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-action {
  border: 0;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 18px;
}

.admin-metric-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-metric-card:hover,
.admin-metric-card:focus-visible {
  border-color: var(--fresh);
  transform: translateY(-1px);
}

.admin-metrics strong {
  font-size: 1.8rem;
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-bottom: 18px;
}

.policy-layout {
  margin-bottom: 60px;
}

.integration-list {
  display: grid;
  gap: 12px;
}

.driver-contact-actions,
.daily-download-list {
  display: grid;
  gap: 8px;
}

.driver-contact-actions {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.daily-update-button {
  margin-top: 16px;
}

.integration-list div,
.terms-link,
.stack-list {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--muted);
  background: #fff5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.driver-document-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 14px;
  color: var(--muted);
  text-decoration: none;
  background: linear-gradient(180deg, #fff7fb, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.driver-document-links a:hover,
.driver-document-links a:focus-visible {
  transform: translateY(-1px);
  border-color: var(--fresh);
  box-shadow: 0 8px 20px rgba(125, 44, 141, 0.12);
}

.driver-document-links a strong,
.driver-document-links a span {
  grid-column: 1;
}

.driver-document-links a strong {
  color: var(--ink);
}

.driver-document-links a em {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--fresh-dark);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
}

.integration-list strong,
.stack-list strong {
  color: var(--ink);
}

.terms-link {
  margin-top: 14px;
  color: var(--fresh-dark);
  text-decoration: none;
  font-weight: 800;
}

.stack-list {
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-form {
  display: grid;
  gap: 2px;
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 1120px) {
  .store-shell,
  .operations-grid,
  .admin-layout,
  .driver-info-grid,
  .staff-login-panel {
    grid-template-columns: 1fr;
  }

  .filters,
  .cart-panel {
    position: static;
  }

  .product-grid,
  .admin-metrics,
  .membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pay-summary,
  .availability-block-grid,
  .driver-weekly-schedule,
  .quick-reply-grid,
  .export-format-actions,
  .monthly-activity-overview,
  .monthly-activity-breakdown {
    grid-template-columns: 1fr;
  }

  .driver-document-links a {
    grid-template-columns: 1fr;
  }

  .driver-document-links a em {
    grid-column: 1;
    grid-row: auto;
  }

  .availability-exact-time-heading,
  .availability-exact-time-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-direct-message-grid,
  .admin-customer-grid {
    grid-template-columns: 1fr;
  }

  .admin-message-request-header,
  .message-section-heading {
    display: grid;
  }

  .dispatch-toolbar,
  .dispatch-summary {
    display: grid;
  }

  .dispatch-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  /* Keep the decorative login background inside the phone viewport. */
  .login-hero::before {
    width: 100%;
  }

  .owner-status-summary {
    grid-template-columns: 1fr;
  }

  .owner-status-actions button {
    flex: 1 1 calc(50% - 8px);
  }

  .customer-cart-summary {
    top: max(18px, calc(env(safe-area-inset-top) + 12px));
    right: 12px;
    max-width: calc(100% - 104px);
    gap: 6px;
  }

  body[data-customer-mode="request"] #storefront.view.active,
  body[data-customer-mode="memberships"] #storefront.view.active,
  body[data-customer-mode="account"] #storefront.view.active,
  body[data-customer-mode="orders"] #storefront.view.active,
  body[data-customer-mode="payments"] #storefront.view.active {
    padding-top: max(96px, calc(env(safe-area-inset-top) + 88px));
  }

  .customer-resume-cart {
    min-height: 40px;
    padding: 7px 9px;
  }

  .customer-resume-cart .cart-icon {
    display: none;
  }

  .resume-cart-copy small {
    display: none;
  }

  .customer-running-total {
    min-width: 86px;
    padding: 6px 9px;
  }

  .customer-running-total strong {
    font-size: 0.9rem;
  }

  .promo-code-heading {
    display: grid;
  }

  .checkout-review-grid {
    grid-template-columns: 1fr;
  }

  .staff-login-toggle {
    top: 12px;
    right: 12px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
  }

  .nav-link {
    flex: 1 0 104px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    padding: 80px 0 92px;
  }

  .store-shell {
    margin-top: -36px;
  }

  .product-grid,
  .admin-metrics,
  .membership-grid,
  .driver-status-grid,
  .dispatch-detail-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    display: grid;
  }

  .status-strip {
    justify-content: flex-start;
  }

  table {
    min-width: 640px;
  }

  .admin-panel:first-child {
    overflow-x: auto;
  }
}

/* Polished app theme layer */
body {
  background:
    linear-gradient(180deg, rgba(255, 246, 250, 0.98), rgba(255, 241, 247, 0.96) 48%, rgba(255, 248, 251, 0.98)),
    repeating-linear-gradient(135deg, rgba(231, 51, 131, 0.045) 0 1px, transparent 1px 18px);
}

.topbar {
  grid-template-columns: minmax(160px, 1fr) auto auto auto;
  box-shadow: 0 10px 30px rgba(122, 45, 103, 0.08);
}

.brand {
  font-size: 1.04rem;
}

.brand img {
  background: #fff;
  box-shadow: 0 6px 18px rgba(75, 40, 133, 0.12);
}

.nav-tabs,
.driver-tabs {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(244, 201, 220, 0.9);
}

.nav-link,
.driver-tab {
  font-weight: 800;
}

.nav-link.active,
.driver-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  box-shadow: 0 10px 20px rgba(139, 75, 198, 0.18);
}

.cart-button,
.notify-button {
  justify-self: end;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--fresh-dark));
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(75, 40, 133, 0.18);
}

.notify-button {
  background: #fff;
  color: var(--fresh-dark);
  border: 1px solid var(--line);
}

.hero-logo {
  box-shadow: 0 16px 36px rgba(75, 40, 133, 0.14);
}

.login-hero h1,
.hero h1,
.workspace-header h1 {
  text-wrap: balance;
}

.login-panel,
.filters,
.cart-panel,
.product-card,
.ops-column,
.admin-panel,
.admin-metric-card,
.driver-dashboard {
  border-color: rgba(244, 201, 220, 0.88);
  box-shadow: 0 18px 45px rgba(126, 52, 104, 0.12);
}

.login-panel,
.filters,
.cart-panel,
.ops-column,
.admin-panel,
.driver-dashboard {
  background: rgba(255, 255, 255, 0.96);
}

.login-panel {
  position: relative;
  overflow: hidden;
}

.login-panel::before {
  content: "";
  height: 6px;
  background: linear-gradient(90deg, var(--fresh), var(--fresh-dark), var(--gold));
  position: absolute;
  inset: 0 0 auto;
}

.hero {
  min-height: min(76vh, 740px);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(51, 25, 62, 0.86), rgba(110, 49, 112, 0.38) 58%, rgba(51, 25, 62, 0.08)),
    linear-gradient(0deg, rgba(52, 36, 61, 0.24), transparent 45%);
}

.eyebrow {
  color: var(--fresh);
}

.hero .eyebrow {
  color: #ffd5e5;
}

.primary-action,
.checkout-button,
.product-footer button,
.order-card button {
  background: linear-gradient(135deg, var(--fresh), var(--fresh-dark));
  box-shadow: 0 10px 22px rgba(231, 51, 131, 0.22);
  font-weight: 800;
}

.secondary-action,
.secondary-map-action,
.secondary-admin-action,
.cart-line-actions button {
  font-weight: 800;
}

.primary-action:hover,
.checkout-button:hover,
.product-footer button:hover,
.order-card button:hover,
.cart-button:hover,
.notify-button:hover {
  transform: translateY(-1px);
}

.primary-action,
.checkout-button,
.product-footer button,
.order-card button,
.cart-button,
.notify-button,
.driver-tab,
.nav-link,
.secondary-admin-action,
.cart-line-actions button {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select,
textarea,
.login-panel input,
.schedule-form input,
.tip-field input,
.tip-field textarea {
  background: #fffafd;
  border-color: rgba(244, 201, 220, 0.96);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(231, 51, 131, 0.16);
  border-color: var(--fresh);
}

.pickup-panel,
.payment-note,
.discount-box,
.request-profile,
.route-preview,
.driver-info-grid div,
.pay-summary article,
.integration-list div,
.terms-link,
.stack-list,
.shop-details {
  background: linear-gradient(180deg, #fff7fb, #fff);
}

.product-card {
  align-content: start;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(126, 52, 104, 0.18);
}

.product-art {
  border-bottom: 1px solid var(--line);
}

.product-body h3,
.driver-job-main h3,
.section-heading h2,
.login-panel h2 {
  color: var(--berry);
}

.product-meta span,
.pill {
  background: #fff1f8;
  color: var(--fresh-dark);
  border: 1px solid rgba(244, 201, 220, 0.9);
  border-radius: 999px;
  padding: 5px 9px;
}

.cart-total {
  font-size: 0.96rem;
}

.cart-total strong,
.admin-metrics strong,
.pay-summary strong {
  color: var(--berry);
}

.workspace-header {
  padding: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(244, 201, 220, 0.72);
  border-radius: 8px;
}

.status-strip span {
  box-shadow: 0 10px 20px rgba(126, 52, 104, 0.08);
}

.admin-metric-card {
  background: linear-gradient(180deg, #fff, #fff7fb);
}

.alert-card,
.order-card {
  padding: 14px;
  border: 1px solid rgba(244, 201, 220, 0.72);
  border-radius: 8px;
  background: #fff;
}

table {
  overflow: hidden;
  border-radius: 8px;
}

th {
  background: #fff5fa;
}

@media (min-width: 1121px) {
  .store-shell[data-customer-page="customerServices"],
  .store-shell[data-customer-page="customerAddons"],
  .store-shell[data-customer-page="customerAreas"] {
    width: min(1500px, calc(100% - 24px));
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .store-shell[data-customer-page="customerServices"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-shell[data-customer-page="customerAddons"] .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .store-shell[data-customer-page="customerAreas"] .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .store-shell[data-customer-page="customerServices"] .product-card,
  .store-shell[data-customer-page="customerAddons"] .product-card,
  .store-shell[data-customer-page="customerAreas"] .product-card {
    min-height: 0;
  }

  .store-shell[data-customer-page="customerServices"] .product-art,
  .store-shell[data-customer-page="customerAddons"] .product-art,
  .store-shell[data-customer-page="customerAreas"] .product-art {
    max-height: 210px;
    object-fit: contain;
  }

  .store-shell[data-customer-page="customerServices"] .product-art {
    aspect-ratio: 2 / 1;
  }

  .store-shell[data-customer-page="customerAddons"] .product-art {
    aspect-ratio: 3 / 2;
    max-height: 158px;
  }

  .store-shell[data-customer-page="customerAreas"] .product-art {
    aspect-ratio: 3 / 2;
    max-height: 190px;
  }

  .store-shell[data-customer-page="customerServices"] .product-body,
  .store-shell[data-customer-page="customerAddons"] .product-body,
  .store-shell[data-customer-page="customerAreas"] .product-body {
    gap: 7px;
    padding: 10px 12px 12px;
  }

  .store-shell[data-customer-page="customerAddons"] .product-body p,
  .store-shell[data-customer-page="customerAreas"] .product-body p {
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .store-shell[data-customer-page="customerAddons"] .product-body h3,
  .store-shell[data-customer-page="customerAreas"] .product-body h3 {
    font-size: 0.96rem;
  }

  .store-shell[data-customer-page="customerAddons"] .product-footer,
  .store-shell[data-customer-page="customerAreas"] .product-footer {
    display: grid;
    align-items: stretch;
    gap: 8px;
  }

  .store-shell[data-customer-page="customerAddons"] .product-footer button,
  .store-shell[data-customer-page="customerAreas"] .product-footer button {
    width: 100%;
  }
}

/* Branded canvas surfaces: replace stark white empty space without reducing form readability. */
main,
.view.active,
#storefront,
.store-shell,
.customer-account-page,
.membership-page {
  background: linear-gradient(145deg, #fff0f7 0%, #f9eafa 48%, #eee3ff 100%);
}

.product-card,
.membership-card,
.filters,
.cart-panel,
.login-panel,
.admin-panel,
.admin-metric-card,
.driver-dashboard,
.ops-column {
  background: linear-gradient(165deg, #fff8fc 0%, #fcecf7 55%, #f3ebff 100%);
}

.product-art,
.membership-card > img {
  background: linear-gradient(135deg, #ffdcea 0%, #f6dff3 48%, #e8dcff 100%);
}

.admin-preview-shell {
  background: linear-gradient(145deg, #ffeaf4, #efe4ff);
}

.admin-preview-stage {
  background: linear-gradient(135deg, #eec6dc, #d9c8ef);
}

.admin-preview-stage iframe {
  background: #f9eafa;
}

@media (max-width: 900px) {
  .account-grid,
  .membership-perk-grid,
  .checkout-review-grid {
    grid-template-columns: 1fr;
  }

  .membership-active-card {
    align-items: stretch;
    flex-direction: column;
  }

  .membership-actions {
    justify-content: stretch;
  }

  .membership-actions button {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .notify-button {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .driver-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .driver-tab {
    flex: 0 0 auto;
    min-width: 118px;
  }
}
/* Auto-Approval settings */
.auto-approval-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.auto-approval-hero h2, .auto-approval-layout h2, .auto-approval-log-panel h2 { margin: 0; }
.auto-approval-status { min-width: 220px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.72); border: 1px solid rgba(65,48,34,.12); }
.auto-approval-status strong, .auto-approval-status span { display: block; }
.auto-approval-status.active { background: #e8f6ec; border-color: #9ecfae; color: #1f6638; }
.auto-approval-layout { align-items: stretch; }
.auto-approval-layout > .admin-panel { min-width: 0; }
.switch-control, .check-row { display: flex !important; align-items: center; gap: 10px; }
.switch-control input, .check-row input { width: auto; accent-color: #9b5f3d; }
.money-input { display: flex; align-items: center; gap: 8px; }
.money-input span { font-weight: 800; }
.money-input input { flex: 1; }
.safety-list { display: grid; gap: 7px; margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(155,95,61,.08); }
.safety-list span::before { content: "•"; margin-right: 8px; color: #9b5f3d; }
.auto-approval-schedule { display: grid; gap: 10px; }
.schedule-row { display: grid; grid-template-columns: minmax(105px, 1fr) 1fr auto 1fr; align-items: center; gap: 9px; }
.schedule-row label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.schedule-row input[type="checkbox"] { width: auto; accent-color: #9b5f3d; }
.schedule-row input[type="time"] { min-width: 0; }
.away-mode-panel { grid-column: 1 / -1; }
.away-quick-actions, .away-time-fields, .auto-approval-save { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.away-time-fields { margin: 16px 0; }
.away-time-fields label { flex: 1 1 220px; }
.auto-approval-save { grid-column: 1 / -1; justify-content: flex-end; }
.auto-approval-log-panel { margin-top: 20px; }
.auto-approval-log-entry { display: grid; grid-template-columns: minmax(140px,.7fr) minmax(180px,1fr) minmax(260px,2fr); gap: 14px; padding: 16px 0; border-top: 1px solid rgba(65,48,34,.12); }
.auto-approval-log-entry:first-child { border-top: 0; }
.auto-approval-log-entry span, .auto-approval-log-entry small { display: block; }
.auto-approval-log-entry .pill { display: inline-block; }
@media (max-width: 720px) {
  .auto-approval-hero { align-items: stretch; flex-direction: column; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .schedule-row > span { display: none; }
  .auto-approval-log-entry { grid-template-columns: 1fr; }
}
/* Restaurant partner marketplace and one-page editor */
.restaurant-login-panel { border-top: 4px solid #d92f7d; }
.restaurant-marketplace {
  max-width: 1180px; margin: 24px auto; padding: 28px; border-radius: 28px;
  background: linear-gradient(145deg, #fff 0%, #fff7fb 100%); box-shadow: 0 20px 55px rgba(48, 35, 75, .12);
}
.restaurant-marketplace[aria-hidden="true"] { display: none; }
.restaurant-marketplace-intro { max-width: 720px; color: #5d5766; }
.different-pickup-card { width: 100%; display: grid; gap: 6px; margin: 20px 0; padding: 20px; text-align: left; border: 2px dashed #d92f7d; border-radius: 18px; color: #4a2440; background: #fff5fa; cursor: pointer; }
.different-pickup-card strong { font-size: 1.1rem; }
.different-pickup-card span { color: #685c68; }
.restaurant-store-grid, .restaurant-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 22px; }
.restaurant-store-grid[hidden], .restaurant-public-menu[hidden] { display: none !important; }
.restaurant-store-card, .restaurant-menu-card, .restaurant-setup-card {
  background: #fff; border: 1px solid #eee3ed; border-radius: 22px; box-shadow: 0 10px 26px rgba(62, 41, 78, .08);
}
.restaurant-store-card { overflow: hidden; text-align: left; padding: 0; cursor: pointer; color: inherit; }
.restaurant-store-card img, .restaurant-menu-card img { width: 100%; height: 150px; object-fit: cover; background: #f7eef7; }
.restaurant-store-card-body, .restaurant-menu-card-body { padding: 17px; }
.restaurant-store-card h3, .restaurant-menu-card h3 { margin: 0 0 6px; }
.restaurant-store-card span, .restaurant-menu-card p { color: #68606d; }
.restaurant-public-menu { margin-top: 26px; }
.restaurant-public-header { padding: 26px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #d92f7d, #7950bd); }
.restaurant-public-header .secondary-admin-action { background: #fff; }
.restaurant-deals-strip { display: grid; gap: 10px; margin: 18px 0; }
.restaurant-deal-public { padding: 13px 16px; border-radius: 14px; background: #fff0f7; border: 1px solid #f4c4da; }
.restaurant-menu-card { overflow: hidden; }
.restaurant-menu-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.restaurant-food-cart { position: static; max-width: 720px; margin: 18px auto 4px; padding: 12px 14px; border: 1px solid #eadfea; border-radius: 12px; color: #4a2440; background: #fff; box-shadow: 0 5px 16px rgba(74,36,64,.08); }
.restaurant-food-cart-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.restaurant-food-cart-heading span { color: #766579; font-size: .9rem; }
.restaurant-food-cart-lines { display: grid; gap: 7px; margin: 10px 0; }
.restaurant-food-cart-line { display: flex; justify-content: space-between; gap: 12px; }
.restaurant-workspace-header { background: linear-gradient(120deg, #fff1f7, #f1eaff); }
.restaurant-dashboard-shell { max-width: 1050px; margin: 0 auto; padding: 24px; }
.restaurant-dashboard-menu { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 12px; border-radius: 14px; background: #292038; }
.restaurant-dashboard-select-label { color: #fff; font-weight: 700; }
.restaurant-dashboard-menu select { min-width: 240px; padding: 10px 12px; border: 0; border-radius: 9px; color: #4a2440; background: #fff; font: inherit; font-weight: 700; }
.restaurant-dashboard-page { display: none; }
.restaurant-dashboard-page.active { display: block; }
.restaurant-order-board { display: grid; gap: 14px; }
.restaurant-order-card { padding: 18px; border: 1px solid #eadfea; border-radius: 16px; background: #fff; }
.restaurant-order-top, .restaurant-order-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.restaurant-order-lines { display: grid; gap: 6px; margin: 12px 0; }
.restaurant-order-card small, .restaurant-order-card p { color: #6b6170; }
.restaurant-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.restaurant-setup-card { padding: 24px; margin-bottom: 20px; }
.restaurant-welcome-card { border-left: 6px solid #d92f7d; }
.restaurant-save-indicator { display: inline-block; padding: 7px 11px; border-radius: 999px; color: #7b2251; background: #ffe6f2; font-weight: 700; }
.restaurant-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.restaurant-form-grid label, .restaurant-hours-grid label, .restaurant-item-editor label { display: grid; gap: 7px; font-weight: 700; }
.restaurant-form-grid input, .restaurant-form-grid textarea, .restaurant-hours-grid input, .restaurant-item-editor input, .restaurant-item-editor textarea {
  width: 100%; border: 1px solid #d8ced9; border-radius: 12px; padding: 12px; font: inherit;
}
.wide-field { grid-column: 1 / -1; }
.restaurant-hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.restaurant-editor-list { display: grid; gap: 14px; }
.restaurant-item-editor { display: grid; grid-template-columns: 1.3fr .8fr .55fr 1.5fr auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid #eadfea; border-radius: 16px; background: #fffafd; }
.restaurant-item-editor .description-field { grid-column: span 2; }
.restaurant-item-editor img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #f3edf4; }
.restaurant-publish-bar { position: sticky; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 2px solid #d92f7d; z-index: 4; }
.restaurant-publish-bar div { display: grid; gap: 4px; }
.restaurant-publish-bar .checkout-status { margin: 0; }
@media (max-width: 760px) {
  .restaurant-form-grid, .restaurant-item-editor { grid-template-columns: 1fr; }
  .wide-field, .restaurant-item-editor .description-field { grid-column: auto; }
  .restaurant-publish-bar { align-items: stretch; flex-direction: column; }
  .restaurant-marketplace { margin: 10px; padding: 18px; }
}
