﻿@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

.branding_settings_page {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 40px 28px;
}

.branding_settings_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.branding_settings_eyebrow {
  margin: 0 0 8px;
  color: var(--brand-green-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branding_settings_header h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 36px;
  line-height: 1.1;
}

.branding_settings_header p:not(.branding_settings_eyebrow) {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.branding_back_link {
  display: inline-flex;
  min-height: var(--button-min-height);
  align-items: center;
  border: 1px solid var(--secondary-button-border);
  border-radius: var(--border-radius);
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
}

.branding_settings_alert {
  width: 100%;
  max-width: none;
  margin-bottom: 22px;
}

.branding_settings_form {
  display: grid;
  gap: 0;
}

.branding_settings_section,
.branding_live_preview {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 48px;
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.branding_settings_section_intro h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 19px;
}

.branding_settings_section_intro p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.45;
}

.branding_readonly_name {
  display: grid;
  align-self: start;
  gap: 6px;
  border-left: 4px solid var(--accent);
  padding: 10px 0 10px 16px;
}

.branding_readonly_name span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.branding_readonly_name strong {
  color: var(--foreground);
  font-size: 19px;
}

.webhook_settings_panel {
  display: grid;
  gap: 16px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 20px;
}

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

.webhook_environment_card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

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

.webhook_environment_header > div {
  display: grid;
  gap: 6px;
}

.webhook_environment_label {
  color: var(--foreground);
  font-size: 16px;
  font-weight: 800;
}

.webhook_current_badge {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webhook_current_environment {
  margin: 0;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.webhook_settings_url {
  display: grid;
  gap: 7px;
}

.webhook_settings_url > span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.webhook_status_badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 13px;
}

.webhook_status_badge.is_enabled {
  background: color-mix(in srgb, var(--brand-green-strong) 16%, transparent);
  color: var(--brand-green-strong);
}

.webhook_status_badge.is_partial,
.webhook_status_badge.is_loading {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.webhook_status_badge.is_disabled,
.webhook_status_badge.is_error {
  background: color-mix(in srgb, var(--danger) 15%, transparent);
  color: color-mix(in srgb, var(--danger) 76%, var(--foreground));
}

.webhook_settings_url code {
  overflow-wrap: anywhere;
  border-radius: 7px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 11px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.webhook_settings_details,
.webhook_settings_action_status {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}

.webhook_settings_action_status.is_error {
  color: var(--danger);
}

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

.webhook_settings_actions button {
  min-height: 42px;
}

@media (max-width: 760px) {
  .webhook_environment_grid {
    grid-template-columns: 1fr;
  }
}

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

.branding_color_field {
  display: grid;
  gap: 9px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
}

.branding_color_field small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.branding_color_control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.branding_color_control input[type="color"] {
  width: 44px;
  height: 42px;
  flex: 0 0 44px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--card);
  padding: 4px;
}

.branding_color_control input[type="text"],
.branding_color_control input:not([type]) {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--card);
  color: var(--foreground);
  padding: 0 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.branding_color_control input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
  outline: none;
}

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

.branding_asset_field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: var(--foreground);
}

.branding_asset_field > span:not(.branding_asset_preview):not(.branding_default_choice) {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.4;
}

.branding_asset_field input[type="file"] {
  width: 100%;
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.branding_asset_preview {
  display: flex;
  height: 126px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.branding_asset_preview_light {
  background: #FFFFFF;
}

.branding_asset_preview_dark {
  background: #2e142c;
}

.branding_asset_preview img {
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}

.branding_icon_preview img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}

.branding_default_choice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.branding_default_choice input {
  accent-color: var(--primary);
}

.branding_preview_shell {
  display: grid;
  min-height: 300px;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 42px var(--brand-shadow);
}

.branding_preview_shell aside {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--dark-purple);
  color: var(--sidebar-foreground);
  padding: 24px 16px;
}

.branding_preview_shell aside img {
  width: 140px;
  min-width: 140px;
  max-width: 100%;
  height: 42px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.branding_preview_shell aside span {
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 13px;
}

.branding_preview_nav_active {
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
}

.branding_preview_content {
  padding: 42px;
}

.branding_preview_kicker {
  color: var(--brand-green-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.branding_preview_content h3 {
  margin: 10px 0 8px;
  font-size: 25px;
}

.branding_preview_content p {
  max-width: 480px;
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.branding_preview_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.branding_preview_actions span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 5px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.branding_preview_actions span:first-child {
  background: var(--primary);
  color: var(--primary-foreground);
}

.branding_preview_actions span:last-child {
  background: var(--accent);
  color: var(--accent-foreground);
}

.branding_preview_palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.branding_preview_palette span {
  display: flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
}

.branding_settings_actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.floor_plan_settings_controls {
  display: grid;
  max-width: 560px;
  gap: 8px;
}

.floor_plan_settings_section > .branding_settings_section_intro {
  grid-row: 1 / span 5;
}

.floor_plan_settings_section > :not(.branding_settings_section_intro) {
  grid-column: 2;
}

.floor_plan_settings_controls select,
.floor_plan_settings_controls input[type="file"],
.floor_plan_editor_sidebar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--foreground);
  padding: 9px 11px;
  font: inherit;
}

.floor_plan_settings_controls small,
.floor_plan_editor_sidebar p {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}

.floor_plan_table_settings {
  display: grid;
  max-width: 720px;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.floor_plan_table_settings p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

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

.floor_plan_table_active_toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
}

.floor_plan_table_active_toggle.is_inactive {
  color: var(--muted-foreground);
  background: var(--muted);
}

.floor_plan_table_identity {
  display: grid;
  gap: 2px;
}

.floor_plan_table_capacity {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
}

.floor_plan_table_active_toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.floor_plan_editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.floor_plan_editor[hidden] {
  display: none;
}

.floor_plan_editor_sidebar {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(260px, 1fr);
  align-items: end;
  gap: 8px 20px;
}

.floor_plan_editor_sidebar > label,
.floor_plan_editor_sidebar > select {
  grid-column: 1;
}

.floor_plan_editor_sidebar > p,
.floor_plan_editor_sidebar > button {
  grid-column: 2;
}

.floor_plan_editor_sidebar > p {
  grid-row: 1;
  align-self: end;
}

.floor_plan_editor_sidebar > button {
  grid-row: 2;
  justify-self: start;
}

.floor_plan_editor_sidebar p {
  margin: 0;
}

.floor_plan_unmapped {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.floor_plan_unmapped ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.floor_plan_editor_stage {
  min-width: 0;
  overflow: auto;
}

.floor_plan_editor_canvas {
  position: relative;
  min-width: 640px;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--muted);
  cursor: crosshair;
}

.floor_plan_editor_canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.floor_plan_editor_hotspots {
  position: absolute;
  inset: 0;
}

.floor_plan_admin_hotspot {
  position: absolute;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 68%, transparent);
  color: var(--foreground);
  padding: 4px;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--foreground) 14%, transparent);
  backdrop-filter: blur(1.5px);
  font: inherit;
  cursor: grab;
  touch-action: none;
}

.floor_plan_admin_hotspot_number {
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.floor_plan_admin_hotspot_resize {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--card);
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 42%, var(--primary) 43%, var(--primary) 57%, transparent 58%),
    color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--foreground) 22%, transparent);
  cursor: nwse-resize;
  touch-action: none;
}

.floor_plan_admin_hotspot:active {
  cursor: grabbing;
}

.floor_plan_admin_hotspot.is_selected {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

.floor_plan_admin_hotspot.is_inactive {
  border-color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 72%, transparent);
  color: var(--muted-foreground);
  cursor: not-allowed;
  opacity: 0.8;
}

.floor_plan_settings_actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.branding_reset_button,
.branding_save_button {
  min-height: 44px;
  border-radius: var(--border-radius);
  padding: 0 18px;
  font-weight: 700;
}

.branding_reset_button {
  border: 1px solid var(--secondary-button-border);
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
}

.branding_save_button {
  border: 1px solid var(--primary-button-border);
  background: var(--primary-button);
  color: var(--primary-button-foreground);
}

.branding_reset_modal[hidden] {
  display: none;
}

.branding_settings_page .branding_settings_version {
  margin-top: 28px;
  color: var(--muted-foreground);
  text-align: center;
}

@media (max-width: 820px) {
  .branding_settings_page {
    padding: 28px 20px 24px;
  }

  .branding_settings_header,
  .branding_settings_section,
  .branding_live_preview {
    grid-template-columns: 1fr;
  }

  .branding_settings_header {
    display: grid;
    gap: 18px;
  }

  .branding_back_link {
    width: fit-content;
  }

  .branding_settings_section,
  .branding_live_preview {
    gap: 22px;
  }

  .branding_color_fields,
  .branding_asset_fields {
    grid-template-columns: 1fr;
  }

  .branding_preview_shell {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .branding_preview_content {
    padding: 28px 22px;
  }

  .floor_plan_editor {
    grid-template-columns: 1fr;
  }

  .floor_plan_editor_sidebar {
    grid-template-columns: 1fr;
  }

  .floor_plan_editor_sidebar > label,
  .floor_plan_editor_sidebar > select,
  .floor_plan_editor_sidebar > p,
  .floor_plan_editor_sidebar > button,
  .floor_plan_unmapped {
    grid-column: 1;
    grid-row: auto;
  }

  .floor_plan_table_active_list {
    grid-template-columns: 1fr;
  }

  .floor_plan_settings_section > .branding_settings_section_intro,
  .floor_plan_settings_section > :not(.branding_settings_section_intro) {
    grid-row: auto;
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .branding_settings_page {
    padding-inline: 16px;
  }

  .branding_settings_header h1 {
    font-size: 30px;
  }

  .branding_preview_shell {
    grid-template-columns: 1fr;
  }

  .branding_preview_shell aside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .branding_preview_shell aside img {
    grid-column: 1 / -1;
  }

  .branding_settings_actions {
    flex-direction: column-reverse;
  }

  .webhook_settings_actions {
    display: grid;
  }

  .webhook_settings_actions button {
    width: 100%;
  }

  .branding_reset_button,
  .branding_save_button {
    width: 100%;
  }

  .floor_plan_settings_actions {
    flex-direction: column-reverse;
  }
}

.pos_logs_page {
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 40px 28px;
}

.pos_logs_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.pos_logs_header h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 36px;
  line-height: 1.1;
}

.pos_logs_header p:not(.branding_settings_eyebrow) {
  margin: 10px 0 0;
  color: var(--muted-foreground);
}

.pos_logs_filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 18px;
}

.pos_logs_filters label {
  display: grid;
  gap: 6px;
  color: var(--foreground);
  font-size: 12px;
  font-weight: 800;
}

.pos_logs_filters input,
.pos_logs_filters select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--background);
  color: var(--foreground);
  padding: 0 11px;
}

.pos_logs_filter_actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.pos_logs_filter_actions button {
  min-height: 42px;
}

