/* SeatFlow: prenotazione semplificata nella pagina del singolo viaggio. */
.single-wbtm_bus .wbtm_search_area.vh-sf-booking-enhanced {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.single-wbtm_bus .wbtm_search_area.vh-sf-booking-enhanced > form.mpForm {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.single-wbtm_bus .wbtm_search_area.vh-sf-booking-enhanced.vh-sf-results-loaded {
  display: none !important;
}

.single-wbtm_bus .wbtm_search_area.vh-sf-booking-enhanced.vh-sf-picker-open {
  display: block !important;
}

.vh-sf-booking-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 24px;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid #e0e5e9;
  border-left: 3px solid #d2ad4c;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(2, 48, 65, 0.07);
  color: #07384a;
  font-family: inherit;
}

.vh-sf-booking-copy {
  min-width: 0;
}

.vh-sf-booking-eyebrow {
  margin: 0 0 2px;
  color: #9a7627;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.vh-sf-booking-title {
  margin: 0 !important;
  color: #07384a;
  font-size: 20px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.vh-sf-booking-route {
  margin-top: 4px;
  color: #64737b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.vh-sf-booking-actions {
  min-width: 0;
}

.vh-sf-booking-primary {
  appearance: none;
  min-width: 196px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #07384a;
  border-radius: 8px;
  background: #07384a;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.vh-sf-booking-primary:hover,
.vh-sf-booking-primary:focus-visible {
  border-color: #0c5068;
  background: #0c5068;
  outline: 3px solid rgba(210, 173, 76, 0.3);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.vh-sf-booking-primary:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.vh-sf-booking-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.vh-sf-booking-date {
  appearance: none;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-width: 92px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #ccd6dc;
  border-radius: 8px;
  background: #fff;
  color: #07384a;
  cursor: pointer;
  font: inherit;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.vh-sf-booking-date:hover,
.vh-sf-booking-date:focus-visible {
  border-color: #b48a2e;
  background: #fffaf0;
  outline: 2px solid rgba(210, 173, 76, 0.25);
  outline-offset: 1px;
}

.vh-sf-booking-date.is-selected {
  border-color: #07384a;
  background: #07384a;
  color: #fff;
}

.vh-sf-booking-date:disabled {
  cursor: wait;
  opacity: 0.68;
}

.vh-sf-booking-date-weekday,
.vh-sf-booking-date-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.vh-sf-booking-date-day {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.vh-sf-booking-feedback {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
}

.vh-sf-booking-status {
  margin: -3px 0 0;
  padding: 0;
  color: #52666f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.vh-sf-booking-status-error {
  color: #a34b18;
}

.vh-sf-booking-fallback {
  appearance: none;
  margin: -3px 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #07384a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vh-sf-booking-fallback:hover,
.vh-sf-booking-fallback:focus-visible {
  color: #9a7627;
  outline: none;
}

.vh-sf-booking-results .wbtm-date-suggetion {
  display: none !important;
}

.vh-sf-booking-results .wbtm_search_route_container {
  position: relative;
}

.vh-sf-change-date {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  appearance: none;
  padding: 6px 11px;
  border: 1px solid #bfcbd1;
  border-radius: 7px;
  background: #fff;
  color: #07384a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

.vh-sf-change-date:hover,
.vh-sf-change-date:focus-visible {
  border-color: #9a7627;
  color: #80601f;
  outline: 2px solid rgba(210, 173, 76, 0.25);
  outline-offset: 1px;
}

.wbtm_search_result.vh-sf-results-refreshing {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@media (max-width: 767px) {
  .vh-sf-booking-picker {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px 16px;
    border-radius: 9px;
  }

  .vh-sf-booking-title {
    font-size: 18px !important;
  }

  .vh-sf-booking-actions,
  .vh-sf-booking-primary {
    width: 100%;
  }

  .vh-sf-booking-primary {
    min-width: 0;
  }

  .vh-sf-booking-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .vh-sf-booking-date {
    width: 100%;
    min-width: 0;
  }

  .vh-sf-booking-feedback {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .vh-sf-booking-fallback {
    margin-left: 0;
  }

  .vh-sf-change-date {
    position: static;
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px 12px;
    padding: 9px 12px;
  }
}

@media (max-width: 370px) {
  .vh-sf-booking-dates {
    grid-template-columns: 1fr;
  }
}
