:root {
  --accent: #ed3f2d;
  --accent-dark: #bc2518;
  --ink: #23201f;
  --muted: #706966;
  --line: #e7e7e7;
  --paper: #f8f8f8;
  --white: #ffffff;
  --success: #167a45;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--ink);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--paper);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(20, 12, 9, 0.12);
}

.login-card img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card form,
.login-card label {
  display: grid;
  gap: 10px;
}

.login-card label {
  font-weight: 900;
  color: var(--muted);
}

.login-card input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.login-error {
  border-radius: 8px;
  padding: 10px;
  background: #ffe8df;
  color: #aa2918;
  font-weight: 900;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 88px;
}

.store-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.store-cover {
  height: clamp(132px, 22vw, 230px);
  background:
    linear-gradient(90deg, rgba(20, 12, 9, 0.66), rgba(20, 12, 9, 0.12)),
    url("./assets/banner.jpeg") center/cover;
}

.store-panel {
  display: flex;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: -42px auto 0;
  padding: 0 0 22px;
  align-items: flex-end;
}

.store-logo {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border: 4px solid var(--white);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(33, 21, 17, 0.24);
}

.store-copy {
  min-width: 0;
  padding-top: 48px;
}

.store-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  border: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.store-kicker.closed {
  background: #ffe8df;
  color: #9a170d;
  border-color: #ed3f2d;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.store-copy p {
  margin-top: 5px;
  color: var(--muted);
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #4d4541;
  font-size: 14px;
}

.store-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #f0c5c0;
  border-radius: 999px;
  background: #fff4f2;
  color: #2a1b18;
  font-weight: 800;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
}

.customer-access {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.secondary-button.logged-in {
  border-color: #167a45;
  background: #e7f6ed;
  color: #167a45;
}

.order-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-width: 540px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.checkout-content .order-mode {
  max-width: none;
}

.mode-button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.mode-button.active {
  background: var(--accent);
  color: var(--white);
}

.mode-button.paused,
.mode-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.search-box span {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 14px -16px 0;
  padding: 10px 16px;
  overflow-x: auto;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #111111;
  box-shadow: 0 10px 22px rgba(237, 63, 45, 0.16);
}

.category-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background: #ffffff;
  color: #201817;
  font-weight: 950;
}

.category-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(237, 63, 45, 0.28);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  margin-top: 16px;
}

.menu-section {
  margin-bottom: 26px;
}

.menu-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-title-row h3 {
  font-size: 17px;
  line-height: 1.25;
}

.tag {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7e9cf;
  color: #7e4a08;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.price {
  font-size: 18px;
  font-weight: 900;
}

.add-button,
.quantity-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.product-card img {
  width: 132px;
  height: 122px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-panel {
  position: sticky;
  top: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(46, 34, 29, 0.08);
}

.cart-header,
.cart-line,
.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-header h2 {
  font-size: 20px;
}

.cart-header span,
.totals span {
  color: var(--muted);
  font-size: 14px;
}

.cart-empty {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 18px;
  border: 1px dashed #d7c9c0;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-empty strong {
  color: var(--ink);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.cart-line {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-line h3 {
  font-size: 15px;
}

.cart-line small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-actions button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 16px;
}

.coupon-row input,
.checkout-content input,
.checkout-content textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline-color: var(--accent);
}

.coupon-row button {
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #2c2826;
  color: var(--white);
  font-weight: 800;
}

.totals {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.total-line strong {
  color: var(--accent-dark);
  font-size: 21px;
}

.checkout-button {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 900;
}

.checkout-button:disabled,
.mobile-cart:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.loyalty-box {
  margin-top: 14px;
  border: 1px solid #f5d486;
  border-radius: 8px;
  padding: 12px;
  background: #fff1ef;
  color: #7d5200;
  font-size: 14px;
  font-weight: 900;
}

.loyalty-box.active {
  border-color: #167a45;
  background: #e7f6ed;
  color: #167a45;
}

.customer-orders {
  display: grid;
  gap: 8px;
}

.account-summary {
  display: grid;
  gap: 3px;
  border: 1px solid #cfe9da;
  border-radius: 8px;
  padding: 12px;
  background: #edf9f2;
  color: #167a45;
}

.account-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--white);
}

