.datetime-picker-container {
  padding: 0 10px;
}
.datetime-picker-container .unavailable-legend {
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  /* Preview swatches in header (collapsed) - match time slot visuals */
  /* Swatches in expanded legend body */
}
.datetime-picker-container .unavailable-legend .unavailable-legend-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #555;
}
.datetime-picker-container .unavailable-legend .unavailable-legend-header .unavailable-legend-chevron {
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #777;
  transition: transform 0.2s;
}
.datetime-picker-container .unavailable-legend .unavailable-legend-chevron {
  transform: rotate(-90deg);
}
.datetime-picker-container .unavailable-legend .unavailable-legend-header[aria-expanded=true] .unavailable-legend-chevron {
  transform: rotate(0deg);
}
.datetime-picker-container .unavailable-legend .unavailable-legend-body {
  padding: 10px 12px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #eee;
  background-color: #f5f5f5;
}
.datetime-picker-container .unavailable-legend .unavailable-legend-types {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
}
.datetime-picker-container .unavailable-legend .unavailable-legend-types li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.datetime-picker-container .unavailable-legend .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.datetime-picker-container .unavailable-legend .legend-dot.legend-dot-booked {
  background: #c45c5c;
}
.datetime-picker-container .unavailable-legend .legend-dot.legend-dot-blocked {
  background: #5a6268;
}
.datetime-picker-container .unavailable-legend .legend-dot.legend-dot-closed {
  background: #868e96;
}
.datetime-picker-container .unavailable-legend .legend-preview {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.datetime-picker-container .unavailable-legend .legend-preview.legend-preview-closed {
  background: linear-gradient(to right, #f8f9fa 0%, #f8f9fa 40%, transparent 40%), repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(45, 48, 52, 0.2) 2px, rgba(45, 48, 52, 0.2) 4px);
  background-position: 0 0, 0 0;
  background-size: 100% 100%, 100% 100%;
}
.datetime-picker-container .unavailable-legend .legend-preview.legend-preview-booked {
  background: linear-gradient(to right, #fff 0%, #fff 40%, #fce8e8 60%, #f5d0d0 100%);
}
.datetime-picker-container .unavailable-legend .legend-swatch {
  display: inline-block;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: middle;
  position: relative;
  background-color: #fff;
}
.datetime-picker-container .unavailable-legend .legend-swatch.legend-swatch-closed {
  background: linear-gradient(to right, #f8f9fa 0%, #f8f9fa 40%, transparent 40%), repeating-linear-gradient(45deg, transparent 0px, transparent 4px, rgba(45, 48, 52, 0.22) 4px, rgba(45, 48, 52, 0.22) 6px);
  padding-left: 20px;
}
.datetime-picker-container .unavailable-legend .legend-swatch.legend-swatch-closed::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23868e96'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.datetime-picker-container .unavailable-legend .legend-swatch.legend-swatch-booked {
  padding-left: 20px;
  background: linear-gradient(to right, #fff 0%, #fff 40%, #fce8e8 60%, #f5d0d0 100%);
}
.datetime-picker-container .unavailable-legend .legend-swatch.legend-swatch-booked::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c45c5c'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.datetime-picker-container .unavailable-legend .legend-swatch.legend-swatch-blocked {
  padding-left: 20px;
  background: linear-gradient(to right, #fff 0%, #fff 40%, #e8e9eb 60%, #d8d9dc 100%);
}
.datetime-picker-container .unavailable-legend .legend-swatch.legend-swatch-blocked::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235a6268'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.datetime-picker-container .unavailable-legend .legend-swatch.legend-swatch-available {
  background: linear-gradient(to right, #f0fdf4 0%, #fff 10%, #fff 100%);
  border-left: 3px solid #22c55e;
}
.datetime-picker-container .pickers-container {
  display: flex;
  flex-direction: row;
}
.datetime-picker-container .time-picker-outer-container {
  width: 200px;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.datetime-picker-container .time-picker-outer-container .time-picker-container {
  margin-bottom: 10px;
}
.datetime-picker-container .time-picker-outer-container .picker-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.datetime-picker-container .time-picker-outer-container .picker-actions button {
  flex-grow: 1;
}
.datetime-picker-container .not-available-spaces-indicator {
  border-top: 1px dashed #7D7D7D;
  margin-top: 20px;
  padding-top: 16px;
}
.datetime-picker-container .not-available-spaces-indicator span {
  color: #000;
  font-family: "Mont-Light", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}
.datetime-picker-container .not-available-spaces-indicator span.font-semibold {
  font-family: "Mont-Book", sans-serif;
}
.datetime-picker-container .not-available-spaces-indicator span.font-bold {
  font-family: "Mont-SemiBold", sans-serif;
}

/* Base datepicker: when NOT enhanced, use simple legend (dots) */
.datetime-picker-container:not(.datetime-picker-enhanced) .legend-preview {
  display: none;
}
.datetime-picker-container:not(.datetime-picker-enhanced) .legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
}
.datetime-picker-container:not(.datetime-picker-enhanced) .legend-swatch.legend-swatch-closed {
  background: #868e96;
}
.datetime-picker-container:not(.datetime-picker-enhanced) .legend-swatch.legend-swatch-booked {
  background: #c45c5c;
}
.datetime-picker-container:not(.datetime-picker-enhanced) .legend-swatch.legend-swatch-blocked {
  background: #5a6268;
}
.datetime-picker-container:not(.datetime-picker-enhanced) .legend-swatch.legend-swatch-available {
  background: #22c55e;
  box-shadow: none;
}

/* Base: no gradient styling for available when not enhanced */
.datetime-picker-container:not(.datetime-picker-enhanced) .custom-time-option.available {
  background: transparent;
  box-shadow: none;
}

/* Custom time dropdown - styled options (native select options cannot be styled) */
.custom-time-select {
  position: relative;
}
.custom-time-select .form-select {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.custom-time-select .custom-time-trigger {
  display: flex;
  align-items: center;
  touch-action: manipulation;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 1rem;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  cursor: pointer;
  min-height: calc(1.5em + 0.75rem);
  position: relative;
}
.custom-time-select .custom-time-trigger::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #6c757d;
}
.custom-time-select .custom-time-trigger.disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}
.custom-time-select[data-select=to_time] .custom-time-trigger {
  min-height: calc(1.5em + 0.75rem + 10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-time-select .custom-time-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1060;
  margin-top: 2px;
}
.custom-time-select .custom-time-list.open {
  display: block;
}
.custom-time-select .custom-time-option {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
  border-bottom: 1px solid #c8cdd2;
  position: relative;
  min-height: 2rem;
  display: flex;
  align-items: center;
  min-width: 0;
  /* Enhanced only */
  /* Icon for unavailable types - placed after time (right side) */
  /* Off-clock: schedule closed / out of hours */
  /* Booked / blocked by host - same icon for both */
  /* Grey for off-clock when host has flexible availability */
  /* Striped bar pattern for closed: diagonal (45deg), 40% to 100% */
}
.custom-time-select .custom-time-option .custom-time-option-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-time-select .custom-time-option:last-child {
  border-bottom: none;
}
.datetime-picker-enhanced .custom-time-select .custom-time-option.available {
  background: linear-gradient(to right, #f0fdf4 0%, #fff 10%, #fff 100%);
  font-weight: 500;
  box-shadow: inset 3px 0 0 0 #22c55e;
}
.custom-time-select .custom-time-option:hover:not(.disabled) {
  background: #f8f9fa;
}
.custom-time-select .custom-time-option.disabled {
  cursor: not-allowed;
}
.custom-time-select .custom-time-option.unavailable-closed .custom-time-unavailable-icon, .custom-time-select .custom-time-option.unavailable-closed-flexible .custom-time-unavailable-icon {
  display: inline-flex;
  margin-left: 0.35rem;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23868e96'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.custom-time-select .custom-time-option.unavailable-booked .custom-time-unavailable-icon, .custom-time-select .custom-time-option.unavailable-blocked .custom-time-unavailable-icon {
  display: inline-flex;
  margin-left: 0.35rem;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c45c5c'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.custom-time-select .custom-time-option .custom-time-unavailable-icon {
  display: none;
}
.custom-time-select .custom-time-option.unavailable-booked {
  background: linear-gradient(to right, #fff 0%, #fff 40%, #fce8e8 60%, #f5d0d0 100%);
  color: #b04545;
  font-weight: 500;
}
.custom-time-select .custom-time-option.unavailable-blocked {
  background: linear-gradient(to right, #fff 0%, #fff 40%, #fce8e8 60%, #f5d0d0 100%);
  color: #b04545;
  font-weight: 500;
}
.custom-time-select .custom-time-option.unavailable-closed-flexible {
  background: #e9ecef;
  color: #5a5d62;
  font-weight: 500;
}
.custom-time-select .custom-time-option.unavailable-closed {
  background: #f8f9fa;
  color: #5a5d62;
  font-weight: 500;
  overflow: hidden;
}
.custom-time-select .custom-time-option.unavailable-closed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60%;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(240, 241, 243, 0.5) 0px, rgba(240, 241, 243, 0.5) 5px, rgba(45, 48, 52, 0.18) 5px, rgba(45, 48, 52, 0.18) 7px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 33%, black 50%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 33%, black 50%, black 100%);
}

/* Fallback for native option styling (limited browser support) */
.datepicker-time-picker-select option.time-picker-item.unavailable-booked {
  color: #c45c5c;
  background: #fce8e8;
}

.datepicker-time-picker-select option.time-picker-item.unavailable-blocked {
  color: #5a6268;
  background: #f0f1f2;
}

.datepicker-time-picker-select option.time-picker-item.unavailable-closed,
.datepicker-time-picker-select option.time-picker-item.unavailable-closed-flexible {
  color: #868e96;
  background: #f5f6f7;
}

.ui-datepicker-calendar td.partially-available-day a {
  background: url("/assets/components/datepicker/icons/booked-partial.svg") no-repeat top left;
}
.ui-datepicker-calendar td.partially-available-day a.ui-state-active {
  color: #003eff;
}
.ui-datepicker-calendar .ui-state-default {
  background: #fff;
}
.ui-datepicker-calendar .ui-state-active {
  background: #007fff;
}
.ui-datepicker-calendar .ui-state-highlight {
  background: #fffa90;
}
.ui-datepicker-calendar td.ui-state-disabled {
  opacity: 0.2;
}

@media only screen and (max-width: 600px) {
  .datetime-picker-container .pickers-container {
    flex-direction: column;
  }
  .datetime-picker-container .time-picker-outer-container {
    width: auto;
    padding: 0;
  }
  .datetime-picker-container .time-picker-outer-container .time-picker-container {
    margin: 10px 0;
  }
  .datetime-picker-container .picker-header {
    display: none;
  }
  /* Time dropdown: fixed centered popup on mobile for better visibility */
  .custom-time-select .custom-time-list.open,
  .custom-time-list.custom-time-list-body-mounted.open {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    right: auto !important;
    width: calc(100vw - 2rem) !important;
    max-width: 360px;
    max-height: 70vh !important;
    margin: 0 !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    z-index: 1080 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    pointer-events: auto;
  }
  .custom-time-select .custom-time-list.open .custom-time-option,
  .custom-time-list.custom-time-list-body-mounted.open .custom-time-option {
    overflow: hidden;
    white-space: nowrap;
  }
}
/* Body-mounted list: duplicate essential styles for when list is moved to <body> on mobile */
.custom-time-list.custom-time-list-body-mounted {
  display: none;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1060;
}
.custom-time-list.custom-time-list-body-mounted.open {
  display: block;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
  border-bottom: 1px solid #c8cdd2;
  position: relative;
  min-height: 2rem;
  display: flex;
  align-items: center;
  min-width: 0;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option .custom-time-option-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option:last-child {
  border-bottom: none;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option:hover:not(.disabled) {
  background: #f8f9fa;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.disabled {
  cursor: not-allowed;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option .custom-time-unavailable-icon {
  display: none;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-closed .custom-time-unavailable-icon, .custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-closed-flexible .custom-time-unavailable-icon {
  display: inline-flex;
  margin-left: 0.35rem;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23868e96'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-booked .custom-time-unavailable-icon, .custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-blocked .custom-time-unavailable-icon {
  display: inline-flex;
  margin-left: 0.35rem;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c45c5c'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-booked {
  background: linear-gradient(to right, #fff 0%, #fff 40%, #fce8e8 60%, #f5d0d0 100%);
  color: #b04545;
  font-weight: 500;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-blocked {
  background: linear-gradient(to right, #fff 0%, #fff 40%, #fce8e8 60%, #f5d0d0 100%);
  color: #b04545;
  font-weight: 500;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-closed-flexible {
  background: #e9ecef;
  color: #5a5d62;
  font-weight: 500;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-closed-flexible {
  background: #e9ecef;
  color: #5a5d62;
  font-weight: 500;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-closed {
  background: #f8f9fa;
  color: #5a5d62;
  font-weight: 500;
  overflow: hidden;
}
.custom-time-list.custom-time-list-body-mounted .custom-time-option.unavailable-closed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60%;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(240, 241, 243, 0.5) 0px, rgba(240, 241, 243, 0.5) 5px, rgba(45, 48, 52, 0.18) 5px, rgba(45, 48, 52, 0.18) 7px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 33%, black 50%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 33%, black 50%, black 100%);
}
.custom-time-list.custom-time-list-body-mounted.datetime-picker-enhanced-list .custom-time-option.available {
  background: linear-gradient(to right, #f0fdf4 0%, #fff 10%, #fff 100%);
  font-weight: 500;
  box-shadow: inset 3px 0 0 0 #22c55e;
}

/*# sourceMappingURL=style.css.map */