.pos_logs_note,
.pos_logs_status {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.pos_logs_status.error,
.pos_logs_error {
  color: var(--destructive);
}

.pos_logs_table_wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.pos_logs_table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.pos_logs_table th,
.pos_logs_table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  color: var(--foreground);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.pos_logs_table th {
  background: color-mix(in srgb, var(--secondary) 54%, var(--card));
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pos_logs_table tbody tr:last-child td {
  border-bottom: 0;
}

.pos_logs_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.pos_logs_badge.is_success {
  background: #d9f8d9;
  color: #174a20;
}

.pos_logs_badge.is_failed {
  background: #fee3df;
  color: #8a2418;
}

.pos_logs_badge.is_pending {
  background: #fff0bf;
  color: #6d4e00;
}

.pos_logs_details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.pos_logs_details pre {
  width: min(520px, 70vw);
  max-height: 320px;
  overflow: auto;
  border-radius: 8px;
  background: var(--background);
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.pos_logs_error {
  max-width: 520px;
  margin: 10px 0 0;
  font-weight: 700;
}

.pos_logs_empty {
  padding: 32px !important;
  color: var(--muted-foreground) !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .pos_logs_page {
    padding: 28px 20px 24px;
  }

  .pos_logs_header {
    display: grid;
    gap: 18px;
  }

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

@media (max-width: 520px) {
  .pos_logs_page {
    padding-inline: 16px;
  }

  .pos_logs_header h1 {
    font-size: 30px;
  }

  .pos_logs_filters {
    grid-template-columns: 1fr;
  }

  .pos_logs_filter_actions,
  .pos_logs_filter_actions button {
    width: 100%;
  }
}

/* Returns is a self-contained request and refund module. */
.returns_workspace {
  display: grid;
  align-content: start;
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  gap: 18px;
}

.returns_loading {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted-foreground);
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.returns_loading[hidden] {
  display: none;
}

.returns_loading_spinner {
  animation: register_loading_spin 0.8s linear infinite;
  border: 3px solid var(--accent-surface);
  border-radius: 50%;
  border-top-color: var(--primary);
  display: inline-block;
  height: 18px;
  width: 18px;
}

.returns_workspace.is_loading .register_notice,
.returns_workspace.is_loading .returns_panel {
  opacity: 0.55;
  pointer-events: none;
}

.returns_workspace [data-returns-status]:empty {
  display: none;
}

.returns_panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.returns_panel h2 {
  margin: 0 0 8px;
}

.returns_panel_header,
.returns_request,
.return_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.returns_form_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.returns_form_grid label,
.return_item label,
.returns_decline_label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.returns_form_grid label[hidden] {
  display: none;
}

.returns_form_grid input,
.returns_form_grid select,
.return_item input,
.return_item select,
.returns_decline_label input,
.returns_decline_label textarea {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.returns_pos_note {
  color: var(--foreground);
  font-weight: 600;
}

.returns_quarantine_badge {
  background: #f5e8aa;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.returns_items,
.returns_requests {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.return_item,
.returns_request {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.return_item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 140px minmax(210px, 260px);
  align-items: end;
}

.return_item_select {
  display: flex !important;
  align-items: center;
  align-self: center;
  min-width: 0;
  gap: 10px;
}

.return_item_select input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.return_item_select span {
  min-width: 0;
}

.return_item_select strong {
  display: block;
  line-height: 1.35;
}

.return_item_select small {
  display: block;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-weight: 400;
}

.return_item_control {
  min-width: 0;
}

.return_item_control > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.return_item_control > span small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.return_item_control input,
.return_item_control select {
  width: 100%;
}

.return_item_note {
  grid-column: 2 / -1;
}

.returns_request h3,
.returns_request p {
  margin: 0;
}

.returns_request {
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
}

.returns_request_content {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.returns_request p {
  color: var(--muted-foreground);
  font-size: 14px;
}

.returns_request_state {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  justify-items: end;
  min-width: 150px;
}

.returns_status_badge {
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.returns_status_badge[data-return-status="approved"],
.returns_status_badge[data-return-status="refunded"] {
  background: #eaf5ec;
  color: #216e39;
}

.returns_status_badge[data-return-status="requested"] {
  background: #fff4db;
  color: #805500;
}

.returns_status_badge[data-return-status="declined"],
.returns_status_badge[data-return-status="failed"],
.returns_status_badge[data-return-status="refund-review-required"] {
  background: #fef0ee;
  color: #a6342b;
}

.returns_request_actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.return_refund_button {
  width: auto;
  min-width: 128px;
  min-height: 42px;
  padding: 10px 18px;
}

.returns_request_error {
  color: #b42318 !important;
  font-weight: 600;
}

.return_refund_modal {
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.return_refund_header {
  align-items: flex-start;
  margin: 0;
  border-bottom: 1px solid var(--border);
  padding: 24px 26px 20px;
}

.return_refund_header h2 {
  font-size: 24px;
  line-height: 1.2;
}

.return_refund_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.45;
}

.return_refund_body {
  display: grid;
  gap: 18px;
  padding: 20px 26px 26px;
}

.return_refund_summary {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  padding: 4px 16px;
}

.return_refund_summary p {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 11px 0;
}

.return_refund_summary p + p {
  border-top: 1px solid var(--border);
}

.return_refund_summary span {
  color: var(--muted-foreground);
}

.return_refund_summary strong {
  max-width: 62%;
  text-align: right;
}

.return_refund_fields {
  display: grid;
  gap: 16px;
}

.return_refund_field > span {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 800;
}

.return_refund_field input {
  min-height: 48px;
  font-size: 18px;
  font-weight: 700;
}

.return_refund_field textarea {
  min-height: 104px;
  line-height: 1.45;
}

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

.return_refund_field_label small {
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--foreground);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.return_refund_warning {
  margin: 0;
  border: 1px solid #e7a03c;
  border-radius: 10px;
  background: #fff7e7;
  color: #6d3b00;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.return_refund_cash_note,
.return_refund_status {
  margin: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.return_refund_cash_note {
  background: var(--accent-surface);
}

.return_refund_status {
  background: var(--accent-surface);
  color: var(--foreground);
  font-weight: 700;
}

.return_refund_status.error {
  background: #fef3f2;
  color: #b42318;
}

.return_refund_actions {
  margin-top: 2px;
}

.return_refund_actions button {
  min-height: 46px;
}

.returns_decline_label textarea {
  min-height: 90px;
  resize: vertical;
}

.returns_decline_actions {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .returns_workspace {
    overflow: visible;
    padding: 20px;
  }

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

  .return_item {
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: end;
  }

  .return_item_select,
  .return_item_note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .returns_workspace {
    padding: 16px;
  }

  .returns_form_grid {
    grid-template-columns: 1fr;
  }

  .returns_panel_header,
  .returns_request {
    align-items: flex-start;
    flex-direction: column;
  }

  .returns_request_state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
  }

  .returns_request_actions {
    margin-left: auto;
  }

  .return_item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .return_item_select,
  .return_item_note {
    grid-column: 1;
  }

  .return_refund_header {
    padding: 20px;
  }

  .return_refund_body {
    padding: 18px 20px 20px;
  }

  .return_refund_summary p {
    display: grid;
    gap: 4px;
  }

  .return_refund_summary strong {
    max-width: none;
    text-align: left;
  }

  .return_refund_actions {
    grid-template-columns: 1fr;
  }
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

.page_loading {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted-foreground);
  display: flex;
  gap: 10px;
  padding: 14px 16px;
}

.page_loading[hidden] {
  display: none;
}

.page_loading_spinner {
  animation: register_loading_spin 0.8s linear infinite;
  border: 3px solid var(--accent-surface);
  border-radius: 50%;
  border-top-color: var(--primary);
  display: inline-block;
  height: 18px;
  width: 18px;
}

.page_loading.error {
  background: #fff6f5;
  border-color: #f1b7b0;
  color: var(--danger);
}

.page_loading.error .page_loading_spinner {
  display: none;
}

.product_workspace .product_sync_loading {
  margin-bottom: 16px;
}

.is_page_loading [data-page-loading-content] {
  opacity: 0.55;
  pointer-events: none;
}

[data-inventory-status]:empty,
[data-store-pickup-status]:empty,
[data-local-delivery-status]:empty,
[data-promotions-status]:empty {
  display: none;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-ExtraBoldItalic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: #F6F2ED;
  --foreground: #2E142C;
  --card: #ffffff;
  --secondary: #C4AAD4;
  --secondary-foreground: #2E142C;
  --primary: #2E142C;
  --primary-foreground: #ffffff;
  --accent: #B7DCAE;
  --accent-foreground: #2E142C;
  --accent-surface: rgba(183, 220, 174, 0.16);
  --accent-strong-surface: rgba(183, 220, 174, 0.28);
  --accent-border: rgba(58, 122, 46, 0.34);
  --accent-divider: rgba(58, 122, 46, 0.42);
  --muted-foreground: rgba(18, 18, 18, 0.62);
  --border: rgba(46, 20, 44, 0.16);

  --cart: #ffffff;
  --cart-drawer-foreground: #2E142C;
  --cart-drawer-muted: rgba(46, 20, 44, 0.68);
  --cart-drawer-border: rgba(46, 20, 44, 0.18);
  --cart-foreground: #2E142C;
  --cart-muted: rgba(46, 20, 44, 0.68);
  --cart-border: rgba(46, 20, 44, 0.18);
  --danger: #ff6b6b;
  --mobile-topbar-offset-tablet: 152px;
  --mobile-topbar-offset-phone: 132px;

  --light-purple: #864681;
  --supporting-foreground: #FFFFFF;
  --dark-purple: #2E142C;
  --sidebar-foreground: #ffffff;
  --sidebar-muted: rgba(255, 255, 255, 0.68);
  --sidebar-border: rgba(255, 255, 255, 0.2);
  --sidebar-surface: rgba(255, 255, 255, 0.08);
  --sidebar-active: #B7DCAE;
  --brand-green-strong: #3A7A2E;
  --brand-shadow: rgba(46, 20, 44, 0.24);

  --button-min-height: 42px;

  /* Button Colors */
  --primary-button: #2E142C;
  --primary-button-foreground: #FFFFFF;
  --primary-button-border: #2E142C;
  --secondary-button: #FFFFFF;
  --secondary-button-foreground: #2E142C;
  --secondary-button-border: #2E142C;
  --tertiary-button: #3A7A2E;
  --tertiary-button-foreground: #FFFFFF;
  --tertiary-button-border: #3A7A2E;


  /* Border Radius */
  --border-radius: 5px;

  /* Font Size */
  --body-font-size: 16px;
  --h1-font-size: 38px;
  --h2-font-size: 28px;
  --h3-font-size: 24px;
  --h4-font-size: 20px;
  --h5-font-size: 18px;
  --h6-font-size: 14px;
  --button-font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Figtree", "Montserrat", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
}

.app_shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.mobile_topbar,
.mobile_bottom_nav,
.mobile_cart_trigger,
.mobile_cart_backdrop,
.cart_sheet_handle,
.cart_mobile_close_button {
  display: none;
}

.page_content {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.page_content.is_loading {
  opacity: 0.7;
  pointer-events: none;
}

.sidebar {
  display: flex;
  width: 200px;
  flex-direction: column;
  background: var(--dark-purple);
  color: var(--sidebar-foreground);
  padding: 17px 10px;
}

.sidebar_brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  padding: 0;
}

.sidebar_logo {
  width: 150px;
  min-width: 140px;
  max-width: 100%;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.location_selector_box {
  padding: 0 8px;
  margin-bottom: 18px;
}

.location_selector_label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.location_selector_input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: #ffffff;
  color: var(--sidebar-foreground);
  padding: 0 10px;
}

.sidebar .location_selector_label {
  margin-bottom: 7px;
  color: var(--sidebar-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.sidebar .location_selector_input {
  height: 38px;
  border-color: var(--sidebar-border);
  background-color: var(--sidebar-surface);
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 12px 5px;
  color: var(--sidebar-foreground);
  padding: 0 24px 0 9px;
  font-size: var(--body-font-size);;
  -webkit-appearance: none;
  appearance: none;
}

.sidebar .location_selector_input option {
  color: var(--foreground);
}

.sidebar_nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.sidebar_link,
.logout_button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: var(--border-radius);
  background: transparent;
  color: var(--sidebar-foreground);
  min-height: var(--button-min-height);
  padding: 16px;
  font-size: var(--button-font-size);
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sidebar_link .fulfillment_nav_label {
  flex: 1;
}

.fulfillment_nav_badge {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d9f8d9;
  color: var(--foreground);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.fulfillment_nav_badge[hidden] {
  display: none;
}

.fulfillment_nav_badge.is_stale {
  opacity: 0.58;
}

.sidebar_link:hover,
.logout_button:hover {
  background: var(--sidebar-surface);
  color: var(--sidebar-foreground);
}

.logout_button {
  border: 0;
  background: transparent;
  font-weight: 400;
}

.logout_button:not(:disabled) {
  color: var(--sidebar-muted);
}

.logout_button:disabled {
  color: var(--sidebar-muted);
}

.app_refresh_button:not(:disabled) {
  color: var(--sidebar-muted);
}

.sidebar_footer .app_refresh_button,
.sidebar_footer .logout_button {
  min-height: 44px;
  padding: 10px 14px;
}

.app_refresh_button .sidebar_icon img {
  opacity: 0.78;
}

.stripe_simulate_payment_button {
  width: 100%;
  min-height: var(--button-min-height);
  border: 1px solid var(--tertiary-button);
  border-radius: 8px;
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
  font-weight: 700;
  font-size: var(--button-font-size);
}

.stripe_simulate_payment_button:hover,
.stripe_simulate_payment_button:focus-visible {
  background: var(--tertiary-button-foreground);
  color: var(--tertiary-button);
  border-color: var(--tertiary-button-foreground);
}

.stripe_simulate_payment_button:disabled {
  border-color: var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}

.sidebar_link.active {
  background: var(--accent);
  color: var(--accent-foreground);
}

.sidebar_icon,
.staff_avatar {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent-surface);
  font-size: 11px;
  font-weight: 800;
}

.sidebar .sidebar_icon,
.sidebar .staff_avatar {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
}

.sidebar_icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.brand_sidebar_dark .sidebar .sidebar_icon img,
.brand_sidebar_dark .mobile_menu_action_icon img,
.brand_sidebar_dark .mobile_nav_icon img {
  filter: brightness(0) invert(1);
}

.brand_sidebar_light .sidebar .sidebar_icon img,
.brand_sidebar_light .mobile_menu_action_icon img,
.brand_sidebar_light .mobile_nav_icon img {
  filter: brightness(0);
}

.brand_accent_dark .sidebar_link.active .sidebar_icon img,
.brand_accent_dark .mobile_nav_link.active .mobile_nav_icon img {
  filter: brightness(0) invert(1);
}

.brand_accent_light .sidebar_link.active .sidebar_icon img,
.brand_accent_light .mobile_nav_link.active .mobile_nav_icon img {
  filter: brightness(0);
}

.brand_sidebar_light .sidebar .location_selector_input,
.brand_sidebar_light .mobile_topbar .location_selector_input {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%23111111' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sidebar .register_sidebar_icon {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.sidebar_link.active .sidebar_icon {
  background: transparent;
}

.sidebar_footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--sidebar-border);
  padding: 14px 0 2px;
}

.staff_indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: var(--button-min-height);
  padding: 10px 14px;
  color: var(--sidebar-foreground);
  font-size: var(--button-font-size);
  font-weight: 400;
}

.staff_avatar {
  background: var(--primary);
  color: var(--primary-foreground);
}

.sidebar .staff_avatar {
  background: var(--sidebar-foreground);
  color: var(--dark-purple);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  width: 25px;
  height: 25px;
}

.staff_meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.staff_name {
  line-height: 1.2;
}

.sidebar_version_label,
.app_version_label {
  margin: 0;
  color: var(--sidebar-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sidebar_version_label {
  padding: 8px 14px 0;
  text-align: center;
}

.mobile_version_label {
  padding: 2px 10px 0;
  text-align: center;
}

.mobile_topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 18;
  border-bottom: 1px solid var(--sidebar-border);
  background: var(--dark-purple);
  color: var(--sidebar-foreground);
  /* box-shadow: 0 14px 28px rgba(45, 4, 56, 0.24); */
}

.mobile_topbar_brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
}

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

.mobile_topbar_logo {
  width: 112px;
  min-width: 112px;
  max-height: 48px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.mobile_topbar_label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--sidebar-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile_topbar_location {
  display: grid;
  gap: 6px;
}

.mobile_topbar .location_selector_label {
  color: var(--sidebar-muted);
}

.mobile_topbar .location_selector_input {
  border-color: var(--sidebar-border);
  background-color: var(--sidebar-surface);
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 8px 5px;
  color: var(--sidebar-foreground);
  padding-right: 26px;
  -webkit-appearance: none;
  appearance: none;
}

.mobile_topbar .location_selector_input option {
  color: var(--foreground);
}

.mobile_menu_wrap {
  position: relative;
}

.mobile_menu_button {
  min-height: 38px;
  border: 1px solid var(--sidebar-border);
  border-radius: var(--border-radius);
  background: var(--sidebar-surface);
  color: var(--sidebar-foreground);
  padding: 9px 12px;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.mobile_menu_panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 180px;
  gap: 6px;
  border: 1px solid var(--sidebar-border);
  border-radius: var(--border-radius);
  background: var(--dark-purple);
  box-shadow: 0 20px 40px var(--brand-shadow);
  padding: 8px;
}

.mobile_menu_panel[hidden] {
  display: none;
}

.mobile_menu_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: var(--border-radius);
  color: var(--sidebar-foreground);
  padding: 10px 12px;
  text-decoration: none;
}

.mobile_menu_link.active {
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
}

.mobile_menu_footer {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--sidebar-border);
  padding-top: 8px;
}

.mobile_staff_indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-foreground);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
}

.mobile_staff_indicator .staff_avatar {
  background: var(--sidebar-foreground);
  color: var(--dark-purple);
}

.mobile_menu_logout,
.mobile_menu_refresh_button {
  width: 100%;
  min-height: var(--button-min-height);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--border-radius);
  background: var(--sidebar-surface);
  color: var(--sidebar-foreground);
  font-weight: 700;
}

.mobile_menu_refresh_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.mobile_menu_action_icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.mobile_menu_action_icon img {
  width: 18px;
  height: 18px;
  opacity: 0.84;
}

.mobile_menu_logout:hover,
.mobile_menu_logout:focus-visible,
.mobile_menu_refresh_button:hover,
.mobile_menu_refresh_button:focus-visible {
  background: var(--sidebar-surface);
}

.mobile_location_label {
  margin: 0;
}

.mobile_bottom_nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 18;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--sidebar-border);
  border-radius: var(--border-radius);
  background: var(--dark-purple);
  box-shadow: 0 22px 45px var(--brand-shadow);
  padding: 8px;
}

.mobile_nav_link {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 4px;
  border: 0;
  border-radius: var(--border-radius);
  background: transparent;
  color: var(--sidebar-muted);
  font: inherit;
  padding: 10px 8px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.mobile_nav_link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.mobile_nav_placeholder {
  pointer-events: none;
}

.mobile_nav_link.active {
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
}

.mobile_nav_icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
}

.mobile_nav_icon img {
  width: 20px;
  height: 20px;
  opacity: 0.78;
  object-fit: contain;
}

.mobile_nav_link.active .mobile_nav_icon {
  background: transparent;
}

.mobile_nav_link.active .mobile_nav_icon img {
  opacity: 1;
}

.mobile_nav_link span:last-child {
  font-size: var(--body-font-size);
  font-weight: 700;
}

.product_workspace {
  flex: 1;
  overflow-y: auto;
  background: var(--background);
  padding: 25px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product_workspace::-webkit-scrollbar {
  display: none;
}

.product_toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  margin: 0 0 25px;
  background: var(--background);
  box-shadow: none;
  padding: 0;
}

.product_toolbar::before {
  content: "";
  position: absolute;
  inset: -80px 0 0;
  z-index: -1;
  background: var(--background);
}

.page_header h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.product_toolbar h1 {
  margin: 0;
  font-size: var(--h1-font-size);
  font-weight: 700;
  line-height: 1.1;
}

.search_area {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
  margin-top: 28px;
}

.search_input_wrap {
  position: relative;
}

.search_input_wrap span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: var(--h6-font-size);;
  font-weight: 700;
  text-transform: uppercase;
}

.search_input_wrap input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--foreground);
  outline: none;
  padding: 0 10px 0 85px;
}

.search_input_wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.search_scan_button {
  position: absolute;
  right: 6px;
  top: 50%;
  min-width: 74px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 13px;
  font-weight: 700;
}

.search_scan_button:hover {
  filter: brightness(1.05);
}

.product_toolbar .search_input_wrap {
  width: 100%;
}

.product_toolbar .search_input_wrap span {
  display: none;
}

.product_toolbar .search_input_wrap input {
  height: 42px;
  border-color: var(--cart-border);
  border-radius: 4px;
  padding: 0 44px 0 10px;
  font-size: var(--body-font-size);;
}

.product_toolbar .search_scan_button {
  right: 10px;
  width: 22px;
  min-width: 0;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: transparent;
  font-size: 0;
  padding: 0;
}

.product_toolbar .search_scan_button:hover {
  background: var(--accent-surface);
  filter: none;
}

.product_toolbar .search_scan_button::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 11px;
  height: 11px;
  border: 1.6px solid var(--dark-purple);
  border-radius: 999px;
}

.product_toolbar .search_scan_button::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 6px;
  height: 1.6px;
  border-radius: 999px;
  background: var(--dark-purple);
  transform: rotate(45deg);
}

.collection_chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.collection_chip {
  min-height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--cart-border);
  border-radius: 999px;
  background: var(--cart-border);
  color: var(--foreground);
  padding: 7px 17px;
  font-size: var(--body-font-size);
  font-weight: 700;
}

.collection_chip:hover {
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.collection_chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.product_view_toggle {
  display: flex;
  width: fit-content;
  align-self: flex-end;
  gap: 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-top: 21px;
}

.product_view_button {
  display: inline-flex;
  width: 24px;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: transparent;
  padding: 0;
  font-size: 0;
  opacity: 0.35;
}

.product_view_button.active {
  background: transparent;
  color: transparent;
  opacity: 1;
}

.product_view_button::before {
  content: "";
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

.product_view_button[data-product-view-mode="grid"]::before {
  background-image: url("/grid-view.svg");
}

.product_view_button[data-product-view-mode="list"]::before {
  background-image: url("/list-view.svg");
}

.status_message {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--card);
  color: var(--muted-foreground);
  padding: 22px;
  text-align: center;
}

.status_message:empty {
  display: none;
}

.product_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
}

.product_grid.product_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product_card_group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.product_card_group .product_card {
  width: 100%;
  flex: 1 1 auto;
}

.product_card {
  display: flex;
  min-height: 307px;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--cart-border);
  border-radius: 5px;
  background: var(--card);
  color: var(--foreground);
  padding: 8px 7px 10px;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease;
}

.product_card:hover {
  border-color: var(--accent-border);
  filter: none;
  transform: translateY(-1px);
}

.product_card.out_of_stock {
  opacity: 0.5;
  filter: grayscale(0.9);
  transform: none;
}

.product_card.out_of_stock:hover {
  filter: grayscale(0.9);
  transform: none;
}

.inventory_conversion_button {
  border: 1px solid var(--brand-green-strong);
  border-radius: var(--border-radius);
  background: var(--card);
  color: var(--brand-green-strong);
  font-size: var(--body-font-size);
  font-weight: 700;
}

.inventory_conversion_button:not(:disabled):hover {
  background: var(--accent);
}

.inventory_conversion_button:disabled {
  border-color: var(--cart-border);
  color: var(--muted-foreground);
  cursor: not-allowed;
}

.inventory_conversion_grid_button {
  min-height: 40px;
  padding: 8px 12px;
}

.product_image_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--card);
  border-radius: 3px;
}

.product_image_wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.product_image_wrap .image_placeholder,
.product_list_image .image_placeholder,
.cart_thumb .image_placeholder {
  display: none;
}

.product_image_wrap.image_failed img,
.product_list_image.image_failed img,
.cart_thumb.image_failed img {
  display: none;
}

