.vas-panel {
  margin: 24px 0;
  padding: 0;
  font-family: 'Inter', Roboto, sans-serif;
}
.vas-addon {
  border: 1px solid #D4D4D4;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.25s ease-in;
}
.vas-addon:hover {
  border-color: #BFC1CC;
}
.vas-addon--selected {
  border-color: #4450F2;
  background: #F8F8F8;
}
/* a card shown only for some trips (the Schengen visa form, partials/bookVisaForm.ejs): display: flex above
   would show it with the hidden attribute */
.vas-addon[hidden] {
  display: none;
}
.vas-addon__icon {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  margin: -16px 12px -16px -20px;
}
.vas-addon__icon img {
  width: 86px;
  height: 86px;
  display: block;
  object-fit: cover;
}
.vas-addon__info {
  flex: 1;
}
.vas-addon__name {
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  margin: 0 0 4px;
}
.vas-addon__pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vas-addon__price {
  font-size: 16px;
  font-weight: 700;
  color: #4450F2;
}
.vas-addon__original-price {
  font-size: 14px;
  color: #9299A2;
  text-decoration: line-through;
}
/* the words after the price («per traveller · add now, fill in later») and the travellers of an added card */
.vas-addon__per {
  font-size: 14px;
  line-height: 20px;
  color: #4B5059;
}
.vas-addon__discount-badge {
  font-size: 12px;
  font-weight: 600;
  background: #7BF78F;
  color: #141414;
  padding: 4px 8px;
  border-radius: 10px;
}
.vas-addon__btn {
  background: #4450F2;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: 'Inter', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease-in;
}
.vas-addon__btn:hover {
  background: #1D29C7;
}
.vas-addon__btn--remove {
  background: transparent;
  color: #9299A2;
  padding: 8px;
  font-size: 18px;
  line-height: 1;
}
.vas-addon__btn--remove:hover {
  color: #EF4444;
  background: transparent;
}
.vas-addon__selected-info {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}
.vas-addon__selected-name {
  font-size: 14px;
  color: #141414;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vas-addon__selected-price {
  font-size: 14px;
  font-weight: 700;
  color: #141414;
  white-space: nowrap;
  margin-right: 8px;
}
.vas-addon__btn.js-vas-edit {
  background: transparent;
  color: #4450F2;
  padding: 8px 12px;
}
.vas-addon__btn.js-vas-edit:hover {
  color: #1D29C7;
  background: transparent;
}

/* Hotel modal */
.vas-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  overflow-y: auto;
}
.vas-modal-overlay--visible {
  display: flex;
}
.vas-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  font-family: 'Inter', Roboto, sans-serif;
}
.vas-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}
.vas-modal__title {
  font-family: 'Poppins', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #141414;
  margin: 0;
}
.vas-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #9299A2;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.vas-modal__close:hover {
  color: #141414;
}
.vas-modal__body {
  padding: 20px 24px 24px;
}
.vas-modal__form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.vas-modal__form-row--full {
  flex-direction: column;
  margin-bottom: 16px;
}
.vas-modal__field {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vas-modal__label {
  font-size: 12px;
  line-height: 15px;
  color: #9299A2;
  margin-bottom: 4px;
  font-weight: 400;
}
.vas-modal__input {
  height: 48px;
  border: 1px solid #D4D4D4;
  border-radius: 10px;
  padding: 6px 16px;
  font-family: 'Inter', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #141414;
  outline: none;
  transition: border-color 0.25s ease-in;
}
.vas-modal__input:hover {
  border-color: #BFC1CC;
}
.vas-modal__input:focus {
  border-color: #4356E9;
}
.vas-guest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.vas-guest-row__input {
  flex: 1;
}
.vas-guest-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #D4D4D4;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.vas-guest-counter__btn {
  background: #F8F8F8;
  border: none;
  width: 36px;
  height: 40px;
  font-size: 18px;
  color: #141414;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.vas-guest-counter__btn:hover {
  background: #EEEEEE;
}
.vas-guest-counter__btn:disabled {
  color: #D4D4D4;
  cursor: default;
}
.vas-guest-counter__btn:disabled:hover {
  background: #F8F8F8;
}
.vas-guest-counter__value {
  width: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  border-left: 1px solid #D4D4D4;
  border-right: 1px solid #D4D4D4;
  height: 40px;
  line-height: 40px;
}
.vas-guest-counter__label {
  font-size: 12px;
  color: #9299A2;
  margin-left: 8px;
  white-space: nowrap;
}
.vas-modal__search-btn {
  width: 100%;
  background: #4450F2;
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 48px;
  font-family: 'Inter', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.25s ease-in;
}
.vas-modal__search-btn:hover {
  background: #1D29C7;
}
.vas-modal__search-btn:disabled {
  background: #ABAFE3;
  cursor: default;
}

