/* Styles CSS by Hasi Weragala */

:root {
  --main-color: #f37022;
  --main-color-shaded : #fcd4a5;
  --grey-border-color: #e2e8f0;
  --grey-bg-color: #f9fafb;
  --text-color: #212427;
  --green-color: #006f45;
  --font-family: 'Inter', sans-serif;
  --shadow : 0 0 10px 0  rgba(0, 0, 0, 0.25);
  --font-size: 14px;
}

body {
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: var(--font-size);
  text-rendering: optimizeLegibility;  
}

.general_header {
  text-align: center;
  font-size: 1.5rem !important;
  margin-top:60px;
  margin-bottom: 20px;
}

.general_header + .nkar_itin_wrapper {
  margin-top: 0;
}

/* Tabbed components */
.tab_title_wrapper {
  display: flex;
  flex-direction: row;
  margin: 20px 0;
  gap: 15px;
}

.tab_title {
  padding: 5px 10px;
  display: inline-block;
  box-shadow: var(--shadow);
  border-radius: 5px;
  cursor: pointer;
}

.tab_title.active {
  background-color: var(--main-color);
}

.form-control input[disabled]{
  background-color: var(--grey-border-color);
  opacity: 0.5;
}

form {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width:100%;
  position: relative;
  font-size: var(--font-size);
}

.form-control {
  display: flex;
  flex-direction: column;
  flex-grow:1;
}

.form-control input:not([type="radio"]){
  height: 54px;	  
}

.nkar_itin_wrapper {
  width: 700px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  margin: 60px auto;
}

.nkar_itin {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  box-shadow: var(--shadow);
  border-radius: 10px;
  margin: 10px 0;
  padding: 20px 0;
}

.segment_details {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.itin_details {
  padding: 10px 30px 0px 0;
}

.itin_details_wrapper:first-child:not(:only-child) {
  border-bottom: 2px solid var(--grey-border-color);
}

.itin_price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 100px;
}

.price {
  white-space: nowrap;
}

.seats_left {
  font-size: 12px;
  background-color: var(--grey-bg-color);
  padding: 0 5px;
}

.segment {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
}

span {
  display: block;
  text-align: center;
}

.logo {
  width: 100px;
}

.itin_arrow {
  width: 100px;
  height: 2px;
  background-color: var(--main-color);
  margin: 0 20px;
  position: relative;
}

.itin_arrow::after {
  content: "►";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(100%, -50%);
  color: var(--main-color);
}

.mid_section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mid_section span {
  font-size: 12px;
  color: var(--text-color);
}

.itin_price button,
.show_popup,
.cta_buttons,
.functional_buttons {
  border-radius: 0 !important;
  background-color: var(--main-color) !important;
  padding: 10px 15px !important;
  border: none !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  font-size: var(--font-size) !important;
  text-decoration: none !important;
  color: var(--text-color);
  transition: .3s all ease-out;
}

.cta_buttons:active {
  transform: translateY(5px);
}


.show_popup,
.functional_buttons {
  background-color:var(--grey-border-color) !important;
  border: 2px solid var(--grey-border-color) !important;
}

.show_popup:is(:focus,:hover) ,
.functional_buttons:is(:focus,:hover){
  background-color: var(--grey-border-color) !important;
  border: 2px solid var(--main-color) !important;
  color: var(--text-color);
}

.cta_buttons,
.show_popup,
#mc_add_more_button {
  align-self: flex-end;
  height: 54.39px;
}

.secondary_cta_btn {
  height:auto;
}

.cta_buttons:is(:focus, :active, :hover)
 {
  opacity: 0.7 !important;
  background-color: var(--main-color) !important;
  color: var(--text-color);
}

button:disabled,
input[type=submit]:disabled {
  background-color: var(--grey-bg-color) !important;
}

.wait_time ,.modal_duration__mobile{
  text-align: center;
  font-size: 12px;
  background-color: var(--grey-border-color);
  margin:10px 0;
}

.itin_details_wrapper {
  text-align: center;
  border-right: 2px solid var(--grey-border-color);
}

.airport_code {
  font-size: 20px;
}

/* .tippy-box[data-theme~="nkar"] {
  background-color: var(--grey-bg-color);
  color: var(--text-color);
  box-shadow: var(--shadow);
} */

.tippy-box {
  background-color: #fff;
  box-shadow: var(--shadow);
  color: var(--text-color);
}

span[data-tippy-content],
.show_details_link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-style: dotted !important;
  text-decoration-color: var(--grey-border-color);
}