.product_image_wrap.image_failed .image_placeholder,
.product_list_image.image_failed .image_placeholder,
.cart_thumb.image_failed .image_placeholder {
  display: flex;
}

.product_card:hover img {
  transform: scale(1.02);
}

.no_image {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);;
}

.sale_badge {
  position: absolute;
  left: 6px;
  top: 6px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.inventory_badge {
  position: absolute;
  right: 8px;
  top: 8px;
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.product_info {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 3px;
  padding: 0;
}

.product_title {
  order: 2;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--h4-font-size);
  font-weight: 700;
  line-height: 1.4;
}

.product_vendor,
.product_variants,
.product_compare_at_price {
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--h6-font-size);
}

.product_vendor {
  order: 1;
  font-size: var(--h6-font-size);;
}

.product_variants,
.product_stock_state {
  order: 3;
}

.product_price_row {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-top: auto;
}

.product_compare_at_price {
  margin: 0;
  color: var(--foreground);
  font-size: var(--body-font-size);;
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.product_price {
  margin: 0;
  color: var(--brand-green-strong);
  font-size: var(--body-font-size);
  font-weight: 700;
}

.product_stock_state {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product_list_group {
  overflow: hidden;
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--card);
  padding: 17px 17px 8px 18px;
}

.product_list_product {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 0;
}

.product_list_image {
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--card);
}

.product_list_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product_list_no_image {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.product_list_heading h2 {
  order: 2;
  margin: 0;
  color: var(--foreground);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 20px;
}

.product_list_heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product_list_heading p {
  display: flex;
  order: 1;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);;
  line-height: 1.25;
}

.product_list_heading p:empty {
  display: none;
}

.product_list_variants {
  display: flex;
  flex-direction: column;
  margin-top: 13px;
  border-top: 1px solid var(--cart-border);
}

.product_list_variant {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 115px 75px 194px;
  gap: 14px;
  align-items: center;
  min-height: 59px;
  border-bottom: 1px solid var(--cart-border);
  padding: 7px 0;
}

.product_list_variant:last-child {
  border-bottom: 0;
}

.product_list_variant.is_disabled {
  opacity: 0.55;
}

.product_list_variant_info {
  min-width: 0;
}

.product_list_variant_info strong,
.product_list_price,
.product_list_stock strong {
  display: block;
  color: var(--foreground);
  font-size: var(--body-font-size);
  line-height: 20px;
}

.product_list_variant_info strong {
  font-weight: 700;
}

.product_list_variant_meta {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--foreground);
  font-size: var(--body-font-size);;
  line-height: 20px;
}

.product_list_stock {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--foreground);
  white-space: nowrap;
  justify-content: right;
}

.product_list_stock span {
  display: block;
  margin-top: 0;
  color: var(--foreground);
  font-size: var(--body-font-size);;
  font-weight: 600;
  line-height: 20px;
  text-transform: none;
}

.product_list_stock strong {
  font-size: var(--body-font-size);;
  font-weight: 600;
}

.product_list_price {
  color: var(--brand-green-strong);
  font-size: var(--body-font-size);;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.product_list_add_button {
  width: 90px;
  min-height: 35px;
  border: 0;
  border-radius: var(--border-radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: var(--body-font-size);
  font-weight: 600;
}

.product_list_add_button:not(:disabled):hover {
  filter: brightness(1.05);
}

.product_list_add_button:disabled {
  border: 1px solid var(--cart-border);
  background: var(--background);
  color: var(--muted-foreground);
}

.product_list_actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.product_list_actions .inventory_conversion_button {
  width: 96px;
  min-height: 35px;
}

.load_more_wrap {
  display: flex;
  justify-content: center;
  padding: 22px 0;
}

.load_more_button {
  border: 1px solid var(--secondary-button-border);
  border-radius: var(--border-radius);
  color: var(--secondary-button-foreground);
  padding: 10px 18px;
  font-weight: 700;
  background: var(--secondary-button);
}

.product_workspace > .load_more_wrap .load_more_button {
  border-color: var(--secondary-button-border);
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
}

.product_workspace > .load_more_wrap .load_more_button:not(:disabled):hover {
  background: var(--secondary-button-foreground);
  color: var(--secondary-button);
}

.load_more_button:disabled {
  border-color: var(--accent-border);
  background: var(--accent-surface);
  color: var(--brand-green-strong);
}

.cart_panel {
  --cart-foreground: var(--cart-drawer-foreground);
  --cart-muted: var(--cart-drawer-muted);
  --cart-border: var(--cart-drawer-border);
  display: flex;
  width: 385px;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  margin: 18px;
  border-radius: var(--border-radius);
  background: var(--cart);
  color: var(--cart-foreground);
  padding: 18px 22px 41px;
}

.cart_panel.is_payment_step_open {
  overflow: hidden;
}

.cart_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart_header_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart_header h2 {
  margin: 0;
  font-size: var(--h2-font-size);
  font-weight: 700;
}

.cart_clear_button {
  border: 0;
  background: transparent;
  color: var(--cart-foreground);
  font-weight: 400;
  text-decoration: underline;
  font-size: var(--body-font-size);
}

.cart_mobile_close_button {
  border: 1px solid var(--secondary-button-border);
  border-radius: var(--border-radius);
  background: var(--secondary-button);
  color: var(--cart-foreground);
  padding: 8px 12px;
  font-size: var(--body-font-size);
  font-weight: 700;
}

.checkout_button {
  width: 100%;
  min-height: var(--button-min-height);
  border: 0;
  border-radius: var(--border-radius);
  background: var(--primary-button);
  color: var(--primary-button-foreground);
  padding: 12px 14px;
  font-size: var(--button-font-size);
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.add_customer_button {
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
  border: 1px solid var(--secondary-button-border);
  font-size: var(--button-font-size);
  font-weight: 700;
  min-height: var(--button-min-height);
  border-radius: var(--border-radius);
  width: 100%;
}

.add_customer_button:hover {
  background: var(--secondary-button-foreground);
  color: var(--secondary-button);
  border-color: var(--secondary-button-foreground);
}

.customer_box p {
  margin: 8px 0 0;
  color: var(--foreground);
  font-size: var(--h6-font-size);
  text-align: center;
}

.selected_customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: var(--border-radius);
  background: var(--cart-border);
  padding: 14px 10px;
  margin-top: 10px;
}

.selected_customer h3 {
  margin: 0;
  font-size: var(--body-font-size);
  line-height: 1;
}

.selected_customer_actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.selected_customer_actions button {
  background: transparent;
  color: var(--cart-foreground);
  padding: 0;
  font-size: var(--body-font-size);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: none;
}

.selected_customer_actions button:last-child {
  opacity: 0.6;
  font-weight: 400;
}

.customers_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.customers_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.customers_header_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customers_create_button {
  min-height: 36px;
  padding: 8px 12px;
}

.customers_search {
  margin-bottom: 18px;
}

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

.customer_card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  padding: 14px;
}

.customer_card h2 {
  margin: 0;
  font-size: 16px;
}

.customer_card p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.customer_meta {
  margin-top: 10px;
  font-size: var(--body-font-size);;
  color: var(--muted-foreground);
}

.locations_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.orders_workspace {
  flex: 1;
  overflow-y: auto;
  background: var(--background);
  padding: 24px 36px 48px 28px;
}

.store_pickup_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.inventory_workspace {
  flex: 1;
  overflow-y: auto;
  background: var(--background);
  padding: 28px;
}

.locations_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.orders_header p {
  margin: 8px 0 0;
  color: var(--foreground);
  font-size: var(--body-font-size);
  line-height: 1;
}

.store_pickup_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.inventory_header {
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.inventory_header h1 {
  font-size: var(--h1-font-size);
  font-weight: 700;
  line-height: 1.1;
}

.inventory_header p {
  margin: 6px 0 0;
  color: var(--foreground);
  font-size: var(--body-font-size);
  line-height: 1;
}

.inventory_header_actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.inventory_tabs {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 5px;
}

.inventory_tab {
  min-width: 90px;
  min-height: 35px;
  border: 0;
  border-radius: var(--border-radius);
  background: transparent;
  color: var(--foreground);
  padding: 0 16px;
  font-size: var(--body-font-size);
  font-weight: 600;
  line-height: 1;
}

.inventory_tab.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.inventory_panel {
  display: grid;
  gap: 20px;
}

.inventory_panel[hidden] {
  display: none;
}

.inventory_module_section {
  display: grid;
  gap: 16px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 20px 22px;
}

.inventory_module_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--cart-border);
  padding-bottom: 14px;
}

.inventory_module_header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.inventory_module_header p {
  margin: 6px 0 0;
  color: var(--cart-muted);
  font-size: 13px;
  line-height: 1.15;
}

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

.inventory_field {
  display: grid;
  gap: 8px;
}

.inventory_field_wide {
  grid-column: 1 / -1;
}

.inventory_field label {
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.inventory_field input,
.inventory_field select,
.inventory_field textarea {
  width: 100%;
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--background);
  color: var(--foreground);
  padding: 11px;
  font: inherit;
  font-size: var(--body-font-size);
}

.inventory_field input,
.inventory_field select {
  min-height: var(--button-min-height);
}

.inventory_field textarea {
  min-height: var(--button-min-height);
  resize: vertical;
}

.inventory_field input::placeholder,
.inventory_field textarea::placeholder {
  color: var(--cart-muted);
  opacity: 1;
}

.inventory_field input[readonly] {
  color: var(--cart-muted);
}

.inventory_item_picker,
.inventory_selected_items,
.inventory_review_card,
.inventory_active_list,
.inventory_sync_queue {
  display: grid;
  gap: 10px;
}

.inventory_item_picker {
  margin-top: 2px;
}

.inventory_section_header,
.inventory_transfer_top,
.inventory_shipment_header,
.inventory_search_row,
.inventory_line_item,
.inventory_receive_line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inventory_section_header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.inventory_section_header span {
  color: var(--foreground);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.inventory_search_results,
.inventory_line_list,
.inventory_transfer_list,
.inventory_receive_lines,
.inventory_queue_list {
  display: grid;
  gap: 10px;
}

.inventory_search_result {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  padding: 12px;
  text-align: left;
}

.inventory_search_result span {
  color: var(--cart-muted);
  font-size: 13px;
}

.inventory_search_result:disabled {
  opacity: 0.55;
}

.inventory_search_row,
.inventory_line_item,
.inventory_transfer_card,
.inventory_shipment,
.inventory_queue_item {
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 12px 14px;
}

.inventory_sync_queue {
  min-height: 118px;
  margin-bottom: 22px;
  padding: 16px 20px;
}

.inventory_sync_queue .inventory_module_header {
  padding-bottom: 13px;
}

.inventory_sync_queue .manual_sync_button {
  min-width: 90px;
  min-height: 35px;
  border-color: var(--tertiary-button-border);
  border-radius: var(--border-radius);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
  padding: 0 14px;
  font-weight: 700;
  line-height: 1;
}

.inventory_sync_queue .manual_sync_button:hover,
.inventory_sync_queue .manual_sync_button:focus-visible {
  border-color: var(--tertiary-button-border);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
}

.inventory_sync_queue .inventory_empty {
  color: var(--foreground);
}

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

.inventory_queue_item.is_syncing {
  opacity: 0.72;
}

.inventory_queue_item strong {
  display: block;
  font-size: var(--body-font-size);
  font-weight: 700;
}

.inventory_queue_item p,
.inventory_queue_note,
.inventory_queue_error {
  margin: 5px 0 0;
  color: var(--cart-muted);
  font-size: 13px;
  line-height: 1.2;
}

.inventory_queue_note {
  display: block;
  font-weight: 800;
}

.inventory_queue_error {
  color: var(--danger);
}

.inventory_queue_actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.inventory_line_identity {
  min-width: 0;
}

.inventory_line_item.is_invalid {
  border-color: rgba(255, 107, 107, 0.54);
}

.inventory_search_row strong,
.inventory_line_identity strong,
.inventory_receive_line strong {
  display: block;
  font-size: var(--body-font-size);
  font-weight: 700;
}

.inventory_search_row p,
.inventory_line_identity p,
.inventory_receive_line p,
.inventory_transfer_top p,
.inventory_shipment_header p,
.inventory_transfer_lines {
  margin: 5px 0 0;
  color: var(--cart-muted);
  font-size: 13px;
  line-height: 1.2;
}

.inventory_search_row p,
.inventory_line_identity p,
.inventory_receive_line p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory_line_error {
  color: var(--danger);
}

.inventory_add_item_button,
.inventory_remove_button,
.inventory_receive_button {
  min-height: 38px;
  border-radius: var(--border-radius);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.inventory_line_controls {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.inventory_line_controls label {
  display: grid;
  gap: 4px;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 700;
}

.inventory_quantity_input {
  width: 86px;
  min-height: 38px;
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--background);
  color: var(--foreground);
  padding: 8px 10px;
}

.inventory_remove_button {
  width: auto;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
}

.inventory_submit_row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.inventory_submit_button {
  width: auto;
  min-width: 160px;
  min-height: var(--button-min-height);
  border-radius: var(--border-radius);
  font-size: var(--button-font-size);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.inventory_review_card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--cart-border);
  padding: 16px 18px;
}

.inventory_review_card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.inventory_review_card p {
  margin: 6px 0 0;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.15;
}

.inventory_review_card p.error {
  color: var(--danger);
}

.inventory_review_totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--foreground);
  font-size: 13px;
}

.inventory_review_totals span {
  display: inline-flex;
  min-height: 32px;
  min-width: 83px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 5px 12px;
}

.inventory_review_totals strong {
  color: var(--foreground);
  margin-right: 4px;
}

.stocktake_workspace {
  min-width: 0;
  max-width: 100%;
  padding: 28px 50px 28px 28px;
}

.stocktake_workspace .inventory_header > div,
.stocktake_workspace .inventory_module_header > div,
.stocktake_workspace .inventory_review_card > div,
.stocktake_workspace .inventory_section_header > div {
  min-width: 0;
}

.stocktake_workspace .inventory_header {
  align-items: flex-start;
  margin-bottom: 32px;
}

.stocktake_workspace .inventory_header h1 {
  color: var(--foreground);
  font-size: var(--h1-font-size);
  font-weight: 700;
  line-height: 1.18;
}

.stocktake_workspace .inventory_header p {
  margin-top: 8px;
  color: var(--foreground);
  font-size: var(--body-font-size);
  line-height: 1;
}

.inventory_stocktake {
  display: flex;
  min-height: 482px;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 18px 22px 28px;
}

.stocktake_workspace .inventory_module_header {
  align-items: flex-start;
  border-bottom: 0;
  margin-bottom: 22px;
  padding-bottom: 0;
}

.stocktake_workspace .inventory_module_header h2,
.stocktake_workspace .inventory_section_header h2 {
  color: var(--foreground);
  font-size: var(--h4-font-size);
  font-weight: 700;
  line-height: 1.2;
}

.stocktake_workspace .inventory_module_header p,
.stocktake_workspace .inventory_section_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
  line-height: 1;
  overflow-wrap: anywhere;
}

.stocktake_workspace .inventory_module_header [data-stocktake-new] {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--foreground);
  padding: 0;
  font-size: var(--body-font-size);
  line-height: 1.2;
  text-decoration: underline;
}

.stocktake_workspace .inventory_review_card {
  min-height: 72px;
  border: 0;
  border-radius: 8px;
  background: var(--cart-border);
  padding: 14px 16px;
}

.stocktake_workspace .inventory_review_card h2 {
  font-size: var(--h4-font-size);
  line-height: 1.2;
}

.stocktake_workspace .inventory_review_card p {
  margin-top: 6px;
  color: var(--foreground);
  font-size: var(--body-font-size);
  line-height: 1;
}

.stocktake_workspace .inventory_review_totals {
  gap: 12px;
}

.stocktake_workspace .inventory_review_totals span {
  min-height: 32px;
  border: 0;
  border-radius: 20px;
  background: var(--card);
  color: var(--foreground);
  padding: 7px 16px;
  font-size: 13px;
}

.stocktake_workspace .inventory_item_picker {
  margin: 16px 0 30px;
}

.stocktake_workspace .inventory_field {
  gap: 7px;
}

.stocktake_workspace .inventory_field label {
  color: var(--foreground);
  font-size: 13px;
}

.stocktake_workspace .inventory_field input {
  min-height: 42px;
  border-color: var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--background);
  padding: 10px 11px;
}

.stocktake_workspace .inventory_selected_items {
  gap: 16px;
}

.stocktake_workspace .inventory_section_header {
  align-items: flex-start;
}

.stocktake_workspace .inventory_section_header span {
  margin-top: 2px;
  color: var(--foreground);
  font-size: var(--body-font-size);
  font-weight: 700;
}

.stocktake_workspace .inventory_line_list {
  min-height: 72px;
}

.stocktake_workspace .inventory_empty_state {
  display: none;
}

.stocktake_workspace .inventory_line_item {
  border-color: var(--cart-border);
  background: var(--background);
}

.stocktake_workspace .inventory_submit_row {
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.stocktake_workspace .inventory_submit_row .manual_sync_button {
  min-width: 160px;
  min-height: 42px;
  border: 0;
  border-radius: var(--border-radius);
  background: color-mix(in srgb, var(--tertiary-button) 22%, var(--card));
  color: var(--foreground);
  padding: 10px 12px;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.stocktake_workspace .inventory_submit_row .manual_sync_button:hover,
.stocktake_workspace .inventory_submit_row .manual_sync_button:focus-visible {
  background: color-mix(in srgb, var(--tertiary-button) 30%, var(--card));
  color: var(--foreground);
}

.stocktake_workspace .inventory_submit_row .inventory_submit_button {
  min-width: 210px;
  min-height: 42px;
  border-radius: var(--border-radius);
  padding: 10px 14px;
  font-size: var(--body-font-size);
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.stocktake_session_card {
  margin-bottom: 8px;
}

.stocktake_line_item input[type="number"] {
  width: 86px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--foreground);
  padding: 8px 10px;
}

.stocktake_review_row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);;
}

