/* Pickle Bliss schedule: premium booked / pending boxes in the logo palette.
   Charcoal #1a1716, red #e0201c / #b5150f, orange #f26a1b, warm white #fbf8f5. */




/* Booked box: warm white with a fine charcoal hatch, centered label */
.timetable td.admin-booking-cell > .admin-booking-block {
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  padding: 6px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(26, 23, 22, .18) !important;
  background-color: #f3efeb !important;
  background-image: repeating-linear-gradient(135deg, rgba(26, 23, 22, .07) 0 2px, transparent 2px 9px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 2px rgba(14, 13, 12, .06) !important;
  color: #1a1716 !important;
}
.timetable td.admin-booking-cell > .guest-booking-block .admin-slot-name {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  margin: 0 !important;
  color: #1a1716 !important; opacity: .82;
  font-size: 10.5px !important; font-weight: 800 !important;
  letter-spacing: .16em !important; text-transform: uppercase !important;
}
/* small lock icon before the label */
.timetable td.admin-booking-cell > .guest-booking-block .admin-slot-name::before {
  content: ""; width: 11px; height: 11px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Pending: same look, red tint, no lock (text says Pending) */
.timetable td.admin-booking-cell > .guest-booking-block.pending {
  border-color: rgba(224, 32, 28, .35) !important;
  background-color: #fef3ec !important;
  background-image: repeating-linear-gradient(135deg, rgba(224, 32, 28, .12) 0 2px, transparent 2px 9px) !important;
}
.timetable td.admin-booking-cell > .guest-booking-block.pending .admin-slot-name { color: #b5150f !important; opacity: 1; }
.timetable td.admin-booking-cell > .guest-booking-block.pending .admin-slot-name::before { display: none; }

/* Legend swatch */
i.pl-booked {
  border: 1px solid rgba(26, 23, 22, .25) !important;
  background-color: #f3efeb !important;
  background-image: repeating-linear-gradient(135deg, rgba(26, 23, 22, .14) 0 1.5px, transparent 1.5px 5px) !important;
}

/* Floating "Scroll for all time slots" button: logo orange outline and glow */
.slots-hint { border-color: rgba(242, 106, 27, .45) !important; }
.slots-hint.is-on { animation-name: ps-sh-glow !important; }
@keyframes ps-sh-glow {
  0%, 100% { box-shadow: 0 10px 26px rgba(8, 7, 6, .32), 0 0 0 0 rgba(242, 106, 27, .5), 0 0 14px rgba(242, 106, 27, .18); }
  55% { box-shadow: 0 10px 26px rgba(8, 7, 6, .32), 0 0 0 9px rgba(242, 106, 27, 0), 0 0 26px rgba(242, 106, 27, .42); }
}

/* Even rhythm: every hour row 60px; open slots centered; booked boxes inset 10px top and bottom,
   so a 1-hour booked box is exactly the size of an open slot and long ones line up with them. */
.timetable tbody tr:not(.rate-band) > td,
.timetable tbody tr:not(.rate-band) > th { height: 60px !important; padding-top: 0 !important; padding-bottom: 0 !important; vertical-align: middle !important; }
.timetable td.admin-booking-cell { position: relative !important; padding: 0 !important; }
.timetable td.admin-booking-cell > .admin-booking-block {
  position: absolute !important; left: 0; right: 0; top: 10px; bottom: 10px;
  height: auto !important; width: auto !important; min-height: 0 !important; max-height: none !important;
}

/* Open slots: white card, thin charcoal border, "+" in a small peach badge */
.premium-slots .slot.available {
  border-radius: 10px !important;
  border: 1px solid rgba(26, 23, 22, .14) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf9 100%) !important;
  color: #1a1716 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(14, 13, 12, .05) !important;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease !important;
}
.premium-slots .slot.available .slot-plus {
  box-sizing: border-box; width: 24px !important; height: 24px !important; padding: 5px;
  border-radius: 50%; background: #fdeee6; color: #1a1716; opacity: 1 !important; stroke-width: 2.6;
  transition: background .15s ease, color .15s ease;
}
.premium-slots .slot.available:not([data-selected=true]):hover {
  transform: translateY(-1px);
  border-color: rgba(224, 32, 28, .55) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff5ef 100%) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 14px rgba(26, 23, 22, .10) !important;
}
.premium-slots .slot.available:not([data-selected=true]):hover .slot-plus { background: #f26a1b; color: #fff; }
.premium-slots .slot.available:focus-visible { outline: 2px solid #e0201c; outline-offset: 2px; }

/* Selected: logo orange gradient, white text */
.premium-slots .slot[data-selected=true] {
  border-radius: 10px !important;
  background: linear-gradient(180deg, #ff8a3d 0%, #f26a1b 100%) !important;
  border: 1px solid #d9531a !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px rgba(224, 32, 28, .30) !important;
}
.premium-slots .slot[data-selected=true] svg { color: #fff !important; }

/* Held (in someone's checkout): dashed red */
.premium-slots .slot.held {
  border-radius: 10px !important;
  background: #fdf4ee !important;
  border: 1px dashed rgba(224, 32, 28, .6) !important;
  color: #b5150f !important;
}

/* Same 40px height as booked boxes (60px row minus 10px above and below) */
.premium-slots td > .slot.available,
.premium-slots td > .slot[data-selected=true],
.premium-slots td > .slot.held,
.premium-slots td > .slot.pending { height: 40px !important; min-height: 40px !important; box-sizing: border-box !important; }

/* Date picker: on narrow phones the day label ("TODAY") was wider than its 38px chip.
   Smaller, tighter labels for every day so they all fit and stay uniform. */
@media (max-width: 480px) {
  .date-strip .day > span:first-child {
    font-size: 9.5px !important; letter-spacing: .04em !important;
    max-width: 100%; white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .date-strip .day > span:first-child { font-size: 8.5px !important; letter-spacing: .02em !important; }
}

/* Blocked (closed by the venue): quiet stone tone, no hatch, so it reads differently from Booked */
.premium-slots td > .slot.blocked {
  height: 40px !important; min-height: 40px !important; box-sizing: border-box !important;
  border-radius: 10px !important;
  background: #eeeae6 !important;
  border: 1px solid rgba(26, 23, 22, .08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6) !important;
  color: #8f8781 !important;
}
.premium-slots td > .slot.blocked > span {
  font-size: 10px !important; font-weight: 800 !important;
  letter-spacing: .14em !important; text-transform: uppercase !important;
}
@media (max-width: 400px) { .premium-slots td > .slot.blocked > span { font-size: 9px !important; letter-spacing: .08em !important; } }

/* Phones: narrow court columns. Keep "BOOKED" on one line with its lock icon. */
.timetable td.admin-booking-cell > .guest-booking-block .admin-slot-name { white-space: nowrap; }
@media (max-width: 480px) {
  .timetable td.admin-booking-cell > .admin-booking-block { padding: 4px !important; }
  .timetable td.admin-booking-cell > .guest-booking-block .admin-slot-name { font-size: 9.5px !important; letter-spacing: .06em !important; gap: 4px; }
  .timetable td.admin-booking-cell > .guest-booking-block .admin-slot-name::before { width: 9px; height: 9px; }
}