.account-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.account-tabs button.active {
  background: var(--accent);
  color: var(--white);
}

.account-panel {
  display: grid;
  gap: 13px;
}

.customer-order {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.customer-order-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(31, 21, 17, 0.08);
}

.customer-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-order-head div {
  display: grid;
  gap: 3px;
}

.customer-order-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.customer-status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 5px;
  padding: 0 8px;
  background: #777;
  color: var(--white) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.customer-order-items {
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.customer-order-total {
  font-size: 15px;
}

.customer-order-details {
  display: grid;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--white);
  font-size: 13px;
}

.customer-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.customer-detail-header div {
  display: grid;
  gap: 3px;
}

.customer-detail-header span,
.customer-detail-item small {
  color: var(--muted);
  font-weight: 800;
}

.customer-detail-section {
  display: grid;
  gap: 10px;
}

.customer-detail-section h3 {
  margin: 0;
  padding: 14px 10px;
  background: #ececec;
  font-size: 15px;
}

.customer-detail-section p {
  margin: 0;
  padding: 0 10px;
}

.customer-detail-timeline {
  display: grid;
  gap: 12px;
  padding: 0 10px;
}

.customer-detail-timeline div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.customer-detail-timeline div::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -14px;
  left: 5px;
  width: 2px;
  background: var(--accent);
}

.customer-detail-timeline div:last-child::before {
  display: none;
}

.customer-detail-timeline span {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.customer-detail-timeline.cancelled span {
  background: #b91c1c;
}

.customer-whatsapp-button {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #59b354;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.customer-detail-items {
  display: grid;
  gap: 0;
}

.customer-detail-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
}

.customer-detail-item div {
  display: grid;
  gap: 4px;
}

.customer-detail-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.customer-detail-item span {
  color: var(--accent);
  font-weight: 900;
}

.customer-outline-button,
.customer-repeat-button {
  width: 100%;
  min-height: 40px;
  border-radius: 5px;
  font-weight: 900;
}

.customer-outline-button {
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--accent-dark);
}

.customer-repeat-button {
  border: 0;
  background: var(--accent);
  color: var(--white);
}

.customer-status-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.customer-status-step {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.customer-status-step span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.customer-status-step.done span {
  border-color: #167a45;
  background: #167a45;
}

.customer-status-step.current {
  color: var(--accent-dark);
}

.customer-status-step.current span {
  border-color: var(--accent);
  background: var(--accent);
}

.customer-status-track.cancelled .customer-status-step span {
  border-color: #b91c1c;
  background: #b91c1c;
}

.customer-promos {
  display: grid;
  gap: 14px;
}

.customer-page {
  min-height: 100vh;
  padding-bottom: 82px;
  background: var(--white);
}

.customer-page.hidden {
  display: none !important;
}

.customer-page-open .app-shell,
.customer-page-open dialog,
.customer-page-open .mobile-cart {
  display: none !important;
}

.customer-page-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  width: min(760px, calc(100% - 28px));
  min-height: 56px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.customer-page-header h2 {
  font-size: 17px;
  font-weight: 800;
}

.customer-back-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.customer-page-content {
  width: min(760px, calc(100% - 28px));
  margin: 16px auto 0;
}

.customer-page-panel {
  display: grid;
  gap: 16px;
}

.customer-main-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 58px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 18px rgba(31, 21, 17, 0.08);
}

.store-profile-card {
  display: grid;
  gap: 16px;
}

.store-profile-name {
  padding: 14px 16px;
  background: #111111;
  color: var(--white);
  font-weight: 950;
}