.stocktake_inventory_check_row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);;
}

.stocktake_inventory_check_row.error {
  color: var(--danger);
  font-weight: 800;
}

.stocktake_synced_quantity {
  color: var(--foreground);
  font-weight: 800;
}

.stocktake_sync_compare_row {
  display: grid;
  gap: 4px;
}

.stocktake_sync_compare_row + .stocktake_sync_compare_row {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.stocktake_sync_compare_row span {
  color: var(--muted-foreground);
  font-size: 13px;
}

.stocktake_apply_check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.stocktake_variance {
  color: var(--danger);
  font-weight: 800;
}

.inventory_transfer_card {
  display: grid;
  gap: 10px;
}

.inventory_transfer_card h3,
.inventory_shipment_header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.inventory_transfer_status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.inventory_transfer_side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory_transfer_actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory_outgoing_action_button {
  width: auto;
  min-height: 30px;
  border-radius: var(--border-radius);
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.inventory_close_transfer_button {
  min-height: 30px;
  border-radius: var(--border-radius);
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1;
}

.inventory_transfer_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--cart-muted);
  font-size: 13px;
}

.inventory_shipment {
  background: var(--background);
}

.inventory_receive_actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 2px;
}

.inventory_receive_status {
  margin: 0;
  color: var(--cart-muted);
  font-size: 13px;
}

.inventory_receive_status.error {
  color: var(--danger);
}

.inventory_close_transfer_modal {
  width: min(520px, 100%);
  border-radius: 10px;
  padding: 20px;
}

.inventory_close_transfer_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.inventory_close_transfer_header span {
  display: block;
  margin-bottom: 4px;
  color: var(--cart-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.inventory_close_transfer_header h2 {
  margin: 0;
  font-size: 22px;
}

.inventory_close_transfer_summary {
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--background);
  color: var(--cart-muted);
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.inventory_close_transfer_summary strong {
  color: var(--foreground);
}

.inventory_close_reason_field {
  margin-top: 16px;
}

.inventory_close_reason_field textarea {
  min-height: 108px;
  resize: vertical;
}

.inventory_close_transfer_status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--cart-muted);
  font-size: 13px;
}

.inventory_close_transfer_status.error {
  color: var(--danger);
}

.inventory_close_transfer_actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.inventory_receive_button {
  justify-self: end;
  width: auto;
  min-width: 130px;
  margin-top: 2px;
}

.inventory_empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

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

.location_card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  padding: 14px;
}

.location_card h2 {
  margin: 0;
  font-size: 16px;
}

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

.location_card p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.location_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.default_badge {
  background: var(--primary);
  color: var(--primary-foreground);
}

.location_meta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);;
}

.orders_list {
  display: grid;
  gap: 19px;
}

.store_pickup_list {
  display: grid;
  gap: 12px;
}

.order_card {
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  overflow: hidden;
}

.reports_sale_card {
  border-radius: 8px;
  background: #fff;
}

.order_card_toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 16px 16px 9px;
  text-align: left;
}

.report_sale_toggle {
  display: grid;
  gap: 12px;
  padding: 16px;
  transition: background 160ms ease;
}

.report_sale_toggle:hover {
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}

.report_sale_top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.report_sale_identity {
  min-width: 0;
}

.report_sale_identity h2 {
  overflow-wrap: anywhere;
}

.report_sale_amount_block {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 110px;
}

.report_sale_amount_block span,
.report_sale_tender_count {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

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

.report_payment_chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  color: var(--foreground);
  padding: 8px 10px;
  line-height: 1;
}

.report_payment_chip span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
}

.report_payment_chip strong {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.report_payment_chip.muted {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 800;
}

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

.report_sale_footer .order_card_meta {
  margin: 0;
  line-height: 1.3;
}

.report_sale_toggle .order_expand_label {
  margin-top: 0;
}

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

.order_card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.order_card_created,
.order_card_meta,
.order_card_error {
  margin: 14px 0 0;
  color: var(--foreground);
  font-size: var(--body-font-size);
  line-height: 1;
}

.order_card_error {
  color: var(--danger);
}

.order_card_status_block {
  display: grid;
  justify-items: end;
  gap: 15px;
  min-width: 92px;
}

.order_card_total {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.order_expand_label {
  display: inline-flex;
  margin-top: 19px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.order_status_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 32px;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.created_badge {
  background: var(--primary);
  color: var(--primary-foreground);
}

.queue_badge {
  background: var(--accent-surface);
  color: var(--foreground);
}

.order_card_details {
  border-top: 1px solid var(--cart-border);
  padding: 13px 16px 17px;
}

.report_order_payment_breakdown {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.report_order_payment_breakdown h3 {
  margin: 0;
  color: var(--foreground);
  font-size: var(--body-font-size);
  font-weight: 800;
  line-height: 1.2;
}

.report_payment_ledger {
  display: grid;
  border-top: 1px solid var(--cart-border);
}

.report_payment_ledger_row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--cart-border);
  padding: 10px 0;
}

.report_payment_ledger_row span {
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
  font-weight: 800;
}

.report_payment_ledger_row strong {
  color: var(--foreground);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.order_line_items {
  display: grid;
  gap: 20px;
}

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

.order_line_item h3 {
  margin: 0;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1.4;
}

.order_line_item p,
.order_line_items_empty {
  margin: 6px 0 0;
  color: var(--cart-muted);
  font-size: var(--body-font-size);
  line-height: 1;
}

.order_line_item_reason {
  color: var(--foreground);
  font-weight: 600;
}

.order_line_item_total {
  color: var(--foreground);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.store_pickup_card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  padding: 16px;
}

.store_pickup_card_top,
.store_pickup_meta,
.store_pickup_queue_header,
.store_pickup_queue_item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.store_pickup_card h2,
.store_pickup_queue_header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.store_pickup_card_top p,
.store_pickup_queue_header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.store_pickup_status_block {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.store_pickup_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.for_pickup_badge {
  background: var(--accent-surface);
  color: var(--foreground);
}

.ready_badge {
  background: var(--primary);
  color: var(--primary-foreground);
}

.store_pickup_queue_note {
  color: var(--brand-green-strong);
  font-size: var(--body-font-size);;
  font-weight: 800;
  text-align: right;
}

.store_pickup_meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--muted-foreground);
  font-size: 13px;
}

.store_pickup_line_list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.store_pickup_line_item {
  display: grid;
  gap: 4px;
}

.store_pickup_line_item strong {
  font-size: var(--body-font-size);
  line-height: 1.3;
}

.store_pickup_line_item span {
  color: var(--muted-foreground);
  font-size: var(--body-font-size);;
}

.store_pickup_actions {
  display: flex;
  justify-content: flex-end;
}

.store_pickup_action_button {
  width: auto;
  min-width: 172px;
  min-height: var(--button-min-height);
}

.store_pickup_queue_panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 4%, transparent);
  padding: 16px;
}

.store_pickup_queue_list {
  display: grid;
  gap: 10px;
}

.store_pickup_queue_item {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 12px;
}

.store_pickup_queue_item.is_syncing {
  opacity: 0.72;
}

.store_pickup_queue_item strong {
  font-size: var(--body-font-size);
}

.store_pickup_queue_item p {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);;
}

.store_pickup_queue_error {
  color: var(--danger) !important;
  font-weight: 700;
}

.store_pickup_empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.store_pickup_workspace {
  background: var(--background);
  padding: 28px;
}

.store_pickup_workspace .store_pickup_header,
.store_pickup_workspace .manual_sync_status,
.store_pickup_workspace .store_pickup_list,
.store_pickup_workspace .store_pickup_queue_panel {
  width: 100%;
}

