/* Pacioli Booking v2.4 */

.days-overview {
  margin: 0 0 18px;
}

.section-title h2 {
  margin: 0 0 3px;
}

.section-title p {
  margin: 0 0 10px;
  font-size: 13px;
}

.day-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
}

.day-card {
  flex: 0 0 155px;
  display: block;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
}

.day-card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.day-main {
  font-size: 13px;
  min-height: 34px;
}

.day-sub {
  margin-top: 6px;
  color: #667085;
  font-size: 11px;
}

.load-track {
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eaecf0;
}

.load-fill {
  height: 100%;
  background: #12b76a;
}

.day-free {
  border-color: #abefc6;
}

.day-busy {
  border-color: #fec84b;
}

.day-busy .load-fill {
  background: #f79009;
}

.day-full {
  border-color: #fda29b;
}

.day-full .load-fill {
  background: #f04438;
}

.day-off {
  opacity: .65;
}

.day-selected {
  box-shadow: 0 0 0 3px #84caff;
  border-color: #2e90fa;
}

.mobile-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.mobile-summary > div:first-child {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.summary-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #667085;
}

.mini-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}

.free-dot {
  background: #12b76a;
}

.busy-dot {
  background: #f04438;
}

.selected-dot {
  background: #2e90fa;
}

.off-dot {
  background: #98a2b3;
}

.schedule-help {
  font-size: 13px;
  color: #667085;
  margin: 0 0 8px;
}

.mobile-help {
  display: none;
}

.schedule-wrap {
  display: block !important;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.schedule {
  min-width: 760px;
  border-collapse: collapse;
}

.schedule th,
.schedule td {
  min-width: 46px;
  height: 42px;
  padding: 7px 6px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.schedule .sticky-place {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 92px;
  background: #fff;
  box-shadow: 2px 0 4px rgba(16, 24, 40, .06);
}

.schedule thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.schedule thead .sticky-place {
  z-index: 4;
}

.schedule td.free {
  background: #dff7e8 !important;
}

.schedule td.busy {
  background: #ffd9d6 !important;
}

.schedule td.inactive {
  background: #e9ecef !important;
}

.schedule td.selected-slot {
  background: #d1e9ff !important;
  box-shadow: inset 0 0 0 2px #2e90fa;
}

.schedule td.free.clickable {
  cursor: pointer;
  user-select: none;
}

.schedule td.free.clickable:hover {
  background: #bfeccc !important;
}

.schedule td.selected-slot:hover {
  background: #b2ddff !important;
}

.picked-slot {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #eff8ff;
  border-radius: 8px;
  color: #175cd3;
  font-weight: 600;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #344054;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.availability-note {
  font-size: 14px;
  padding: 9px 10px;
  background: #f0f9ff;
  border-radius: 8px;
  color: #175cd3;
}

.availability-note.no-free {
  background: #fef3f2;
  color: #b42318;
}

#bookButton:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  main {
    padding: 12px;
  }

  .page-head {
    margin-bottom: 10px;
  }

  .page-head h1 {
    font-size: 24px;
  }

  .date-nav {
    margin-top: 10px;
    width: 100%;
  }

  .date-form {
    margin: 0;
    flex: 1;
    display: flex;
  }

  .date-form input {
    min-width: 0;
    flex: 1;
  }

  .date-form button {
    padding-left: 10px;
    padding-right: 10px;
  }

  .day-card {
    flex-basis: 138px;
    padding: 10px;
  }

  .mobile-summary {
    display: block;
    padding: 10px 12px;
  }

  .mobile-summary > div:first-child {
    display: block;
  }

  .summary-legend {
    margin-top: 8px;
  }

  .desktop-help {
    display: none;
  }

  .mobile-help {
    display: inline;
  }

  .schedule-wrap {
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    display: block !important;
  }

  .schedule {
    display: table !important;
    min-width: 650px;
    font-size: 12px;
  }

  .schedule th,
  .schedule td {
    min-width: 43px;
    height: 39px;
    padding: 5px 4px;
  }

  .schedule .sticky-place {
    min-width: 78px;
    font-size: 12px;
  }

  .booking-form {
    margin-top: 14px;
  }

  .mobile-free {
    display: block;
  }
}


/* v2.5 — floating booking confirmation */
.quick-book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid #d0d5dd;
  box-shadow: 0 -8px 24px rgba(16,24,40,.10);
  backdrop-filter: blur(10px);
}

.quick-book-bar[hidden] {
  display: none !important;
}

.quick-book-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quick-book-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.quick-book-label {
  font-size: 11px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.quick-book-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#quickBookButton {
  flex: 0 0 auto;
  min-width: 150px;
}

#quickBookButton:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 82px;
  }

  .quick-book-bar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .quick-book-content {
    gap: 10px;
  }

  .quick-book-text strong {
    font-size: 13px;
  }

  #quickBookButton {
    min-width: 128px;
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* v2.8.1 — time interval headers */
.time-slot-head {
  min-width: 86px !important;
  white-space: nowrap;
  font-size: 12px;
}

@media (max-width: 760px) {
  .time-slot-head {
    min-width: 58px !important;
    white-space: normal;
    line-height: 1.05;
    text-align: center;
  }

  .time-slot-head .time-slot-from,
  .time-slot-head .time-slot-to {
    display: block;
  }

  .time-slot-head .time-slot-separator {
    display: none;
  }
}
