*:has(>.ggweb-avia-search) {
    container-type: inline-size;
}
.ggweb-avia-search {
  padding: 16px;
  background: #fff;
  border-radius: 5px;
}

.ggweb-avia-search .ggweb-avia-field-label {
    color: #333;
    font-size: 13px;
}
.ggweb-avia-search .ggweb-avia-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ggweb-avia-search .ggweb-avia-field-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ggweb-avia-field-group.input-daterange {
    display: flex;
    gap: 5px;
}

.ggweb-avia-search .ggweb-avia-field-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 14px;
    min-height: 40px;
    text-align: left;
}
.ggweb-avia-search .ggweb-avia-field {
    display: flex;
    flex-direction: column;
    position: relative;
}
.ggweb-avia-search .ggweb-avia-field.checkbox {
    flex-direction: row;
}
.ggweb-avia-search .ggweb-avia-field-input-box {
    position: relative;
}
.ggweb-avia-search .ggweb-avia-field,
.ggweb-avia-search .ggweb-avia-field-group {
    flex: 1 1 0;
}
.ggweb-avia-search .ggweb-avia-field-city {
    flex: 1.2 1 0;
}
.ggweb-avia-search .ggweb-avia-field-group-dates {
    flex: 1.7 1 0;
}
.ggweb-avia-search .ggweb-avia-field-modal {
    display: none;
    padding: 10px;
    box-sizing: border-box;
    top: calc(100% - 5px);
    position: absolute;
    z-index: 10;
    background: #fff;
    width: 100%;
    border-radius: 5px;
    box-shadow: 2px 2px 16px 0 rgba(0,0,0,.16);
}
.ggweb-avia-search .ggweb-avia-field-dynamic-modal {
    width: 100%;
}
.ggweb-avia-search .ggweb-avia-field-modal.active {
    display: block;
}
.ggweb-avia-search .ggweb-avia-button-submit {
    margin-top: auto;
}
.ggweb-avia-search .ggweb-avia-field .ggweb-avia-field-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.ggweb-avia-search .ggweb-avia-field-city-iata {
    filter: contrast(0.1);
}
.ggweb-avia-search .ggweb-avia-select-list {
    margin: 0;
    list-style: none;
    padding-left: 0px;
}
.ggweb-avia-select-list span {
  font-size: 13px;
}
.ggweb-avia-search .ggweb-avia-select-list .ggweb-avia-select-list-item {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    padding-bottom: 0;
    margin-bottom: 5px;
}
.ggweb-avia-search .ggweb-avia-select-list .ggweb-avia-select-list-item:hover {
    cursor: pointer;
}
.ggweb-avia-select-list-item {
  font-size: 13px;
}
.ggweb-avia-select-list-item span {
  cursor: pointer;
}
.ggweb-avia-field-icon.ggweb-avia-field-city-iata {
  font-size: 14px;
}
.ggweb-avia-search .ggweb-avia-select-list .ggweb-avia-select-list-item::after {
    content: attr(data-code);
    filter: contrast(0.1);
}
.ggweb-avia-search .ggweb-avia-field-city-swap {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 10;
    transform: translate(60%, -50%);
    background: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 16px 0 rgba(0,0,0,.16);
}
.ggweb-avia-search .ggweb-avia-field-city .ggweb-avia-field-input-box .ggweb-avia-field-input {
    padding-right: 60px;
}
.ggweb-avia-search .ggweb-avia-field.ggweb-avia-field-date .ggweb-avia-field-input {
    color: transparent;
}
.ggweb-avia-search .ggweb-avia-field.ggweb-avia-field-date .ggweb-avia-field-date-value {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
}
.ggweb-avia-search .ggweb-avia-field-input-passengers {
    color: #fff;
}
.ggweb-avia-search .ggweb-avia-field-modal-passengers {
    width: 250px;
    flex-direction: column;
    gap: 10px;
}
.ggweb-avia-search .ggweb-avia-field-modal-passengers.ggweb-avia-field-modal.active {
    display: flex;
}
.ggweb-avia-search .ggweb-avia-field-modal-passengers .ggweb-avia-field-label {
    color: #000;
}
.ggweb-avia-search .ggweb-avia-field-modal-passengers .ggweb-avia-field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ggweb-avia-search .ggweb-avia-field-modal-passengers .ggweb-avia-field-input {
    border: none;
    background: transparent;
    width: 10px;
    padding: 0;
}
.ggweb-avia-search .ggweb-avia-field-input-action {
    display: inline-block;
    width: 20px;
    height: 24px;
    text-align: center;
}
.ggweb-avia-search .ggweb-avia-field-input-action:hover {
    cursor: pointer;
    background-color: #0001;
}
.ggweb-avia-search .ggweb-avia-field.ggweb-avia-field-passengers .ggweb-avia-field-passengers-value {
    position: absolute;
    top: -4px;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.ggweb-avia-search .ggweb-avia-field.ggweb-avia-field-passengers .ggweb-avia-field-passengers-value-sub {
    position: absolute;
    top: 10px;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    filter: contrast(0.1);
}
.ggweb-avia-search .ggweb-avia-field-input::-webkit-input-placeholder,
.ggweb-avia-search .ggweb-avia-field-input::-moz-placeholder,
.ggweb-avia-search .ggweb-avia-field-input::-ms-placeholder,
.ggweb-avia-search .ggweb-avia-field-input::placeholder {
    color: black;
    opacity: 1; /* Firefox */
}

@media(max-width: 1170px) {
    .ggweb-avia-search .ggweb-avia-field-group {
        flex-wrap: wrap;
    }
    .ggweb-avia-search .ggweb-avia-field-city {
        flex-basis: calc(50% - 5px);
    }
}
@media(max-width: 650px) {
    .ggweb-avia-search .ggweb-avia-button-submit {
        flex-basis: 100%;
    }
    .ggweb-avia-field-modal-passengers {
        right: 0;
    }
}
@media(max-width: 550px) {
    .ggweb-avia-search .ggweb-avia-field-city {
        flex-basis: 100%;
    }
    .ggweb-avia-search .ggweb-avia-field-passengers {
        flex-basis: 100%;
    }
    .ggweb-avia-search .ggweb-avia-field-city-swap {
        top: 100%;
        right: 0;
        z-index: 10;
        transform: translate(0%, 5%);
    }

    .ggweb-avia-search .ggweb-avia-field-modal-passengers {
        width: 100%;
    }
    .ggweb-avia-field-modal-passengers .ggweb-avia-field-input-box {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .ggweb-avia-search .ggweb-avia-field-input-action {
        width: 40px;
        height: 40px;
        line-height: 1.8em;
        font-size: 1.5em;
        text-align: center;
    }
    .ggweb-avia-search .ggweb-avia-field-modal-passengers .ggweb-avia-field-input {
        width: 20px;
        font-size: 1.3em;
        text-align: center;
    }
}
@media(max-width: 320px) {
    .ggweb-avia-search .ggweb-avia-field-date {
        flex-basis: 100%;
    }
}

@media(max-width: 768px) {
    .datepicker.datepicker-dropdown table tr td, .datepicker.datepicker-dropdown table tr th {
        width: 40px;
        height: 40px;
    }
}

/* @container(width < 1171px) {
    .ggweb-avia-search .ggweb-avia-field-group {
        flex-wrap: wrap;
    }
    .ggweb-avia-search .ggweb-avia-field-city {
        flex-basis: calc(50% - 5px);
    }
}
@container(width < 651px) {
    .ggweb-avia-search .ggweb-avia-button-submit {
        flex-basis: 100%;
    }
    .ggweb-avia-field-modal-passengers {
        right: 0;
    }
}
@container (width < 551px) {
    .ggweb-avia-search .ggweb-avia-field-city {
        flex-basis: 100%;
    }
    .ggweb-avia-search .ggweb-avia-field-passengers {
        flex-basis: 100%;
    }
    .ggweb-avia-search .ggweb-avia-field-city-swap {
        top: 100%;
        right: 0;
        z-index: 1000;
        transform: translate(0%, 5%);
    }
    .ggweb-avia-field-modal-passengers .ggweb-avia-field-input-box {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

@container (width < 321px) {
    .ggweb-avia-search .ggweb-avia-field-date {
        flex-basis: 100%;
    }
} */


th.datepicker-switch {
    background: #fff;
}
th.datepicker-switch:hover {
    background: #fff;
}
.datepicker table th {
    background: none !important;
    border-bottom: 1px solid #f5f5f5 !important;
}
.datepicker table th:hover {
    background: #ddd;
}
.datepicker table tr th:last-child {
    border-right: none !important;
}
.datepicker th.clear {
    background: #3f3f3f !important;
    color: #fff;
    border-radius: 5px;
}
.datepicker th.clear:hover {
    background: #111 !important;
    color: #fff;
    border-radius: 5px;
}
.datepicker th.next {
    background-color: #f3f3f3 !important;
    border-radius: 9px;
    width: 25px !important;
    height: 25px !important;
    font-size: 12px;
}
.datepicker th.next:hover {
    background-color: #e7e7e7 !important;
}
.datepicker th.prev {
    background-color: #f3f3f3 !important;
    border-radius: 9px;
    width: 25px !important;
    height: 25px !important;
    font-size: 12px;
}
.datepicker th.prev:hover {
    background-color: #e7e7e7 !important;
}
.ggweb-avia-button-submit {
  background: #cf4105 !important;
  color: #fff !important;
  height: 45px !important;
}