.store_pickup_workspace .store_pickup_header {
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.store_pickup_workspace .store_pickup_header h1 {
  color: var(--foreground);
  font-size: var(--h1-font-size);
  font-weight: 700;
  line-height: 1.1;
}

.store_pickup_workspace .store_pickup_header p {
  margin-top: 6px;
  color: var(--foreground);
  font-size: var(--body-font-size);
  line-height: 1;
}

.store_pickup_workspace .manual_sync_actions {
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.store_pickup_workspace .count_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  min-width: 37px;
  height: 37px;
  border: 0;
  background: #d9f8d9;
  color: var(--foreground);
  padding: 0;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.store_pickup_workspace .manual_sync_button {
  min-width: 90px;
  min-height: 35px;
  border-radius: var(--border-radius);
  padding: 0 14px;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.store_pickup_workspace .manual_sync_actions .manual_sync_button:first-of-type {
  border-color: var(--secondary-button-border);
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
}

.store_pickup_workspace .manual_sync_actions .manual_sync_button:first-of-type:hover,
.store_pickup_workspace .manual_sync_actions .manual_sync_button:first-of-type:focus-visible {
  background: var(--secondary-button-foreground);
  color: var(--secondary-button);
}

.store_pickup_workspace .manual_sync_actions .manual_sync_button:last-of-type {
  border-color: var(--tertiary-button-border);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
}

.store_pickup_workspace .manual_sync_actions .manual_sync_button:last-of-type:hover,
.store_pickup_workspace .manual_sync_actions .manual_sync_button:last-of-type:focus-visible {
  background: var(--tertiary-button-foreground);
  color: var(--tertiary-button);
}

.store_pickup_workspace .manual_sync_button:disabled {
  border-color: var(--cart-border);
  background: var(--cart-border);
  color: var(--cart-muted);
}

.store_pickup_workspace .manual_sync_status {
  margin-bottom: 12px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);
  line-height: 1.2;
}

.store_pickup_workspace .manual_sync_status.error {
  color: var(--danger);
  font-weight: 700;
}

.store_pickup_workspace .store_pickup_list {
  width: 100%;
  gap: 16px;
}

.store_pickup_workspace .store_pickup_card {
  gap: 0;
  overflow: hidden;
  border-color: var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: none;
  padding: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.store_pickup_workspace .store_pickup_card:hover {
  border-color: var(--accent-border);
  box-shadow: none;
  transform: translateY(-1px);
}

.store_pickup_workspace .store_pickup_card:has(.for_pickup_badge) {
  border-left: 4px solid var(--accent);
}

.store_pickup_workspace .store_pickup_card:has(.ready_badge) {
  border-left: 4px solid var(--tertiary-button);
}

.store_pickup_workspace .store_pickup_card_top {
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--cart-border);
  background: var(--card);
  padding: 14px 16px;
}

.store_pickup_workspace .store_pickup_card h2 {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.store_pickup_workspace .store_pickup_card_top p {
  margin-top: 7px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  line-height: 1.2;
}

.store_pickup_workspace .store_pickup_status_block {
  align-content: start;
  justify-items: end;
  min-width: 150px;
}

.store_pickup_workspace .store_pickup_badge {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: var(--body-font-size);;
}

.store_pickup_workspace .for_pickup_badge {
  border-color: var(--accent-border);
  background: var(--accent-surface);
  color: var(--brand-green-strong);
}

.store_pickup_workspace .ready_badge {
  border-color: rgba(21, 158, 23, 0.22);
  background: rgba(21, 158, 23, 0.12);
  color: var(--tertiary-button);
}

.store_pickup_workspace .store_pickup_queue_note {
  max-width: 220px;
  border-radius: 999px;
  background: var(--accent-strong-surface);
  color: var(--brand-green-strong);
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.2;
}

.store_pickup_workspace .store_pickup_meta {
  gap: 8px;
  padding: 14px 18px 0;
}

.store_pickup_workspace .store_pickup_meta span {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--cart-border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  padding: 6px 10px;
  font-size: var(--body-font-size);;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.store_pickup_workspace .store_pickup_line_list {
  gap: 8px;
  border-top: 0;
  padding: 14px 18px;
}

.store_pickup_workspace .store_pickup_line_item {
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--background);
  padding: 10px 12px;
}

.store_pickup_workspace .store_pickup_line_item strong {
  color: var(--foreground);
  font-size: var(--body-font-size);
  font-weight: 800;
}

.store_pickup_workspace .store_pickup_line_item span {
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  line-height: 1.3;
}

.store_pickup_workspace .store_pickup_actions {
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.store_pickup_workspace .store_pickup_action_button {
  width: auto;
  min-width: 190px;
  min-height: var(--button-min-height);
  border-radius: var(--border-radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  letter-spacing: 0;
}

.store_pickup_workspace .store_pickup_action_button:hover,
.store_pickup_workspace .store_pickup_action_button:focus-visible {
  background: var(--primary);
}

.store_pickup_workspace .store_pickup_action_button:disabled {
  background: var(--cart-border);
  color: var(--cart-muted);
}

.store_pickup_workspace .store_pickup_queue_panel {
  gap: 16px;
  margin-top: 22px;
  border-color: var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: none;
  padding: 16px 20px;
  overflow: hidden;
}

.store_pickup_workspace .store_pickup_queue_header {
  align-items: center;
  border-bottom: 1px solid var(--cart-border);
  background: transparent;
  color: var(--foreground);
  padding: 0 0 13px;
}

.store_pickup_workspace .store_pickup_queue_header h2 {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.store_pickup_workspace .store_pickup_queue_header p {
  color: var(--cart-muted);
  font-size: 13px;
  line-height: 1.15;
}

.store_pickup_workspace .store_pickup_queue_header .count_badge {
  border: 0;
  background: #d9f8d9;
  color: var(--foreground);
}

.store_pickup_workspace .store_pickup_queue_list {
  gap: 10px;
  background: transparent;
  padding: 0;
}

.store_pickup_workspace .store_pickup_queue_item {
  align-items: center;
  border-color: var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 12px 14px;
}

.store_pickup_workspace .store_pickup_queue_item strong {
  color: var(--foreground);
  font-weight: 800;
}

.store_pickup_workspace .store_pickup_queue_item p {
  color: var(--cart-muted);
  line-height: 1.3;
}

.store_pickup_workspace .store_pickup_queue_item .load_more_button {
  min-width: 82px;
  min-height: 36px;
  border-color: var(--secondary-button-border);
  border-radius: var(--border-radius);
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.store_pickup_workspace .store_pickup_queue_item .load_more_button:hover,
.store_pickup_workspace .store_pickup_queue_item .load_more_button:focus-visible {
  background: var(--secondary-button-foreground);
  color: var(--secondary-button);
}

.store_pickup_workspace .store_pickup_list > .store_pickup_empty {
  border: 1px dashed var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 24px;
  text-align: center;
}

.store_pickup_workspace .store_pickup_queue_list > .store_pickup_empty {
  border: 1px dashed var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 18px;
  text-align: center;
}

@media (max-width: 1080px) {
  .store_pickup_workspace {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .store_pickup_workspace {
    padding: 16px;
  }

  .store_pickup_workspace .store_pickup_header {
    display: block;
    margin-bottom: 14px;
    padding: 0;
  }

  .store_pickup_workspace .store_pickup_header h1 {
    font-size: 24px;
  }

  .store_pickup_workspace .manual_sync_actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 14px;
    width: 100%;
  }

  .store_pickup_workspace .count_badge {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .store_pickup_workspace .manual_sync_button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 8px;
  }

  .store_pickup_workspace .store_pickup_card_top {
    display: block;
    padding: 14px;
  }

  .store_pickup_workspace .store_pickup_status_block {
    justify-items: start;
    min-width: 0;
    margin-top: 12px;
  }

  .store_pickup_workspace .store_pickup_queue_note {
    max-width: 100%;
    text-align: left;
  }

  .store_pickup_workspace .store_pickup_meta {
    padding: 12px 14px 0;
  }

  .store_pickup_workspace .store_pickup_meta span {
    min-width: 0;
  }

  .store_pickup_workspace .store_pickup_line_list {
    padding: 12px 14px;
  }

  .store_pickup_workspace .store_pickup_actions {
    padding: 0 14px 14px;
  }

  .store_pickup_workspace .store_pickup_action_button {
    width: 100%;
    min-width: 0;
  }

  .store_pickup_workspace .store_pickup_queue_panel {
    margin-top: 16px;
  }

  .store_pickup_workspace .store_pickup_queue_header {
    display: block;
    padding: 14px;
  }

  .store_pickup_workspace .store_pickup_queue_header .count_badge {
    margin-top: 12px;
  }

  .store_pickup_workspace .store_pickup_queue_list {
    padding: 12px;
  }

  .store_pickup_workspace .store_pickup_queue_item {
    align-items: stretch;
    flex-direction: column;
  }

  .store_pickup_workspace .store_pickup_queue_item .load_more_button {
    width: 100%;
    min-height: 42px;
  }
}

.customer_modal {
  width: min(640px, 100%);
}

.customer_picker_search {
  margin-bottom: 12px;
}

.customer_picker_create_toggle {
  width: 100%;
  margin-bottom: 10px;
}

.customer_picker_create_form {
  margin-bottom: 12px;
}

.customer_picker_body {
  max-height: 420px;
}

.customer_picker_item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  text-align: left;
  padding: 12px;
  margin-bottom: 10px;
}

.customer_picker_item h3 {
  margin: 0;
  font-size: 15px;
}

.customer_picker_item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.customers_create_form {
  display: grid;
  gap: 10px;
}

.customers_create_form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
}

.customers_create_form input {
  height: var(--button-min-height);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  padding: 0 12px;
}

.customers_create_status {
  margin: 0;
  min-height: 18px;
}

.customers_create_actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.customers_create_submit {
  width: auto;
  min-width: 108px;
}

@media (max-width: 960px) {
  .customers_list {
    grid-template-columns: 1fr;
  }

  .locations_list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .customers_workspace {
    padding: 18px;
  }

  .manual_sync_actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .customers_header_actions {
    width: 100%;
    justify-content: space-between;
  }

  .locations_workspace {
    padding: 18px;
  }
}

.cart_items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 34px;
}

.cart_items:has(.cart_empty) {
  justify-content: center;
  display: flex;
  align-items: center;
  margin: 0;
}

.cart_empty {
  color: var(--foreground);
  text-align: center;
  font-size: var(--h3-font-size);
  line-height: 1.4;
}

.cart_empty p {
  margin: 4px 0;
}

.cart_item {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  margin-bottom: 13px;
}

.cart_item:not(:last-child) {
  border-bottom: 1px solid var(--cart-border);
  padding-bottom: 16px;
}

.cart_thumb {
  width: 55px;
  height: 55px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.cart_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart_no_image {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--cart-muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.cart_item_body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cart_item_top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.cart_item_details {
  min-width: 0;
}

.cart_vendor {
  margin: 0 0 1px;
  color: var(--cart-muted);
  font-size: var(--h6-font-size);
  font-weight: 400;
  line-height: 14px;
}

.cart_title {
  margin: 0;
  color: var(--cart-foreground);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.cart_variant {
  margin: 0;
  color: var(--cart-foreground);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 20px;
}

.cart_item_discount_note {
  margin: 0;
  color: #6d8f45;
  font-size: var(--body-font-size);;
  font-weight: 700;
  line-height: 1.35;
}

.cart_price_note {
  margin: -2px 0 0;
  color: var(--cart-foreground);
  font-size: var(--body-font-size);;
  font-weight: 700;
  line-height: 1.35;
}

.cart_price_reason {
  margin: -2px 0 0;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  line-height: 1.35;
}

.cart_inventory_warning {
  margin: -2px 0 0;
  border-left: 3px solid var(--danger);
  color: var(--cart-foreground);
  padding-left: 8px;
  font-size: var(--body-font-size);;
  font-weight: 800;
  line-height: 1.35;
}

.cart_item_bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cart_adjust_button {
  display: inline-flex;
  order: 2;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cart-muted);
  padding: 0;
  font-size: var(--body-font-size);;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart_quantity_row {
  display: flex;
  order: 1;
  justify-content: flex-start;
}

.qty_control {
  display: flex;
  width: 72px;
  height: 30px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--cart-border);
  border-radius: 20px;
  background: #fff;
  padding: 0 9px;
}

.qty_control button {
  width: 14px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cart-foreground);
  font-weight: 700;
  font-size: var(--body-font-size);
  line-height: 1;
}

.qty_control span {
  min-width: 14px;
  text-align: center;
  color: var(--cart-foreground);
  font-weight: 700;
  font-size: var(--body-font-size);
  line-height: 20px;
}

.cart_line_price {
  min-width: 58px;
  color: var(--brand-green-strong);
  text-align: right;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 20px;
}

.cart_line_price_wrap {
  display: grid;
  justify-items: end;
  gap: 0;
}

.cart_line_compare_price,
.cart_line_price_original {
  color: var(--cart-foreground);
  font-size: var(--body-font-size);;
  font-weight: 400;
  line-height: 14px;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.cart_line_price_discounted {
  color: var(--brand-green-strong);
}

.cart_footer {
  margin-top: 17px;
  box-shadow: 0 -5px 5px 0 rgba(0, 0, 0, 0.10);
  width: calc(100% + 44px);
  margin-left: -22px;
  padding: 21px 22px 0;
}

.cart_panel.is_payment_step_open .cart_footer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.subtotal_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--cart-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.subtotal_row strong {
  color: var(--cart-foreground);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.total_row {
  margin-bottom: 17px;
}

.discount_box {
  margin-bottom: 8px;
  border: 1px solid var(--cart-border);
  border-radius: 4px;
  background: #fff;
  padding: 0 9px;
}

.discount_toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--cart-foreground);
  min-height: 33px;
  padding: 0;
  text-align: left;
}

.discount_toggle_text {
  font-size: var(--body-font-size);;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 14px;
  text-transform: none;
}

.discount_toggle_meta {
  color: var(--foreground);
  font-size: var(--body-font-size);;
  font-weight: 700;
  line-height: 14px;
}

.discount_panel {
  margin-top: 8px;
  padding-bottom: 9px;
}

.discount_box.is_compact {
  padding-bottom: 0;
}

.discount_label {
  display: block;
  margin-bottom: 6px;
  color: var(--cart-foreground);
  font-size: var(--body-font-size);;
  font-weight: 700;
}

.discount_input_row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.discount_input_row input,
.discount_input_row select {
  height: 35px;
  border: 1px solid var(--cart-border);
  border-radius: 4px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 0 10px;
  font-size: var(--body-font-size);;
  line-height: 14px;
}

.discount_input_row input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.discount_input_row select {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.discount_apply_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  min-width: 82px;
  flex: 0 0 82px;
  white-space: nowrap;
  border-color: var(--cart-border);
  background: #fff;
  color: var(--foreground);
  padding: 0 8px;
  font-size: var(--body-font-size);;
  font-weight: 700;
}

.discount_apply_button:disabled {
  opacity: 1;
  border-color: var(--accent-border);
  background: var(--accent-surface);
  color: var(--brand-green-strong);
}

.discount_status {
  margin: 0;
}

.discount_status:empty {
  display: none;
}

.discount_picker[hidden] + .discount_status:empty + .discount_details {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.discount_details {
  margin-top: 10px;
  border-top: 1px solid var(--cart-border);
  padding-top: 10px;
}

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

.discount_details_row strong {
  font-size: 13px;
}

.discount_remove_button {
  width: auto;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 7px 12px;
  font-size: var(--body-font-size);;
  font-weight: 700;
}

.discount_details_summary,
.discount_details_meta {
  margin: 6px 0 0;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  line-height: 1.4;
}

.checkout_status {
  margin: 10px 0 0;
  color: var(--foreground);
  font-size: var(--body-font-size);;
  min-height: 16px;
  text-align: center;
}

.checkout_status:empty {
  display: none;
}

.checkout_status.error {
  color: var(--danger);
}

.payment_step {
  margin-bottom: 12px;
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.payment_step[hidden] {
  display: none;
}

.cart_panel.is_payment_step_open .payment_step {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 14px;
}

.payment_step_top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart_panel.is_payment_step_open .payment_step_top {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding-bottom: 10px;
}

.payment_step_top strong {
  display: block;
  color: var(--cart-foreground);
  font-size: 13px;
}

.payment_step_top p {
  margin: 4px 0 0;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  line-height: 1.4;
}

.payment_summary {
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 10px;
  background: var(--accent-surface);
  padding: 12px;
}

.payment_summary_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
}

.payment_summary_row + .payment_summary_row {
  margin-top: 8px;
}

.payment_summary_row strong {
  color: var(--cart-foreground);
  font-size: 13px;
  text-align: right;
}

.payment_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.payment_tile {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.payment_tile_text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment_tile_text small {
  color: var(--cart-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.payment_tile_icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-surface);
}

.payment_tile_icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.payment_tile.active {
  border-color: var(--accent);
  background: var(--accent-strong-surface);
}

.payment_tile.active .payment_tile_icon {
  background: var(--accent);
  color: var(--accent-foreground);
}

.payment_tile.disabled {
  opacity: 0.52;
}

.payment_hint {
  margin: 0 0 12px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
}

.payment_remainder_callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  border: 1px solid rgba(90, 63, 86, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 10px 12px;
}

.payment_remainder_callout span {
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  font-weight: 800;
}

.payment_remainder_callout strong {
  font-size: 18px;
  text-align: right;
}

.cart_panel.is_payment_step_open .queue_panel {
  display: none;
}

.modal_backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  padding: 20px;
}

.modal_backdrop[hidden] {
  display: none;
}

.variant_modal {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  padding: 22px;
}

.price_override_modal {
  width: min(420px, 100%);
}

.variant_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.variant_header h2 {
  margin: 0;
}

.variant_header button,
.variant_option {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  padding: 10px 12px;
}

.variant_option_actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.variant_option_action,
.variant_conversion_button {
  min-height: 38px;
  border-radius: var(--border-radius);
  padding: 8px 12px;
  font-weight: 700;
}

.variant_option_action {
  border: 0;
  background: var(--primary);
  color: var(--primary-foreground);
}

.variant_option_action:disabled {
  border: 1px solid var(--cart-border);
  background: var(--background);
  color: var(--muted-foreground);
}

.variant_option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  text-align: left;
}

.variant_option strong,
.variant_option span {
  display: block;
}

.variant_option small {
  color: var(--muted-foreground);
}

.variant_option:disabled {
  opacity: 0.55;
}

.price_override_body {
  display: grid;
  gap: 12px;
}

.inventory_conversion_preview {
  display: grid;
  gap: 8px;
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--background);
  padding: 12px;
}

.inventory_conversion_preview[hidden] {
  display: none;
}

.inventory_conversion_preview p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.inventory_conversion_preview strong {
  white-space: nowrap;
}

.price_override_product_title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.price_override_catalog_text {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.price_override_catalog_text strong {
  color: var(--foreground);
}

.price_override_label {
  font-size: 13px;
  font-weight: 700;
}

.price_override_input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--foreground);
  padding: 0 14px;
  font: inherit;
}

.price_override_reason_input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--foreground);
  padding: 0 14px;
  font: inherit;
}

.gift_card_code_input_row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.gift_card_code_input_row .load_more_button {
  min-height: 44px;
}

.price_override_status {
  margin: 0;
}

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

.price_override_save_button {
  width: auto;
  min-width: 124px;
  padding-inline: 18px;
}

.scanner_modal {
  width: min(560px, 100%);
}

.scanner_intro {
  margin: 0 0 12px;
  color: var(--muted-foreground);
}

.scanner_status {
  min-height: 20px;
  margin: 0 0 14px;
}

.scanner_viewfinder {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.scanner_viewfinder video {
  width: 100%;
  border-radius: 14px;
}

.collections_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.promotions_workspace {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.page_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.register_notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(190, 95, 30, 0.42);
  border-radius: 8px;
  background: rgba(255, 246, 235, 0.96);
  color: #5f2d10;
}

.register_notice[hidden] {
  display: none;
}

.register_notice strong {
  display: block;
  font-size: var(--body-font-size);
}

.register_notice p {
  margin: 3px 0 0;
  color: #7a4018;
  font-size: var(--small-font-size);
}

.register_notice_link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #7a320b;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.register_notice_link:hover {
  color: #4c1f06;
}

.manual_sync_actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual_sync_button {
  min-height: 36px;
  padding: 10px 12px;
  font-size: var(--body-font-size);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
  border: 1px solid var(--tertiary-button);
}

.manual_sync_button:hover {
  color: var(--tertiary-button);
  background-color: var(--tertiary-button-foreground);
}

.manual_sync_button:disabled {
  border-color: var(--tertiary-button-border);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
}

.manual_sync_status {
  margin: 12px 0 12px;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
  min-height: 16px;
}

.manual_sync_status:empty {
  display: none;
}

.manual_sync_status.error {
  color: var(--danger);
}

.orders_header {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.orders_header h1 {
  color: var(--foreground);
  font-size: var(--h1-font-size);
  font-weight: 700;
  line-height: 1.1;
}

.orders_header .manual_sync_actions {
  gap: 16px;
  padding-top: 10px;
}

.orders_header .count_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  min-width: 37px;
  height: 37px;
  border: 0;
  background: #d9f8d9;
  color: var(--foreground);
  padding: 0;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.orders_header .manual_sync_button {
  width: 90px;
  min-width: 90px;
  min-height: 35px;
  border-color: var(--tertiary-button-border);
  border-radius: var(--border-radius);
  padding: 9px 13px;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.orders_workspace .manual_sync_status {
  margin: 0 0 14px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);
  line-height: 1.2;
}

.reports_workspace {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  background: var(--background);
  padding: 24px 36px 48px 28px;
}

.reports_header {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.reports_header h1 {
  color: var(--foreground);
  font-size: var(--h1-font-size);
  font-weight: 700;
  line-height: 1.1;
}

.reports_actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.reports_quick_ranges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.reports_quick_ranges button {
  min-height: 35px;
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--card);
  color: var(--foreground);
  padding: 8px 12px;
  font: inherit;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.reports_quick_ranges button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.reports_actions label {
  display: grid;
  gap: 5px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
}

.reports_actions input {
  width: 150px;
  min-height: 35px;
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--card);
  color: var(--foreground);
  padding: 7px 10px;
  font: inherit;
}

.reports_actions .manual_sync_button {
  width: 90px;
  min-width: 90px;
  min-height: 35px;
  border-color: var(--tertiary-button-border);
  border-radius: var(--border-radius);
  padding: 9px 13px;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.reports_print_button {
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
}

.reports_print_header {
  display: none;
}

.reports_receipt_print {
  display: none;
}

.register_receipt_print {
  display: none;
}

.register_z_report_retry {
  margin: -6px 0 14px;
}

.reports_workspace .manual_sync_status {
  margin: 0 0 14px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);
  line-height: 1.2;
}

.reports_workspace .manual_sync_status:empty {
  display: none;
}

.reports_loading {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.reports_loading[hidden] {
  display: none;
}

.reports_loading_spinner {
  animation: register_loading_spin 0.8s linear infinite;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.reports_workspace.is_loading .reports_summary_grid,
.reports_workspace.is_loading .reports_detail_grid,
.reports_workspace.is_loading .reports_orders_panel {
  opacity: 0.55;
  pointer-events: none;
}

.reports_workspace .manual_sync_status.error {
  color: var(--danger);
}

.reports_summary_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.reports_summary_tile,
.reports_panel {
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: var(--card);
}

.reports_summary_tile {
  min-height: 92px;
  padding: 16px;
}

.reports_summary_tile span {
  display: block;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.reports_summary_tile strong {
  display: block;
  margin-top: 8px;
  color: var(--foreground);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.reports_detail_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.reports_panel {
  padding: 16px;
}

.reports_panel_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reports_panel_header h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.reports_panel_header span {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.reports_rows {
  display: grid;
  gap: 8px;
}

.reports_total_row,
.reports_order_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.reports_total_row strong,
.reports_order_row strong {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 800;
}

.reports_total_row span,
.reports_order_row p,
.reports_empty {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.3;
}

.reports_orders {
  display: grid;
  gap: 10px;
}

.reports_order_row h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.reports_order_row > strong {
  min-width: 90px;
  text-align: right;
}

.reports_empty {
  margin: 0;
}

@media (max-width: 900px) {
  .reports_summary_grid,
  .reports_detail_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report_sale_top {
    grid-template-columns: 1fr;
  }

  .report_sale_amount_block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .reports_actions,
  .reports_quick_ranges,
  .reports_quick_ranges button,
  .reports_actions label,
  .reports_actions input,
  .reports_actions .manual_sync_button {
    width: 100%;
  }

  .reports_summary_grid,
  .reports_detail_grid {
    grid-template-columns: 1fr;
  }

  .reports_total_row,
  .reports_order_row {
    align-items: flex-start;
  }

  .report_sale_toggle {
    gap: 10px;
    padding: 14px;
  }

  .report_sale_payment_summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .report_payment_chip {
    justify-content: space-between;
    width: 100%;
  }

  .report_sale_footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .report_sale_amount_block {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .report_payment_ledger_row {
    padding: 9px 0;
  }
}

@media print {
  @page {
    margin: 4mm;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .sidebar,
  .mobile_topbar,
  .mobile_bottom_nav,
  .mobile_cart_trigger,
  .offline_toast,
  .fulfillment_alert_toast,
  .reports_actions,
  .reports_header,
  .reports_loading,
  .reports_print_header,
  .reports_summary_grid,
  .reports_detail_grid,
  .reports_workspace .manual_sync_status,
  .register_header,
  .register_loading,
  .register_workspace .page_loading,
  .register_summary,
  .register_detail_grid,
  .register_workspace .manual_sync_status,
  .register_z_report_retry,
  [data-report-print-hide] {
    display: none !important;
  }

  body * {
    visibility: hidden;
  }

  .app_shell,
  .page_content,
  .reports_workspace {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    background: #ffffff;
  }

  .reports_receipt_print {
    display: block;
    visibility: visible;
    width: 72mm;
    margin: 0;
    color: #111111;
    background: #ffffff;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.22;
    white-space: pre-wrap;
  }

  .register_workspace {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    background: #ffffff;
  }

  .register_receipt_print {
    display: block;
    visibility: visible;
    width: 72mm;
    margin: 0;
    color: #111111;
    background: #ffffff;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.22;
    white-space: pre-wrap;
  }
}

.offline_toast {
  position: fixed;
  left: 50%;
  top: 12px;
  z-index: 60;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  color: #fff;
  padding: 12px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.fulfillment_alert_toast {
  position: fixed;
  left: 50%;
  top: 12px;
  z-index: 61;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--foreground) 22%, transparent);
  border-radius: 12px;
  background: #d9f8d9;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  color: var(--foreground);
  padding: 12px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.fulfillment_alert_toast[hidden] {
  display: none;
}

.fulfillment_alert_toast.is_stale {
  background: #f4e8bd;
}

.offline_toast:not([hidden]) + .fulfillment_alert_toast:not([hidden]) {
  top: 66px;
}

.realtime_sync_toasts {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 64;
  display: grid;
  width: min(400px, calc(100vw - 32px));
  gap: 8px;
  pointer-events: none;
}

.realtime_sync_toast {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  color: var(--foreground);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.realtime_sync_toast.is_inventory {
  background: #e4f3ff;
}

.realtime_sync_toast.is_error {
  border-color: #b93a32;
  background: #fff0ee;
  color: #7c241e;
}

.app_update_prompt {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 62;
  display: flex;
  width: min(520px, calc(100vw - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 38px var(--brand-shadow);
  color: var(--foreground);
  padding: 10px 12px 10px 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.app_update_prompt[hidden] {
  display: none;
}

.app_update_prompt button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.app_update_prompt button:hover,
.app_update_prompt button:focus-visible {
  background: var(--primary);
}

.login_page .app_update_prompt {
  bottom: 22px;
  z-index: 2;
  width: min(430px, calc(100vw - 32px));
}

.app_refresh_modal p {
  margin: 0 0 18px;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.app_refresh_modal_actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.manual_card_note_wrap {
  margin: 0 0 10px;
}

.manual_card_note_wrap label {
  display: block;
  margin-bottom: 4px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  font-weight: 700;
}

.manual_card_note_wrap input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 0 10px;
}

.stripe_reader_panel {
  margin: 0 0 12px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.stripe_reader_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stripe_reader_header strong,
.stripe_reader_header span,
.stripe_reader_panel label {
  display: block;
}

.stripe_reader_header strong {
  color: var(--cart-foreground);
  font-size: 13px;
}

.stripe_reader_header span,
.stripe_reader_panel label {
  margin-top: 3px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  font-weight: 700;
  line-height: 1.35;
}

.stripe_reader_panel select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 0 10px;
}

.stripe_reader_actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.stripe_simulate_payment_cart_button {
  min-height: var(--button-min-height);
}

.stripe_simulate_payment_cart_button:not(:disabled):hover,
.stripe_simulate_payment_cart_button:not(:disabled):focus-visible {
  border-color: var(--tertiary-button-border);
  background: color-mix(in srgb, var(--tertiary-button) 14%, var(--card));
  color: var(--tertiary-button);
}

.cash_payment_panel,
.gift_card_payment_panel {
  margin: 0 0 12px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.cash_payment_fields,
.gift_card_payment_fields {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(280px, 1fr);
  gap: 6px 10px;
  align-items: end;
}

.cash_payment_fields label,
.gift_card_payment_fields label {
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  font-weight: 700;
}

.cash_payment_fields input,
.gift_card_payment_fields input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-foreground);
  padding: 0 10px;
}

.cash_payment_actions,
.gift_card_payment_actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.gift_card_payment_add_button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.cash_payment_status,
.gift_card_payment_status {
  margin-top: 8px;
}

.gift_card_payment_list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.gift_card_payment_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 54%, transparent);
  padding: 10px;
}

.gift_card_payment_row strong,
.gift_card_payment_row span {
  display: block;
}

.gift_card_payment_row span {
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  font-weight: 700;
}

.gift_card_payment_remove {
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  cursor: pointer;
  font-size: var(--body-font-size);;
  font-weight: 800;
  padding: 7px 10px;
}

@media (max-width: 520px) {
  .cash_payment_fields,
  .gift_card_payment_fields {
    grid-template-columns: 1fr;
  }
}

.queue_edit_banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--secondary) 54%, transparent);
  padding: 12px 14px;
}

.queue_edit_banner[hidden] {
  display: none;
}

.queue_edit_banner_body {
  min-width: 0;
}

.queue_edit_banner strong {
  display: block;
  color: var(--cart-foreground);
  font-size: 13px;
}

.queue_edit_banner p {
  margin: 2px 0 0;
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
  line-height: 1.45;
}

.queue_edit_banner .load_more_button {
  flex-shrink: 0;
  color: var(--cart-foreground);
  border-color: var(--cart-border);
  padding: 8px 10px;
  font-size: 11px;
}

.queue_panel {
  margin-top: 16px;
  border-top: 0;
  padding-top: 0;
}

.queue_panel[hidden] {
  display: none;
}

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

.queue_panel_header strong {
  color: var(--cart-foreground);
  font-size: 15px;
  font-weight: 700;
  line-height: 28px;
}

.queue_panel:not(:has(.queue_empty)) .queue_panel_header {
  margin-bottom: 10px;
}

.queue_list {
  display: grid;
  gap: 8px;
  margin-top: -1px;
  max-height: 180px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.queue_list::-webkit-scrollbar {
  display: none;
}

.queue_empty {
  margin: 0;
  color: var(--cart-foreground);
  font-size: var(--h6-font-size);
  font-weight: 400;
  line-height: 14px;
}

.cart_panel:has(.cart_empty) .queue_panel {
  border-top: 1px solid var(--cart-border);
  padding-top: 12px;
}

.queue_panel .manual_sync_button {
  min-height: 35px;
  border-color: var(--tertiary-button-border);
  border-radius: var(--border-radius);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
  padding: 9px 12px;
  font-size: var(--button-font-size);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.queue_panel .manual_sync_button:disabled {
  opacity: 1;
}

.queue_item {
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: var(--accent-surface);
  padding: 8px;
}

.queue_item.is_syncing {
  opacity: 0.72;
}

.queue_item p {
  margin: 0;
  font-size: var(--body-font-size);;
}

.queue_item_title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.queue_meta {
  margin-top: 4px;
  color: var(--cart-muted);
}

.queue_legacy_notice {
  margin-top: 6px;
  color: var(--cart-muted);
}

.queue_error {
  margin-top: 6px;
  color: var(--danger);
}

.queue_type_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--foreground);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.queue_item.is_editing {
  border-color: color-mix(in srgb, var(--primary) 42%, transparent);
  background: var(--accent-surface);
}

.queue_item_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.queue_item_actions .load_more_button {
  color: var(--cart-foreground);
  border-color: var(--cart-border);
  padding: 5px 8px;
  font-size: 11px;
}

.queue_item_actions .load_more_button:disabled {
  opacity: 0.55;
}

.promotions_list {
  display: grid;
  gap: 12px;
}

.promotion_card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  padding: 14px;
}

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

.promotion_card h2 {
  margin: 0;
  font-size: 16px;
}

.promotion_card p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.promotion_code {
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--foreground);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.promotion_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--foreground);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.promotion_badge_offline {
  background: var(--accent-strong-surface);
  color: var(--brand-green-strong);
}

.promotion_meta {
  font-size: var(--body-font-size);;
}

.promotion_card_actions {
  margin-top: 12px;
}

.promotion_apply_button {
  width: auto;
}

.promotions_workspace {
  background: var(--background);
  padding: 28px;
}

.promotions_workspace .page_header {
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.promotions_workspace .page_header h1 {
  color: var(--foreground);
  font-size: var(--h1-font-size);
  font-weight: 700;
  line-height: 1.1;
}

.promotions_workspace .manual_sync_actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.promotions_workspace .count_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  min-width: 37px;
  height: 37px;
  border: 0;
  background: #d9f8d9;
  color: var(--foreground);
  padding: 0;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.promotions_workspace .manual_sync_button {
  width: 90px;
  min-width: 90px;
  min-height: 35px;
  border-color: var(--tertiary-button-border);
  border-radius: var(--border-radius);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
  padding: 0 14px;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.promotions_workspace .manual_sync_button:hover,
.promotions_workspace .manual_sync_button:focus-visible {
  border-color: var(--tertiary-button-border);
  background: var(--tertiary-button);
  color: var(--tertiary-button-foreground);
}

.promotions_workspace .manual_sync_button:disabled {
  border-color: var(--cart-border);
  background: var(--cart-border);
  color: var(--cart-muted);
}

.promotions_workspace .manual_sync_status {
  margin: 0 0 12px;
  color: var(--cart-muted);
  font-size: var(--body-font-size);
  line-height: 1.2;
}

.promotions_workspace .manual_sync_status.error {
  color: var(--danger);
  font-weight: 700;
}

.promotions_workspace .status_message {
  width: 100%;
  margin-bottom: 12px;
  border-color: var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--cart-muted);
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
}

.promotions_workspace .promotions_list {
  width: 100%;
  gap: 16px;
}

.promotions_workspace .promotion_card {
  border-color: var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  padding: 14px 16px;
}

.promotions_workspace .promotion_card_top {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--cart-border);
  padding-bottom: 12px;
}

.promotions_workspace .promotion_card h2 {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.promotions_workspace .promotion_card p {
  margin-top: 8px;
  color: var(--cart-muted);
  font-size: var(--h6-font-size);
  line-height: 1.25;
}

.promotions_workspace .promotion_code {
  min-height: 28px;
  border: 1px solid var(--cart-border);
  background: var(--background);
  color: var(--foreground);
  padding: 6px 10px;
  font-size: var(--body-font-size);;
  font-weight: 700;
  line-height: 1.2;
}

.promotions_workspace .promotion_badge {
  min-height: 30px;
  border: 1px solid var(--accent-border);
  background: var(--accent-surface);
  color: var(--brand-green-strong);
  padding: 8px 12px;
  font-size: var(--body-font-size);;
}

.promotions_workspace .promotion_badge_offline {
  border-color: rgba(21, 158, 23, 0.22);
  background: #d9f8d9;
  color: var(--tertiary-button);
}

.promotions_workspace .promotion_meta {
  color: var(--cart-muted);
  font-size: var(--body-font-size);;
}

.promotions_workspace .promotion_card_actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.promotions_workspace .promotion_apply_button {
  width: auto;
  min-width: 128px;
  min-height: var(--button-min-height);
  border-color: var(--secondary-button-border);
  border-radius: var(--border-radius);
  background: var(--secondary-button);
  color: var(--secondary-button-foreground);
  padding: 0 14px;
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1;
}

.promotions_workspace .promotion_apply_button:hover,
.promotions_workspace .promotion_apply_button:focus-visible {
  background: var(--secondary-button-foreground);
  color: var(--secondary-button);
}

.promotions_workspace .promotion_apply_button:disabled {
  border-color: var(--cart-border);
  background: var(--cart-border);
  color: var(--cart-muted);
}

@media (max-width: 767px) {
  .promotions_workspace .page_header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 8px;
  }

  .promotions_workspace .page_header h1 {
    font-size: 22px;
    line-height: 1;
  }

  .promotions_workspace .manual_sync_actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: auto;
    margin-left: auto;
  }

  .promotions_workspace .count_badge {
    width: 34px;
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .promotions_workspace .manual_sync_button {
    width: auto;
    min-width: 70px;
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .promotions_workspace .manual_sync_status {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .promotions_workspace .status_message {
    margin-bottom: 8px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .promotions_workspace .promotions_list {
    gap: 10px;
  }

  .promotions_workspace .promotion_card {
    border-radius: 8px;
    padding: 10px 12px;
  }

  .promotions_workspace .promotion_card_top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .promotions_workspace .promotion_card h2 {
    font-size: 15px;
    line-height: 1.2;
  }

  .promotions_workspace .promotion_card p {
    margin-top: 6px;
    font-size: 13px;
  }

  .promotions_workspace .promotion_code {
    min-height: 24px;
    max-width: 100%;
    margin-top: 5px;
    padding: 4px 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .promotions_workspace .promotion_badge {
    min-height: 24px;
    align-self: flex-start;
    padding: 5px 8px;
    font-size: 12px;
  }

  .promotions_workspace .promotion_card_actions {
    justify-content: flex-end;
    width: auto;
    margin-top: 10px;
  }

  .promotions_workspace .promotion_apply_button {
    width: auto;
    min-width: 96px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}

.loyalty_workspace {
  flex: 1;
  overflow-y: auto;
  background: var(--background);
  padding: 28px 28px 32px;
}

.loyalty_workspace .page_header {
  margin-bottom: 44px;
}

.loyalty_workspace .page_header h1 {
  color: var(--foreground);
  font-size: var(--h1-font-size);
  font-weight: 800;
  line-height: 1.1;
}

.loyalty_lookup_form {
  width: min(100%, 422px);
  margin-bottom: 0;
}

.loyalty_lookup_form label,
.loyalty_variable_label {
  display: block;
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: var(--body-font-size);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 14px;
}

.loyalty_lookup_row {
  display: grid;
  gap: 10px;
}

.loyalty_lookup_row input,
.loyalty_variable_label input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--cart-border);
  border-radius: var(--border-radius);
  background: var(--card);
  color: var(--foreground);
  padding: 0 10px;
  font: inherit;
}

.loyalty_lookup_button {
  display: flex;
  width: 100%;
  min-height: var(--button-min-height);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-button-border);
  border-radius: var(--border-radius);
  background: var(--primary-button);
  color: var(--primary-button-foreground);
  padding: 0 14px;
  font-size: var(--button-font-size);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.loyalty_lookup_button:not(:disabled):hover,
.loyalty_lookup_button:not(:disabled):focus-visible {
  background: var(--primary-button-foreground);
  color: var(--primary-button);
}

.loyalty_lookup_button:disabled {
  cursor: default;
  opacity: 0.55;
}

.loyalty_redeem_button,
.loyalty_copy_button {
  width: auto;
}

.loyalty_status {
  min-height: 18px;
  margin: 12px 0 20px;
  line-height: 1.4;
}

.loyalty_summary,
.loyalty_result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 843px);
  min-height: 72px;
  margin: 50px 0;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 16px;
}

.loyalty_summary {
  margin-bottom: 20px;
}

.loyalty_summary[hidden],
.loyalty_enrollment[hidden],
.loyalty_result[hidden],
.loyalty_sections[hidden] {
  display: none;
}

.loyalty_enrollment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(100%, 843px);
  margin: 0 0 50px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 24px;
}

.loyalty_enrollment_label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.loyalty_enrollment h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.loyalty_enrollment_copy p {
  max-width: 470px;
  margin: 10px 0 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
  line-height: 1.45;
}

.loyalty_qr_box {
  display: flex;
  width: 244px;
  min-height: 244px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cart-border);
  border-radius: 8px;
  background: #FFFFFF;
  padding: 11px;
}

.loyalty_qr_box img {
  display: block;
  width: 220px;
  height: 220px;
}

.loyalty_qr_unavailable {
  margin: 0;
  color: var(--foreground);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.loyalty_points_box {
  min-width: 220px;
}

.loyalty_points_box span,
.loyalty_result span {
  display: block;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.loyalty_points_box strong {
  display: block;
  color: var(--foreground);
  font-size: var(--h1-font-size);
  font-weight: 800;
  line-height: 1;
}

.loyalty_customer_meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.loyalty_customer_meta span,
.loyalty_meta_row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  background: var(--cart-border);
  color: var(--foreground);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 800;
  line-height: 14px;
}

.loyalty_sections {
  display: grid;
  grid-template-columns: minmax(0, 422px) minmax(240px, 1fr);
  gap: 16px 46px;
  width: min(100%, 843px);
  max-width: 843px;
}

.loyalty_section_header {
  margin-bottom: 10px;
}

.loyalty_section_header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.loyalty_rule_list,
.loyalty_coupon_list {
  display: grid;
  gap: 12px;
}

.loyalty_rule_card,
.loyalty_coupon_card {
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--card);
  padding: 25px;
}

.loyalty_rule_card {
  min-height: 210px;
}

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

.loyalty_coupon_card.is_highlighted {
  border-color: var(--accent);
  background: var(--accent-strong-surface);
}

.loyalty_coupon_card.is_copied,
.loyalty_result.is_copied {
  border-color: var(--accent-border);
  background: var(--accent-surface);
  box-shadow: 0 0 0 3px var(--accent-divider);
}

.loyalty_card_top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.loyalty_rule_card h3,
.loyalty_coupon_card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: var(--h5-font-size);
  font-weight: 800;
  line-height: 1.25;
}

.loyalty_rule_card p,
.loyalty_result p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
  line-height: 14px;
}

.loyalty_meta_row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.loyalty_variable_label {
  margin-top: 20px;
  color: var(--foreground);
  letter-spacing: 0;
  text-transform: none;
}

.loyalty_variable_value {
  display: block;
  margin: 8px 0 17px;
  color: var(--foreground);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.loyalty_variable_label .loyalty_variable_slider {
  display: block;
  width: 100%;
  height: 16px;
  border: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--light-purple);
  background: transparent;
}

.loyalty_variable_slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: var(--cart-border);
}

.loyalty_variable_slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: var(--light-purple);
  cursor: pointer;
  -webkit-appearance: none;
}

.loyalty_variable_slider::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--cart-border);
}