.store-profile-description {
  padding: 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.store-profile-notice {
  padding: 14px 16px;
  background: var(--accent-dark);
  color: var(--white);
  font-weight: 900;
}

.danger-button {
  border-color: #b91c1c;
  color: #b91c1c;
}

.store-profile-min {
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.store-profile-section {
  display: grid;
  gap: 12px;
}

.store-profile-section h3 {
  padding: 16px;
  background: #ececec;
  font-size: 17px;
}

.store-profile-list {
  display: grid;
  gap: 0;
  padding: 0 16px;
}

.store-profile-list p {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #2c2724;
  line-height: 1.35;
}

.store-profile-list p:last-child {
  border-bottom: 0;
}

.customer-main-nav button {
  display: grid;
  gap: 2px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 800;
}

.customer-main-nav span {
  font-size: 20px;
  line-height: 1;
}

.customer-main-nav button.active {
  color: var(--accent);
}

.customer-main-nav [data-customer-nav="promos"],
.customer-main-nav [data-customer-nav="store"],
.customer-main-nav [data-customer-nav="history"] {
  display: none;
}

.pix-payment-open .app-shell,
.pix-payment-open .customer-main-nav,
.pix-payment-open dialog:not(.pix-confirm-dialog),
.pix-payment-open .mobile-cart {
  display: none !important;
}

.pix-wait-page {
  min-height: 100vh;
  background: var(--white);
  padding-bottom: 22px;
}

.pix-wait-page.hidden {
  display: none !important;
}

.pix-wait-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(188, 37, 24, 0.24);
}

.pix-wait-header .customer-back-button {
  color: var(--white);
}

.pix-wait-header h2 {
  color: var(--white);
  font-size: 25px;
  font-weight: 800;
}

.pix-wait-content {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: min(720px, calc(100% - 30px));
  margin: 36px auto 0;
  text-align: center;
}

.pix-wait-illustration {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: #fff3f1;
  color: var(--accent);
  box-shadow: inset 0 0 0 10px #ffe2de;
}

.pix-wait-illustration span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 38px;
}

.pix-wait-illustration.paid {
  background: #ecfdf3;
  color: var(--success);
  box-shadow: inset 0 0 0 10px #d1fae5;
}

.pix-wait-illustration.paid span {
  background: var(--success);
}

.pix-wait-content h1 {
  font-size: clamp(31px, 6vw, 44px);
  color: #111;
}

.pix-wait-content p {
  max-width: 640px;
  margin: 0;
  color: #3d3937;
  font-size: clamp(19px, 4.8vw, 29px);
  line-height: 1.35;
}

.pix-wait-qr {
  display: block;
  width: min(220px, 64vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(31, 21, 17, 0.08);
}

.pix-wait-content textarea {
  width: min(640px, 100%);
  min-height: 84px;
  border: 1px dashed #cfc8c4;
  border-radius: 8px;
  padding: 18px;
  color: #111;
  background: var(--white);
  font-size: clamp(18px, 4.5vw, 28px);
  line-height: 1.25;
  text-align: center;
  resize: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pix-wait-copy {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 25px;
  font-weight: 850;
}

.pix-wait-content small {
  color: #4b4541;
  font-size: 18px;
}

.pix-wait-info,
.pix-wait-total {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: #2c2724;
}

.pix-wait-info {
  font-size: clamp(19px, 4.5vw, 28px);
}

.pix-wait-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(32px, 8vw, 48px);
}

.pix-wait-total strong {
  font-weight: 850;
}

.pix-wait-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(640px, 100%);
  min-height: 62px;
  border-radius: 8px;
  background: #13b94f;
  color: var(--white);
  box-shadow: 0 0 18px rgba(19, 185, 79, 0.45);
  font-size: clamp(17px, 4vw, 26px);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.pix-wait-whatsapp::before {
  content: "✓";
  margin-right: 10px;
}

.pix-wait-whatsapp.disabled {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.4);
}

.pix-wait-whatsapp.disabled::before {
  content: "⌛";
}

.tracking-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border-top: 5px solid var(--accent);
  border-radius: 0 0 8px 8px;
  padding: 10px 14px 22px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(31, 21, 17, 0.08);
  text-align: center;
}

