/* Consumir en el local — corrección visual final */

.local-dine-sheet {
  background: var(--cu-page);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  max-height: 94dvh;
}

.local-dine-main {
  display: contents;
}

.local-dine-guest {
  grid-row: 2 / 5;
  padding: 24px 18px;
  text-align: center;
}

.local-dine-guest p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.local-dine-guest-actions {
  display: grid;
  gap: 8px;
}

.club-guest-benefits {
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted, #6b6560);
}

.club-guest-benefits li {
  padding: 3px 0;
}

.local-dine-customer {
  grid-row: 2;
  padding: 10px 14px;
  border-top: 1px solid var(--cu-border);
  border-bottom: 1px solid var(--cu-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cu-surface-warm);
}

.local-dine-customer-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.local-dine-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--cu-yellow-soft);
  color: var(--cu-ink);
  font-size: 21px;
  font-weight: 700;
  border: 1px solid var(--cu-border-strong);
}

.local-dine-customer-text {
  min-width: 0;
}

.local-dine-customer-text strong {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.local-dine-customer-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6f6960;
  line-height: 1.2;
}

.local-dine-verified {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  color: #e2a40e;
}

.local-dine-club {
  min-width: 104px;
  flex-shrink: 0;
  border: 1px solid var(--cu-border);
  background: var(--cu-yellow-softer);
  border-radius: 12px;
  padding: 7px 9px;
  display: grid;
  gap: 1px;
  justify-items: start;
}

.local-dine-club [data-icon] {
  width: 14px;
  height: 14px;
  color: #775b1b;
}

.local-dine-club small {
  font-size: 11px;
  line-height: 1.1;
  color: #463f35;
}

.local-dine-club strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  color: #6f6960;
}

.cu-segment {
  grid-row: 3;
  margin: 8px 12px 8px;
  background: var(--cu-surface-warm);
  border: 1px solid var(--cu-border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.cu-segment-btn {
  position: relative;
  min-height: 92px;
  padding: 10px 6px 9px;
  border: 0;
  border-right: 1px solid var(--cu-border);
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.cu-segment-btn:last-child {
  border-right: 0;
}

.cu-segment-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--cu-icon-primary);
}

.cu-segment-icon .cu-svg {
  width: 26px;
  height: 26px;
}

.cu-segment-title {
  font-size: 15px;
  font-weight: 700;
  color: #26211c;
  line-height: 1.2;
}

.cu-segment-meta {
  margin-top: 1px;
  font-size: 11px;
  color: #6f6960;
  line-height: 1.2;
}

.cu-segment-btn.is-on {
  background: var(--cu-yellow-soft);
}

.cu-segment-btn.is-on .cu-segment-icon {
  color: var(--cu-icon-active);
}

.cu-segment-btn.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--cu-yellow);
  border-radius: 12px;
  pointer-events: none;
}

.cu-segment-notch {
  position: absolute;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--cu-yellow);
  transform: rotate(45deg);
  border-right: 1px solid var(--cu-border-strong);
  border-bottom: 1px solid var(--cu-border-strong);
}

.local-dine-content {
  grid-row: 4;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 12px 132px;
  -webkit-overflow-scrolling: touch;
}

.local-dine-section-head {
  margin-bottom: 8px;
}

.local-dine-section-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  color: #231f1a;
}

.local-dine-section-sub {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #706960;
}

.local-dine-stage-empty {
  min-height: 48px;
}

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

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

.local-dine-grid--interior .dine-table-card:nth-child(7) {
  grid-column: 1 / -1;
  max-width: calc(50% - 4px);
  margin-inline: auto;
}

.dine-table-card {
  position: relative;
  min-height: 148px;
  border-radius: 16px;
  border: 1px solid var(--cu-border);
  background: var(--cu-surface);
  box-shadow: 0 3px 13px rgba(63, 49, 28, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 4px 8px;
  text-align: center;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.dine-table-card__art {
  width: 100%;
  max-width: 94px;
  margin-bottom: 1px;
}

.dine-table-svg {
  display: block;
  width: 100%;
  height: auto;
}

.dine-table-card__name {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #211d19;
}

.dine-table-card__cap {
  font-size: 11px;
  color: #6f6960;
  line-height: 1.2;
}

.dine-table-card__state {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: #4f4a43;
}

.dine-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #218f44;
}

.dine-table-card__clock {
  width: 12px;
  height: 12px;
  color: #a9862b;
}

.dine-table-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cu-warning);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 7px rgba(185, 130, 8, 0.35);
}