/* Hotel results inside modal */
.vas-hotels {
  margin-top: 20px;
}
.vas-hotels__loading {
  text-align: center;
  padding: 32px 0;
  color: #9299A2;
  font-size: 14px;
}
.vas-hotels__empty {
  text-align: center;
  padding: 24px 0;
  color: #9299A2;
  font-size: 14px;
}
.vas-hotel-card {
  border: 1px solid #D4D4D4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease-in, box-shadow 0.25s ease-in;
}
.vas-hotel-card:hover {
  border-color: #BFC1CC;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.vas-hotel-card--selected {
  border-color: #4450F2;
  box-shadow: 0 0 0 2px rgba(68,80,242,0.2);
}
.vas-hotel-card__photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.vas-hotel-card__body {
  padding: 12px 16px;
}
.vas-hotel-card__stars {
  color: #FFD900;
  font-size: 13px;
  letter-spacing: 1px;
}
.vas-hotel-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  margin: 4px 0;
  line-height: 1.3;
}
.vas-hotel-card__location {
  font-size: 12px;
  color: #9299A2;
  margin: 0 0 8px;
}
.vas-hotel-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #D4D4D4;
  padding-top: 8px;
}
.vas-hotel-card__price {
  font-size: 16px;
  font-weight: 700;
  color: #141414;
}
.vas-hotel-card__per-night {
  font-size: 12px;
  color: #9299A2;
}
.vas-hotel-card__select-btn {
  background: #4450F2;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Inter', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease-in;
}
.vas-hotel-card__select-btn:hover {
  background: #1D29C7;
}

.vas-modal-overlay {
  overflow-x: hidden;
}
.vas-modal {
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .vas-addon {
    flex-wrap: wrap;
  }
  .vas-addon__icon {
    margin-bottom: 0;
  }
  .vas-addon__btn {
    flex-basis: 100%;
    width: calc(100% - 32px);
    margin: 4px 16px 16px;
    padding: 14px 24px;
  }
  .vas-addon__btn--remove,
  .vas-addon__btn.js-vas-edit {
    flex-basis: auto;
    width: auto;
    margin: 0;
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .vas-modal {
    max-width: 100%;
    border-radius: 10px;
  }
  .vas-modal__form-row {
    flex-direction: column;
  }
  .vas-hotel-card__photo {
    height: 120px;
  }
}

/* Visa cover letter (ticket_templates/coverLetterOffer.ejs): the card under the hotel extra, the
   modal with /visa-cover-letter?embed=1 in a frame */
/* right under the hotel extra (the hotel modal stands between the two panels): the gap of two
   cards in one list */
.vas-panel ~ .vas-panel--letter {
  margin-top: -12px;
}
.vas-modal--letter {
  max-width: 1180px;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vas-modal--letter .vas-modal__header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid #ECECEC;
}
.vas-modal--letter:focus {
  outline: none;
}
.vas-modal__frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  display: block;
}
@media (max-width: 520px) {
  .vas-modal-overlay--letter {
    padding: 0;
  }
  .vas-modal--letter {
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
  .vas-modal--letter .vas-modal__header {
    padding: 16px 16px 12px;
  }
}
