/* A shared visual language for the public menu and the restaurant workspace. */
.rpo-standalone {
  background: #f7f9f5;
}

.rpo-app {
  --rpo-radius-sm: 9px;
  --rpo-radius-md: 12px;
  --rpo-radius-lg: 16px;
  --rpo-radius-xl: 20px;
  --rpo-space-xs: 6px;
  --rpo-space-sm: 12px;
  --rpo-space-md: 18px;
  --rpo-space-lg: 26px;
  --rpo-space-xl: 38px;
  --rpo-shadow-sm: 0 4px 14px rgba(12, 29, 18, .06);
  --rpo-shadow-md: 0 14px 36px rgba(12, 29, 18, .1);
  --rpo-shadow: var(--rpo-shadow-sm);
  background: var(--rpo-background, #f7f9f5);
  color: var(--rpo-text, #263c2e);
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.rpo-app.rpo-theme-dark { color-scheme: dark; }
.rpo-app .rpo-header {
  padding: 20px 0;
  border-bottom-color: var(--rpo-border);
}
.rpo-app .rpo-brand {
  gap: 12px;
  color: #1c3d2c;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.rpo-app .rpo-brand small {
  margin-top: 3px;
  font-size: 12px;
}
.rpo-app .rpo-mark {
  flex: 0 0 44px;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(26, 60, 41, .15);
}
.rpo-app .rpo-mark-has-logo {
  background: transparent;
  overflow: hidden;
}
.rpo-app .rpo-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rpo-app .rpo-pill {
  background: #edf3ec;
  color: #24533a;
  font-size: 12px;
  font-weight: 700;
}
.rpo-app .rpo-intro {
  padding: 39px 0 25px;
  max-width: 850px;
}
.rpo-app .rpo-eyebrow {
  color: #527258;
  font-size: 11px;
  letter-spacing: .14em;
}
.rpo-app .rpo-intro h1 {
  color: #1c3428;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(33px, 4vw, 49px);
  font-weight: 740;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.rpo-app .rpo-intro #rpo-description {
  max-width: 740px;
  color: #53675a;
  font-size: 15px;
  line-height: 1.65;
}
.rpo-app .rpo-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}
.rpo-app .rpo-tools {
  margin-bottom: 20px;
}
.rpo-app .rpo-search {
  min-height: 52px;
  padding: 5px 16px;
  border-color: var(--rpo-border);
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(25, 54, 37, .025);
}
.rpo-app .rpo-search:focus-within {
  border-color: var(--rpo-green);
  box-shadow: 0 0 0 3px rgba(40, 94, 62, .12);
}
.rpo-app .rpo-search > span {
  font-size: 23px;
  line-height: 1;
}
.rpo-app .rpo-search input {
  min-height: 42px;
  padding: 7px 0;
  font-size: 15px;
}
.rpo-app #rpo-categories {
  gap: 8px;
  padding: 14px 0 5px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.rpo-app #rpo-categories button {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  color: #354d3c;
  font-size: 13px;
  font-weight: 650;
  scroll-snap-align: start;
  transition: background .16s, border-color .16s, transform .16s;
}
.rpo-app #rpo-categories button:hover {
  border-color: #9db5a2;
  background: #f2f7f1;
}
.rpo-app #rpo-categories button[aria-pressed=true] {
  background: var(--rpo-green);
  border-color: var(--rpo-green);
  color: #fff;
}
.rpo-app.rpo-catalog-loading .rpo-products[aria-busy="true"] {
  position: relative;
}
.rpo-app.rpo-catalog-loading .rpo-menu-loading-status {
  position: absolute;
  inset: 0 auto auto 0;
  margin: 0;
  padding: 0;
  color: var(--rpo-muted);
}
.rpo-app .rpo-products {
  gap: 16px;
}
.rpo-app .rpo-product {
  border-color: var(--rpo-border);
  border-radius: 18px;
  box-shadow: var(--rpo-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rpo-app .rpo-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(28, 54, 39, .105);
}
.rpo-app .rpo-product-body {
  padding: 19px;
}
.rpo-app .rpo-product-category {
  color: #6b7654;
  font-size: 10px;
  letter-spacing: .12em;
}
.rpo-app .rpo-product h2 {
  margin: 7px 0 5px;
  color: #1d382a;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.rpo-app .rpo-product-body > p {
  min-height: 39px;
  margin: 0 0 16px;
  color: #65756a;
  font-size: 13px;
  line-height: 1.5;
}
.rpo-app .rpo-product-bottom {
  gap: 12px;
  margin-top: auto;
}
.rpo-app .rpo-product-bottom > strong {
  color: #1e3e2b;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rpo-app .rpo-open-product,
.rpo-app .rpo-add {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #d3e2d4;
  border-radius: 11px;
  background: #eff5ee;
  color: #24533a;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.rpo-app .rpo-open-product:hover,
.rpo-app .rpo-add:hover {
  border-color: #9ebba2;
  background: #e5f0e4;
}
.rpo-app .rpo-bag {
  top: 22px;
  padding: 23px;
  border-color: var(--rpo-border);
  border-radius: 18px;
  box-shadow: var(--rpo-shadow);
}
.rpo-app .rpo-bag-head {
  padding-bottom: 15px;
}
.rpo-app .rpo-bag h2 {
  font-size: 21px;
  letter-spacing: -.02em;
}
.rpo-app .rpo-line {
  gap: 11px;
  padding: 15px 0;
}
.rpo-app .rpo-line strong {
  font-size: 13px;
  line-height: 1.35;
}
.rpo-app .rpo-line small,
.rpo-app .rpo-line div > span {
  font-size: 12px;
}
.rpo-app .rpo-quantity button {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  font-size: 21px;
}
.rpo-app .rpo-label {
  color: #365244;
  font-size: 12px;
  font-weight: 700;
}
.rpo-app textarea,
.rpo-app select {
  min-height: 44px;
  border-color: #cbd8ce;
  border-radius: 10px;
  background: #fff;
  color: #20372c;
  font-size: 14px;
}
.rpo-app .rpo-total {
  margin: 20px 0 15px;
  padding-top: 16px;
  border-top: 1px solid var(--rpo-border);
  font-size: 14px;
}
.rpo-app .rpo-total strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.rpo-app .rpo-primary {
  min-height: 50px;
  padding: 12px 17px;
  border-radius: 11px;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.3;
}
.rpo-app .rpo-secondary {
  min-height: 44px;
  border-radius: 11px;
  font-size: 13px !important;
}
.rpo-app .rpo-fine {
  font-size: 11px;
  line-height: 1.5;
}
.rpo-app .rpo-message {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.rpo-app :focus-visible,
.rpo-admin :focus-visible {
  outline: 3px solid #bc8742;
  outline-offset: 3px;
}

.rpo-product-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 820px);
  overflow: hidden;
  padding: 0;
  border-color: #d7e3d9;
  border-radius: 20px;
}
.rpo-product-dialog .rpo-dialog-head {
  flex: none;
  align-items: center;
  padding: 21px 24px;
  border-bottom: 1px solid #e2e9e2;
  background: #fff;
}
.rpo-product-dialog .rpo-dialog-head h2 {
  color: #1e3b2b;
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -.03em;
}
.rpo-product-dialog .rpo-dialog-head button {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 27px;
  line-height: 1;
}
.rpo-product-dialog #rpo-dialog-content {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 0;
  scrollbar-gutter: stable;
}
.rpo-product-dialog #rpo-dialog-content > p:first-child {
  margin: 0 0 16px;
  color: #5e7062;
  line-height: 1.55;
}
.rpo-product-dialog .rpo-ingredient-list {
  margin: 15px 0;
  padding: 15px;
  border-color: #dce6dc;
  border-radius: 14px;
}
.rpo-product-dialog .rpo-ingredient-list.is-invalid { border-color: var(--rpo-danger); }
.rpo-product-dialog .rpo-ingredient-list legend {
  padding: 0 6px;
  color: #254536;
  font-size: 15px;
}
.rpo-product-dialog .rpo-ingredient-card {
  border-radius: 11px !important;
  background: #fff;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.rpo-product-dialog .rpo-ingredient-card:has(input:checked) {
  background: #edf5ed;
}
.rpo-product-dialog .rpo-ingredient-icon {
  background: #f1f5ef;
}
.rpo-product-dialog .rpo-dialog-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px -24px 0;
  padding: 13px 24px 17px;
  border-top: 1px solid #e1e9e1;
  background: #fff;
  box-shadow: 0 -8px 18px rgba(25, 55, 36, .055);
}
.rpo-product-dialog .rpo-dialog-total {
  margin: 0;
  color: #244633;
  font-size: 17px;
  white-space: nowrap;
}
.rpo-product-dialog .rpo-dialog-footer .rpo-primary {
  width: auto;
  min-width: 220px;
  margin: 0;
}
.rpo-product-dialog .rpo-dialog-feedback { margin: 14px 0 0; padding: 9px 11px; border-radius: 9px; background: var(--rpo-chip-inactive); color: var(--rpo-text); font-size: 13px; line-height: 1.4; }
.rpo-product-dialog .rpo-dialog-feedback[hidden] { display: none; }
.rpo-product-dialog .rpo-group-feedback { margin: 10px 0 0; padding: 9px 11px; border: 1px solid var(--rpo-danger); border-radius: 9px; color: var(--rpo-text); font-size: 13px; line-height: 1.4; }
.rpo-product-dialog .rpo-group-feedback[hidden] { display: none; }
.rpo-product-dialog .rpo-dialog-suggestions { min-width: 0; margin: 22px 0 6px; }
.rpo-product-dialog .rpo-dialog-suggestions h3 { margin: 0 0 12px; color: var(--rpo-heading); font-size: 17px; }
.rpo-product-dialog .rpo-dialog-suggestions-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; min-width: 0; }
.rpo-product-dialog .rpo-dialog-suggestion { display: grid; grid-template-columns: clamp(76px,24%,110px) minmax(0,1fr); min-width: 0; overflow: hidden; border: 1px solid var(--rpo-border); border-radius: 11px; background: var(--rpo-surface); }
.rpo-product-dialog .rpo-dialog-suggestion-visual { display: grid; place-items: center; min-height: 110px; overflow: hidden; background: var(--rpo-chip-inactive); color: var(--rpo-accent); font-size: 28px; }
.rpo-product-dialog .rpo-dialog-suggestion-visual img { width: 100%; height: 100%; object-fit: cover; }
.rpo-product-dialog .rpo-dialog-suggestion-info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 11px 13px; }
.rpo-product-dialog .rpo-dialog-suggestion-info strong { color: var(--rpo-heading); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.rpo-product-dialog .rpo-dialog-suggestion-info span { color: var(--rpo-text); font-size: 13px; font-weight: 700; }
.rpo-product-dialog .rpo-dialog-suggestion-info button { min-height: 36px; max-width: 100%; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--rpo-border); border-radius: 8px; background: var(--rpo-button-secondary); color: var(--rpo-button-secondary-text); font-size: 12px; font-weight: 700; white-space: normal; }
.rpo-stock-dialog {
  border-radius: 18px;
}

