/* Shared by the public booking hub and every panel page importing style.css. */
/* Custom Date Time Picker */
body.dtp-open {
  overflow: hidden;
}

.dtp-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dtp-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 20, 42, 0.52);
}

.dtp-panel {
  position: relative;
  width: min(560px, calc(100vw - 40px));
  border-radius: 14px;
  background: #f9fafc;
  border: 1px solid #d7deea;
  box-shadow: 0 24px 60px rgba(14, 24, 45, 0.35);
  padding: 12px;
}

.dtp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dtp-title {
  margin: 0;
  color: #1f2b40;
  font-size: 1.18rem;
  font-weight: 700;
}

.dtp-close-btn {
  border: none;
  background: transparent;
  color: #6a7689;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  border-radius: 10px;
}

.dtp-close-btn:hover {
  background: #eef2f9;
}

.dtp-month-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.dtp-nav-btn {
  border: 1px solid #d4dbe8;
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #3f4d63;
  font-size: 1.05rem;
}

.dtp-month-label {
  text-align: center;
  color: #15233c;
  font-size: 1.5rem;
  font-weight: 700;
}

.dtp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 10px;
}

.dtp-weekdays span {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #98a3b4;
  padding: 4px 0;
}

.dtp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.dtp-day-empty {
  min-height: 40px;
}

.dtp-day-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #1d2a43;
  min-height: 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
}

.dtp-day-btn:hover {
  background: #eef2f9;
}

.dtp-day-btn.is-disabled,
.dtp-day-btn:disabled {
  opacity: 0.38;
  color: #9aa7ba;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
}

.dtp-day-btn.is-disabled:hover,
.dtp-day-btn:disabled:hover {
  background: transparent;
}

.dtp-day-btn.is-today {
  border-color: #f18b1b;
  color: #f18b1b;
}

.dtp-day-btn.is-selected {
  background: #ff5b1f;
  color: #fff;
}

.dtp-day-btn.is-today.is-disabled,
.dtp-day-btn.is-selected.is-disabled,
.dtp-day-btn.is-disabled,
.dtp-day-btn:disabled {
  opacity: 0.38;
  color: #9aa7ba;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
}

.dtp-selected-date {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #24334b;
}

.dtp-time-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dtp-time-col {
  border: 1px solid #d4dbe6;
  border-radius: 12px;
  background: #f5f7fa;
  padding: 10px;
}

.dtp-time-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: #68768d;
  margin-bottom: 10px;
}

.dtp-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  border: 1px solid #d3dbe7;
  border-radius: 12px;
  background: #eef2f6;
  overflow: hidden;
}

