/* AVIAMARKET PASSENGER V2 */

#passengerPanelV2[hidden] {
  display: none !important;
}

#passengerPanelV2 {
  box-sizing: border-box;
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  right: 0;

  width: 390px;
  max-width: calc(100vw - 24px);

  padding: 16px;
  border: 1px solid #d8e1ec;
  border-radius: 20px;

  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.am2-passenger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 70px;
  gap: 20px;
  padding: 8px 6px;
}

.am2-passenger-copy strong {
  display: block;
  color: #172033;
  font-size: 18px;
  font-weight: 500;
}

.am2-passenger-copy span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
}

.am2-passenger-counter {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}

.am2-passenger-counter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  min-width: 42px;
  height: 42px;

  padding: 0;
  border: 1px solid #d8e1ec;
  border-radius: 13px;

  background: #ffffff;
  color: #0064b4;

  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.am2-passenger-counter button:hover {
  background: #f4f8fc;
}

.am2-passenger-counter output {
  min-width: 22px;
  color: #172033;
  font-size: 18px;
  text-align: center;
}

#passengerDoneV2 {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 52px;
  margin-top: 10px;

  border: 1px solid #0064b4;
  border-radius: 14px;

  background: #0064b4;
  color: #ffffff;

  font-size: 17px;
  cursor: pointer;
}

@media (max-width: 650px) {
  #passengerPanelV2 {
    right: 0;
    width: calc(100vw - 24px);
  }
}

/* AVIAMARKET VISIBLE PASSENGER LABEL START */

/* Старый текст сохраняет место, но визуально скрыт */
#passengerButton #passengerLabel {
  visibility: hidden !important;
}

/* Новая надпись находится вне старой кнопки */
.am2-passenger-label-overlay {
  position: absolute;
  z-index: 5;
  top: 17px;
  left: 18px;

  display: block;
  max-width: calc(100% - 64px);

  overflow: hidden;
  color: #172033;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;

  text-overflow: ellipsis;
  white-space: nowrap;

  pointer-events: none;
  user-select: none;
}

/* AVIAMARKET VISIBLE PASSENGER LABEL END */

/* AVIAMARKET OLD PASSENGER PLACEHOLDER OFF START */

/*
  Убираем старую надпись «Пассажиры»,
  которая создавалась через ::before.
*/
#passengerButton::before,
.field-passengers.field-placeholder
#passengerButton::before {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
}

/* AVIAMARKET OLD PASSENGER PLACEHOLDER OFF END */

/* AVIAMARKET PASSENGER FIELD FONT START */

/*
  Надпись пассажиров полностью совпадает
  по шрифту и расположению с другими полями поиска.
*/
#searchForm .am2-passenger-label-overlay {
  top: 50% !important;
  left: 20px !important;
  transform: translateY(-50%) !important;

  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;

  color: var(--field-value, #172033) !important;
}

/* AVIAMARKET PASSENGER FIELD FONT END */

/* AVIAMARKET PASSENGER LABEL COLOR START */
#searchForm .am2-passenger-label-overlay{
  color:#8993a4 !important;
}
/* AVIAMARKET PASSENGER LABEL COLOR END */

/* AVIAMARKET PASSENGER V2 DATE COLOR FIX START */
/* Старый текст нужен JavaScript, но визуально всегда скрыт */
#searchForm .passenger-field
#passengerButton #passengerLabel{
  visibility:hidden !important;
  opacity:0 !important;
}

/* Старые искусственные надписи кнопки не показываем */
#searchForm .passenger-field #passengerButton::before,
#searchForm .passenger-field #passengerButton::after{
  content:none !important;
  display:none !important;
}

/* До выбора даты видимая надпись V2 остаётся серой */
#searchForm .passenger-field
.am2-passenger-label-overlay{
  color:#8993a4 !important;
  -webkit-text-fill-color:#8993a4 !important;
  -webkit-text-stroke:0 !important;
  opacity:1 !important;
  text-shadow:none !important;
  filter:none !important;
}

/* После выбора даты туда видимая надпись V2 становится тёмной */
#searchForm .passenger-field.date-ready
.am2-passenger-label-overlay{
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
}
/* AVIAMARKET PASSENGER V2 DATE COLOR FIX END */