.tracking-created {
  color: #3f3833;
  font-size: 14px;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.tracking-step {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #b5b5b5;
  font-size: 13px;
}

.tracking-step::before,
.tracking-step::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 50%;
  height: 2px;
  background: #ededed;
}

.tracking-step::before {
  right: 50%;
}

.tracking-step::after {
  left: 50%;
}

.tracking-step:first-child::before,
.tracking-step:last-child::after {
  display: none;
}

.tracking-step.done::before,
.tracking-step.done::after {
  background: #ff6b59;
}

.tracking-step span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #ededed;
  border-radius: 50%;
  background: #ededed;
  color: #777;
  font-size: 18px;
  font-weight: 900;
}

.tracking-step.done span {
  border-color: #ff6b59;
  background: var(--white);
  color: #ff6b59;
}

.tracking-step strong {
  max-width: 90px;
  color: inherit;
  font-size: 13px;
  line-height: 1.25;
}

.tracking-step.done strong,
.tracking-step.current strong {
  color: #ff6b59;
}

.tracking-step small {
  min-height: 14px;
  color: #ff6b59;
  font-size: 11px;
}

.tracking-estimate {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #2c2724;
}

.tracking-estimate span {
  font-size: 14px;
}

.tracking-estimate strong {
  color: #111111;
  font-size: 20px;
}

.tracking-card.cancelled {
  border-top-color: #b91c1c;
}

.loyalty-card {
  display: grid;
  gap: 16px;
}

.loyalty-tab {
  border-bottom: 2px solid var(--accent);
  padding: 10px 16px 8px;
  background: #ececec;
  color: var(--accent-dark);
  font-weight: 900;
  width: fit-content;
}

.loyalty-progress-box {
  display: grid;
  gap: 18px;
  border-radius: 8px;
  padding: 30px 16px 22px;
  background: #fff1ef;
}

.loyalty-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.loyalty-progress-row strong {
  color: var(--accent);
  font-size: 22px;
}

.loyalty-progress {
  height: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf2f4;
}

.loyalty-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.loyalty-progress-box .checkout-button {
  margin-top: 0;
  background: #e5e7eb;
  color: #888;
}

.loyalty-progress-box .checkout-button:not(:disabled) {
  background: var(--accent);
  color: var(--white);
}

.loyalty-info {
  display: grid;
  gap: 8px;
}

.loyalty-info h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.loyalty-info p {
  margin: 0 0 4px;
  color: var(--ink);
}

.mobile-cart {
  position: fixed;
  right: 16px;
  bottom: 74px;
  left: 16px;
  z-index: 20;
  display: none;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(188, 37, 24, 0.32);
  font-weight: 900;
}

dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  border: 0;
  border-radius: 12px;
  padding: 0;
  overflow: auto;
  box-shadow: 0 24px 70px rgba(31, 21, 17, 0.35);
}

dialog:not([open]) {
  display: none;
}

dialog.dialog-fallback-open {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  display: block;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 100vmax rgba(31, 21, 17, 0.56), 0 24px 70px rgba(31, 21, 17, 0.35);
}

dialog::backdrop {
  background: rgba(31, 21, 17, 0.56);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
}

.modal-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.modal-body,
.checkout-content,
.mobile-cart-content {
  padding: 20px;
}

.modal-body h2,
.checkout-content h2 {
  font-size: 24px;
}

.mobile-cart-content {
  display: grid;
  gap: 14px;
}

.modal-body p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.option-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.option-group h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.option-row label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.note-field textarea {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  resize: vertical;
  outline-color: var(--accent);
}

.modal-actions {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  margin-top: 20px;
}

.stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.stepper button {
  height: 46px;
  border: 0;
  background: var(--paper);
  font-size: 20px;
  font-weight: 900;
}

.stepper span {
  text-align: center;
  font-weight: 900;
}

.checkout-content {
  display: grid;
  gap: 13px;
}

.checkout-content label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.checkout-content textarea {
  min-height: 88px;
  resize: vertical;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.payment-options button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.payment-options button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.pix-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff8e8;
}