.error_notice,
.warning_notice,
.response_error {
  font-size: 12px;
  text-align: center;
  color: #d23737;
  background-color: #ffe2e2;
  padding: 4px;
  border: 1px solid #ffc6c6;
  border-radius: 0;
  max-width: 100%;
  text-align: left;
  list-style-type: none;
}

.warning_notice {
  background-color: var(--main-color-shaded);
  border-color: var(--main-color);
  color: var(--text-color);
  width: 700px;
  margin-right: auto;
  margin-left: auto;
}

.show_details_link {
  color: var(--main-color);
  font-size: 12px;
  margin-left: 100px; 
  display: inline-block;
  margin-bottom: 10px;
  text-decoration-color: var(--main-color);
}

#travellers {
  max-width: 168px;
}

/* Autocomplete widget */
.ui-menu {
  box-shadow: var(--shadow) !important;
  border: none !important;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 5px solid transparent;
}

.ui-menu-item .ui-menu-item-wrapper {
  padding: 10px ;
  border-left: 5px solid transparent;
}

.ui-menu-item span {
  text-align: left;
  font-family: var(--font-family);
  font-size: 1em;
}

.ui-menu-item-wrapper:nth-child(2) {
  font-size: 0.8em;
  font-style: italic;
}

.ui-menu .ui-state-active {
  background-color: var(--main-color-shaded) !important;
  border: none;
  border-left: 5px solid var(--main-color) !important;
  color: var(--text-color);
}

/* UI calender widget */
#ui-datepicker-div {
  width: 300px;
  font-family: var(--font-family);
  border: none;
  box-shadow: var(--shadow);
}

.ui-datepicker-calendar {
  border: none;
}

.ui-widget select {
  font-family: var(--font-family);
  background-color: #fff;
}

.ui-datepicker-calendar .ui-state-active {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
}

.ui-state-highlight, 
.ui-widget-content .ui-state-highlight {
  background-color: var(--main-color-shaded) !important;
}

.ui-datepicker-calendar td :is(a,span) {
  text-align: center;
}