.loyalty_variable_slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--light-purple);
  cursor: pointer;
}

.loyalty_variable_hint {
  display: none;
}

.loyalty_card_actions {
  margin-top: 16px;
}

.loyalty_redeem_button {
  min-width: 130px;
  min-height: var(--button-min-height);
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: var(--button-font-size);
  font-weight: 800;
  text-align: center;
}

.loyalty_copy_actions {
  display: flex;
  min-width: 160px;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.loyalty_copy_button.is_copied {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-foreground);
}

.loyalty_copy_feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 7px 10px;
  font-size: var(--body-font-size);;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  animation: loyalty_copy_attention 280ms ease-out;
}

.loyalty_copy_feedback[hidden] {
  display: none;
}

@keyframes loyalty_copy_attention {
  from {
    transform: translateY(4px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.loyalty_empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
  line-height: 14px;
}

.loyalty_result {
  margin-top: 16px;
}

.loyalty_result strong {
  display: inline-flex;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--cart-border);
  color: var(--foreground);
  padding: 6px 10px;
  font-size: 13px;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .loyalty_sections {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  .loyalty_summary,
  .loyalty_result {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .loyalty_customer_meta {
    justify-content: flex-start;
  }

  .loyalty_enrollment {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .loyalty_redeem_button,
  .loyalty_copy_button {
    width: 100%;
  }

  .loyalty_coupon_card {
    flex-direction: column;
  }

  .loyalty_copy_actions {
    width: 100%;
    align-items: stretch;
  }

  .loyalty_points_box {
    min-width: 0;
  }

  .loyalty_customer_meta span,
  .loyalty_meta_row span {
    width: 100%;
  }

  .loyalty_enrollment {
    padding: 18px;
  }

  .loyalty_qr_box {
    width: 100%;
  }
}

.mobile_cart_trigger {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 105px;
  z-index: 19;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--primary);
  border-radius: var(--border-radius);
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 18px 40px var(--brand-shadow);
  padding: 14px 16px;
  text-align: left;
}

.mobile_cart_trigger_label {
  font-size: var(--body-font-size);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.mobile_cart_trigger_summary {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.mobile_cart_trigger_summary strong {
  font-size: var(--body-font-size);
  font-weight: 700;
}

.mobile_cart_trigger_summary span {
  font-size: 13px;
  font-weight: 700;
  color: color-mix(in srgb, var(--secondary-foreground) 74%, transparent);
}

.mobile_cart_backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: color-mix(in srgb, var(--foreground) 68%, transparent);
}

.mobile_cart_backdrop[hidden] {
  display: none;
}

.count_badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted-foreground);
  font-weight: 700;
}

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

.collection_card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
}

.collection_image {
  aspect-ratio: 16 / 9;
  background: var(--secondary);
}

.collection_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection_content {
  padding: 16px;
}

.collection_content h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.collection_content p {
  margin: 0;
  color: var(--muted-foreground);
}

.login_page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: var(--background);
  padding: 17px 16px;
}

