.commerce-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 23rem) minmax(8rem, 13rem);
  gap: .75rem;
  margin-bottom: 1rem;
}

.commerce-panel { margin-bottom: .95rem; }
.commerce-panel > .hint + .commerce-price-output { margin-top: .6rem; }
.commerce-panel .table-frame { box-shadow: none; }
.commerce-warning {
  margin: .3rem 0;
  padding: .68rem .78rem;
  border-radius: .52rem;
  border: 1px solid #efd49c;
  border-left: 3px solid #d69b30;
  background: #fff7e5;
  color: #65420c;
  overflow-wrap: anywhere;
}

.price-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: .65rem;
}
.price-fields input[type="date"] { min-width: 0; }
.price-query { margin-bottom: .85rem; }
.price-query .inline-error { margin-bottom: 0; }
.commerce-price-output { margin-top: .95rem; }
.commerce-price-head, .offer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
  overflow-wrap: anywhere;
}
.commerce-price-head { margin-bottom: .7rem; }
.commerce-price-head .badge { margin-top: .12rem; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; }
.offer-card {
  display: grid;
  align-content: start;
  gap: .58rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: .63rem;
  background: #f9fbff;
  min-width: 0;
}
.offer-card h3 { margin: 0 0 .12rem; }
.offer-price { color: #2448a6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nightly-detail summary { color: var(--accent-strong); font-weight: 650; cursor: pointer; }
.nightly-detail[open] summary { margin-bottom: .45rem; }
.order-number { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.hotel-calendar-panel .panel-head { flex-wrap: wrap; }
.calendar-query-fields { display: grid; grid-template-columns: minmax(10rem, 1.3fr) repeat(5, minmax(6rem, 1fr)); gap: .65rem; }
.calendar-query-fields input { min-width: 0; }
.calendar-query-actions { margin-top: .8rem; }
.calendar-progress { margin-top: .7rem; min-height: 1.5em; }
.calendar-context { margin: .5rem 0 .8rem; }
.calendar-legend { margin-top: .8rem; }
.hotel-calendar-panel > .inline-error { margin-top: .75rem; }
.price-calendar-scroll { max-width: 100%; max-height: 38rem; overflow: auto; border: 1px solid var(--border); border-radius: .65rem; }
.hotel-price-calendar { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.hotel-price-calendar th, .hotel-price-calendar td { min-width: 7.7rem; width: 7.7rem; padding: .35rem; border-right: 1px solid var(--border); vertical-align: top; }
.hotel-price-calendar .calendar-first { position: sticky; left: 0; width: 14rem; min-width: 14rem; max-width: 14rem; z-index: 2; background: #fff; padding: .65rem .75rem; white-space: normal; }
.hotel-price-calendar thead th { position: sticky; top: 0; z-index: 3; background: #f6f8fe; text-align: center; }
.hotel-price-calendar thead .calendar-first { z-index: 4; background: #eef3ff; }
.hotel-price-calendar .calendar-first small { display: block; margin-top: .28rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
.calendar-price-cell, .calendar-date-button, .calendar-room-toggle { width: 100%; display: grid; justify-items: start; gap: .25rem; border: 0; box-shadow: none; background: transparent; text-align: left; padding: .5rem; min-height: 3.7rem; }
.calendar-date-button { justify-items: center; min-height: 0; padding: .3rem; }
.calendar-room-toggle { padding: 0; min-height: 0; white-space: normal; }
.calendar-price-cell strong { font-size: .83rem; }
.calendar-price-cell small { max-width: 7rem; font-size: .71rem; line-height: 1.4; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calendar-price-cell.available { background: #edf8f1; color: #155a3d; }
.calendar-price-cell.failed { background: #fff2ee; color: #962f25; }
.calendar-price-cell.review { background: #fff7e7; color: #7a500f; }
.calendar-price-cell.empty { color: var(--muted); }
.calendar-price-cell:hover { outline: 1px solid #abc1f4; background: #edf2fe; }
.calendar-hotel-row { background: #f9fbff; }
.calendar-hotel-row .calendar-first { background: #f1f5ff; }
.calendar-rate-row .calendar-first { padding-left: 1.3rem; font-size: .84rem; color: #465775; background: #fafbfe; }
.hotel-price-calendar .today { color: #2455c0; background: #e6eeff; }

@media (max-width: 70rem) {
  .calendar-query-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 39rem) {
  .commerce-filters { grid-template-columns: minmax(0, 1fr); }
  .price-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-panel { padding: .75rem; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-price { white-space: normal; }
  .calendar-query-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotel-price-calendar .calendar-first { width: 9rem; min-width: 9rem; max-width: 9rem; padding: .5rem; }
  .hotel-price-calendar th, .hotel-price-calendar td { min-width: 6.8rem; width: 6.8rem; }
  .calendar-price-cell strong { font-size: .78rem; }
}
