/* Flight Details Popup Overlay & Panel */
.flight-details-overlay[hidden] {
  display: none !important;
}

.flight-details-overlay {
  position: relative;
  inset: auto;
  z-index: auto;
  background: transparent;
  display: block;
  padding: 0;
  margin: 0 0 18px;
  width: 100%;
  font-family: Roboto, Arial, sans-serif;
}

.flight-details-panel {
  position: relative;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 65px 24px 24px;
  border-radius: 0;
  box-shadow: 0 4px 22px rgba(0,0,0,.16);
  background: #fff;
  color: #666;
}

.flight-details-close {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #ed4057;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: 0;
  line-height: 1;
  padding: 0;
}

/* 2-Column Grid: Left Itinerary (38%), Right Fare Conditions (62%) */
.flight-details-grid {
  display: grid !important;
  grid-template-columns: 38% 62% !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.flight-details-grid h2 {
  background: var(--blue-malay-900, #00247d);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0 16px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Left Column: Itinerary */
.flight-details-itinerary {
  border-right: 1px solid #ddd;
}

.flight-details-legs {
  padding: 24px 20px;
}

.flight-details-duration {
  margin-bottom: 18px;
  color: #333;
  font-size: 15px;
}

.flight-details-duration strong {
  color: #ff4943;
  margin-left: 12px;
}

.flight-details-route {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  gap: 12px;
  align-items: center;
}

.flight-details-route h3 {
  color: #3055b4;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  white-space: nowrap;
}

.flight-details-route b {
  color: #3055b4;
  font-size: 15px;
  display: block;
}

.flight-details-route p {
  margin: 4px 0;
  font-size: 13.5px;
  color: #64748b;
}

.flight-details-plane {
  color: #00247d;
  font-size: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.flight-details-aircraft {
  margin: 18px 0;
  color: #444;
  font-size: 14.5px;
}

.flight-details-aircraft span {
  color: #777;
  margin-left: 14px;
}

.flight-details-airline-logo {
  width: 44px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 12px;
}

.flight-details-connection {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 22px 0;
  color: #888;
  font-size: 14px;
}

.flight-details-connection:after {
  content: '';
  height: 1px;
  background: #ddd;
  flex: 1;
}

.flight-details-connection strong {
  color: #444;
  white-space: nowrap;
}

/* Right Column: Fare Conditions */
.flight-details-conditions {
  min-width: 0;
  width: 100%;
}

.flight-details-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.flight-details-conditions table {
  width: 100% !important;
  min-width: 820px !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  font-family: var(--regular-14px-font-family, "Roboto", -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 13.5px !important;
  background: #ffffff !important;
  margin: 0 !important;
  border: 0 !important;
}

.flight-details-conditions thead th {
  background: var(--blue-malay-900, #00247d) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
  letter-spacing: 0.2px !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

.flight-details-conditions thead th * {
  color: #ffffff !important;
}

.flight-details-conditions thead th:first-child,
.flight-details-conditions thead th.th-condition {
  width: 20% !important;
  min-width: 145px !important;
  text-align: left !important;
  padding: 12px 16px !important;
  white-space: nowrap !important;
}

.flight-details-conditions thead th:not(:first-child),
.flight-details-conditions thead th.th-fare {
  width: 16% !important;
  min-width: 135px !important;
  text-align: center !important;
  padding: 10px 8px !important;
  white-space: normal !important;
}

.flight-details-conditions tbody tr {
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.flight-details-conditions tbody th,
.flight-details-conditions tbody th.td-condition {
  text-align: left !important;
  padding: 13px 16px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
}

.flight-details-conditions tbody td,
.flight-details-conditions tbody td.td-fare {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 12px 10px !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  min-width: 135px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
}

.flight-details-conditions tbody tr:hover td {
  background: #f1f5f9 !important;
}
.flight-details-conditions tbody tr:hover th {
  background: #f1f5f9 !important;
}

.flight-details-note {
  display: inline-block;
  padding: 14px 18px;
  background: #e6f6ff;
  border: 1px solid #8cd6ff;
  border-radius: 4px;
  margin: 28px 0 0;
  font-size: 15px;
}

.flight-details-open {
  overflow: hidden !important;
}

@media(max-width: 1050px) {
  .flight-details-grid {
    grid-template-columns: 1fr !important;
  }
  .flight-details-itinerary {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }
  .flight-details-route {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }
}

@media(max-width: 800px) {
  .flight-details-panel {
    padding: 36px 10px 16px 10px;
  }
  .flight-details-grid h2 {
    font-size: 15px;
    height: 42px;
  }
  .flight-details-legs {
    padding: 14px 12px;
  }
  .flight-details-route {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: flex-start;
  }
  .flight-details-route h3 {
    font-size: 16px;
    margin: 0 0 2px;
  }
  .flight-details-route b {
    font-size: 13px;
    margin: 0 0 2px;
  }
  .flight-details-route p {
    font-size: 11.5px;
    margin: 1px 0;
  }
  .flight-details-plane {
    width: 26px;
    height: 26px;
    font-size: 16px;
    margin-top: 2px;
  }
  .flight-details-destination,
  .flight-details-route > div:last-of-type {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .flight-details-destination h3,
  .flight-details-destination b,
  .flight-details-destination p,
  .flight-details-route > div:last-of-type h3,
  .flight-details-route > div:last-of-type b,
  .flight-details-route > div:last-of-type p {
    text-align: right;
  }
}

#ResultShow{width:1141px;margin:32px auto 0}#ResultShow:empty{margin-top:0}.selected-flight-card{background:white;border:1px solid #dbe3f4;border-radius:8px;margin-bottom:20px;overflow:hidden;box-shadow:0 3px 12px rgba(27,55,112,.06)}.selected-flight-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:#eef3ff;border-bottom:1px solid #dbe3f4}.selected-flight-heading h2{font-size:22px;color:#2649aa;font-weight:500;margin:0}.selected-flight-check{color:#249867;margin-right:10px}.selected-flight-change{padding:9px 15px;border:1px solid #2649aa!important;border-radius:4px;color:#2649aa!important;background:#fff!important;cursor:pointer;font-size:15px}.selected-flight-body{display:grid;grid-template-columns:180px 1fr 120px 1fr 150px;gap:20px;align-items:center;padding:24px}.selected-flight-carrier{display:flex;flex-direction:column;gap:10px;color:#666;font-size:14px}.selected-flight-carrier img{width:80px;height:40px;object-fit:contain}.selected-flight-airport{display:flex;flex-direction:column;gap:6px}.selected-flight-airport strong{font-size:24px;color:#2649aa}.selected-flight-airport span{font-size:17px;color:#2649aa}.selected-flight-airport small{color:#888;font-size:14px}.selected-flight-duration{display:flex;flex-direction:column;gap:8px;text-align:center;color:#888;font-size:14px}.selected-flight-arrow{font-size:25px;color:#2649aa;border-bottom:1px dashed #ccd5e6}.selected-flight-fare{display:flex;flex-direction:column;gap:8px;text-align:right;font-size:14px;color:#888}.selected-flight-fare strong{color:#2649aa;font-size:20px}.selected-flight-fare button{color:#2649aa;background:none;cursor:pointer;font-size:14px;text-decoration:underline}.selected-flight-card .flight-details-overlay{margin-bottom:0}.selected-flight-card .flight-details-panel{box-shadow:none;border-top:1px solid #ddd}
/* Selected itinerary follows the Myanmar reference card. */
.selected-flight-card{border:0;border-radius:10px;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.selected-flight-heading{background:#fff;padding:16px 18px;border-bottom:1px solid #ddd}
.selected-flight-heading h2{color:#000;font-size:18px;font-weight:500;display:flex;align-items:center;gap:14px}
.selected-flight-check{display:inline-flex;align-items:center;justify-content:center;background:#27ae60;border-radius:50%;width:25px;height:25px;color:white;font-size:20px;margin:0}
.selected-flight-change{border:0!important;padding:0;color:#3488ff!important;font-size:18px}
.selected-flight-body{grid-template-columns:19% 19% 21% 23% 18%;gap:0;padding:20px 18px;align-items:center}
.selected-flight-airport{gap:4px}.selected-flight-airport strong{font-size:21px;font-weight:500}.selected-flight-airport span{font-size:14px;color:#1648c1}
.selected-flight-duration{gap:5px;color:#000;align-self:start}
.selected-flight-arrow{display:flex;align-items:center;gap:15px;border:0;font-size:30px;line-height:30px}.selected-flight-arrow:before,.selected-flight-arrow:after{content:'';height:1px;border-top:1px dashed #ddd;flex:1}
.selected-flight-stops{color:#ed4943}.selected-flight-stops.is-direct{color:#70bf22}
.selected-flight-carrier{align-self:start;gap:4px;color:#000;font-size:13px}
.selected-flight-carrier-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.selected-flight-carrier img{width:23px;height:25px;object-fit:contain}.selected-flight-carrier-line i{width:8px;height:8px;background:#ddd;border-radius:50%}
.selected-flight-carrier button{color:#3488ff;font-size:14px;text-align:left;cursor:pointer;padding:0;background:none}
.selected-flight-fare{padding-top:18px}.selected-flight-fare strong{font-size:16px;color:#000;font-weight:500}