html, body {
  overflow-x: clip;
}
.av-flight-booker-wrap,
.c-box-home.av-hero-search,
.c-box-home.av-hero-search .container {
  overflow: visible !important;
  min-width: 0 !important;
}

#origin-mobile, #destination-mobile,
.suggestion-input-starting, .suggestion-input-returning {
  font-size: 16px !important;
}

@media (max-width: 991px) {
  .container.show:not(.inline) {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: scale(1) !important;
    z-index: 9999 !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .container.show .calendars,
  .calendars.grid-2 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .container.show .calendars .calendar:nth-child(n + 2) {
    display: none !important;
  }

  .container.show .calendars .calendar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 8px 10px 12px !important;
  }

  .container.show .calendar > .days-grid > .day,
  .container.show .calendar > .daynames-row > .day,
  .container.show .calendar > .daynames-row > .dayname {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 40px !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 14px !important;
  }

  .container.show .calendars .calendar > .header .next-button,
  .container.show .calendars .calendar > .header .previous-button {
    visibility: visible !important;
  }

  .container.show > footer .footer-buttons {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    padding: 10px !important;
  }
}

@media (max-width: 767px) {
  .place-mobile {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2000 !important;
    background: #fff !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 24px !important;
  }

  .place-mobile .container-fluid {
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
    z-index: 2 !important;
  }

  .place-mobile .ci-mobile {
    position: sticky !important;
    top: 56px !important;
    background: #fff !important;
    z-index: 2 !important;
    padding: 8px 12px !important;
  }

  .place-mobile .autocomplete,
  .place-mobile .autocomplete.autocomplete-div,
  .c-booker .autocomplete {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: 0 !important;
    z-index: 3 !important;
  }

  .place-mobile .autocomplete ul,
  .c-booker .autocomplete ul {
    max-height: 52vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

  .place-mobile .autocomplete ul li,
  .c-booker .autocomplete ul li {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }

  .av-flight-booker-wrap .autocomplete {
    max-width: min(850px, calc(100vw - 24px)) !important;
  }
}

@media (max-width: 991px) {
  .av-flight-booker-wrap .c-booker .tb-swap {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .search-paxes {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 2000 !important;
  }
}

@media (min-width: 768px) {
  .av-flight-booker-wrap .c-booker > .row > [class*="col-"] {
    position: relative !important;
    overflow: visible !important;
  }

  .av-flight-booker-wrap .c-booker .autocomplete.position-absolute {
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin-top: 6px !important;
    max-height: min(360px, calc(100vh - 220px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    background: #fff !important;
    border: 1px solid #e0e5ec !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(16, 32, 55, 0.2) !important;
    z-index: 1000 !important;
  }
}

@media (min-width: 992px) {
  .av-flight-booker-wrap .c-booker > .row > .mb-0 {
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 0 !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
  }
  .av-flight-booker-wrap .c-booker > .row > .mb-0::before {
    content: "Tipo de vuelo:";
    font: 400 14px/20px Roboto, Arial, sans-serif !important;
    color: #3c4043 !important;
  }
  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.position-relative.col-12.col-lg-3.pe-md-2,
  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.col-12.col-lg-3.px-md-2,
  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.col-12.col-lg-2.px-md-2.c-lg-input-1,
  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.col-12.col-lg-2.px-md-2.c-lg-input-2 {
    grid-row: 1 !important;
  }

  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.position-relative.col-12.col-lg-3.pe-md-2,
  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.col-12.col-lg-3.px-md-2,
  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.col-12.col-lg-2.px-md-2.c-lg-input-1,
  .av-flight-booker-wrap .c-booker > .row > .mb-2.mb-md-0.col-12.col-lg-2.px-md-2.c-lg-input-2 {
    justify-content: center !important;
    padding: 6px 12px 7px !important;
    background: #fff !important;
    border: 1px solid #dadce0 !important;
    border-radius: 8px !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  }
  .av-flight-booker-wrap .c-booker > .row > [class*="col-"]:focus-within {
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12) !important;
  }
  .av-flight-booker-wrap .c-booker label:not(.form-check-label):not(.flight-item-families__item-form-label) {
    height: auto !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 16px !important;
  }
  .av-flight-booker-wrap .c-booker .input-group {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .av-flight-booker-wrap .c-booker .input-group:focus-within {
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .av-flight-booker-wrap .c-booker > .row > .col-12.col-lg-2.d-flex.align-items-center.ps-md-1.pe-md-3.pt-md-4.pt-lg-0 {
    grid-row: 1 !important;
    align-self: stretch !important;
  }
  .av-flight-booker-wrap .c-booker #searchButton {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 62px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }

  .av-flight-booker-wrap .c-booker .tb-swap {
    position: absolute !important;
    right: -16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 6 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #dadce0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(16, 32, 55, 0.14) !important;
    cursor: pointer !important;
    color: #1a73e8 !important;
  }
  .av-flight-booker-wrap .c-booker .tb-swap:hover {
    border-color: #1a73e8 !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25) !important;
  }
  .av-flight-booker-wrap .c-booker .tb-swap svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
  }
}