.dine-table-card.is-selected {
  background: var(--cu-yellow-softer);
  border-color: var(--cu-yellow);
  box-shadow: 0 0 0 2px rgba(252, 208, 0, 0.22), 0 6px 17px rgba(63, 49, 28, 0.08);
}

.dine-table-card.status-occupied {
  background: var(--cu-surface-muted);
}

.dine-table-card.status-occupied .dine-table-svg,
.dine-table-card.status-occupied .dine-table-card__name,
.dine-table-card.status-occupied .dine-table-card__cap {
  opacity: 0.3;
}

.dine-table-card.status-occupied .dine-state-dot {
  background: #9a9892;
}

.dine-table-card.status-reserved {
  background: var(--cu-warning-soft);
}

.dine-table-card.status-reserved .dine-state-dot {
  background: var(--cu-warning);
}

.dine-table-card.status-open_account {
  border-color: var(--cu-brown);
}

.dine-table-card.status-open_account .dine-state-dot {
  background: var(--cu-brown);
}

.dine-table-card.status-open_account .dine-table-card__state {
  color: var(--cu-brown);
}

.dine-table-card:disabled {
  cursor: not-allowed;
}

.dine-table-card:focus-visible {
  outline: 2px solid var(--cu-yellow);
  outline-offset: 2px;
}

.local-dine-footer {
  grid-row: 5;
  position: sticky;
  bottom: 0;
  z-index: 10;
  border-top: 1px solid var(--cu-border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(63, 49, 28, 0.08);
}

.local-dine-summary {
  margin-bottom: 8px;
}

.local-dine-summary-hint {
  margin: 0;
  font-size: 13px;
  color: #6f6960;
  text-align: center;
  line-height: 1.3;
}

.local-dine-summary-pick {
  border: 1px solid var(--cu-border);
  border-radius: 12px;
  background: var(--cu-surface-warm);
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.local-dine-summary-thumb {
  width: 52px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--cu-yellow);
  background: var(--cu-yellow-softer);
  display: grid;
  place-items: center;
}

.local-dine-summary-thumb .dine-table-svg {
  width: 44px;
}

.local-dine-summary-text {
  flex: 1;
  min-width: 0;
}

.local-dine-summary-tag {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: #6f6960;
}

.local-dine-summary-user {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: #4f4a43;
}

.local-dine-summary-name {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #231f1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.local-dine-summary-cap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: #59534b;
}

.local-dine-summary-cap::before {
  content: "";
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: radial-gradient(circle at 50% 28%, #000 29%, transparent 30%) top/100% 52% no-repeat,
    radial-gradient(ellipse at 50% 100%, #000 62%, transparent 63%) bottom/100% 60% no-repeat;
  mask: radial-gradient(circle at 50% 28%, #000 29%, transparent 30%) top/100% 52% no-repeat,
    radial-gradient(ellipse at 50% 100%, #000 62%, transparent 63%) bottom/100% 60% no-repeat;
}

.local-dine-change {
  min-width: 78px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--cu-border-strong);
  background: var(--cu-surface);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cu-ink-soft);
  font-family: var(--font);
  cursor: pointer;
  flex-shrink: 0;
}

.local-dine-footer .btn-primary {
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.local-dine-cta-arrow {
  width: 8px;
  height: 8px;
  border-top: 2px solid #2f2b26;
  border-right: 2px solid #2f2b26;
  transform: rotate(45deg);
}

.local-dine-footer .btn-primary:disabled {
  background: #ebe6dc;
  color: #807a73;
  box-shadow: none;
}

@media (max-width: 390px) {
  .local-dine-grid {
    gap: 7px;
  }

  .dine-table-card {
    min-height: 162px;
  }

  .dine-table-card__art {
    max-width: 88px;
  }
}
