/* reservation-floorplan.css - public visual table picker (modal + trigger). */

/* Trigger button + selected chips inside the reservation form */
.res-fp-mount { display: flex; flex-direction: column; gap: var(--space-2, 8px); }
.res-fp-trigger { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.res-fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.res-fp-chip {
  display: inline-flex; align-items: center;
  background: #875E36; color: #fff; border-radius: var(--radius-sm);
  padding: 3px 12px; font-size: 13px; font-weight: 600;
}
.res-fp-chip-clear {
  background: none; border: none; color: #6b4423; cursor: pointer;
  font-size: 13px; text-decoration: underline; padding: 3px 6px;
}

/* Modal */
.res-fp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.res-fp-modal[hidden] { display: none; }
.res-fp-modal__backdrop { position: absolute; inset: 0; background: rgba(27, 25, 15, 0.55); }
.res-fp-modal__panel {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(960px, 96vw); height: min(88vh, 760px);
  background: #ECE1CC; border-radius: 4px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.res-fp-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #1B190F; color: #ECE1CC;
}
.res-fp-modal__title { margin: 0; font-size: 18px; font-family: var(--font-body); }
.res-fp-modal__close {
  background: none; border: none; color: #ECE1CC; font-size: 28px;
  line-height: 1; cursor: pointer; padding: 0 4px;
}

.res-fp-zones { display: flex; gap: 6px; padding: 10px 14px 0; flex-wrap: wrap; }
.res-fp-zones[hidden] { display: none; }
.res-fp-zone {
  border: 1px solid #b19171; background: #fff; color: #1B190F;
  border-radius: 4px; padding: 6px 14px; font-size: 14px; cursor: pointer;
}
.res-fp-zone.is-active { background: #875E36; color: #fff; border-color: #875E36; }

.res-fp-stage { position: relative; flex: 1 1 auto; margin: 10px 14px; min-height: 0; background: #c9bda1; border-radius: 4px; overflow: hidden; }
.res-fp-stage .canvas-container { width: 100% !important; height: 100% !important; }
.res-fp-stage canvas { display: block; }
.res-fp-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #6b4423; font-weight: 600; }
.res-fp-empty[hidden] { display: none; }

.res-fp-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 16px; font-size: 12.5px; color: #1B190F; }
.res-fp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.res-fp-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid #d8c9ab; background: #ECE1CC;
}
.res-fp-count { font-weight: 700; color: #1B190F; }
.res-fp-note { color: #e74c3c; font-size: 13px; flex: 1 1 auto; }
.res-fp-actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 560px) {
  .res-fp-modal__panel { width: 100vw; height: 100vh; border-radius: 0; }
  .res-fp-note { flex-basis: 100%; order: 3; }
}