.login_blob_background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.login_page.login_animation_stopped .login_blob {
  animation-play-state: paused;
}

.login_blob {
  opacity: 0.64;
  transform-box: fill-box;
}

.login_blob_out_top {
  fill: color-mix(in srgb, var(--primary) 62%, transparent);
  animation: login_blob_rotate 20s linear infinite;
  transform-origin: 13px 25px;
}

.login_blob_in_top {
  fill: color-mix(in srgb, var(--secondary) 76%, transparent);
  animation: login_blob_rotate 10s linear infinite;
  transform-origin: 13px 25px;
}

.login_blob_out_bottom {
  fill: color-mix(in srgb, var(--primary) 78%, transparent);
  animation: login_blob_rotate 25s linear infinite;
  transform-origin: 84px 93px;
}

.login_blob_in_bottom {
  fill: color-mix(in srgb, var(--accent) 60%, transparent);
  animation: login_blob_rotate 15s linear infinite;
  transform-origin: 84px 93px;
}

.login_card {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(372px, 100%);
  min-height: min(730px, calc(100svh - 34px));
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--cart-border);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
  padding: 41px 24px 17px;
  text-align: center;
}

.pin_login_card {
  width: min(372px, 100%);
}

.login_brand_logo {
  width: 220px;
  min-width: 200px;
  max-width: 80%;
  max-height: 90px;
  height: auto;
  margin: 0 auto 6px;
  object-fit: contain;
}

.login_mark {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 900;
}

.login_card h1 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 14px;
  text-transform: none;
}

.login_brand_logo + h1 {
  margin-top: 0;
}

.login_card p {
  margin: 0 0 40px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.login_form {
  display: flex;
  width: min(323px, 100%);
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.login_form label {
  margin-bottom: 7px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 16px;
}

.login_form input {
  height: 42px;
  border: 1px solid var(--cart-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--foreground);
  padding: 0 10px;
  font-size: 14px;
  line-height: 14px;
}

.login_form input + label {
  margin-top: 12px;
}

.login_form input + button {
  margin-top: 18px;
}

.login_form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
  outline: none;
}

.pin_display {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 13px 0 27px;
  outline: none;
}

.pin_display:focus-visible {
  border-radius: 999px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.pin_dot {
  width: 13px;
  height: 13px;
  border: 1px solid var(--cart-border);
  border-radius: 999px;
  background: var(--secondary);
  transition: background 120ms ease, transform 120ms ease;
}

.pin_dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

.pin_keypad {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  justify-content: center;
  gap: 11px 12px;
  margin-bottom: 34px;
}

.pin_key,
.pin_key_spacer {
  width: 62px;
  height: 62px;
}

.pin_key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.pin_key:hover,
.pin_key:focus-visible,
.pin_key:active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.pin_key:active {
  transform: scale(0.96);
}

.pin_key_delete {
  color: var(--secondary-foreground);
  font-size: 0;
}

.pin_key_delete::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("/delete.svg") center / contain no-repeat;
  mask: url("/delete.svg") center / contain no-repeat;
}

.login_form > button,
.text_link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  text-decoration: none;
}

.login_submit_button {
  gap: 8px;
}

.login_submit_button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.login_status {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.login_status.alert_error {
  margin-bottom: 0;
}

.login_spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 23, 42, 0.28);
  border-top-color: var(--primary-foreground);
  border-radius: 999px;
  animation: login_spinner_spin 700ms linear infinite;
}

.pin_login_form.is_signing_in .login_button_text {
  font-size: 0;
}

.pin_login_form.is_signing_in .login_button_text::after {
  content: "Signing in";
  font-size: 13px;
}

.pin_login_form.is_signing_in .login_spinner {
  display: inline-block;
}

@keyframes login_spinner_spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes login_blob_rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login_blob {
    animation: none;
  }
}

.login_secondary_link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  text-decoration: none;
}

.login_secondary_link:hover {
  text-decoration: underline;
}

.login_card .app_version_label {
  width: min(323px, 100%);
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--foreground) 46%, transparent);
  font-size: 11px;
  line-height: 1.35;
}

.alert_error {
  width: min(323px, 100%);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 107, 0.42);
  border-radius: 5px;
  background: rgba(255, 107, 107, 0.14);
  color: #7a1a1a;
  padding: 10px 12px;
  text-align: left;
}

.alert_info {
  width: min(323px, 100%);
  margin-bottom: 16px;
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  background: var(--accent-surface);
  color: var(--foreground);
  padding: 10px 12px;
  text-align: left;
}

