.cheap-flights {
  width: 100%;
  margin: 4px 0;
}

.cheap-flights>.title {
  background: var(--main-color);
  position: relative;
  padding-bottom: 0px !important;
}

.cheap-flights>.title .cheap-flights__box {
  line-height: 25px;
  text-align: center;
  color: var(--white-color);
  font-weight: 700;
  font-size: 16px;
  padding: 7px 0;
  margin-bottom: 0;
}

.cheap-flights a.prev-month {
  position: absolute;
  color: var(--white-color);
  font-weight: bold;
  left: 10px;
  top: 10px;
}

.cheap-flights a.next-month {
  position: absolute;
  color: var(--white-color);
  font-weight: bold;
  right: 10px;
  top: 10px;
}

.cheap-flights p.price-note {
  color: var(--main-color);
}

.cheap-flights p.price-note i {
  color: var(--main-color);
}

.cheap-flights p.guide-note {
  color: blue;
}

.best-price-calendar {
  position: relative;
}

.best-price-calendar .loading-overlay {
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--main-color);
  --_m: conic-gradient(#0000 10%,#000),linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: loading_overlay 1s infinite linear;
  z-index: 999999;
  position: absolute;
  left: 0;
  top: 50%;
  margin: 0 50%;
}
@keyframes loading_overlay {to{transform: rotate(1turn)}}

.best-price-table.loading {
  height: 35px;
  line-height: 35px;
  border: 1px solid var(--border-color);
  background: var(--white-color);
  font-size: 13px;
}

.best-price-table.loading:after {
  content: "Đang tìm giá vé tốt nhất .....";
  text-align: center;
  display: block;
}

/***** Table calendar *****/

.best-price-table table.week-days {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.best-price-table table.week-days tr th {
  text-align: center;
  font-weight: bold;
  width: 14.28%;
  background: #eee;
  border: 1px solid var(--border-color);
  line-height: 25px;
}

.best-price-table table.week-days tr td {
  height: 45px;
  border: 1px solid var(--border-color);
  position: relative;
  padding: 5px;
}

.devvn_cheap_flights .best-price-table table.week-days tr td {
  height: 45px;
  border: 1px solid var(--border-color);
  position: relative;
  padding: 0px;
}

.best-price-table table.week-days tr td:not(.blank):hover {
  cursor: pointer;
  font-weight: bold;
}

.best-price-table .detail-price {
  display: none;
  pointer-events: none;
  box-shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0, rgba(60, 64, 67, 0.15) 0 2px 6px 2px;
}

.best-price-table .cal-cell .detail-price .row {
  padding: 3px 10px;
  padding-bottom: 0;
  margin: 0;
  padding-top: 0;
}

.best-price-table .cal-cell .detail-price .col-md-3:first-child {
  width: 14.5%;
}

.best-price-table .detail-price img {
  background: var(--white-color);
  margin: 0;
  width: 100%;
}

.best-price-table .calendar-content .cal-cell .detail-price .col-md-6 {
  font-size: 10.5px;
}

.best-price-table .place {
  font-weight: bold;
  line-height: 16px;
}

.best-price-table .calendar-content .date {
  letter-spacing: 0.25px;
}

.best-price-table .calendar-content .cal-cell .detail-price .has-price {
  font-size: 13px;
}

.best-price-table .cal-cell .detail-price .has-price {
  padding: 0;
  line-height: 40px;
  text-align: right;
  font-size: 14px;
  color: var(--main-color);
  font-weight: 700;
}

.best-price-table .cal-cell:hover .detail-price {
  left: -2%;
  top: 105%;
}

.best-price-table .cal-cell:hover .detail-price {
  display: block;
  position: absolute;
  width: 130px;
  height: auto;
  z-index: 3;
  background: var(--white-color);
  padding: 5px 0;
  border-radius: 20px;
}

.best-price-table table.week-days tr td.holiday {
  background-color: #f6ffa9;
}

.best-price-table table.week-days .base-price {
  font-size: 13px;
  position: absolute;
  top: 15px;
  right: 3px;
  line-height: 1px;
  font-size: 14px;

}

.devvn_cheap_flights .best-price-table table.week-days .base-price {
  position: absolute;
  top: 10px;
  right: 8px;
  line-height: 1px;
}

.devvn_cheap_flights .best-price-table table.week-days .base-price strong {
  text-transform: uppercase;
}

.best-price-table table.week-days .base-price .little-price-k {
  display: inline-block;
}

.best-price-table table.week-days .base-price .devvn-display-desktop {
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.best-price-table table.week-days .best-price {
  color: var(--main-color);
  font-weight: bold;
}

.devvn_cheap_flights .best-price-table table.week-days .best-price {
  font-size: 14px;
  position: absolute;
  top: 10px;
  right: 8px;
  line-height: 1px;
}

.best-price-table table.week-days .day-in-month {
  font-size: 13px;
  font-weight: bold;
  position: absolute;
  bottom: 10px;
  right: 3px;
  line-height: 1px;
  color: var(--main-color);
}

.devvn_cheap_flights .best-price-table table.week-days .day-in-month {
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  bottom: 10px;
  right: 8px;
  line-height: 1px;
  color: var(--main-color);
}

.best-price-table .devvn_show_img {
  position: relative;
}

.best-price-table .devvn_show_img img {
  width: 40px;
  height: 42px;
  margin: 0;
  margin-top: 5px;
  margin-left: 5px;
  object-fit: contain;
}

/***** End table calendar *****/



/***** Dialog search flight *****/

.modal-form-cheap-flights .animate-top {
  position: relative;
  animation: animatetop 0.4s;
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

.modal-form-cheap-flights .modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.275);
}

.modal-form-cheap-flights .modal-content {
  margin: 5% auto;
  width: 320px;
  max-width: 100%;
  background-color: var(--white-color);
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 15px;
  outline: 0;
}

.modal-form-cheap-flights .modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: .3rem;
  border-top-right-radius: .3rem;
}