.ui-datepicker-next .ui-icon {
  background-image: url(https://flights.nkarbooking.com/wp-content/uploads/2023/10/next-svgrepo-com-1.svg);
}

.ui-datepicker-prev .ui-icon {
  background-image: url(https://flights.nkarbooking.com/wp-content/uploads/2023/10/left-itin_arrow-back-svgrepo-com-1.svg);
}

.ui-icon-circle-triangle-w,
.ui-icon-circle-triangle-e {
  background-position: unset;
  background-size: cover;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  height: 100%;
  top: 0;
}

.ui-corner-all {
  border-radius: 0;
}

.ui-state-default {
  border-color: var(--grey-border-color) !important;
  background-color: var(--grey-bg-color) !important;
}

.ui-widget-header {
  background-color: var(--grey-bg-color);
}

/* Form controls */
.form-control {
  position: relative;
}

.form-control input[type="text"]:focus {
  background-color: var(--grey-bg-color);
  border: 2px solid var(--main-color);
}

.loader_wrapper {
  width: 100%;
  text-align: center;
}

.resetInput,
.removeRow {
  width: 32px;
  height: 32px;
  position: absolute;
  right: 15px;
  bottom: 13px;
  line-height: 32px;
  color: var(--green-color);
  background-color: #fff;
  visibility: hidden;
  cursor: pointer;
}

.removeRow {
  visibility: visible;
  right: 0;
  transform: translateX(-90px);
}

.airport_switcher,
.mc_airport_switcher {
    display: inline;
    position: absolute;
    right: 0;
    top: 46%;
    z-index: 10;
    transform: translate(50%,-15%);
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 1px solid var(--grey-border-color);
    cursor: pointer;
}

/* MC rows have different gaps, thus adjust the right of the switcher */
.mc_airport_switcher {
    right: -5px;
}

.optional_controls {
  display: none;
  gap: 20px;  
  padding: 20px;
  position: absolute;
  bottom: -100%;
  background-color: #fff;
  box-shadow: var(--shadow);
}

.options_trigger {
  display: inline-block;
  padding: 10px;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 5px;
}

.form-control  input[type="text"] {
  font-size: var(--font-size);
  padding: 1em 1.5em 1em;
  border: 2px solid var(--grey-border-color);
  background-color: #fff;
  max-width: 100%;
}

input#nonStop {
  margin: auto 0;
  height: 20%;
}

.nkar_number_inputs {
  display: inline-flex;
  margin-bottom:10px;
}

.nkar_number_inputs input {
  width: 50px !important;
  height: 50px !important;
  padding: 10px !important;
}

.nkar_number_inputs button {
  background-color: var(--grey-border-color);
  height: 50px;
  width: 50px;
  text-align: center;
  padding: 0;
  min-width: 0;
}

.btn-decrement {    
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

.btn-increment {
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;;
}

/* Modal */
.modal_itin_details {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  width: 700px;
  max-width:90%;
  box-shadow: var(--shadow);
  font-size: var(--font-size);
  z-index: 11;
}

.modal_container {
  padding: 30px;
  max-height: 80vh;
  overflow-y : auto;
  scrollbar-color: var(--main-color);
}

.modal_header {
  background-color: var(--main-color);
  padding:5px;
  position: relative;
  font-weight: 600;
}

.modal_segment,
.modal_itin {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.modal_duration_section {
  position: relative;
  width: 140px;
}

.modal_duration {
  display: inline-block;
  padding:2px;
  background-color: var(--grey-bg-color);
  white-space: nowrap;
  position: absolute;
  top:50%;
  left: 50%;
  transform: translate(-50%,-50%);
 }

.modal_line {
  height: 100%;
  width: 50%;
  border-right: 2px dashed var(--main-color);
  position: relative;
}

.modal_line::before,
.modal_line::after {
  content: '●';
  position:absolute;
  top: 0;
  left: 100%;
  color: var(--main-color);
  transform: translate(-40%,-50%);
}

.modal_line::after {
  bottom: 0;
  top: unset;
  transform: translate(-40%,50%);
}

.modal_segment_container { 
  margin-left: 20px;
  flex-grow: 1;
  width:80%;
}

.modal_segment_detail > div:not(:last-child) {
  margin-bottom: 5px;
}

.modal_segment {
  padding: 20px;
  margin-bottom: 10px;;
  background-color: var(--grey-bg-color);
  box-shadow: var(--shadow);
}

.modal_segment:last-of-type {
  margin-bottom: 0;
}

.modal_flight_number ,
.modal_airport{
  font-weight: 600;
}

.modal_flight_time_city {
  font-size: 1.2em
}

.modal_cabin {
  font-size: 0.8em;
}

.modal_segment_date {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal_segment_detail {
  margin-right: 20px;
  flex-basis: 69%;
}

.modal_segment_header,
.modal_flight_time_city {
  text-align: left;
}

.modal_segment_header > span {
  margin-right: 10px;
  display: inline-block;
}

.modal_close {
  position: absolute;
  right: 0;
  background-color: #fff;
  height: 100%;
  top: 0;
  line-height: 2;
  font-weight: 600;
  cursor: pointer;
}

.modal_close img {
  width:32px;
  aspect-ratio: 1;
}

.modal_duration__mobile {
  display: none;
}

/* offer price */
.table_wrapper {
  overflow-x: auto;
}

.offer_price_table {
  width: 100%;
  overflow-x: auto;
  margin: 0 auto 20px;
  text-align: center;
}

.offer_price_table th {
  background-color: var(--grey-bg-color);
}

.offer_price_table :is(th, td) {
  white-space: nowrap;
}

.offer_price_button_wrapper {
  text-align: right;
  margin: 30px 0;
}

.table_headers {
  text-align: left;
  font-weight: 600;
  margin-bottom: 10px;
  border-left: 5px solid var(--main-color);
  padding-left: 10px;
}

.table_headers:not(:first-of-type){
  margin-top: 20px;
}

.table_sub_header{
  text-align: left;
  font-weight: 600;
  margin: 20px 0 10px;
}

td[colspan] {
  text-align: left;
}

.table_text_bold {
  font-weight: 600;
}

.fullw {
  width: 100%;
}

.offer_price_section .itin_price {
  display: none;
}

.offer_price_section .itin_details_wrapper {
  border-right: none;
}

.price_detail_section,
.booking_form_section {
  box-shadow: var(--shadow);
  width: 700px;
  border-radius: 10px;
  padding: 30px;
  margin: 0 auto 60px;
  max-width: 100%;
}

.booking_form {
  flex-direction: column;
  gap: 15px;
}

.header {
  align-self: center;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 30px;
}

.subheader {
  margin: 20px 0 10px !important;
  font-size: 1.1rem !important;
  background-color: var(--main-color-shaded);
  padding: 10px;
}

.booking_form input {
  font-weight: 600;
}

.booking_form .form-control label:nth-of-type(2) {
  margin-top: 10px;
}

.form_notice {
  display: inline-block;
  text-align: left;
  padding: 5px 10px;
  background-color: var(--grey-border-color);
  font-size: 0.8em;
}

fieldset legend {
  margin-bottom: 10px;
}

fieldset {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  padding: 0 10px 10px;
}

/* Confirmation section */
.confirmation_wrapper {
  padding: 30px;
  width: 800px;
  margin: 0 auto;
}

.confirmation__details > .modal_itin_details{
  display : block;
  position: relative;
  top: unset;
  left: unset;
  transform: none;
  margin: 30px auto;
}

.confirmation__details .modal_header {
  display: none;
}

/* country code and nationality pickers */
.country-name {
  display: inline-block;
}

.iti-mobile .iti__country-list {
  width: fit-content !important;
}

/* Fare rules and penalties */
#modal_fare_rules .modal_container {
  background-color: var(--grey-bg-color);
  margin: 30px;
  overflow-y: scroll;
  font-size: 12px;
}

.fare_rules__title {
  font-weight: 600;
  display: inline-block;
}

/* Order confirmation window */
.order_confirmation {
  margin: 30px auto;
}

/* Button loader */
.button_loader {
  display: none;
}

.add_additional_baggage {
  width: 110px; /* Maintain fixed to accomodate loader */
}

/* Multi city selectors */
#flight_offers_form_multicity {
  display: none;
}

.mc_row_wrapper, 
.mc_row {
  width: 100%;
}

.mc_row {
  display: flex;
  gap: 10px;
  position: relative;
  margin: 20px 0;
  max-width: 865px;
}

.mc_row .form-control {
  max-width: 240px;
}

.mc_cta_row {
  display: flex;
  justify-content: flex-end;
  border-top: 2px solid var(--grey-border-color);
  padding-top: 20px;
}

.mc_cta_row > .cta_buttons {
  width: 115px;
}

.mc_cta_row .optional_controls {
  bottom: -150%;
}



/* ---------- Responsoive adjustments ------------- */

@media only screen and (max-width: 768px) {

  .form-control {
    width: 100%;
  }

  form,
  .nkar_itin,
  .segment {
    flex-direction: column;
    gap: 15px;
  }

  .segment {
    gap: 0;
  }

  .itin_details {
    padding-right: 0;
    border-right: none;
  }

  .nkar_itin_details_section {
    border-bottom: 2px solid var(--grey-border-color);
  }

  .cta_buttons {
    width: 100%;
    display: inline-block;
    text-align: center;
  }

  .itin_arrow {
    width: 130px;
    max-width: 70%;
  }

  .itin_details_wrapper {
    border-right: none;
  }
  
  .itin_details {
      padding-top: 0;
  }

  .itin_price {
    width: 90%;
    max-width: 90%;
  }

  .show_details_link {
    margin-left: 0;
  }

  .modal_itin  {
    flex-direction: column;
    gap: 10px;
  }

  .modal_segment_container {
    margin-left: 0;
    max-width: none;
    width:100%;
  }

  .modal_segment {
    flex-direction: column;
    margin-bottom: 0;
  }  

  .modal_duration__mobile_wrapper {
    text-align: center;
    position: relative;
  }

  .modal_duration__mobile {
    display: inline-block;
    margin-bottom: 10px;
    font-size:12px;
    width: 100%;
  }

  .modal_duration , 
  .modal_line {
    display: none;
  }

  .wait_time {
    background-color: var(--main-color-shaded);
    margin: 30px 0 0;
  }

  #modal_fare_rules .modal_container {
    margin: 0;
  }

  .modal_duration__mobile::before,
  .modal_duration__mobile::after {
    content: '▼';
    position: absolute;    
    left: 50%;
    font-size:20px;
    transform: translateX(-50%);
  }

  .modal_duration__mobile::before {
    top: -7px;
    color: var(--grey-bg-color);
  }
  
  .modal_duration__mobile::after {
    bottom: -7px;
    color: var(--grey-border-color);
  }

  .show_popup {
    width: 100%;
  }

  .optional_controls {
    position: relative;
    flex-direction: column;
  }

  .flex-row-mob {
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
  }

  .options_trigger {
    text-align: center;
  }

  .loader_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #fff;
    height: 100vh;
    display: flex;
    width: 100vw;
  }

  .airport_switcher,
  .mc_airport_switcher {
    bottom: 0;
    right: unset;
    left: 50%;
    transform: translate(-50%,130%) rotateZ(90deg);
  }
  /* Multi city styles */
  .mc_row {
    flex-direction: column;
    gap: 15px;
  }

  .mc_row .form-control {
    max-width: 100%;
  }

  .mc_cta_row > .cta_buttons {
    width: 100%;
  }

  .removeRow {
    bottom: 0;
    left: 50%;
    right: unset;
    transform: translate(-50%,100%);
  }

  #mc_add_more_button {
    align-self : auto;
  }

  .mc_repeatable_row  {
    border-top: 2px solid var(--grey-border-color);
    margin-top: 45px;
    padding-top: 20px;
  }

  .resetInput {
    right: 5px;
  }
}