@media (min-width: 1080px) {
  .product_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cart_panel.is_payment_step_open .payment_step {
    overflow-x: hidden;
  }

  .cart_panel .cash_payment_panel,
  .cart_panel .gift_card_payment_panel {
    padding: 10px;
  }

  .cart_panel .cash_payment_fields,
  .cart_panel .gift_card_payment_fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cart_panel .cash_payment_fields label:not(:first-child),
  .cart_panel .gift_card_payment_fields label:not(:first-child) {
    margin-top: 4px;
  }

  .cart_panel .gift_card_payment_actions {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.1fr;
    gap: 8px;
  }

  .cart_panel .cash_payment_actions .load_more_button,
  .cart_panel .cash_payment_actions .checkout_button,
  .cart_panel .gift_card_payment_actions .load_more_button,
  .cart_panel .gift_card_payment_actions .checkout_button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 1080px) {
  .product_workspace,
  .collections_workspace,
  .promotions_workspace,
  .loyalty_workspace,
  .locations_workspace,
  .customers_workspace,
  .inventory_workspace,
  .orders_workspace,
  .reports_workspace,
  .store_pickup_workspace {
    padding: 20px;
  }

  .product_toolbar {
    top: 0;
    margin: -20px -20px 18px;
    padding: 20px 20px 16px;
  }

  .product_toolbar h1,
  .page_header h1 {
    font-size: 28px;
  }

  .page_header,
  .customers_header {
    align-items: flex-start;
    gap: 14px;
  }

  .manual_sync_actions,
  .customers_header_actions {
    flex-wrap: wrap;
  }

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

  .locations_list,
  .customers_list {
    grid-template-columns: 1fr;
  }

  .collection_chip {
    min-height: var(--button-min-height);
    padding: 10px 14px;
  }

  .product_view_button {
    min-height: var(--button-min-height);
  }

  .inventory_add_item_button,
  .inventory_receive_button {
    min-height: var(--button-min-height);
  }

  .product_list_variant {
    grid-template-columns: minmax(220px, 1fr) 78px 64px 90px;
  }

  .load_more_button,
  .manual_sync_button,
  .customers_create_button {
    min-height: var(--button-min-height);
  }

  .search_input_wrap input,
  .location_selector_input {
    height: 48px;
  }

  .cart_panel {
    width: 348px;
    margin: 20px 20px 20px 0;
    padding: 18px;
  }

  .cart_footer {
    width: calc(100% + 36px);
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .cart_items {
    margin-top: 18px;
  }

  .payment_tile {
    min-height: 64px;
  }

  .variant_modal {
    width: min(680px, calc(100vw - 40px));
    padding: 24px;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  body.mobile_cart_open {
    overflow: hidden;
  }

  .app_shell {
    display: block;
    height: auto;
    min-height: 100svh;
    padding-top: var(--mobile-topbar-offset-tablet);
    padding-bottom: 96px;
    overflow: visible;
  }

  .page_content {
    height: auto;
    min-height: calc(100svh - var(--mobile-topbar-offset-tablet) - 96px);
    display: block;
    overflow: visible;
  }

  .mobile_topbar {
    display: block;
    padding: 18px 20px 14px;
  }

  .offline_toast,
  .fulfillment_alert_toast {
    top: calc(var(--mobile-topbar-offset-tablet) + 12px);
    width: min(520px, calc(100vw - 40px));
  }

  .offline_toast:not([hidden]) + .fulfillment_alert_toast:not([hidden]) {
    top: calc(var(--mobile-topbar-offset-tablet) + 72px);
  }

  .mobile_topbar_logo {
    width: 120px;
    min-width: 120px;
  }

  .mobile_topbar_location {
    margin-top: 14px;
  }

  .mobile_bottom_nav {
    display: flex;
    left: 20px;
    right: 20px;
    bottom: 16px;
  }

  .sidebar {
    display: none;
  }

  .page_content[data-current-script="products"] {
    display: block;
  }

  .page_content[data-current-script="collections"],
  .page_content[data-current-script="promotions"],
  .page_content[data-current-script="inventory"],
  .page_content[data-current-script="locations"],
  .page_content[data-current-script="customers"],
  .page_content[data-current-script="orders"],
  .page_content[data-current-script="reports"],
  .page_content[data-current-script="store-pickup"] {
    display: block;
  }

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

  .product_info {
    min-height: 0;
    padding: 0;
  }

  .product_title {
    font-size: var(--body-font-size);
  }

  .product_price {
    font-size: var(--body-font-size);
  }

  .product_workspace,
  .collections_workspace,
  .promotions_workspace,
  .loyalty_workspace,
  .locations_workspace,
  .customers_workspace,
  .inventory_workspace,
  .orders_workspace,
  .reports_workspace,
  .store_pickup_workspace {
    overflow: visible;
    padding: 22px;
  }

  .product_toolbar {
    position: sticky;
    top: calc(var(--mobile-topbar-offset-tablet) - 6px);
    z-index: 17;
    isolation: auto;
    margin: -22px -22px 18px;
    padding: 22px 22px 16px;
  }

  .product_toolbar::before {
    display: none;
  }

  .cart_panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    width: auto;
    height: min(90svh, 940px);
    max-height: min(90svh, 940px);
    margin: 0;
    border-top: 1px solid var(--cart-border);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: var(--cart);
    box-shadow: 0 -18px 36px var(--brand-shadow);
    padding: 16px 20px 22px;
    transform: translateY(105%);
    transition: transform 180ms ease;
  }

  .cart_panel.is_open {
    transform: translateY(0);
  }

  .cart_sheet_handle {
    display: block;
    width: 56px;
    height: 5px;
    align-self: center;
    border-radius: 999px;
    background: var(--cart-foreground);
    margin: 0 auto 12px;
  }

  .cart_mobile_close_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile_cart_trigger {
    display: flex;
    left: 20px;
    right: 20px;
    bottom: 126px;
  }

  .product_workspace > .load_more_wrap {
    margin: 8px 0 18px;
    padding: 10px 0 164px;
  }

  .product_workspace > .load_more_wrap .load_more_button {
    width: min(260px, 100%);
  }

  .mobile_cart_backdrop {
    display: block;
  }

  .mobile_cart_open .mobile_cart_trigger,
  .cart_panel.is_open + .mobile_cart_trigger {
    display: none;
  }

  .cart_items {
    margin-top: 16px;
    padding-bottom: 12px;
  }

  .cart_footer {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .cart_empty {
    margin-top: 48px;
  }

  .cart_item {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }

  .cart_thumb {
    width: 52px;
    height: 52px;
  }

  .cart_title {
    font-size: 16px;
  }

  .cart_variant {
    font-size: 13px;
  }

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

  .queue_list {
    max-height: min(40svh, 360px);
  }
}

@media (max-width: 767px) {
  body.mobile_cart_open {
    overflow: hidden;
  }

  .app_shell {
    display: block;
    height: auto;
    min-height: 100svh;
    padding-top: var(--mobile-topbar-offset-phone);
    padding-bottom: 94px;
    overflow: visible;
  }

  .page_content {
    display: block;
    height: auto;
    min-height: calc(100svh - var(--mobile-topbar-offset-phone) - 94px);
    overflow: visible;
  }

  .mobile_topbar {
    display: block;
    padding: 14px 14px 12px;
  }

  .offline_toast,
  .fulfillment_alert_toast {
    top: calc(var(--mobile-topbar-offset-phone) + 8px);
    width: calc(100vw - 24px);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.3;
  }

  .offline_toast:not([hidden]) + .fulfillment_alert_toast:not([hidden]) {
    top: calc(var(--mobile-topbar-offset-phone) + 62px);
  }

  .app_update_prompt {
    bottom: 88px;
    width: calc(100vw - 24px);
    align-items: stretch;
    flex-direction: column;
  }

  .app_update_prompt button {
    width: 100%;
  }

  .login_page .app_update_prompt {
    bottom: 16px;
  }

  .mobile_topbar_logo {
    width: 96px;
    min-width: 96px;
  }

  .mobile_topbar_label {
    font-size: var(--body-font-size);;
    letter-spacing: 0.04em;
  }

  .mobile_topbar_location {
    margin-top: 12px;
  }

  .mobile_location_label {
    display: none;
  }

  .mobile_location_selector {
    font-size: var(--body-font-size);
    padding: 0 12px;
  }

  .mobile_bottom_nav {
    display: flex;
  }

  .sidebar {
    display: none;
  }

  .product_workspace,
  .collections_workspace,
  .promotions_workspace,
  .loyalty_workspace,
  .locations_workspace,
  .customers_workspace,
  .inventory_workspace,
  .orders_workspace,
  .reports_workspace,
  .store_pickup_workspace {
    overflow: visible;
    padding: 16px;
  }

  .product_toolbar {
    position: sticky;
    top: calc(var(--mobile-topbar-offset-phone) - 6px);
    z-index: 17;
    isolation: auto;
    margin: -16px -16px 14px;
    padding: 16px;
  }

  .product_toolbar::before {
    display: none;
  }

  .product_toolbar h1,
  .page_header h1 {
    font-size: 24px;
  }

  .product_toolbar .search_input_wrap input {
    height: 48px;
    padding-right: 48px;
  }

  .product_toolbar .search_scan_button {
    right: 12px;
    width: 26px;
    height: 26px;
  }

  .product_toolbar .search_scan_button::before {
    left: 4px;
    top: 4px;
    width: 13px;
    height: 13px;
  }

  .product_toolbar .search_scan_button::after {
    left: 16px;
    top: 17px;
    width: 7px;
  }

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

  .product_card {
    min-height: auto;
    border-radius: 5px;
  }

  .product_view_toggle {
    width: fit-content;
    align-self: flex-end;
    gap: 6px;
    margin-top: 0;
  }

  .product_view_button {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .inventory_tabs {
    width: 100%;
  }

  .inventory_tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: var(--button-min-height);
  }

  .inventory_module_section {
    padding: 16px;
  }

  .inventory_form_grid {
    grid-template-columns: 1fr;
  }

  .inventory_search_row,
  .inventory_line_item,
  .inventory_receive_line,
  .inventory_transfer_top,
  .inventory_shipment_header,
  .inventory_module_header,
  .inventory_review_card,
  .inventory_section_header,
  .inventory_queue_item {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory_review_totals {
    justify-content: flex-start;
  }

  .inventory_review_card {
    grid-template-columns: 1fr;
  }

  .inventory_transfer_side {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .inventory_transfer_actions {
    width: 100%;
  }

  .inventory_queue_actions {
    flex-direction: column;
    width: 100%;
  }

  .inventory_queue_actions .load_more_button {
    width: 100%;
    min-height: 44px;
  }

  .inventory_outgoing_action_button {
    flex: 1 1 0;
    min-height: 38px;
  }

  .inventory_line_controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .inventory_quantity_input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
  }

  .inventory_add_item_button,
  .inventory_receive_button,
  .inventory_submit_button {
    width: 100%;
    min-height: 44px;
  }

  .inventory_remove_button {
    width: 100%;
    min-height: 44px;
  }

  .inventory_receive_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory_close_transfer_header,
  .inventory_close_transfer_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory_close_transfer_actions .checkout_button,
  .inventory_close_transfer_actions .load_more_button {
    width: 100%;
    min-height: 44px;
  }

  .product_list_product {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
  }

  .product_list_image {
    width: 56px;
    height: 56px;
  }

  .product_list_variant {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .product_list_variant_info,
  .product_list_stock {
    grid-column: 1 / 2;
  }

  .product_list_stock {
    display: flex;
    gap: 8px;
    align-items: baseline;
  }

  .product_list_stock span {
    margin-top: 0;
  }

  .product_list_price,
  .product_list_actions {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .product_list_add_button {
    min-width: 76px;
    min-height: var(--button-min-height);
  }

  .product_list_actions {
    flex-direction: column;
  }

  .variant_option {
    align-items: flex-start;
  }

  .variant_option_actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product_info {
    min-height: 0;
    padding: 0;
  }

  .product_title {
    font-size: var(--body-font-size);
  }

  .product_vendor,
  .product_variants,
  .product_compare_at_price,
  .product_stock_state {
    font-size: var(--h6-font-size);;
  }

  .product_price {
    font-size: var(--body-font-size);
  }

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

  .collection_content {
    padding: 14px;
  }

  .collection_content h2 {
    font-size: 16px;
  }

  .page_header,
  .customers_header {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .register_notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .store_pickup_card_top,
  .store_pickup_queue_header,
  .store_pickup_queue_item {
    align-items: stretch;
    flex-direction: column;
  }

  .store_pickup_status_block {
    justify-items: start;
  }

  .store_pickup_actions,
  .store_pickup_action_button {
    width: 100%;
  }

  .page_header.product_header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .page_header.product_header .manual_sync_actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .customers_header_actions {
    width: 100%;
    justify-content: space-between;
  }

  .cart_panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    width: auto;
    height: min(92svh, 860px);
    max-height: min(92svh, 860px);
    margin: 0;
    border-top: 1px solid var(--cart-border);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: var(--cart);
    box-shadow: 0 -18px 36px var(--brand-shadow);
    padding: 14px 16px 18px;
    transform: translateY(105%);
    transition: transform 180ms ease;
    overflow-y: auto;
  }

  .cart_panel.is_open {
    transform: translateY(0);
  }

  .cart_sheet_handle {
    display: block;
    width: 52px;
    height: 5px;
    align-self: center;
    border-radius: 999px;
    background: var(--cart-foreground);
    margin: 0 auto 10px;
  }

  .cart_mobile_close_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile_cart_trigger {
    display: flex;
  }

  .product_workspace > .load_more_wrap {
    margin: 8px 0 14px;
    padding: 10px 0 148px;
  }

  .product_workspace > .load_more_wrap .load_more_button {
    width: min(240px, 100%);
  }

  .mobile_cart_backdrop {
    display: block;
  }

  .mobile_cart_open .mobile_cart_trigger,
  .cart_panel.is_open + .mobile_cart_trigger {
    display: none;
  }

  .cart_items {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    margin-top: 12px;
    padding-bottom: 0;
  }

  .cart_empty {
    margin-top: 36px;
  }

  .cart_footer {
    margin-top: 12px;
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .cart_item {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }

  .cart_thumb {
    width: 52px;
    height: 52px;
  }

  .cart_item_body {
    gap: 7px;
  }

  .cart_title {
    font-size: var(--body-font-size);
  }

  .cart_variant {
    font-size: var(--body-font-size);;
  }

  .cart_item_bottom {
    align-items: center;
  }

  .queue_edit_banner {
    margin: 8px 0 12px;
    padding: 10px 12px;
  }

  .payment_grid {
    grid-template-columns: 1fr;
  }

  .payment_tile {
    min-height: 58px;
  }

  .payment_step_top {
    flex-direction: column;
    align-items: stretch;
  }

  .queue_list {
    max-height: min(38svh, 320px);
  }

  .queue_panel {
    margin-top: 12px;
    padding-top: 10px;
  }

  .modal_backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .customer_modal_backdrop {
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0 0;
  }

  .variant_modal {
    width: 100%;
    max-height: min(88svh, 760px);
    border-radius: 22px 22px 0 0;
    padding: 18px 16px 28px;
  }

  .customer_modal_backdrop .customer_modal {
    max-height: calc(100svh - 14px);
    border-radius: 22px;
  }

  .variant_header {
    position: sticky;
    top: 0;
    background: var(--card);
    padding-bottom: 12px;
    z-index: 1;
  }

  .customer_picker_body {
    max-height: none;
  }
}

.variant_empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
}

.register_workspace {
  min-height: 100vh;
  padding: 28px;
}

.register_header {
  align-items: flex-start;
  margin-bottom: 18px;
}

.register_workspace .page_loading {
  margin-bottom: 14px;
}

.register_loading {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.register_loading[hidden] {
  display: none;
}

.register_loading_spinner {
  animation: register_loading_spin 0.8s linear infinite;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.register_workspace.is_loading .register_summary,
.register_workspace.is_loading .register_detail_grid {
  opacity: 0.55;
  pointer-events: none;
}

.register_workspace.is_read_only .register_panel input,
.register_workspace.is_read_only .register_panel textarea {
  opacity: 0.65;
}

@keyframes register_loading_spin {
  to {
    transform: rotate(360deg);
  }
}

.register_summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.register_summary article,
.register_panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.register_summary article {
  padding: 16px;
}

.register_summary span,
.register_rows span,
.register_panel label span {
  color: var(--muted-foreground);
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.register_summary strong {
  color: var(--foreground);
  display: block;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

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

.register_panel {
  align-self: start;
  padding: 18px;
}

.register_panel_header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.register_panel_header h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.register_panel_header p {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.45;
  margin: 7px 0 0;
  max-width: 650px;
}

.register_review_badge {
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--foreground);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.register_panel label {
  display: block;
  margin-bottom: 12px;
}

.register_panel input,
.register_panel textarea {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.register_panel textarea {
  line-height: 1.35;
  resize: vertical;
}

.register_rows {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.register_rows div {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
}

.register_rows span {
  margin-bottom: 0;
}

.register_rows strong {
  text-align: right;
}

.register_close_panel {
  grid-column: span 2;
  padding: 22px;
}

.register_close_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.register_close_summary h3,
.register_close_form h3 {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 14px;
}

.register_close_summary .register_rows {
  margin-bottom: 0;
}

.register_close_form {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.register_close_form textarea {
  min-height: 118px;
}

.register_close_status {
  border-radius: 8px;
  background: var(--accent-surface);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.register_close_status.error {
  background: #fef3f2;
  color: #b42318;
}

.register_close_actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.register_close_actions .load_more_button {
  min-width: 130px;
}

/* Keeps the action usable while a previously cached Register template is still open. */
.register_close_panel > [data-register-force-close-button] {
  width: 100%;
  margin-top: 10px;
}

.register_workspace.is_manager_review .register_detail_grid {
  grid-template-columns: minmax(0, 960px);
}

.register_workspace.is_manager_review .register_close_panel {
  grid-column: 1;
}

.register_action_row {
  display: flex;
  gap: 10px;
}

.register_action_row .load_more_button {
  flex: 1;
}

@media (max-width: 1080px) {
  .register_summary,
  .register_detail_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register_close_panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .register_workspace {
    padding: 16px;
  }

  .register_header {
    align-items: stretch;
    flex-direction: column;
  }

  .register_summary,
  .register_detail_grid {
    grid-template-columns: 1fr;
  }

  .register_close_layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .register_close_form {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 22px;
  }

  .register_close_actions {
    grid-template-columns: 1fr;
  }

  .register_close_actions .load_more_button {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .stocktake_workspace {
    padding: 20px;
  }

  .inventory_stocktake {
    min-height: auto;
  }

  .stocktake_workspace .inventory_submit_row {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .page_content:has(.stocktake_workspace) {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .stocktake_workspace {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 16px;
  }

  .inventory_stocktake {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    padding: 16px;
  }

  .stocktake_workspace .inventory_header {
    display: block;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .stocktake_workspace .inventory_module_header,
  .stocktake_workspace .inventory_review_card,
  .stocktake_workspace .inventory_item_picker,
  .stocktake_workspace .inventory_selected_items,
  .stocktake_workspace .inventory_submit_row {
    width: 100% !important;
    max-width: calc(100vw - 64px) !important;
    min-width: 0;
  }

  .stocktake_workspace .inventory_header h1,
  .stocktake_workspace .inventory_header p,
  .stocktake_workspace .inventory_module_header h2,
  .stocktake_workspace .inventory_module_header p,
  .stocktake_workspace .inventory_review_card h2,
  .stocktake_workspace .inventory_review_card p,
  .stocktake_workspace .inventory_section_header h2,
  .stocktake_workspace .inventory_section_header p {
    width: 100%;
    max-width: calc(100vw - 64px);
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .stocktake_workspace .inventory_review_card {
    grid-template-columns: 1fr;
  }

  .stocktake_workspace .inventory_submit_row {
    align-items: stretch;
    flex-direction: column;
  }

  .stocktake_workspace .inventory_submit_row .manual_sync_button,
  .stocktake_workspace .inventory_submit_row .inventory_submit_button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1080px) {
  .orders_workspace {
    padding: 22px;
  }

  .orders_header h1 {
    font-size: var(--h1-font-size);
  }

  .orders_header .manual_sync_actions {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .orders_workspace {
    padding: 16px;
  }

  .orders_header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
  }

  .orders_header h1 {
    font-size: 24px;
  }

  .orders_header p {
    margin-top: 6px;
    line-height: 1.3;
  }

  .orders_header .manual_sync_actions {
    justify-content: space-between;
    padding-top: 0;
  }

  .orders_header .manual_sync_button {
    width: auto;
    min-width: 96px;
    min-height: 42px;
  }

  .orders_header .count_badge {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .orders_list {
    gap: 14px;
  }

  .order_card_toggle {
    padding: 14px;
  }

  .order_card_top {
    gap: 10px;
  }

  .order_card_created,
  .order_card_meta,
  .order_card_error {
    margin-top: 10px;
    line-height: 1.25;
  }

  .order_card_status_block {
    min-width: 80px;
    gap: 11px;
  }

  .order_status_badge {
    min-width: 78px;
    min-height: 30px;
    padding: 8px 12px;
    font-size: var(--body-font-size);;
  }

  .order_card_total {
    font-size: 17px;
  }

  .order_expand_label {
    margin-top: 16px;
  }

  .order_card_details {
    padding: 13px 14px 15px;
  }

  .order_line_item {
    gap: 10px;
  }

  .order_line_item_total {
    font-size: 17px;
  }
}

/* Table Mode */

.product_header_actions,
.order_mode_toggle,
.active_table_actions,
.table_mode_header {
  display: flex;
  align-items: center;
}

.product_header_actions {
  gap: 14px;
}

.order_mode_toggle {
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 22%, var(--card));
  padding: 3px;
}

.order_mode_button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  padding: 7px 14px;
  font-size: var(--body-font-size);
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease;
}

.order_mode_button:hover {
  color: var(--foreground);
}

.order_mode_button.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.active_table_banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-left: 4px solid var(--primary);
  border-radius: var(--border-radius);
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  margin-bottom: 20px;
  padding: 15px 18px;
}

.active_table_banner[hidden],
.table_mode_workspace[hidden] {
  display: none;
}

.active_table_eyebrow,
.table_tile_status {
  display: block;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.active_table_banner strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.active_table_banner p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
}

.active_table_elapsed {
  display: inline-block;
  margin-top: 7px;
  color: var(--primary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.active_table_elapsed[hidden] {
  display: none;
}

.active_table_actions {
  flex: 0 0 auto;
  gap: 9px;
}

.table_void_button,
.table_void_confirm_button {
  min-height: 40px;
  border: 1px solid #b42318;
  border-radius: 7px;
  background: transparent;
  color: #b42318;
  padding: 8px 15px;
  font-size: var(--body-font-size);
  font-weight: 700;
}

.table_void_confirm_button {
  background: #b42318;
  color: #ffffff;
}

.table_mode_workspace {
  animation: table_mode_enter 160ms ease-out;
  padding-bottom: 24px;
}

.table_mode_header {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.table_mode_header h2 {
  margin: 0;
  font-size: 24px;
}

.table_mode_header p {
  max-width: 620px;
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
}

.table_mode_status {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--muted-foreground);
  font-size: var(--body-font-size);
}

.table_mode_status:empty {
  min-height: 0;
  margin-bottom: 0;
}

.table_mode_status.is_error {
  color: #b42318;
}

.table_mode_loading {
  display: flex;
  min-height: clamp(200px, 42vh, 420px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted-foreground);
  text-align: center;
}

.table_mode_loading[hidden],
[data-table-content][hidden] {
  display: none;
}

.table_mode_loading_spinner {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  animation: register_loading_spin 0.8s linear infinite;
  border: 4px solid var(--accent-surface);
  border-top-color: var(--primary);
  border-radius: 50%;
}

.table_mode_loading strong {
  font-size: var(--body-font-size);
}

.table_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 13px;
}

.table_view_toggle {
  display: inline-flex;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 22%, var(--card));
  margin-bottom: 14px;
  padding: 3px;
}

.table_view_toggle[hidden] {
  display: none;
}

.table_view_button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  padding: 7px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.table_view_button.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.table_floor_plan_view[hidden],
[data-table-list-view][hidden] {
  display: none;
}

.table_floor_plan_scroller {
  width: 100%;
  overflow: auto;
  border-radius: 10px;
}

.table_floor_plan_canvas {
  position: relative;
  min-width: 680px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.table_floor_plan_canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.table_floor_plan_hotspots {
  position: absolute;
  inset: 0;
}

.table_floor_plan_hotspot {
  position: absolute;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 68%, transparent);
  color: var(--foreground);
  padding: 4px;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--foreground) 16%, transparent);
  backdrop-filter: blur(1.5px);
  font: inherit;
  text-align: center;
}

.table_floor_plan_hotspot strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table_floor_plan_hotspot.is_available {
  border-color: #067647;
  background: color-mix(in srgb, #ECFDF3 68%, transparent);
}

.table_floor_plan_hotspot.is_available strong {
  color: #067647;
}

.table_floor_plan_hotspot.is_reserved {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.table_floor_plan_hotspot.is_reserved strong {
  color: var(--accent-foreground);
}

.table_floor_plan_hotspot.is_occupied {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.table_floor_plan_hotspot.is_occupied strong {
  color: var(--primary);
}

.floor_plan_table_actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.floor_plan_table_actions button {
  min-height: 42px;
}

.table_tile {
  display: flex;
  min-height: 124px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  color: var(--foreground);
  padding: 16px;
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.table_tile:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--foreground) 8%, transparent);
  transform: translateY(-2px);
}

.table_tile:active {
  transform: translateY(0);
}

.table_tile strong {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.15;
}

.table_tile > span:not(.table_tile_status):not(.table_tile_total) {
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.35;
}

.table_tile.is_occupied {
  min-height: 148px;
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
}

.table_tile.is_occupied .table_tile_status {
  color: var(--primary);
}

.table_tile.is_reserved {
  min-height: 148px;
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}

.table_tile.is_reserved .table_tile_status,
.table_tile.is_reserved .table_tile_elapsed {
  color: var(--accent-foreground);
}

.table_tile_status_row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table_tile_elapsed {
  color: var(--primary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.table_tile_elapsed[hidden] {
  display: none;
}

.table_tile_total {
  margin-top: auto;
  padding-top: 13px;
  font-size: 18px;
  font-weight: 800;
}

.table_tile small {
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 11px;
}

.table_tile_actions {
  display: flex;
  width: 100%;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.table_tile_action {
  min-height: 38px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--foreground);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.table_tile_action:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}

.table_tile_action.is_primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.table_tile_action.is_danger {
  border-color: #b42318;
  color: #b42318;
}

.table_mode_empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
}

.table_mode_empty p {
  margin: 7px 0 0;
  color: var(--muted-foreground);
}

.page_content.is_table_board_open [data-product-catalog-only][hidden],
.page_content.is_table_board_open [data-product-sync-actions][hidden] {
  display: none;
}

.page_content.is_table_board_open .product_toolbar {
  margin-bottom: 18px;
}

.page_content.is_table_board_open [data-manual-sync-loader] {
  display: none;
}

.table_order_modal {
  width: min(480px, calc(100vw - 40px));
}

.table_order_modal_body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.table_order_modal_body > p:first-child {
  margin: 0 0 8px;
  color: var(--muted-foreground);
}

.table_order_modal_body label {
  margin-top: 5px;
  font-size: var(--body-font-size);
  font-weight: 700;
}

.table_order_modal_body select,
.table_order_modal_body input,
.table_order_modal_body textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--foreground);
  padding: 10px 12px;
  font: inherit;
}

.table_order_modal_body textarea {
  min-height: 90px;
  resize: vertical;
}

@keyframes table_mode_enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .product_header_actions {
    width: 100%;
    justify-content: space-between;
  }

  .table_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product_header_actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .order_mode_toggle {
    width: 100%;
  }

  .order_mode_button {
    flex: 1;
    min-height: 42px;
  }

  .product_header_actions .manual_sync_actions,
  .product_header_actions .manual_sync_button {
    width: 100%;
  }

  .active_table_banner,
  .table_mode_header {
    align-items: stretch;
    flex-direction: column;
  }

  .active_table_actions,
  .active_table_actions .load_more_button,
  .active_table_actions .table_void_button {
    width: 100%;
  }

  .active_table_actions .load_more_button,
  .active_table_actions .table_void_button {
    min-width: 0;
  }

  .table_mode_header .load_more_button {
    align-self: flex-start;
  }

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

  .table_floor_plan_canvas {
    min-width: 720px;
  }

  .table_mode_workspace {
    padding-bottom: 80px;
  }

  .floor_plan_table_actions {
    flex-direction: column;
  }

  .floor_plan_table_actions button {
    width: 100%;
  }

  .table_tile {
    min-height: 140px;
    padding: 14px;
  }

  .table_tile strong {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .table_grid {
    grid-template-columns: 1fr;
  }
}