.modal-form-cheap-flights .modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  margin-top: 0;
  font-size: 1.25rem;
}

.modal-form-cheap-flights .modal-header .close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--black-color);
  text-shadow: 0 1px 0 var(--white-color);
  opacity: .5;
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
  background-color: transparent;
  border: 0;
}

.modal-form-cheap-flights .close:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.modal-form-cheap-flights .modal-body {
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-form-cheap-flights .modal-body p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* buttons */

.modal-form-cheap-flights .btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  cursor: pointer;
}

.modal-form-cheap-flights .btn:focus,
.modal-form-cheap-flights .btn:hover {
  text-decoration: none;
}

.modal-form-cheap-flights .btn-primary {
  color: var(--white-color);
  background-color: #007bff;
  border-color: #007bff;
}

.modal-form-cheap-flights .btn-primary:hover {
  color: var(--white-color);
  background-color: #0069d9;
  border-color: #0062cc;
}

.modal-form-cheap-flights .btn-secondary {
  color: var(--white-color);
  background-color: #7c8287;
  border-color: #7c8287;
}

.modal-form-cheap-flights .btn-secondary:hover {
  color: var(--white-color);
  background-color: #6c757d;
  border-color: #6c757d;
}

.modal-form-cheap-flights .dialog-search-flights .btn-flat-red {
  width: 100%;
  background-color: var(--main-color);
  border: var(--main-color);
  padding: 10px;
  color: var(--white-color);
  font-size: 15px;
  box-shadow: 1px 2px 2px #04467f;
  border-radius: 10px;
  font-weight: bold;
}

.modal-form-cheap-flights .modal-body #dlg-depdate {
  background-color: #ebebe4;
  border: 1px solid #aaa;
}

.modal-form-cheap-flights .cheapfl-oneway,
.modal-form-cheap-flights .cheapfl-roundtrip {
  display: inline-flex;
  line-height: 23px;
  font-size: 12px;
  vertical-align: middle;
}

.modal-form-cheap-flights .cheapfl-oneway input,
.modal-form-cheap-flights .cheapfl-roundtrip input {
  margin-right: 5px;
  outline: 0;
}

.modal-form-cheap-flights form.search-flight-form .row {
  padding-bottom: 10px;
  margin: 0;
}

.modal-form-cheap-flights form.search-flight-form .row .cheapfl-lb {
  font-size: 12px;
}

.modal-form-cheap-flights form.search-flight-form select,
.modal-form-cheap-flights form.search-flight-form .row input {
  width: 100%;
  padding-left: 5px;
  padding-right: 5px;
  height: 34px;
  color: #63676b;
  border: 1px solid var(--border-color);
  border-radius: 3px;
}

.modal-form-cheap-flights .flight-type {
  margin-bottom: 10px;
}

/***** End Dialog search flight *****/

.cheap-flights #dep_list,
.cheap-flights #arv_list,
.cheap-flights #month_year_list {
  width: 135px;
  border-radius: 6px;
  padding: 5px;
  font-size: 14px;
  outline: none;

}

table.week-days tr td.holiday {
  background-color: #f6ffa9;
}

.cheap-flights p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-align: justify;
}

.cheap-flights .devvn-not-flights {
  font-size: 15px;
  font-style: italic;
  color: #808080;
  padding: 5px 0;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid var(--main-color);
}

/* MOBILE CHEAP FLIGHTS */
@media screen and (max-width: 575px) {
  .modal-form-cheap-flights .modal-content {
    top: calc(100% - 650px);
  }

  .best-price-table .cal-cell:hover .detail-price {
    display: none;
  }

  .best-price-table strong.devvn-display-mb {
    font-weight: 400;
  }

  .devvn_cheap_flights .devvn_show_img {
    display: none;
  }

  .devvn_cheap_flights .best-price-table table.week-days .best-price,
  .devvn_cheap_flights .best-price-table table.week-days .base-price {
    font-size: 13px;
  }

  .devvn_cheap_flights .post-editor {
    margin-top: 0px;
  }

  .cheap-flights #dep_list,
  .cheap-flights #arv_list,
  .cheap-flights #month_year_list {
    width: 85px;
    font-size: 13px;
  }

  .best-price-calendar .loading-overlay {
    width: 25px;
    padding: 3px;
  }
}