.dtp-stepper-btn {
  border: none;
  background: #e3e8f0;
  color: #2b3a52;
  min-height: 48px;
  border-radius: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.dtp-stepper-btn:hover,
.dtp-stepper-btn:focus,
.dtp-stepper-btn:active {
  border: none;
  background: #d8e0eb;
  color: #1f2c42;
  box-shadow: none;
}

.dtp-stepper-value {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #24334b;
  font-size: 1.35rem;
  font-weight: 700;
  background: #f7f9fc;
}

.dtp-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.dtp-btn-secondary,
.dtp-btn-primary {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dtp-btn-secondary {
  background: #eff3f9;
  border: 1px solid #d8dfeb;
  color: #3d4b62;
}

.dtp-btn-primary {
  background: #f18b1b;
  border: 1px solid #f18b1b;
  color: #fff;
}

.dtp-btn-secondary:hover,
.dtp-btn-secondary:focus,
.dtp-btn-secondary:active,
.dtp-btn-secondary:focus-visible {
  background: #e4ebf6 !important;
  border-color: #c7d2e4 !important;
  color: #2f3d54 !important;
  box-shadow: none !important;
}

.dtp-btn-primary:hover,
.dtp-btn-primary:focus,
.dtp-btn-primary:active,
.dtp-btn-primary:focus-visible {
  background: #e87f0d !important;
  border-color: #e87f0d !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Hourly Duration Modal */
body.hourly-open {
  overflow: hidden;
}

.hourly-modal {
  position: fixed;
  inset: 0;
  z-index: 3550;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hourly-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 20, 42, 0.52);
}

.hourly-panel {
  position: relative;
  width: min(440px, calc(100vw - 40px));
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid #e5e8ee;
  box-shadow: 0 16px 36px rgba(14, 24, 45, 0.22);
  padding: 10px;
}

.hourly-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hourly-title {
  margin: 0;
  color: #1f2b40;
  font-size: 1.02rem;
  font-weight: 600;
}

.hourly-close-btn {
  border: none;
  background: transparent;
  color: #6a7689;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.hourly-close-btn:hover {
  background: #eef2f9;
}

.hourly-label {
  color: #cf5506;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hourly-card {
  border-radius: 10px;
  background: #f0f2f6;
  padding: 10px;
  margin-bottom: 8px;
}

.hourly-card.is-days.is-inactive {
  opacity: 0.55;
}

.hourly-card.is-days.is-inactive .hourly-label {
  color: #8591a5;
}

.hourly-card.is-hours.is-inactive {
  opacity: 0.55;
}

.hourly-card.is-hours.is-inactive .hourly-label {
  color: #8591a5;
}

.hourly-stepper-row {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 6px;
}

.hourly-step-btn {
  border: 1px solid transparent;
  background: #dde1e8;
  color: #2e3e56;
  height: 34px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  padding: 0;
}

.hourly-step-btn:hover,
.hourly-step-btn:focus,
.hourly-step-btn:active {
  border-color: transparent;
  box-shadow: none;
  background: #d4dae4;
  color: #1f2b40;
}

.hourly-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hourly-step-value {
  text-align: center;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #252c39;
}

.hourly-preview {
  border: 1px dashed #d0d8e6;
  border-radius: 10px;
  background: #f5f8fc;
  color: #2d3c54;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 12px;
}

.hourly-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hourly-btn-secondary,
.hourly-btn-primary {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 700;
  padding: 0 14px;
}

.hourly-btn-secondary {
  background: #eff3f9;
  border: 1px solid #d8dfeb;
  color: #3d4b62;
}

.hourly-btn-primary {
  background: #cb5203;
  border: 1px solid #cb5203;
  color: #fff;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hourly-btn-secondary:hover,
.hourly-btn-secondary:focus,
.hourly-btn-secondary:active,
.hourly-btn-primary:hover,
.hourly-btn-primary:focus,
.hourly-btn-primary:active {
  box-shadow: none;
}

.hourly-btn-secondary:hover,
.hourly-btn-secondary:focus,
.hourly-btn-secondary:active {
  background: #e3eaf4;
  border-color: #c7d2e4;
  color: #2f3d54;
}

.hourly-btn-primary:hover,
.hourly-btn-primary:focus,
.hourly-btn-primary:active {
  background: #b94a03;
  border-color: #b94a03;
  color: #fff;
}

/* Compact Date/Time Picker */
.dtp-panel {
  width: min(440px, calc(100vw - 28px));
  border-radius: 14px;
  padding: 10px;
  background: #f7f7f9;
  border: 1px solid #e8eaf0;
}

.dtp-topbar {
  margin-bottom: 8px;
}

.dtp-title {
  font-size: 0.9rem;
  color: #4c5667;
  font-weight: 600;
}

.dtp-close-btn {
  width: 28px;
  height: 28px;
  font-size: 0.84rem;
}

.dtp-selected-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #ececf1;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.dtp-selected-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.dtp-selected-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fbeadf;
  color: #cc5506;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dtp-selected-caption {
  color: #6f7786;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
}

.dtp-month-nav {
  grid-template-columns: 1fr 32px 32px;
  margin-bottom: 6px;
  align-items: center;
}

.dtp-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: none;
  background: #eaebf0;
  color: #8a909e;
}

.dtp-month-label {
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.dtp-weekdays {
  margin-bottom: 6px;
}

.dtp-weekdays span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #9a9fac;
  padding: 2px 0;
}

.dtp-days-grid {
  gap: 6px;
  margin-bottom: 8px;
}

.dtp-day-empty,
.dtp-day-btn {
  min-height: 34px;
}

.dtp-day-btn {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2f3340;
}

.dtp-selected-date {
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cc5506;
  line-height: 1.2;
  word-break: break-word;
}

.dtp-selected-date.is-empty {
  color: #8a92a3;
  font-weight: 600;
}

.dtp-time-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.dtp-time-columns::before {
  content: ":";
  grid-column: 2;
  color: #9a9faf;
  font-size: 1.15rem;
  font-weight: 600;
}

.dtp-time-col {
  border-radius: 10px;
  padding: 6px;
  background: #e9eaee;
  border: none;
}

.dtp-time-col:first-child {
  grid-column: 1;
}

.dtp-time-col:last-child {
  grid-column: 3;
}

.dtp-time-label {
  font-size: 0;
  margin-bottom: 0;
}

.dtp-stepper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "plus"
    "value"
    "minus";
  border: 0;
  background: transparent;
  gap: 2px;
}

.dtp-stepper > :first-child {
  grid-area: minus;
}

.dtp-stepper > :nth-child(2) {
  grid-area: value;
}

.dtp-stepper > :last-child {
  grid-area: plus;
}

.dtp-stepper-btn {
  min-height: 18px;
  font-size: 1rem;
  background: transparent;
  color: #c85305;
  line-height: 1;
}

.dtp-stepper-value {
  min-height: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c85305;
  background: transparent;
}

.dtp-actions {
  margin-top: 8px;
  gap: 0;
}

.dtp-btn-secondary,
.dtp-btn-primary {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
}

.dtp-btn-secondary {
  display: none;
}

.dtp-btn-primary {
  width: 100%;
  background: #cb5203;
  border-color: #cb5203;
}

@media (max-width: 768px) {
  .dtp-modal {
    align-items: center;
    justify-content: center;
    padding: 12px;
  }

  .dtp-panel {
    width: min(360px, calc(100vw - 24px));
    max-height: 82vh;
    overflow-y: auto;
    padding: 8px;
    border-radius: 11px;
    margin: 0 auto;
  }

  .dtp-title {
    font-size: 0.84rem;
  }

  .dtp-month-nav {
    grid-template-columns: 1fr 30px 30px;
  }

  .dtp-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .dtp-month-label {
    font-size: 0.95rem;
  }

  .dtp-day-empty,
  .dtp-day-btn {
    min-height: 30px;
  }

  .dtp-day-btn {
    font-size: 0.68rem;
  }

  .dtp-time-col {
    padding: 4px;
  }

  .dtp-stepper {
    grid-template-columns: 1fr;
  }

  .dtp-stepper-btn,
  .dtp-stepper-value {
    min-height: 20px;
  }

  .dtp-btn-secondary,
  .dtp-btn-primary {
    min-height: 34px;
    font-size: 0.84rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .dtp-modal {
    padding: 10px;
  }

  .dtp-panel {
    width: min(340px, calc(100vw - 28px));
    max-height: 76vh;
    padding: 7px;
    margin: 0 auto;
  }

  .dtp-day-empty,
  .dtp-day-btn {
    min-height: 26px;
  }

  .dtp-time-columns {
    gap: 6px;
  }
}


/* Keep every action reachable on short and landscape screens. */
.dtp-panel, .hourly-panel {
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