.pix-info strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.pix-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pix-info span {
  font-weight: 900;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.pix-info button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--dark);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.pix-payment-box {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff8f1;
}

.pix-payment-box strong {
  color: var(--accent-dark);
  font-size: 15px;
}

.pix-payment-box img {
  display: block;
  width: 180px;
  max-width: 70vw;
  max-height: 180px;
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--white);
  object-fit: contain;
}

.pix-payment-box label {
  width: 100%;
}

.pix-payment-box textarea {
  width: 100%;
  max-width: 100%;
  min-height: 92px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.pix-success-message {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 12px 6px;
  text-align: center;
}

.pix-success-message span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 4px solid var(--success);
  border-radius: 50%;
  color: var(--success);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.pix-success-message strong {
  max-width: 360px;
  color: var(--success);
  font-size: 16px;
  line-height: 1.35;
}

.pix-confirm-dialog {
  width: min(440px, calc(100% - 28px));
  border-radius: 8px;
  overflow: visible;
}

.pix-confirm-dialog::backdrop {
  background: rgba(20, 20, 20, 0.58);
}

.pix-confirm-content {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 38px 28px 28px;
  background: var(--white);
  text-align: center;
}

.pix-confirm-content span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 4px solid #d9f0cf;
  border-radius: 50%;
  color: #98d982;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.pix-confirm-content h2 {
  margin: 12px 0 0;
  color: #4f4f4f;
  font-size: 28px;
}

.pix-confirm-content p {
  max-width: 340px;
  margin: 0;
  color: #666;
  font-size: 17px;
  line-height: 1.4;
}

.pix-confirm-content button {
  width: auto;
  min-width: 88px;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 22px;
  border-radius: 5px;
}

.hidden {
  display: none !important;
}

.cash-change {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.cash-change strong {
  font-size: 15px;
}

.cash-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
}

.wait-time-notice {
  margin: 0;
  border: 1px solid #f5d486;
  border-radius: 8px;
  padding: 12px;
  background: #fff1ef;
  color: #7d5200;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.order-feedback {
  min-height: 20px;
  color: var(--success);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.coupon-feedback {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.discount-line strong {
  color: var(--success);
}

.customer-history {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.whatsapp-track {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #167a45;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.attendant-page {
  background: #ffffff;
}

.attendant-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.attendant-topbar h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.attendant-topbar p {
  margin-top: 6px;
  color: var(--muted);
}

.attendant-link,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.attendant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.attendant-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 40px;
}

.attendant-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cash-report {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.attendant-metrics div,
.cash-report div {
  display: grid;
  gap: 6px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.attendant-metrics span,
.cash-report span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.attendant-metrics strong,
.cash-report strong {
  font-size: 28px;
}

.cash-report small {
  color: var(--muted);
  font-weight: 800;
}

.cash-report .secondary-button {
  width: fit-content;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  font-size: 12px;
}

.attendant-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.manager-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 16px;
}

.manager-tabs {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.manager-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.manager-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.manager-content {
  min-width: 0;
}

.manager-panel details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
}

.manager-panel details:not([open]) {
  display: none;
}

.manager-panel summary {
  display: none;
}

.settings-form,
.menu-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.category-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.category-create-form div,
.category-create-form label {
  display: grid;
  gap: 6px;
}

.category-create-form strong {
  font-size: 16px;
}

.category-create-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-create-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-create-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
}

.manager-subtitle {
  margin-top: 18px;
  font-size: 17px;
}

.compact-form {
  align-items: end;
  margin-bottom: 8px;
}

.compact-form label {
  grid-column: span 2;
}

.settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.settings-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.settings-form label,
.menu-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-form input,
.settings-form select,
.settings-form textarea,
.menu-form input,
.menu-form select,
.menu-form textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.settings-form textarea {
  min-height: 88px;
  resize: vertical;
}

.store-profile-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-profile-editor label:nth-of-type(5),
.store-profile-editor label:nth-of-type(6),
.store-profile-editor label:nth-of-type(7),
.store-profile-editor label:nth-of-type(8) {
  grid-column: 1 / -1;
}

.menu-form textarea {
  min-height: 74px;
  resize: vertical;
}

.form-note {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.managed-menu {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.category-order-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.category-order-box h3 {
  font-size: 16px;
}

.category-order-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.managed-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.managed-category.paused {
  border-color: #f2c5bf;
  background: #fff4f2;
  opacity: 0.82;
}

.managed-category strong {
  min-width: 0;
}

.managed-category strong span {
  display: inline-flex;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #ffe8df;
  color: var(--accent-dark);
  font-size: 11px;
  text-transform: uppercase;
}

.image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--paper);
}

.image-preview img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.image-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.managed-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.managed-item img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.managed-item.paused {
  opacity: 0.55;
}

.managed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-filter button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--white);
  color: #524b47;
  font-weight: 900;
}