/* WordPress administration remains native, with a clearer restaurant layer. */
.rpo-admin {
  --rpo-ui-primary: #245d45;
  --rpo-ui-primary-hover: #174b35;
  --rpo-ui-background: #f5f8f4;
  --rpo-ui-surface: #fff;
  --rpo-ui-surface-raised: #fff;
  --rpo-ui-text: #213b2c;
  --rpo-ui-heading: #1c3929;
  --rpo-ui-border: #dce5dd;
  --rpo-ui-muted: #596e60;
  --rpo-ui-success: #236943;
  --rpo-ui-warning: #94601e;
  --rpo-ui-danger: #a23c32;
  --rpo-ui-radius-sm: 9px;
  --rpo-ui-radius-md: 12px;
  --rpo-ui-radius-lg: 16px;
  --rpo-ui-shadow-sm: 0 5px 20px rgba(24, 52, 34, .05);
  --rpo-ui-shadow-md: 0 20px 60px rgba(16, 41, 26, .16);
  max-width: 1520px;
  color: var(--rpo-ui-text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.rpo-admin .rpo-admin-header {
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0 24px;
}
.rpo-admin .rpo-kicker {
  color: #5d7961;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}
.rpo-admin .rpo-admin-header h1 {
  margin: 0 0 5px;
  color: #1c3929;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.rpo-admin .rpo-admin-header p:last-child {
  max-width: 760px;
  color: #5c6d61;
  font-size: 13px;
  line-height: 1.55;
}
.rpo-admin .rpo-panel {
  border: 1px solid var(--rpo-ui-border);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(24, 52, 34, .045);
}
.rpo-admin .rpo-panel h2 {
  color: #1e3b2b;
  font-weight: 720;
  letter-spacing: -.02em;
}
.rpo-admin .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}
.rpo-admin .button-primary {
  background: #245d45;
  border-color: #245d45;
  color: #fff;
  font-weight: 700;
}
.rpo-admin .button-primary:hover,
.rpo-admin .button-primary:focus {
  background: #174b35;
  border-color: #174b35;
  color: #fff;
}
.rpo-admin input[type=text],
.rpo-admin input[type=search],
.rpo-admin input[type=number],
.rpo-admin input[type=email],
.rpo-admin input[type=tel],
.rpo-admin select,
.rpo-admin textarea {
  min-height: 42px;
  border-color: #bdcfc1;
  border-radius: 10px;
  background: #fff;
}
.rpo-admin input:focus,
.rpo-admin select:focus,
.rpo-admin textarea:focus {
  border-color: #2d7450;
  box-shadow: 0 0 0 2px rgba(45, 116, 80, .14);
}
.rpo-admin .rpo-settings-tabs {
  gap: 5px;
  padding: 5px;
  border-radius: 13px;
  background: #e9eee9;
}
.rpo-admin .rpo-settings-tabs a {
  min-height: 42px;
  border-radius: 9px;
  font-size: 13px;
}
.rpo-admin .rpo-settings-tabs a.active {
  color: #1f5037;
  box-shadow: 0 2px 8px rgba(21, 48, 31, .1);
}
.rpo-admin .rpo-check-control {
  min-height: 42px;
  border-radius: 10px;
}
.rpo-admin .rpo-field-card {
  border-radius: 14px;
}
.rpo-admin .rpo-field-card-head {
  padding: 17px 19px;
}
.rpo-admin .rpo-table-grid {
  gap: 14px;
}
.rpo-admin .rpo-table-grid .rpo-panel {
  padding: 18px;
}
.rpo-admin .rpo-table-total {
  color: #214833;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.rpo-admin .rpo-badge {
  font-size: 11px;
}
.rpo-admin .rpo-kanban {
  gap: 14px;
}
.rpo-admin .rpo-kanban-column {
  padding: 12px;
  border-color: #dce5dc;
  border-radius: 15px;
}
.rpo-admin .rpo-kanban .rpo-ticket {
  border-radius: 12px;
  box-shadow: 0 3px 11px rgba(26, 55, 37, .055);
}
.rpo-admin .rpo-column-title {
  color: #244433;
  font-weight: 720;
}
.rpo-admin .rpo-ticket-items li {
  line-height: 1.45;
}
.rpo-admin .rpo-ticket-links {
  gap: 8px 13px;
  line-height: 1.5;
}
.rpo-admin .rpo-ticket-links a {
  padding: 4px 0;
}
.rpo-admin .rpo-waiter-card {
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(24, 52, 34, .055);
}

@media (max-width: 1020px) {
  .rpo-app .rpo-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
}
@media (max-width: 760px) {
  .rpo-app {
    padding: 0 16px;
  }
  .rpo-app .rpo-layout {
    grid-template-columns: 1fr;
  }
  .rpo-app .rpo-intro {
    padding: 30px 0 20px;
  }
  .rpo-app .rpo-intro h1 {
    font-size: clamp(30px, 8vw, 38px);
  }
  .rpo-app .rpo-bag {
    position: static;
  }
  .rpo-app .rpo-mobile-cart {
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 13px;
    font-size: 14px;
    box-shadow: 0 10px 28px rgba(19, 55, 32, .24);
  }
  .rpo-app .rpo-footer {
    padding-bottom: 92px;
  }
  .rpo-product-dialog[open] {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
  }
  .rpo-product-dialog .rpo-dialog-head {
    padding: 15px 17px;
  }
  .rpo-product-dialog #rpo-dialog-content {
    padding: 15px 17px 0;
  }
  .rpo-product-dialog .rpo-dialog-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin: 16px -17px 0;
    padding: 12px 17px calc(13px + env(safe-area-inset-bottom));
  }
  .rpo-product-dialog .rpo-dialog-footer .rpo-primary {
    width: 100%;
  }
  .rpo-admin .rpo-admin-header {
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .rpo-app .rpo-products {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .rpo-app .rpo-product {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 156px;
  }
  .rpo-app .rpo-product-art {
    padding: 8px;
  }
  .rpo-app .rpo-product-art span {
    display: none;
  }
  .rpo-app .rpo-product-art b {
    right: 2px;
    bottom: -10px;
    font-size: 115px;
  }
  .rpo-app .rpo-product-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 13px 12px;
  }
  .rpo-app .rpo-product h2 {
    margin: 4px 0;
    font-size: 16px;
  }
  .rpo-app .rpo-product-body > p {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 9px;
    overflow: hidden;
    color: #627165;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .rpo-app .rpo-product-bottom {
    align-items: flex-end;
    gap: 7px;
  }
  .rpo-app .rpo-product-bottom > strong {
    font-size: 15px;
  }
  .rpo-app .rpo-open-product {
    min-height: 39px;
    padding: 6px 9px;
    font-size: 12px !important;
  }
  .rpo-admin .rpo-panel {
    padding: 17px;
  }
  .rpo-admin .rpo-settings-tabs {
    width: 100%;
  }
  .rpo-admin .rpo-settings-tabs a {
    min-width: 125px;
  }
}
@media (max-width: 360px) {
  .rpo-app .rpo-product {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .rpo-app .rpo-product-bottom {
    flex-wrap: wrap;
  }
}

/* Full category list for one-handed browsing on phones. */
.rpo-app .rpo-floating-filter {
  display: none;
}
.rpo-category-dialog:not([open]) {
  display: none;
}
.rpo-category-dialog[open] {
  position: fixed;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(340px, 88vw);
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  overflow: hidden;
  border: 0;
  border-radius: 22px 0 0 22px;
  background: #fff;
  color: #20372c;
  box-shadow: -18px 0 55px rgba(20, 38, 28, .22);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rpo-app:is(.rpo-filter-top-left, .rpo-filter-middle-left, .rpo-filter-bottom-left) .rpo-category-dialog[open] {
  inset: 0 auto 0 0;
  border-radius: 0 22px 22px 0;
  box-shadow: 18px 0 55px rgba(20, 38, 28, .22);
}
.rpo-category-dialog::backdrop {
  background: rgba(18, 32, 23, .55);
}
.rpo-category-dialog .rpo-category-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.rpo-category-dialog .rpo-category-eyebrow {
  color: #5c7864;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}
.rpo-category-dialog h2 {
  margin: 3px 0 0;
  color: #20372c;
  font-size: 25px;
  line-height: 1.15;
}
.rpo-category-dialog #rpo-filter-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #dce4dc;
  border-radius: 11px;
  background: #f3f6f2;
  color: #20372c;
  font-size: 24px;
  line-height: 1;
}
.rpo-category-dialog > p {
  margin: 11px 0 18px;
  color: #65756a;
  font-size: 13px;
}
.rpo-category-dialog #rpo-category-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow-y: auto;
  padding: 6px clamp(8px, 2.5vw, 12px) 12px;
  overscroll-behavior: contain;
}
.rpo-category-dialog #rpo-category-list button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #dce4dc;
  border-radius: 12px;
  background: #fff;
  color: #20372c;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rpo-category-dialog #rpo-category-list button[aria-pressed="true"] {
  border-color: var(--rpo-green, #245d45);
  background: #eff5ee;
  color: var(--rpo-green, #245d45);
  font-weight: 750;
}
.rpo-category-dialog .rpo-category-count {
  flex: 0 0 auto;
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf1eb;
  color: #486451;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rpo-category-dialog :focus-visible {
  outline: 3px solid #d99844;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  html.rpo-filter-open {
    overflow: hidden;
  }
  .rpo-app #rpo-categories {
    display: none;
  }
  .rpo-app .rpo-floating-filter {
    position: fixed;
    z-index: 20;
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 36px);
    min-height: 48px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--rpo-filter-background, var(--rpo-green));
    color: var(--rpo-filter-text, #fff);
    box-shadow: 0 7px 25px rgba(18, 51, 34, .28);
    font-size: 13px;
    font-weight: 750;
  }
  .rpo-app.rpo-filter-bottom-left .rpo-floating-filter {
    right: auto;
    left: 18px;
  }
  .rpo-app.rpo-filter-bottom-center .rpo-floating-filter {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .rpo-app.rpo-has-cart:is(.rpo-filter-bottom-left, .rpo-filter-bottom-center, .rpo-filter-bottom-right) .rpo-floating-filter {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .rpo-app:is(.rpo-filter-top-left, .rpo-filter-top-center, .rpo-filter-top-right) .rpo-floating-filter {
    top: calc(18px + env(safe-area-inset-top));
    bottom: auto;
  }
  body.admin-bar .rpo-app:is(.rpo-filter-top-left, .rpo-filter-top-center, .rpo-filter-top-right) .rpo-floating-filter {
    top: calc(64px + env(safe-area-inset-top));
  }
  .rpo-app.rpo-filter-top-left .rpo-floating-filter {
    right: auto;
    left: 18px;
  }
  .rpo-app.rpo-filter-top-center .rpo-floating-filter {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .rpo-app:is(.rpo-filter-middle-left, .rpo-filter-middle-right) .rpo-floating-filter {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .rpo-app.rpo-filter-middle-left .rpo-floating-filter {
    right: auto;
    left: 18px;
  }
  .rpo-app .rpo-filter-icon {
    font-size: 19px;
    line-height: 1;
  }
  .rpo-app .rpo-filter-selected {
    overflow: hidden;
    max-width: 94px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .17);
    background: color-mix(in srgb, currentColor 17%, transparent);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rpo-app .rpo-products {
    scroll-margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rpo-app .rpo-product,
  .rpo-app #rpo-categories button,
  .rpo-product-dialog .rpo-ingredient-card {
    transition: none;
  }
  .rpo-app .rpo-product:hover {
    transform: none;
  }
}

/* Each menu card gives the photo and the order controls equal space. */
.rpo-app .rpo-products {
  grid-template-columns: minmax(0, 1fr);
}
.rpo-app .rpo-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 220px;
}
.rpo-app .rpo-product-body {
  grid-column: 2;
  grid-row: 1;
  padding: 17px 19px;
}
.rpo-app .rpo-product-body > p {
  margin-bottom: 10px;
}
.rpo-app .rpo-product-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.rpo-app .rpo-card-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.rpo-app .rpo-card-stepper {
  display: grid;
  grid-template-columns: 32px 26px 32px;
  align-items: center;
  border: 1px solid #cbdccf;
  border-radius: 10px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.rpo-app .rpo-card-stepper button {
  width: 32px;
  height: 39px;
  border: 0;
  background: #eef5ef;
  color: var(--rpo-green);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}
.rpo-app .rpo-card-stepper output {
  text-align: center;
  font-size: 14px;
  font-weight: 750;
}
.rpo-app .rpo-quick-add,
.rpo-app .rpo-card-note {
  border: 0;
  background: transparent;
  color: var(--rpo-green);
  font-size: 12px;
  font-weight: 700;
}
.rpo-app .rpo-quick-add,
.rpo-app .rpo-open-product {
  min-height: 39px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #d3e2d4;
  border-radius: 10px;
  background: #eff5ee;
  text-align: center;
  white-space: nowrap;
}
.rpo-app .rpo-card-action-short {
  display: none;
}
.rpo-app .rpo-card-note {
  grid-column: 1 / -1;
  padding: 2px 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rpo-app .rpo-product-image,
.rpo-app .rpo-product h2 {
  cursor: default;
}
@media (max-width: 600px) {
  .rpo-app .rpo-product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 235px;
  }
  .rpo-app .rpo-product-body {
    padding: 12px;
  }
  .rpo-app .rpo-product-bottom {
    align-items: stretch;
  }
  .rpo-app .rpo-card-actions {
    gap: 5px;
  }
  .rpo-app .rpo-card-stepper {
    grid-template-columns: 26px 20px 26px;
  }
  .rpo-app .rpo-card-stepper button {
    width: 26px;
    height: 36px;
    font-size: 18px;
  }
  .rpo-app .rpo-card-action-long {
    display: none;
  }
  .rpo-app .rpo-card-action-short {
    display: inline;
  }
  .rpo-app .rpo-quick-add,
  .rpo-app .rpo-open-product {
    min-height: 36px;
    padding: 5px 6px;
    font-size: 11px !important;
  }
}
@media (max-width: 360px) {
  .rpo-app .rpo-product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .rpo-app .rpo-card-actions {
    gap: 4px;
  }
  .rpo-app .rpo-card-stepper {
    grid-template-columns: 24px 18px 24px;
  }
  .rpo-app .rpo-card-stepper button {
    width: 24px;
  }
  .rpo-app .rpo-product-body {
    padding: 9px;
  }
  .rpo-app .rpo-quick-add,
  .rpo-app .rpo-open-product {
    padding-inline: 4px;
  }
}

/* WooCommerce product photos rotate in the menu and open as a full gallery. */
.rpo-app .rpo-gallery-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 32, 22, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.rpo-app .rpo-gallery-dialog:not([open]) { display: none; }
.rpo-app .rpo-gallery-dialog[open] {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 14px;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #203b32;
  box-shadow: 0 25px 80px rgba(15, 32, 22, .34);
}
.rpo-app .rpo-gallery-dialog::backdrop { background: rgba(13, 25, 17, .78); }
.rpo-app .rpo-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rpo-app .rpo-gallery-head h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.rpo-app #rpo-gallery-close { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #eef2ed; color: #203b32; font-size: 26px; line-height: 1; }
.rpo-app .rpo-gallery-stage { position: relative; display: grid; place-items: center; min-height: 240px; background: #f5f6f2; border-radius: 12px; overflow: hidden; }
.rpo-app #rpo-gallery-image { display: block; max-width: 100%; width: auto; height: auto; max-height: min(66dvh, 650px); object-fit: contain; }
.rpo-app .rpo-gallery-stage button { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #203b32; box-shadow: 0 2px 10px #12261a33; font-size: 30px; line-height: 1; }
.rpo-app #rpo-gallery-prev { left: 10px; }
.rpo-app #rpo-gallery-next { right: 10px; }
.rpo-app .rpo-gallery-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.rpo-app #rpo-gallery-position { flex: none; font-size: 12px; font-weight: 700; }
.rpo-app .rpo-gallery-thumbnails { display: flex; gap: 7px; min-width: 0; overflow-x: auto; padding: 3px 2px; }
.rpo-app .rpo-gallery-thumbnails button { flex: none; width: 54px; height: 54px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #eef2ed; }
.rpo-app .rpo-gallery-thumbnails button[aria-current="true"] { border-color: var(--rpo-green); }
.rpo-app .rpo-gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .rpo-app .rpo-gallery-dialog[open] { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 10px; border-radius: 14px; }
  .rpo-app #rpo-gallery-image { max-height: 66dvh; }
}

/* Semantic surfaces shared by both menu themes. The values come from each branch. */
.rpo-app .rpo-header { border-color: var(--rpo-border); }
.rpo-app .rpo-brand,
.rpo-app .rpo-intro h1,
.rpo-app .rpo-product h2,
.rpo-app .rpo-bag h2,
.rpo-app .rpo-dialog-head h2 { color: var(--rpo-heading); }
.rpo-app .rpo-brand small,
.rpo-app .rpo-intro #rpo-description,
.rpo-app .rpo-product-body > p,
.rpo-app .rpo-fine,
.rpo-app .rpo-muted { color: var(--rpo-muted); }
.rpo-app .rpo-eyebrow,
.rpo-app .rpo-product-category,
.rpo-app .rpo-label { color: var(--rpo-accent); }
.rpo-app .rpo-pill { background: var(--rpo-chip-inactive); color: var(--rpo-chip-inactive-text); border: 1px solid var(--rpo-border); }
.rpo-app .rpo-mark { background: var(--rpo-primary); color: var(--rpo-button-primary-text); box-shadow: var(--rpo-shadow-sm); }
.rpo-app .rpo-search,
.rpo-app .rpo-product,
.rpo-app .rpo-bag,
.rpo-app .rpo-access-panel,
.rpo-app .rpo-gate-card { background: var(--rpo-surface); border-color: var(--rpo-border); color: var(--rpo-text); }
.rpo-app .rpo-search { border-radius: var(--rpo-radius-md); box-shadow: none; }
.rpo-app .rpo-search input { background: transparent !important; border: 0 !important; box-shadow: none; }
.rpo-app .rpo-search:focus-within { border-color: var(--rpo-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rpo-primary) 20%, transparent); }
.rpo-app .rpo-search input,
.rpo-app input:not([type=checkbox]):not([type=radio]),
.rpo-app textarea,
.rpo-app select { color: var(--rpo-input-text); }
.rpo-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.rpo-app textarea,
.rpo-app select { background: var(--rpo-input-background); border-color: var(--rpo-border); }
.rpo-app input::placeholder,
.rpo-app textarea::placeholder { color: var(--rpo-muted); opacity: 1; }
.rpo-app :focus-visible { outline-color: var(--rpo-accent); }
.rpo-app #rpo-categories button { background: var(--rpo-chip-inactive); color: var(--rpo-chip-inactive-text); border-color: var(--rpo-border); }
.rpo-app #rpo-categories button:hover { background: var(--rpo-button-secondary); color: var(--rpo-button-secondary-text); border-color: var(--rpo-primary); }
.rpo-app #rpo-categories button[aria-pressed=true] { background: var(--rpo-chip-active); color: var(--rpo-chip-active-text); border-color: var(--rpo-chip-active); }
.rpo-app .rpo-products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--rpo-space-md); }
.rpo-app .rpo-product { display: flex; flex-direction: column; min-height: 0; border-radius: var(--rpo-radius-lg); box-shadow: var(--rpo-shadow-sm); }
.rpo-app .rpo-product:hover { box-shadow: var(--rpo-shadow-md); }
/* A single saved ratio controls every catalogue card, including placeholders.
   Scoped geometry protects against theme/WooCommerce image and button resets. */
#rpo-app.rpo-app .rpo-product .rpo-product-visual,
#rpo-app.rpo-app .rpo-product .rpo-product-art {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  min-width: 0;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--rpo-product-image-ratio, 1 / 1) !important;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--rpo-chip-inactive);
}
#rpo-app.rpo-app .rpo-product .rpo-product-photo {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}
#rpo-app.rpo-app .rpo-product .rpo-product-image {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  /* Keep even square-image corners clear of the card's rounded clipping edge. */
  padding: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}
.rpo-app .rpo-product-art { color: var(--rpo-accent); background: linear-gradient(145deg, var(--rpo-chip-inactive), var(--rpo-surface-raised)); }
.rpo-app .rpo-product:nth-child(n) .rpo-product-art { background: linear-gradient(145deg, var(--rpo-chip-inactive), var(--rpo-surface-raised)); color: var(--rpo-accent); }
.rpo-app .rpo-product-body { min-width: 0; padding: var(--rpo-space-md); }
.rpo-app .rpo-product-body > p { min-height: 0; margin-bottom: var(--rpo-space-sm); }
.rpo-app .rpo-product-bottom > strong { color: var(--rpo-price); }
.rpo-app .rpo-card-stepper { border-color: var(--rpo-border); border-radius: var(--rpo-radius-sm); }
.rpo-app .rpo-card-stepper button { background: var(--rpo-button-secondary); color: var(--rpo-button-secondary-text); }
.rpo-app .rpo-card-stepper button:hover:not(:disabled) { background: var(--rpo-chip-active); color: var(--rpo-chip-active-text); }
.rpo-app .rpo-quantity button,
.rpo-app .rpo-dialog-stepper button { background: var(--rpo-button-secondary); color: var(--rpo-button-secondary-text); border-color: var(--rpo-border); }
.rpo-app .rpo-dialog-stepper,
.rpo-app #rpo-customer-fields { border-color: var(--rpo-border); }
.rpo-app .rpo-quick-add,
.rpo-app .rpo-open-product,
.rpo-app .rpo-add { background: var(--rpo-button-primary); border-color: var(--rpo-button-primary); color: var(--rpo-button-primary-text); }
.rpo-app .rpo-quick-add:hover,
.rpo-app .rpo-open-product:hover,
.rpo-app .rpo-add:hover { background: color-mix(in srgb, var(--rpo-button-primary) 86%, var(--rpo-background)); border-color: var(--rpo-button-primary); color: var(--rpo-button-primary-text); }
.rpo-app .rpo-card-note { color: var(--rpo-primary); }
.rpo-app .rpo-primary { background: var(--rpo-button-primary); border-color: var(--rpo-button-primary); color: var(--rpo-button-primary-text); }
.rpo-app .rpo-secondary { background: var(--rpo-button-secondary); border-color: var(--rpo-border); color: var(--rpo-button-secondary-text); }
.rpo-app .rpo-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--rpo-button-primary) 86%, var(--rpo-background)); color: var(--rpo-button-primary-text); }
.rpo-app .rpo-secondary:hover { background: var(--rpo-chip-inactive); color: var(--rpo-button-secondary-text); }
.rpo-app .rpo-bag,
.rpo-app .rpo-product { border-radius: var(--rpo-radius-lg); }
.rpo-app .rpo-bag-head,
.rpo-app .rpo-total { border-color: var(--rpo-border); }
.rpo-app .rpo-line-image { display: block; flex: none; width: 54px; height: 54px; object-fit: cover; border-radius: var(--rpo-radius-sm); background: var(--rpo-chip-inactive); }
.rpo-app .rpo-line-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rpo-app .rpo-total strong { color: var(--rpo-price); }
.rpo-app .rpo-message,
.rpo-app .rpo-added-toast { background: var(--rpo-surface-raised); color: var(--rpo-text); border-color: var(--rpo-border); box-shadow: var(--rpo-shadow-md); }
.rpo-app .rpo-message.rpo-error { border-color: var(--rpo-danger); color: var(--rpo-danger); }
.rpo-app .rpo-empty,
.rpo-app .rpo-footer { color: var(--rpo-muted); }
.rpo-app .rpo-added-toast > span:first-child { background: var(--rpo-success); color: var(--rpo-background); }
.rpo-app .rpo-gallery-dialog[open],
.rpo-app .rpo-product-dialog[open],
.rpo-app .rpo-category-dialog[open],
.rpo-app .rpo-stock-dialog { background: var(--rpo-surface-raised); color: var(--rpo-text); border-color: var(--rpo-border); border-radius: var(--rpo-radius-xl); }
.rpo-app .rpo-category-dialog[open] { border-radius: var(--rpo-radius-xl) 0 0 var(--rpo-radius-xl); }
.rpo-app:is(.rpo-filter-top-left, .rpo-filter-middle-left, .rpo-filter-bottom-left) .rpo-category-dialog[open] { border-radius: 0 var(--rpo-radius-xl) var(--rpo-radius-xl) 0; }
.rpo-app .rpo-dialog-head,
.rpo-app .rpo-product-dialog .rpo-dialog-head,
.rpo-app .rpo-product-dialog .rpo-dialog-footer { background: var(--rpo-surface-raised); color: var(--rpo-text); border-color: var(--rpo-border); }
.rpo-app .rpo-product-dialog #rpo-dialog-content > p:first-child { color: var(--rpo-muted); }
.rpo-app .rpo-dialog-head button,
.rpo-app #rpo-gallery-close,
.rpo-app .rpo-category-dialog #rpo-filter-close { background: var(--rpo-button-secondary); color: var(--rpo-button-secondary-text); border-color: var(--rpo-border); }
.rpo-app .rpo-dialog-photo { margin: 0 0 var(--rpo-space-md); overflow: hidden; border-radius: var(--rpo-radius-md); background: var(--rpo-surface); }
.rpo-app .rpo-dialog-photo img { display: block; width: 100%; max-height: 310px; object-fit: cover; }
.rpo-app .rpo-ingredient-list { border-color: var(--rpo-border); }
.rpo-app .rpo-ingredient-list legend,
.rpo-app .rpo-dialog-total { color: var(--rpo-heading); }
.rpo-app .rpo-ingredient-card,
.rpo-app .rpo-product-dialog .rpo-ingredient-card { background: var(--rpo-surface); color: var(--rpo-text); border-color: var(--rpo-border); border-radius: var(--rpo-radius-sm) !important; }
.rpo-app .rpo-product-dialog .rpo-ingredient-card:has(input:checked) { background: var(--rpo-chip-inactive); border-color: var(--rpo-primary); }
.rpo-app .rpo-ingredient-icon { background: var(--rpo-chip-inactive); color: var(--rpo-chip-inactive-text); }
.rpo-app .rpo-ingredient-unavailable small { color: var(--rpo-danger); }
.rpo-app .rpo-gallery-stage { background: var(--rpo-surface); }
.rpo-app .rpo-gallery-stage button { background: var(--rpo-button-secondary); color: var(--rpo-button-secondary-text); }
.rpo-app .rpo-gallery-thumbnails button { background: var(--rpo-surface); }
.rpo-app .rpo-gate-card { border-radius: var(--rpo-radius-xl); box-shadow: var(--rpo-shadow-md); }
.rpo-app .rpo-gate-card h1 { color: var(--rpo-heading); }
.rpo-app .rpo-gate-card > p { color: var(--rpo-muted); }
.rpo-app .rpo-phone-composite { background: var(--rpo-input-background); border-color: var(--rpo-border); }
.rpo-app .rpo-phone-prefix { background: var(--rpo-chip-inactive); border-color: var(--rpo-border); color: var(--rpo-chip-inactive-text); }
.rpo-app .rpo-phone-caret { color: var(--rpo-muted); }
.rpo-app .rpo-phone-composite:focus-within { outline-color: var(--rpo-accent); }
.rpo-app.rpo-qr-gate { background: var(--rpo-background); }
.rpo-app .rpo-category-dialog h2 { color: var(--rpo-heading); }
.rpo-app .rpo-category-dialog > p,
.rpo-app .rpo-category-eyebrow { color: var(--rpo-muted); }
.rpo-app .rpo-category-dialog #rpo-category-list button { background: var(--rpo-chip-inactive); color: var(--rpo-chip-inactive-text); border-color: var(--rpo-border); }
.rpo-app .rpo-category-dialog #rpo-category-list button[aria-pressed=true] { background: var(--rpo-chip-active); color: var(--rpo-chip-active-text); border-color: var(--rpo-chip-active); }
.rpo-app .rpo-category-count { background: var(--rpo-button-secondary); color: var(--rpo-button-secondary-text); }
.rpo-app .rpo-stock-dialog #rpo-stock-detail { color: var(--rpo-warning); }
.rpo-app .rpo-stock-dialog #rpo-stock-alternatives { background: var(--rpo-chip-inactive); color: var(--rpo-chip-inactive-text); }
.rpo-app .rpo-cart-allergy { color: var(--rpo-danger) !important; }
@media (max-width: 760px) {
  .rpo-app .rpo-products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
  .rpo-app .rpo-card-stepper { grid-template-columns: 38px 30px 38px; }
  .rpo-app .rpo-card-stepper button { width: 38px; min-height: 40px; }
  .rpo-app .rpo-card-action-long { display: inline; }
  .rpo-app .rpo-card-action-short { display: none; }
  .rpo-app .rpo-quick-add,
  .rpo-app .rpo-open-product { min-height: 40px; font-size: 12px !important; }
}
@media (max-width: 430px) {
  .rpo-app .rpo-product-body { padding: 16px; }
  .rpo-app .rpo-product-bottom { gap: 8px; }
  .rpo-app .rpo-card-actions { grid-template-columns: auto minmax(0, 1fr); }
  .rpo-app .rpo-card-action-long { display: none; }
  .rpo-app .rpo-card-action-short { display: inline; }
}
/* Workspace components share restrained radii, borders and focus treatment. */
.rpo-admin .rpo-panel,
.rpo-admin .rpo-field-card,
.rpo-admin .rpo-marketing-card,
.rpo-admin .rpo-question,
.rpo-admin .rpo-survey-question,
.rpo-admin .rpo-branch-capacity { background: var(--rpo-ui-surface); border: 1px solid var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-lg); box-shadow: var(--rpo-ui-shadow-sm); }
.rpo-admin .rpo-customer-summary { margin: 16px 0; padding: 16px 20px; border: 1px solid var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-lg); background: var(--rpo-ui-surface); color: var(--rpo-ui-text); box-shadow: var(--rpo-ui-shadow-sm); line-height: 1.6; }
.rpo-admin .rpo-customer-summary strong { color: var(--rpo-ui-heading); }
.rpo-admin .rpo-column-choices { display: grid; gap:14px; align-items: start; }
.rpo-admin .rpo-column-fields { display: flex; flex-wrap: wrap; gap: 10px 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rpo-admin .rpo-column-fields legend { padding: 0 0 8px; font-weight: 650; }
.rpo-admin .rpo-customer-page-size { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rpo-ui-border); }
.rpo-admin .rpo-customer-page-size label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.rpo-admin .rpo-customer-page-size input { width: 84px; min-height: var(--rpo-control-height); }
.rpo-admin .rpo-customer-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; color: var(--rpo-ui-muted); }
.rpo-admin .rpo-customer-page-controls,
.rpo-admin .rpo-customer-page-controls form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rpo-admin .rpo-customer-page-controls label { display: flex; align-items: center; gap: 6px; }
.rpo-admin .rpo-customer-page-controls input { width: 62px; min-height: var(--rpo-control-height); }
.rpo-admin .rpo-customer-page-controls .button { min-width: 38px; text-align: center; }
.rpo-admin .rpo-admin-header h1,
.rpo-admin .rpo-panel h2,
.rpo-admin .rpo-panel h3 { color: var(--rpo-ui-heading); }
.rpo-admin .rpo-admin-header p:last-child,
.rpo-admin .rpo-panel > p,
.rpo-admin .description { color: var(--rpo-ui-muted); }
.rpo-admin .rpo-panel h2 { margin-top: 0; }
.rpo-admin .button { border-radius: var(--rpo-ui-radius-sm); transition: background-color .15s, border-color .15s, box-shadow .15s; }
.rpo-admin .button-primary { background: var(--rpo-ui-primary); border-color: var(--rpo-ui-primary); }
.rpo-admin .button-primary:hover,
.rpo-admin .button-primary:focus { background: var(--rpo-ui-primary-hover); border-color: var(--rpo-ui-primary-hover); }
.rpo-admin :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { border-radius: var(--rpo-ui-radius-sm); border-color: var(--rpo-ui-border); }
.rpo-admin :is(input, select, textarea):focus-visible,
.rpo-admin :is(button, a, summary):focus-visible { outline: 3px solid #b77431; outline-offset: 2px; }
.rpo-admin .rpo-admin-filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; background: var(--rpo-ui-surface); border: 1px solid var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-md); }
.rpo-admin .rpo-admin-filters :is(input, select) { min-height: 42px; }
.rpo-admin .rpo-admin-filters .button { min-height: 42px; }
.rpo-admin .rpo-settings-tabs { width: fit-content; max-width: 100%; margin-bottom: 20px; overflow-x: auto; background: #e9f0e9; }
.rpo-admin .rpo-settings-tabs a { white-space: nowrap; }
.rpo-admin .rpo-settings-tabs a.active { background: var(--rpo-ui-surface); color: var(--rpo-ui-primary); }
.rpo-admin :is(.rpo-staff-table, .rpo-customer-table-wrap, .rpo-backup-table) { border: 1px solid var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-md); background: var(--rpo-ui-surface); }
.rpo-admin :is(.widefat, .wp-list-table) { border-color: var(--rpo-ui-border); }
.rpo-admin :is(.widefat, .wp-list-table) thead th { background: #f3f7f2; color: var(--rpo-ui-heading); font-weight: 700; }
.rpo-admin :is(.widefat, .wp-list-table) tbody tr:hover { background: #f7faf6; }
.rpo-admin :is(.widefat, .wp-list-table) td,
.rpo-admin :is(.widefat, .wp-list-table) th { padding-top: 11px; padding-bottom: 11px; vertical-align: middle; }
.rpo-admin .rpo-table-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
.rpo-admin .rpo-table-grid .rpo-panel { min-width: 0; }
.rpo-admin #rpo-tables.rpo-table-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }
.rpo-admin .rpo-table-create { display: block; padding: 20px 22px; }
.rpo-admin .rpo-table-create h2 { margin: 0 0 14px; }
.rpo-admin .rpo-table-create .rpo-form { display: grid; width: 100%; max-width: none; grid-template-columns: minmax(0, 3fr) minmax(170px, 1fr) minmax(180px, 1fr); align-items: start; column-gap: 20px; row-gap: 12px; }
.rpo-admin .rpo-table-create label,
.rpo-admin .rpo-table-filters label { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; }
.rpo-admin .rpo-table-create input,
.rpo-admin .rpo-table-filters :is(input, select),
.rpo-admin .rpo-table-settings input { width: 100%; max-width: none; min-height: 42px; }
.rpo-admin .rpo-table-create small,
.rpo-admin .rpo-table-settings small { color: var(--rpo-ui-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.rpo-admin .rpo-table-create .button { grid-column: auto; justify-self: stretch; min-height: 42px; margin-top: 23px; }
.rpo-admin .rpo-table-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 16px 0 8px; padding: 16px; border: 1px solid var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-md); background: var(--rpo-ui-surface); }
.rpo-admin .rpo-table-filter-count { margin: 0 0 14px; color: var(--rpo-ui-muted); font-size: 13px; }
.rpo-admin #rpo-tables .rpo-table[hidden] { display: none !important; }
.rpo-admin .rpo-table-opened { margin: 8px 0 -8px; color: var(--rpo-ui-muted); font-size: 12px; line-height: 1.4; }
.rpo-admin .rpo-table-capacity { margin: -8px 0 14px; color: var(--rpo-ui-muted); font-size: 13px; font-weight: 600; }
.rpo-admin .rpo-table-settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rpo-ui-border); }
.rpo-admin .rpo-table-settings summary { cursor: pointer; font-weight: 600; }
.rpo-admin .rpo-table-settings .rpo-form { display: grid; gap: 10px; align-items: start; margin-top: 14px; }
.rpo-admin .rpo-table-settings label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.rpo-admin .rpo-table-settings .button { justify-self: start; min-height: 40px; }
@media (max-width: 1100px) {
  .rpo-admin .rpo-table-create .rpo-form { grid-template-columns: minmax(0, 2fr) minmax(170px, 1fr); }
  .rpo-admin .rpo-table-create .button { grid-column: 1 / -1; justify-self: end; width: auto; margin-top: 0; }
}
@media (max-width: 600px) {
  .rpo-admin .rpo-table-create { padding: 18px; }
  .rpo-admin .rpo-table-create .rpo-form { grid-template-columns: minmax(0, 1fr); }
  .rpo-admin .rpo-table-create .button { width: 100%; }
}
.rpo-admin .rpo-table-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(48px, 1fr); gap: 10px; margin-top: 16px; }
.rpo-admin .rpo-table-actions > :only-child { grid-column: 1 / -1; }
.rpo-admin .rpo-table-actions > form.rpo-form { display: block; min-width: 0; width: 100%; margin: 0; }
.rpo-admin .rpo-table-actions .button { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 48px; padding: 8px 10px; line-height: 1.25; text-align: center; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .rpo-admin .rpo-table-actions { grid-template-columns: minmax(0, 1fr); }
}
.rpo-admin .rpo-badge { border-radius: 999px; font-weight: 700; }
.rpo-admin .rpo-table[data-state=free] { border-top: 3px solid var(--rpo-ui-success); }
.rpo-admin .rpo-table[data-state=open] { border-top: 3px solid var(--rpo-ui-primary); }
.rpo-admin .rpo-table[data-state=checkout] { border-top: 3px solid var(--rpo-ui-warning); }
.rpo-admin .rpo-table[data-state=disabled] { opacity: .7; }
.rpo-admin .rpo-table[data-state=free] .rpo-badge,
.rpo-admin .rpo-badge.rpo-ready,
.rpo-admin .rpo-badge.rpo-delivered { background: #e7f4e9; color: var(--rpo-ui-success); }
.rpo-admin .rpo-table[data-state=checkout] .rpo-badge,
.rpo-admin .rpo-badge.rpo-preparing { background: #fff1d9; color: var(--rpo-ui-warning); }
.rpo-admin .rpo-badge.rpo-cancelled { background: #fbe9e6; color: var(--rpo-ui-danger); }
.rpo-admin .rpo-badge.rpo-received { background: #edf2f5; color: #31586b; }
.rpo-admin .rpo-kanban-column { background: #edf2ec; border-color: var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-lg); }
.rpo-admin .rpo-kanban .rpo-ticket { background: var(--rpo-ui-surface); border: 1px solid var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-md); box-shadow: var(--rpo-ui-shadow-sm); }
.rpo-admin .rpo-order-tab { border-radius: var(--rpo-ui-radius-sm); }
.rpo-admin .rpo-order-tab.is-current { background: var(--rpo-ui-primary); border-color: var(--rpo-ui-primary); }
.rpo-admin .rpo-branch-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 335px), 1fr)); }
.rpo-admin .rpo-branch-usage strong { color: var(--rpo-ui-primary); font-variant-numeric: tabular-nums; }
.rpo-admin .rpo-marketing-card,
.rpo-admin .rpo-survey-editor { min-width: 0; }
.rpo-admin .rpo-question { min-width: 0; padding: 18px; }
.rpo-admin .rpo-question-head { border-color: var(--rpo-ui-border); }
.rpo-admin .rpo-question-preview { color: var(--rpo-ui-muted); }
.rpo-admin .rpo-survey-question { padding: 18px; }
.rpo-admin .rpo-survey-question :is(input, textarea, select) { max-width: 100%; }
.rpo-admin .rpo-backup-table td { vertical-align: middle; }
.rpo-admin .rpo-crm-dialog,
.rpo-admin .rpo-feedback-dialog { border-color: var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-lg); box-shadow: var(--rpo-ui-shadow-md); }
.rpo-admin .rpo-crm-detail > div { background: #f8faf7; border-color: var(--rpo-ui-border); border-radius: var(--rpo-ui-radius-sm); }
.rpo-admin .rpo-crm-actions summary { min-width: 40px; min-height: 40px; border-radius: var(--rpo-ui-radius-sm); }
.rpo-admin .rpo-stars { color: var(--rpo-ui-warning); }

@media (max-width: 782px) {
  .rpo-admin .rpo-admin-filters label { flex-basis: min(100%, 220px); }
  .rpo-admin .rpo-settings-tabs { width: 100%; flex-wrap: nowrap; }
  .rpo-admin .rpo-settings-tabs a { flex: none; }
  .rpo-admin .rpo-kanban { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .rpo-admin .rpo-admin-filters label,
  .rpo-admin .rpo-admin-filters .button { width: 100%; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rpo-admin .button { transition: none; }
}

/* Shared controls for Bakata's admin pages only. */
.rpo-admin {
  --rpo-control-height: 42px;
  --rpo-control-radius: var(--rpo-ui-radius-sm);
  --rpo-control-border: #bfcec2;
  --rpo-control-focus: var(--rpo-ui-primary);
  --rpo-control-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4 4.5-4' fill='none' stroke='%235b7162' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.rpo-admin :is(input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=url],input[type=date],input[type=time],input[type=search],input:not([type]),select,textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--rpo-control-height);
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--rpo-control-border);
  border-radius: var(--rpo-control-radius);
  background-color: #fff;
  color: var(--rpo-ui-text);
  box-shadow: none;
  font: 400 14px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
.rpo-admin :is(input,textarea)::placeholder { color: #79887d; opacity: 1; }
.rpo-admin :is(input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=url],input[type=date],input[type=time],input[type=search],input:not([type]),select,textarea):focus {
  border-color: var(--rpo-control-focus);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(36,93,69,.12);
}
.rpo-admin select:not([multiple]):not([size]) {
  appearance: none;
  padding-right: 38px;
  background-image: var(--rpo-control-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.rpo-admin select:disabled { cursor: not-allowed; }
.rpo-admin textarea { min-height: 94px; resize: vertical; }
.rpo-admin :is(.rpo-form,.rpo-admin-filters,.rpo-cashier-summary,.rpo-feedback-dialog,.rpo-bill-section,.rpo-transfer-fields,.rpo-marketing-card) label { color: var(--rpo-ui-text); font-size: 13px; font-weight: 650; line-height: 1.4; }
.rpo-admin label > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { margin-top: 6px; }
.rpo-admin :is(.description,.rpo-cashier-muted,.rpo-service-help,.rpo-sound-hint,.rpo-staff-action p) { color: var(--rpo-ui-muted); font-size: 12px; line-height: 1.5; }
.rpo-admin .description { margin: 6px 0 0; }
.rpo-admin :is(input[type=checkbox],input[type=radio]) { accent-color: var(--rpo-ui-primary); vertical-align: middle; margin-right: 5px; }
.rpo-admin .button {
  min-height: var(--rpo-control-height);
  padding: 9px 15px;
  border: 1px solid var(--rpo-control-border);
  border-radius: var(--rpo-control-radius);
  background: #fff;
  color: var(--rpo-ui-primary);
  box-shadow: none;
  font: 650 13px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.rpo-admin .button:hover { border-color: var(--rpo-ui-primary); background: #f2f7f2; color: var(--rpo-ui-primary-hover); }
.rpo-admin .button.button-primary { border-color: var(--rpo-ui-primary); background: var(--rpo-ui-primary); color: #fff; }
.rpo-admin .button.button-primary:hover { border-color: var(--rpo-ui-primary-hover); background: var(--rpo-ui-primary-hover); color: #fff; }
.rpo-admin .button:is(.button-link-delete,.rpo-danger) { color: var(--rpo-ui-danger); border-color: color-mix(in srgb,var(--rpo-ui-danger) 45%,white); }
.rpo-admin .button:focus-visible { outline: 2px solid var(--rpo-ui-primary); outline-offset: 2px; box-shadow: none; }
.rpo-admin .button:disabled,.rpo-admin .button[disabled] { opacity: .5; cursor: not-allowed; }
.rpo-admin .rpo-tip-grid { display: grid; grid-template-columns: minmax(0,9fr) minmax(0,11fr); gap: 11px; align-items: start; }
.rpo-admin .rpo-tip-grid > label { display: block; min-width: 0; margin: 0; }
.rpo-admin .rpo-tip-grid > label[hidden] { display: none !important; }
.rpo-admin .rpo-tip-input { position: relative; display: block; min-width: 0; margin-top: 6px; }
.rpo-admin .rpo-tip-grid .rpo-tip-input input { width: 100%; max-width: none; min-height: var(--rpo-control-height); margin: 0; border-radius: var(--rpo-control-radius); }
.rpo-admin .rpo-tip-input > span { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); color: var(--rpo-ui-muted); pointer-events: none; }
.rpo-admin .rpo-tip-input [data-rpo-tip-prefix] { left: 13px; }
.rpo-admin .rpo-tip-input [data-rpo-tip-suffix] { right: 13px; }
.rpo-admin .rpo-tip-input input[type=number] { appearance: textfield; }
.rpo-admin .rpo-tip-input input::-webkit-inner-spin-button,.rpo-admin .rpo-tip-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.rpo-admin .rpo-tip-grid .rpo-tip-input[data-kind=fixed] input { padding-left: 56px; }
.rpo-admin .rpo-tip-grid .rpo-tip-input[data-kind=percent] input { padding-right: 38px; }
@media (max-width: 520px) { .rpo-admin .rpo-tip-grid { grid-template-columns: minmax(0,1fr); } }
/* Native country selectors are intentionally transparent over their visible flag controls. */
.rpo-admin .rpo-phone-prefix select,.rpo-admin .rpo-cashier-phone select { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.rpo-admin .rpo-phone-composite > input { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.rpo-admin .rpo-phone-composite:focus-within { border-color: var(--rpo-control-focus); box-shadow: 0 0 0 2px rgba(36,93,69,.12); outline: 0; }
.rpo-admin :is(.rpo-bill-stepper,.rpo-service-qty-stepper) input { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.rpo-admin .rpo-settings .rpo-form > label > :is(input,select,textarea),
.rpo-admin .rpo-admin-filters :is(input,select),
.rpo-admin .rpo-staff-action :is(input,select),
.rpo-admin .rpo-feedback-dialog :is(input,select,textarea),
.rpo-admin .rpo-branch-country :is(input,select) { min-height: var(--rpo-control-height); border-color: var(--rpo-control-border); border-radius: var(--rpo-control-radius); }
@media (max-width: 782px) {
  .rpo-admin :is(.rpo-form,.rpo-admin-filters) > label { min-width: 0; }
  .rpo-admin :is(.rpo-form,.rpo-admin-filters) > label > :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { width: 100%; }
  .rpo-admin .rpo-admin-filters .button { min-height: 44px; }
}

/* Menu appearance editor. */
.rpo-admin .rpo-appearance-settings { max-width: 1280px; }
.rpo-admin .rpo-appearance-settings .rpo-form { display: block; }
.rpo-admin .rpo-appearance-layout { display: grid; grid-template-columns: minmax(0,3fr) minmax(300px,2fr); align-items: start; gap: 28px; }
.rpo-admin .rpo-appearance-layout > * { min-width: 0; }
.rpo-admin .rpo-appearance-layout h3 { margin: 0 0 12px; font-size: 16px; }
.rpo-admin .rpo-appearance-config > h3:not(:first-child) { margin-top: 28px; }
.rpo-admin .rpo-preset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.rpo-admin .rpo-preset-card { min-width: 0; padding: 16px; border: 1px solid var(--rpo-ui-border); border-radius: 12px; background: #fff; }
.rpo-admin .rpo-preset-card.is-selected { border-color: var(--rpo-ui-primary); }
.rpo-admin .rpo-preset-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rpo-admin .rpo-preset-head strong { color: var(--rpo-ui-heading); font-size: 14px; }
.rpo-admin .rpo-preset-active { padding: 3px 7px; border-radius: 99px; background: #e9f4eb; color: var(--rpo-ui-primary); font-size: 11px; font-weight: 700; }
.rpo-admin .rpo-preset-active[hidden] { display: none; }
.rpo-admin .rpo-preset-card p { min-height: 34px; margin: 7px 0 10px; color: var(--rpo-ui-muted); font-size: 12px; }
.rpo-admin .rpo-preset-swatches { display: flex; gap: 5px; margin-bottom: 14px; }
.rpo-admin .rpo-preset-swatches span { width: 22px; height: 22px; border: 1px solid #0002; border-radius: 50%; }
.rpo-admin .rpo-preset-actions { display: flex; align-items: center; gap: 8px; }
.rpo-admin .rpo-palette-more { position: relative; }
.rpo-admin .rpo-palette-more summary { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; list-style: none; cursor: pointer; }
.rpo-admin .rpo-palette-more summary::-webkit-details-marker { display: none; }
.rpo-admin .rpo-palette-more > div { position: absolute; top: 100%; right: 0; z-index: 5; display: grid; gap: 8px; min-width: 130px; padding: 10px 12px; border: 1px solid var(--rpo-ui-border); border-radius: 9px; background: #fff; box-shadow: 0 12px 30px #14291b22; }
.rpo-admin .rpo-palette-more .button-link { text-align: left; }
.rpo-admin .rpo-palettes-empty { grid-column: 1/-1; margin: 0; padding: 16px; border: 1px dashed var(--rpo-ui-border); border-radius: 10px; color: var(--rpo-ui-muted); }
.rpo-admin .rpo-preset-status { margin: 12px 0 0; color: var(--rpo-ui-primary); font-size: 13px; font-weight: 700; }
.rpo-admin .rpo-appearance-config > .description { max-width: 560px; }
.rpo-admin .rpo-appearance-config .rpo-palette-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px 0 0; gap: 12px; }
.rpo-admin .rpo-palette-field { min-width: 0; padding: 14px; border: 1px solid var(--rpo-ui-border); border-radius: 11px; background: #fff; }
.rpo-admin .rpo-palette-field label { display: grid; gap: 4px; font-size: 13px; }
.rpo-admin .rpo-palette-field label strong { color: var(--rpo-ui-heading); }
.rpo-admin .rpo-palette-field label span { min-height: 32px; color: var(--rpo-ui-muted); line-height: 1.4; }
.rpo-admin .rpo-palette-control { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.rpo-admin .rpo-palette-control output { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--rpo-ui-heading); }
.rpo-admin .rpo-palette-grid .wp-picker-container { margin-top: 7px; }
.rpo-admin .rpo-palette-grid .wp-color-result { min-height: 36px; border-radius: 8px; }
.rpo-admin .rpo-palette-grid .wp-picker-input-wrap input { min-height: 36px; width: 105px; margin: 0; }
.rpo-admin .rpo-appearance-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rpo-admin .rpo-palette-editor { display: grid; gap: 12px; margin-top: 16px; padding: 18px; border: 1px solid var(--rpo-ui-border); border-radius: 12px; background: #f8fbf8; }
.rpo-admin .rpo-palette-editor[hidden] { display: none; }
.rpo-admin .rpo-palette-editor h4 { margin: 0; font-size: 15px; }
.rpo-admin .rpo-palette-editor label { display: grid; gap: 5px; font-weight: 600; }
.rpo-admin .rpo-palette-editor input { width: 100%; max-width: 520px; }
.rpo-admin .rpo-palette-editor .rpo-appearance-actions { margin-top: 2px; }
.rpo-admin .rpo-appearance-preview-wrap { position: sticky; top: 48px; }
.rpo-admin .rpo-appearance-preview { padding: 23px; border: 1px solid color-mix(in srgb,var(--preview-text) 17%,var(--preview-background)); border-radius: 18px; background: var(--preview-background); color: var(--preview-text); }
.rpo-admin .rpo-preview-brand { padding-bottom: 18px; border-bottom: 1px solid color-mix(in srgb,var(--preview-text) 17%,var(--preview-background)); font-size: 13px; font-weight: 700; }
.rpo-admin .rpo-appearance-preview h4 { margin: 22px 0 3px; color: var(--preview-heading); font-size: 25px; }
.rpo-admin .rpo-appearance-preview p { margin: 0; color: color-mix(in srgb,var(--preview-text) 75%,var(--preview-background)); font-size: 12px; }
.rpo-admin .rpo-preview-search { margin: 20px 0 14px; padding: 11px 13px; border: 1px solid color-mix(in srgb,var(--preview-text) 17%,var(--preview-surface)); border-radius: 9px; background: var(--preview-surface); color: color-mix(in srgb,var(--preview-text) 62%,var(--preview-surface)); font-size: 12px; }
.rpo-admin .rpo-preview-categories { display: flex; gap: 7px; margin-bottom: 14px; }
.rpo-admin .rpo-preview-categories span { padding: 7px 10px; border: 1px solid color-mix(in srgb,var(--preview-text) 17%,var(--preview-surface)); border-radius: 8px; background: var(--preview-surface); color: var(--preview-text); font-size: 12px; }
.rpo-admin .rpo-preview-categories .is-active { border-color: var(--preview-accent); background: var(--preview-accent); color: var(--preview-accent-text); }
.rpo-admin .rpo-preview-product { padding: 17px; border: 1px solid color-mix(in srgb,var(--preview-text) 17%,var(--preview-surface)); border-radius: 12px; background: var(--preview-surface); }
.rpo-admin .rpo-preview-product strong,.rpo-admin .rpo-preview-product b { color: var(--preview-heading); }
.rpo-admin .rpo-preview-product strong { font-size: 15px; }
.rpo-admin .rpo-preview-product p { margin: 5px 0 18px; }
.rpo-admin .rpo-preview-product > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rpo-admin .rpo-preview-product span { padding: 9px 12px; border-radius: 8px; background: var(--preview-primary); color: var(--preview-primary-text); font-size: 12px; font-weight: 700; }
@media (max-width: 1000px) { .rpo-admin .rpo-appearance-layout { grid-template-columns: minmax(0,1fr); } .rpo-admin .rpo-appearance-preview-wrap { position: static; } }
@media (max-width: 600px) { .rpo-admin .rpo-preset-grid,.rpo-admin .rpo-appearance-config .rpo-palette-grid { grid-template-columns: minmax(0,1fr); } .rpo-admin .rpo-appearance-actions .button { width: 100%; } }

.rpo-admin .rpo-staff-team-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.rpo-admin .rpo-staff-team-head h2{margin:0 0 5px}
.rpo-admin .rpo-staff-team-head p{margin:0;color:var(--rpo-ui-muted);line-height:1.5}
.rpo-admin .rpo-staff-team-head .button{flex:none}
.rpo-admin .rpo-staff-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 28px);padding:24px;border:1px solid var(--rpo-ui-border);border-radius:16px;background:var(--rpo-ui-surface);color:var(--rpo-ui-text);overflow-y:auto}
.rpo-admin .rpo-staff-dialog::backdrop{background:#14291b88}
.rpo-admin .rpo-staff-dialog h2{margin:0 0 18px}
.rpo-admin .rpo-staff-dialog .rpo-form{display:grid;gap:14px}
.rpo-admin .rpo-staff-dialog .rpo-form label{display:block}
.rpo-admin .rpo-staff-dialog .rpo-form :is(input:not([type=hidden]),select){display:block;width:100%;margin-top:6px}
.rpo-admin .rpo-staff-dialog .rpo-form p{margin:0;color:var(--rpo-ui-muted);font-size:12px;line-height:1.5}
.rpo-admin .rpo-staff-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:600px){.rpo-admin .rpo-staff-team-head{flex-direction:column}.rpo-admin .rpo-staff-team-head .button{width:100%}.rpo-admin .rpo-staff-dialog{padding:18px}.rpo-admin .rpo-staff-dialog-actions .button{flex:1}}

/* Contextual actions shared by Bakata's administrative tables and staff screens. */
.rpo-admin .rpo-action-menu{display:grid;gap:1px;min-width:185px;padding:5px;border:1px solid var(--rpo-ui-border);border-radius:11px;background:var(--rpo-ui-surface-raised);box-shadow:0 14px 36px color-mix(in srgb,var(--rpo-ui-text) 18%,transparent)}
.rpo-admin .rpo-action-menu>button{display:block;width:100%;min-height:42px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:var(--rpo-ui-text);font:inherit;font-size:13px;line-height:1.3;text-align:left;text-decoration:none;cursor:pointer}
.rpo-admin .rpo-action-menu>button:not(:disabled):is(:hover,:focus-visible){background:var(--rpo-ui-background);color:var(--rpo-ui-primary)}
.rpo-admin .rpo-action-menu>button:focus-visible{outline:2px solid var(--rpo-ui-primary);outline-offset:-2px}
.rpo-admin .rpo-action-menu>button.rpo-danger-action{color:var(--rpo-ui-danger)!important}
.rpo-admin .rpo-action-menu>button.rpo-danger-action:not(:disabled):is(:hover,:focus-visible){background:color-mix(in srgb,var(--rpo-ui-danger) 10%,var(--rpo-ui-surface-raised));color:var(--rpo-ui-danger)!important}
.rpo-admin .rpo-action-menu>button.rpo-danger-action:focus-visible{outline-color:var(--rpo-ui-danger)}
.rpo-admin .rpo-action-menu>button:disabled{opacity:.45;cursor:not-allowed}
.rpo-admin .rpo-staff-menu{width:44px;min-width:44px}
.rpo-admin .rpo-staff-menu summary{width:44px;height:44px;border-color:var(--rpo-ui-border);border-radius:10px;background:var(--rpo-ui-surface-raised);color:var(--rpo-ui-heading);font-size:25px}
.rpo-admin .rpo-staff-menu[open] summary{border-color:var(--rpo-ui-primary);color:var(--rpo-ui-primary)}
.rpo-admin .rpo-staff-menu summary:focus-visible{outline:2px solid var(--rpo-ui-primary);outline-offset:2px}

.rpo-admin .rpo-customer-name{text-align:left;font-weight:650;text-decoration:underline;text-underline-offset:2px}
.rpo-admin .rpo-crm-history ul{margin:0 0 18px;padding-left:20px}
.rpo-admin .rpo-crm-history li{margin:7px 0;color:var(--rpo-ui-text);line-height:1.45}
.rpo-admin .rpo-crm-surveys{display:grid;gap:10px;margin-bottom:18px}
.rpo-admin .rpo-crm-survey{border:1px solid var(--rpo-ui-border);border-radius:10px;background:var(--rpo-ui-surface);overflow:hidden}
.rpo-admin .rpo-crm-survey.is-low-rating{border-color:#c9a16a}
.rpo-admin .rpo-crm-survey summary{padding:12px 15px;color:var(--rpo-ui-heading);font-weight:700;cursor:pointer;line-height:1.4}
.rpo-admin .rpo-crm-survey[open] summary{border-bottom:1px solid var(--rpo-ui-border)}
.rpo-admin .rpo-crm-survey dl{margin:0;padding:5px 15px 12px}
.rpo-admin .rpo-crm-survey dl>div{padding:9px 0;border-bottom:1px solid var(--rpo-ui-border)}
.rpo-admin .rpo-crm-survey dl>div:last-child{border:0}
.rpo-admin .rpo-crm-survey dt{font-size:12px;font-weight:700;color:var(--rpo-ui-heading)}
.rpo-admin .rpo-crm-survey dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.rpo-admin .rpo-crm-survey p{margin:12px 15px;color:var(--rpo-ui-muted)}
.rpo-admin .rpo-crm-whatsapp[hidden]{display:none}

/* Public menu identity: the uploaded artwork sits directly on the menu background. */
.rpo-app .rpo-header,
.rpo-app.rpo-table-menu .rpo-header { flex-wrap: nowrap; }
.rpo-app .rpo-brand { flex: 0 1 auto; min-width: 0; max-width: 350px; overflow-wrap: anywhere; }
.rpo-app .rpo-brand-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 80px; object-fit: contain; }
.rpo-app .rpo-brand-name { min-width: 0; overflow-wrap: anywhere; }
.rpo-app .rpo-header-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 0; max-width: 42%; margin-left: auto; text-align: right; }
.rpo-app .rpo-header-actions .rpo-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.rpo-app .rpo-header-branch { max-width: 100%; color: var(--rpo-muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .rpo-app .rpo-brand { max-width: 60%; }
  .rpo-app .rpo-brand-logo { max-height: 64px; }
  .rpo-app .rpo-header-actions { max-width: 40%; }
}

/* Appearance editor logo controls and the live menu preview. */
.rpo-admin .rpo-identity-logos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.rpo-admin .rpo-identity-logo { min-width: 0; padding: 14px; border: 1px solid var(--rpo-ui-border); border-radius: 12px; }
.rpo-admin .rpo-identity-logo > strong { display: block; color: var(--rpo-ui-heading); font-size: 13px; }
.rpo-admin .rpo-identity-logo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.rpo-admin .rpo-identity-logo-thumb { display: grid; place-items: center; flex: 0 1 160px; min-width: 110px; height: 72px; border: 1px solid var(--rpo-ui-border); border-radius: 9px; background: transparent; color: var(--rpo-ui-muted); font-size: 12px; }
.rpo-admin .rpo-identity-logo-thumb img { display: block; width: auto; height: auto; max-width: 100%; max-height: 68px; object-fit: contain; }
.rpo-admin .rpo-identity-logo-controls > div { display: flex; flex-wrap: wrap; gap: 7px; }
.rpo-admin .rpo-identity-logo-controls .button { min-height: 40px; }
.rpo-admin .rpo-identity-logos + .description { margin: 10px 0 0; }
.rpo-admin .rpo-preview-brand { min-height: 52px; }
.rpo-admin .rpo-preview-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; }
.rpo-admin .rpo-identity-logo [hidden],
.rpo-admin .rpo-appearance-preview [hidden] { display: none !important; }
@media (max-width: 600px) {
  .rpo-admin .rpo-identity-logos { grid-template-columns: minmax(0,1fr); }
}

/* Palette appearance changes metadata and native controls without replacing colors. */
.rpo-admin .rpo-appearance-settings .rpo-palette-appearance { display: grid; gap: 6px; margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.rpo-admin .rpo-appearance-settings .rpo-palette-appearance select { width: 100%; min-width: 0; max-width: 100%; min-height: 40px; }
.rpo-admin .rpo-appearance-settings .rpo-active-appearance { margin-top: 20px; max-width: 320px; }
