:root {
  --cqr-ink: #17221d;
  --cqr-muted: #69756f;
  --cqr-paper: #f6f3ec;
  --cqr-card: #fffefa;
  --cqr-line: #e2ddd2;
  --cqr-accent: #df6539;
  --cqr-accent-dark: #bd4d26;
  --cqr-green: #2f7656;
  --cqr-green-soft: #e0f0e7;
  --cqr-amber: #9c6805;
  --cqr-amber-soft: #fff0c9;
  --cqr-danger: #a33e35;
}

.cqr-wrap,
.cqr-staff-app {
  color: var(--cqr-ink);
}

.cqr-wrap {
  max-width: 1500px;
}

.cqr-page-heading,
.cqr-card-heading,
.cqr-current-status,
.cqr-selected-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cqr-page-heading {
  margin: 28px 0 22px;
}

.cqr-page-heading h1,
.cqr-page-heading h2 {
  margin: 3px 0 5px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
}

.cqr-page-heading p:not(.cqr-eyebrow) {
  margin: 0;
  color: var(--cqr-muted);
}

.cqr-eyebrow {
  margin: 0;
  color: var(--cqr-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cqr-count {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--cqr-green);
  background: var(--cqr-green-soft);
  font-weight: 700;
  white-space: nowrap;
}

.cqr-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(550px, 1.8fr);
  gap: 20px;
  align-items: start;
}

.cqr-card {
  padding: 24px;
  border: 1px solid var(--cqr-line);
  border-radius: 18px;
  background: var(--cqr-card);
  box-shadow: 0 12px 35px rgba(39, 45, 40, 0.06);
}

.cqr-card h2,
.cqr-card h3 {
  margin: 0 0 20px;
}

.cqr-field {
  display: grid;
  gap: 7px;
  margin: 0 0 15px;
  color: var(--cqr-ink);
  font-size: 13px;
  font-weight: 700;
}

.cqr-field input,
.cqr-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--cqr-line);
  border-radius: 10px;
  color: var(--cqr-ink);
  background: white;
}

.cqr-field input:focus,
.cqr-field select:focus {
  border-color: var(--cqr-accent);
  box-shadow: 0 0 0 2px rgba(223, 101, 57, 0.13);
  outline: none;
}

.cqr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cqr-search-results {
  display: grid;
  gap: 4px;
  max-height: 300px;
  margin: -8px 0 14px;
  overflow-y: auto;
  color: var(--cqr-muted);
  font-size: 13px;
}

.cqr-search-result {
  display: flex;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--cqr-line);
  border-radius: 10px;
  color: var(--cqr-ink);
  text-align: left;
  background: white;
  cursor: pointer;
}

.cqr-search-result:hover:not(:disabled) {
  border-color: var(--cqr-accent);
  background: #fff8f3;
}

.cqr-search-result:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cqr-search-result strong,
.cqr-search-result small,
.cqr-selected-product strong,
.cqr-selected-product small,
.cqr-table td strong,
.cqr-table td small {
  display: block;
}

.cqr-search-result small,
.cqr-selected-product small,
.cqr-table td small {
  margin-top: 3px;
  color: var(--cqr-muted);
  font-size: 11px;
}

.cqr-selected-product {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #bcd7c8;
  border-radius: 11px;
  background: var(--cqr-green-soft);
}

.cqr-selected-product button {
  border: 0;
  color: var(--cqr-muted);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.cqr-duration-field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.cqr-duration-field legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.cqr-duration-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.cqr-duration-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cqr-duration-options span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--cqr-line);
  border-radius: 10px;
  background: white;
  font-weight: 700;
  cursor: pointer;
}

.cqr-duration-options input:checked + span {
  border-color: var(--cqr-accent);
  color: var(--cqr-accent-dark);
  background: #fff0e9;
  box-shadow: inset 0 0 0 1px var(--cqr-accent);
}

.cqr-primary-button,
.cqr-small-button,
.cqr-link-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cqr-primary-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 11px;
  color: white;
  background: var(--cqr-accent);
  font-weight: 800;
}

.cqr-primary-button:hover:not(:disabled) {
  background: var(--cqr-accent-dark);
}

.cqr-primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cqr-small-button {
  padding: 7px 10px;
  border: 1px solid var(--cqr-line);
  border-radius: 8px;
  color: var(--cqr-ink);
  background: white;
}

.cqr-link-button {
  padding: 4px;
  color: var(--cqr-danger);
  background: transparent;
  font-weight: 700;
}

.cqr-feedback {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--cqr-green);
  font-size: 12px;
  font-weight: 700;
}

.cqr-feedback[data-type="error"] {
  color: var(--cqr-danger);
}

.cqr-table-wrap {
  overflow-x: auto;
}

.cqr-table {
  width: 100%;
  border-collapse: collapse;
}

.cqr-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--cqr-line);
  color: var(--cqr-muted);
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cqr-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--cqr-line);
  vertical-align: middle;
  font-size: 13px;
}

.cqr-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.cqr-status-available {
  color: var(--cqr-green);
  background: var(--cqr-green-soft);
}

.cqr-status-reserved {
  color: var(--cqr-amber);
  background: var(--cqr-amber-soft);
}

.cqr-status-sold {
  color: var(--cqr-danger);
  background: #f8dfda;
}

.cqr-empty {
  padding: 55px 20px;
  border: 1px dashed var(--cqr-line);
  border-radius: 13px;
  color: var(--cqr-muted);
  text-align: center;
}

.cqr-meta-box .cqr-field {
  margin-bottom: 11px;
}

.cqr-current-status {
  margin: 0 0 14px;
}

.cqr-active-summary {
  margin: 0 0 13px;
  padding: 11px;
  border-radius: 9px;
  background: var(--cqr-amber-soft);
}

.cqr-active-summary strong,
.cqr-active-summary span {
  display: block;
}

.cqr-active-summary span {
  margin-top: 3px;
  color: var(--cqr-muted);
  font-size: 12px;
}

.cqr-full {
  width: 100%;
  justify-content: center;
}

.cqr-row-reserved {
  color: var(--cqr-amber);
  font-weight: 700;
}

.cqr-store-notice {
  margin: 12px 0 18px;
  padding: 13px 15px;
  border-left: 4px solid #d5961b;
  border-radius: 6px;
  color: #6f4b05;
  background: var(--cqr-amber-soft);
  font-weight: 700;
}

.cqr-loop-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #6f4b05;
  background: var(--cqr-amber-soft);
  font-size: 11px;
  font-weight: 800;
}

.cqr-reserved-availability {
  color: #8a5b00 !important;
  font-weight: 700;
}

.cqr-access-message {
  padding: 20px;
  border-radius: 10px;
  background: var(--cqr-amber-soft);
}

@media (max-width: 1050px) {
  .cqr-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cqr-page-heading {
    align-items: flex-start;
  }

  .cqr-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cqr-card {
    padding: 18px;
  }

  .cqr-table thead {
    display: none;
  }

  .cqr-table,
  .cqr-table tbody,
  .cqr-table tr,
  .cqr-table td {
    display: block;
  }

  .cqr-table tr {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--cqr-line);
    border-radius: 12px;
  }

  .cqr-table td {
    padding: 7px;
    border: 0;
  }
}