.status-filter button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.orders-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.orders-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 180px;
  place-content: center;
  border: 1px dashed #d7c9c0;
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.orders-empty strong {
  color: var(--ink);
}

.order-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(46, 34, 29, 0.06);
}

.order-card-header,
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-card-header h2 {
  margin-top: 4px;
  font-size: 21px;
}

.order-card-header p,
.order-id,
.customer-box span,
.order-items small,
.order-total span {
  color: var(--muted);
  font-size: 13px;
}

.order-id {
  font-weight: 900;
}

.status-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-novo {
  background: #ffe8df;
  color: #aa2918;
}

.status-preparando {
  background: #fff3cf;
  color: #7d5200;
}

.status-entrega {
  background: #dff0ff;
  color: #075f9a;
}

.status-concluido {
  background: #e4f5ea;
  color: #167a45;
}

.status-aguardando_pix {
  background: #fff3cf;
  color: #7d5200;
}

.status-cancelado {
  background: #eeeeee;
  color: #555555;
}

.customer-box {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.loyalty-note {
  color: #167a45 !important;
  font-weight: 900;
}

.order-items {
  display: grid;
  gap: 10px;
}

.order-items div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order-items small {
  grid-column: 1;
}

.order-items strong {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.mini-action {
  min-height: 30px;
  grid-column: 2;
  padding: 0 10px;
  font-size: 12px;
}

.order-total {
  align-items: center;
}

.order-total strong {
  color: var(--accent-dark);
  font-size: 22px;
}

.order-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
}

.order-actions .checkout-button {
  margin-top: 0;
}

.order-actions .checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.new-order-alert {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  border-radius: 8px;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(188, 37, 24, 0.28);
  font-weight: 900;
}

.pending-pix-button {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 75;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 0;
  border-radius: 8px;
  padding: 15px 18px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(188, 37, 24, 0.28);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.pending-pix-button:hover {
  background: var(--accent-dark);
}

@media (max-width: 860px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    display: none;
  }

  .mobile-cart {
    display: flex;
  }

  .attendant-topbar,
  .attendant-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .attendant-actions {
    justify-content: stretch;
  }

  .attendant-actions > * {
    width: 100%;
  }

  .attendant-metrics,
  .cash-report,
  .orders-board {
    grid-template-columns: 1fr;
  }

  .manager-panel {
    grid-template-columns: 1fr;
  }

  .manager-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-tabs button {
    text-align: center;
  }

  .settings-form,
  .menu-form,
  .category-create-form,
  .managed-item {
    grid-template-columns: 1fr;
  }

  .compact-form label {
    grid-column: 1 / -1;
  }

  .order-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .store-panel {
    width: min(100% - 24px, 1120px);
    gap: 12px;
  }

  .store-logo {
    width: 84px;
    height: 84px;
    border-radius: 12px;
  }

  .store-copy {
    padding-top: 38px;
  }

  main {
    width: min(100% - 24px, 1120px);
  }

  .product-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
    min-height: 132px;
    padding: 12px;
  }

  .product-card img {
    width: 96px;
    height: 96px;
  }

  .product-title-row {
    display: block;
  }

  .tag {
    margin-top: 6px;
  }

  .product-card p {
    -webkit-line-clamp: 2;
  }
}
