/******************************************************************** Date picker ************************************************/
@media only screen and (min-width: 10px) {
  #ui-datepicker-div {
    width: 342px;
    border-color: var(--tally_express_color_theme);
    padding: 0;
    background-color: #FFF;
  }

  #ui-datepicker-div .ui-datepicker-header {
    background-color: var(--tally_express_color_theme);
    background-image: none;
    border-color: var(--tally_express_color_theme);
    padding: var(--tally_express_dmp_xs);
    color: var(--tally_express_color_theme_alter);
    border-radius: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: var(--tally_express_fs_h6);
  }

  #ui-datepicker-div .ui-datepicker-header .ui-icon {
    display: none;
  }

  #ui-datepicker-div .ui-datepicker-prev {
    top: var(--tally_express_dmp_xs);
    left: 5px;
    height: 30px;
    width: 30px;
  }

  #ui-datepicker-div .ui-datepicker-next {
    top: var(--tally_express_dmp_xs);
    right: 5px;
    height: 30px;
    width: 30px;
  }

  #ui-datepicker-div .ui-datepicker-prev:hover,
  #ui-datepicker-div .ui-datepicker-prev:focus,
  #ui-datepicker-div .ui-datepicker-next:focus,
  #ui-datepicker-div .ui-datepicker-next:hover {
    box-shadow: 0 0 0 2px #FFF, 0 0 2px 1px #FFF;
    outline: 1px solid transparent;
  }

  #ui-datepicker-div .ui-datepicker-header a.ui-datepicker-prev::before,
  #ui-datepicker-div .ui-datepicker-header a.ui-datepicker-next::before {
    position: absolute;
    content: ">";
    color: #FFF;
    left: 10px;
    font-size: var(--tally_express_fs_h3);
    top: 5px;
    font-weight: bold;
    line-height: 1;
  }

  #ui-datepicker-div .ui-datepicker-header a.ui-datepicker-prev::before {
    content: "<";
  }

  #ui-datepicker-div .ui-datepicker-header .ui-state-hover {
    background-color: var(--tally_express_color_theme);
    background-image: none;
    border-color: var(--tally_express_color_theme);
  }

  #ui-datepicker-div .ui-state-default {
    background-color: transparent;
    background-image: none;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: var(--tally_express_color_theme);
    font-weight: bold;
    padding: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  #ui-datepicker-div a.ui-state-default:hover {
    background-color: var(--tally_express_color_theme);
    color: var(--tally_express_color_theme_alter);
  }

  #ui-datepicker-div .ui-state-active {
    background-color: var(--tally_express_color_theme);
    color: var(--tally_express_color_theme_alter);
    background-image: none;
  }

  #ui-datepicker-div .ui-datepicker-title {
    background-color: var(--tally_express_color_theme);
    color: var(--tally_express_color_theme_alter);
    background-image: none;
    font-size: var(--tally_express_fs_h5);
    display: -webkit-flex;
    display: flex;
    margin: 0;
  }

  #ui-datepicker-div .ui-datepicker-title select {
    min-width: 100px;
    height: 30px;
    font-size: var(--tally_express_fs);
    padding: 0 var(--tally_express_dmp_xs);
    text-align: left;
  }

  #ui-datepicker-div.ui-datepicker td {
    background-color: floralwhite;
    border: 1px dotted #000;
    padding: 4px 6px;
  }
}

/* Responsive adjustments for rotated seats */
@media only screen and (max-width: 768px) {

  .tally_express_seat_rotated_90 .mp_seat .seat_number,
  .tally_express_seat_rotated_270 .mp_seat .seat_number {
    font-size: 0.9em;
  }

  .tally_express_seat_rotated_180 .mp_seat .seat_number {
    font-size: 0.95em;
  }
}


/* Responsive adjustments for cabin layouts */
@media only screen and (max-width: 960px) {
  .tally_express_style {
    padding: 10px;
    border-radius: 15px;
  }

  .tally_express_input_fields_holder {
    gap: 15px;
    width: 100% !important;
  }

  .tally_express_input_fields_holder,
  .tally_express_search_input_fields_holder {
    flex-direction: column !important;
  }

  .tally_express_input_fields_holder,
  .tally_express_input_start_end_location,
  .tally_express_input_start_end_date,
  .tally_express_bus_search_button_holder {
    width: 100% !important;
  }

  .search_button_holder {
    width: 100%;
  }

  .search_button_holder span {
    display: none !important;
  }

  .tally_express_bus_submit,
  .get_tally_express_bus_list {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
  }
}

@media only screen and (max-width: 600px) {

  .tally_express_input_start_end_location,
  .tally_express_input_start_end_date {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .tally_express_inputList {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
  }

  /* Legacy absolute-position swap toggle override removed — new flex layout
     in tally_express_search.css handles the swap button responsively. */

  .tally_express_dropping_point {
    margin-top: 5px !important;
  }
}

@media only screen and (max-width: 768px) {
  .tally_express_selected_seat_details table tr th {
    font-size: 14px;
  }

  table.tally_express_totals tbody tr h5 {
    font-size: 14px;
  }

  .tally_express_cabin_toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tally_express_cabin_title_container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tally_express_cabin_title_container .tally_express_cabin_title {
    font-size: 16px;
  }

  .tally_express_cabin_toggle_icon {
    align-self: flex-end;
  }

  .tally_express_cabin_seat_plan {
    padding: 15px;
  }
  }

@media (min-width: 0px) {

  /* Frontend Seat Rotation Styles */
  .tally_express_seat_rotated_90 .mp_seat .seat_visual {
    transform: rotate(90deg);
    transform-origin: center;
  }

  .tally_express_seat_rotated_180 .mp_seat .seat_visual {
    transform: rotate(180deg);
    transform-origin: center;
  }

  .tally_express_seat_rotated_270 .mp_seat .seat_visual {
    transform: rotate(270deg);
    transform-origin: center;
  }

  /* Ensure seat number text never rotates */
  .tally_express_seat_rotated_90 .mp_seat .seat_number,
  .tally_express_seat_rotated_180 .mp_seat .seat_number,
  .tally_express_seat_rotated_270 .mp_seat .seat_number {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    rotate: none !important;
    transform-origin: initial !important;
  }

  /* Additional protection for seat numbers */
  .mp_seat_item .seat_number {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    rotate: none !important;
    transform-origin: initial !important;
    position: relative !important;
    z-index: 999 !important;
  }

  /* Ensure rotated seats maintain proper spacing and alignment */
  .tally_express_seat_plan_area .mp_seat_item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
  }

  /* Seat structure styles */
  .seat_visual {
    width: 100%;
    height: 100%;
    background-color: inherit;
    border: inherit;
    border-radius: inherit;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.3s ease;
  }

  /* Ensure seat_visual inherits all visual styling from parent seat */
  .mp_seat .seat_visual {
    background-color: inherit;
    border: inherit;
    border-radius: inherit;
    cursor: inherit;
  }

  /* Specific seat state styling for seat_visual */
  .seat_available .seat_visual {
    background-color: var(--tally_express_color_theme_alter);
    cursor: pointer;
  }

  .seat_selected.seat_available .seat_visual {
    background-color: var(--tally_express_color_theme);
    color: #ffffff;
  }

  .seat_booked .seat_visual {
    cursor: not-allowed;
    background-color: var(--tally_express_color_warning);
  }

  .seat_in_cart .seat_visual {
    cursor: not-allowed;
    background-color: var(--tally_express_color_light_3);
  }

  /* Override existing seat styling to move visual properties to seat_visual */
  .mp_seat.seat_available {
    background-color: transparent !important;
    border: none !important;
  }

  .mp_seat.seat_booked {
    background-color: transparent !important;
    border: none !important;
  }

  .mp_seat.seat_in_cart {
    background-color: transparent !important;
    border: none !important;
  }

  /* Ensure seat_visual gets the border styling */
  .seat_visual {
    border: 1px solid var(--tally_express_color_border) !important;
  }

  /* Ensure consistent seat styling for both lower and upper deck */
  .tally_express_seat_plan_area table th,
  .tally_express_seat_plan_area table td {
    min-height: 60px !important;
    text-align: center !important;
    height: 60px !important;
    width: 60px !important;
    background-color: var(--tally_express_color_theme_alter) !important;
    padding: 5px !important;
    min-width: 60px !important;
  }

  .tally_express_seat_plan_upper table {
    margin: 0 auto !important;
    border-collapse: separate !important;
    border-spacing: 8px !important;
  }

  .tally_express_seat_plan_upper table th,
  .tally_express_seat_plan_upper table td {
    min-height: 60px !important;
    text-align: center !important;
    height: 60px !important;
    width: 60px !important;
    background-color: var(--tally_express_color_theme_alter) !important;
    padding: 5px !important;
    min-width: 60px !important;
  }

  /* Frontend Seat Rotation Styles */
  .tally_express_seat_rotated_90 .mp_seat .seat_visual {
    transform: rotate(90deg);
    transform-origin: center;
  }

  .tally_express_seat_rotated_180 .mp_seat .seat_visual {
    transform: rotate(180deg);
    transform-origin: center;
  }

  .tally_express_seat_rotated_270 .mp_seat .seat_visual {
    transform: rotate(270deg);
    transform-origin: center;
  }

  /* Ensure seat number text never rotates */
  .tally_express_seat_rotated_90 .mp_seat .seat_number,
  .tally_express_seat_rotated_180 .mp_seat .seat_number,
  .tally_express_seat_rotated_270 .mp_seat .seat_number {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    rotate: none !important;
    transform-origin: initial !important;
  }
.tally_express_cabin_seat_plan .mp_seat_item .tally_express_seat_item_list li:last-child {
  border-bottom: none !important;
}

.tally_express_seat_plan_area .mp_seat_item .tally_express_seat_item_list li:hover,
.tally_express_seat_plan_upper .mp_seat_item .tally_express_seat_item_list li:hover,
.tally_express_cabin_seat_plan .mp_seat_item .tally_express_seat_item_list li:hover {
  background-color: var(--tally_express_color_theme) !important;
  color: var(--tally_express_color_theme_alter) !important;
}

/* Fix positioning for seats on the right side */
.tally_express_seat_plan_area table tr th:nth-last-child(2) .tally_express_seat_item_list,
.tally_express_seat_plan_area table tr th:last-child .tally_express_seat_item_list,
.tally_express_seat_plan_upper table tr th:nth-last-child(2) .tally_express_seat_item_list,
.tally_express_seat_plan_upper table tr th:last-child .tally_express_seat_item_list,
.tally_express_cabin_seat_plan table tr th:nth-last-child(2) .tally_express_seat_item_list,
.tally_express_cabin_seat_plan table tr th:last-child .tally_express_seat_item_list {
  right: 0 !important;
  left: inherit !important;
}

.tally_express_seat_plan_area table tr th:nth-last-child(2) .tally_express_seat_item_list::before,
.tally_express_seat_plan_area table tr th:last-child .tally_express_seat_item_list::before,
.tally_express_seat_plan_upper table tr th:nth-last-child(2) .tally_express_seat_item_list::before,
.tally_express_seat_plan_upper table tr th:last-child .tally_express_seat_item_list::before,
.tally_express_cabin_seat_plan table tr th:nth-last-child(2) .tally_express_seat_item_list::before,
.tally_express_cabin_seat_plan table tr th:last-child .tally_express_seat_item_list::before {
  left: inherit !important;
  right: 15px !important;
}

/* Fix positioning for seats on the bottom rows */
.tally_express_seat_plan_area table tr:nth-last-child(2) th .tally_express_seat_item_list,
.tally_express_seat_plan_area table tr:last-child th .tally_express_seat_item_list,
.tally_express_seat_plan_upper table tr:nth-last-child(2) th .tally_express_seat_item_list,
.tally_express_seat_plan_upper table tr:last-child th .tally_express_seat_item_list,
.tally_express_cabin_seat_plan table tr:nth-last-child(2) th .tally_express_seat_item_list,
.tally_express_cabin_seat_plan table tr:last-child th .tally_express_seat_item_list {
  top: calc(-100% - 23px) !important;
}

.tally_express_seat_plan_area table tr:nth-last-child(2) th .tally_express_seat_item_list::before,
.tally_express_seat_plan_area table tr:last-child th .tally_express_seat_item_list::before,
.tally_express_seat_plan_upper table tr:nth-last-child(2) th .tally_express_seat_item_list::before,
.tally_express_seat_plan_upper table tr:last-child th .tally_express_seat_item_list::before,
.tally_express_cabin_seat_plan table tr:nth-last-child(2) th .tally_express_seat_item_list::before,
.tally_express_cabin_seat_plan table tr:last-child th .tally_express_seat_item_list::before {
  top: 100% !important;
  border-top-color: var(--tally_express_color_theme) !important;
  border-bottom-color: transparent !important;
}

/* Ensure containers don't clip the dropdown */
.tally_express_seat_plan_area,
.tally_express_seat_plan_upper,
.tally_express_cabin_seat_plan {
  overflow: visible !important;
  position: relative !important;
}

.tally_express_seat_plan_area .ovAuto,
.tally_express_seat_plan_upper .ovAuto,
.tally_express_cabin_seat_plan .ovAuto {
  overflow: visible !important;
}

/* Cabin-specific styles for train/bus multi-cabin support */
.tally_express_cabin_section {
  margin-bottom: 15px;
  border: 2px solid var(--tally_express_color_border);
  border-radius: 8px;
  background-color: var(--tally_express_color_light);
  overflow: hidden;
}

.tally_express_cabin_section:last-child {
  margin-bottom: 0;
}

/* Ensure collapsed cabins don't take extra space */
.tally_express_cabin_section.collapsed {
  margin-bottom: 10px;
}

.tally_express_cabin_header {
  background-color: var(--tally_express_color_theme);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.tally_express_cabin_toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tally_express_cabin_title_container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tally_express_cabin_toggle_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.tally_express_toggle_arrow {
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s ease;
  display: inline-block;
}

.tally_express_cabin_title_container .tally_express_cabin_title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.tally_express_cabin_price_info {
  display: flex;
  align-items: center;
}

.tally_express_price_multiplier {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tally_express_price_discount {
  background-color: rgba(76, 175, 80, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tally_express_cabin_seat_plan {
  padding: 20px;
  background-color: white;
}

.tally_express_cabin_seat_plan table {
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 8px;
}

.tally_express_cabin_seat_plan .mp_seat_item {
  position: relative;
}

.tally_express_cabin_direction {
  text-align: center;
  color: var(--tally_express_color_theme);
  font-weight: 500;
  margin-bottom: 10px;
}

.tally_express_cabin_separator {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--tally_express_color_border) 50%, transparent 100%);
  margin: 20px 0;
}

.tally_express_cabin_seat_plan .seat_available {
  cursor: pointer;
  transition: all 0.3s ease;
}

.tally_express_cabin_seat_plan .seat_available:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tally_express_cabin_seat_plan .seat_booked,
.tally_express_cabin_seat_plan .seat_in_cart {
  opacity: 0.7;
}


.tally_express_search_input_fields_holder{
  display: flex;
  width: 100%;
  gap: 5px;
}

.tally_express_input_start_end_location{
  position: relative;
  display: flex;
  align-items: center;
}
.tally_express_start_point,
.tally_express_dropping_point{
  width: 50%;
}
/* Legacy absolute-positioned swap toggle removed.
   The flex-based layout in tally_express_search.css is the single source
   of truth for .tally_express_search_location_toggle styling. */

.tally_express_search_location_toggle.rotate i{
  transform: rotate(180deg);
}
.swap-animation{
  transition: all .3s ease-in-out;
  transform: translateY(6px);
  opacity: 0.6;
}

.tally_express_input_fields_holder{
  display: flex;
  width: calc( 100% - 140px );
}

.tally_express_bus_search_button_holder{
  display: flex;
  justify-content: center;
}
.tally_express_input_start_end_location,
.tally_express_input_start_end_date{
  display: flex;
  width: 50%;
  position: relative;
}
  div[class*=tally_express_loader] {
    background: rgba(0, 0, 0, 0.2);
    color: var(--tally_express_color_theme);
  }

  div[class*=tally_express_loader] span {
    width: initial !important;
    margin: 0 !important;
  }

  div[class*=tally_express_loader].border_spin_loader span {
    border-top: 5px solid var(--tally_express_color_theme_alter);
    border-right: 5px solid var(--tally_express_color_theme);
    border-bottom: 5px solid var(--tally_express_color_theme_alter);
    border-left: 5px solid var(--tally_express_color_theme);
    width: 60px;
    height: 60px;
    -webkit-animation: spin 1000ms linear infinite;
    animation: spin 1000ms linear infinite;
  }

  div[class*=simpleSpinner] {
    padding: var(--tally_express_dmp);
    color: var(--tally_express_color_theme);
  }

  .tally_express_ex_service_area h3 {
    font-size: 14px;
    font-weight: normal;
  }

  /*****Text Theme*********/
  div.tally_express_style .textTheme,
  div.tally_express_style [class*=_textTheme] {
    color: var(--tally_express_color_theme);
  }

  div.tally_express_style .bgTheme,
  div.tally_express_style [class*=_bgTheme] {
    background-color: var(--tally_express_color_theme);
    color: var(--tally_express_color_theme_alter);
  }

  div.tally_express_style [class*=_bTheme],
  .bTheme {
    border: 1px solid var(--tally_express_color_theme);
  }

  .pickup-point,
  .drop-off-point {
    margin-left: 8px;
    border-left: 1px solid;
    flex-direction: column;
  }

  .pickup-point .point,
  .drop-off-point .point {
    margin-left: -0.57em;
    padding: 15px 0;
  }

  .pickup-point .point:first-child,
  .drop-off-point .point:first-child {
    padding-top: 21px;
  }

  .pickup-point .point:last-child,
  .drop-off-point .point:last-child {
    padding-bottom: 0;
    line-height: 0;
    margin-bottom: 24px;
  }

  .tally_express_selected_seat_details table thead th {
    font-size: 16px;
    color: #666;
    font-weight: normal;
  }

  .tally_express_selected_seat_details table tbody tr {
    border-bottom: 1px solid #d8d8d8;
  }

  table.tally_express_totals tbody tr h5 {
    font-size: 16px;
    color: #333;
  }

  div.tally_express_selected_seat_details table tbody tr td {
    border-bottom: 1px solid #d8d8d8;
  }

  .tally_express_ex_service_area table thead th {
    font-size: 16px;
    color: #666;
  }

  .tally_express_ex_service_area table tbody tr:nth-child(2n+1) {
    background: none;
  }

  .tally_express_ex_service_area table tr:nth-child(2n) {
    background: none;
  }

  .tally-express-seat-book.hide {
    display: none;
  }

  /* Frontend Seat Rotation Styles */
  .tally_express_seat_rotated_90 .mp_seat .seat_visual {
    transform: rotate(90deg);
    transform-origin: center;
  }

  .tally_express_seat_rotated_180 .mp_seat .seat_visual {
    transform: rotate(180deg);
    transform-origin: center;
  }

  .tally_express_seat_rotated_270 .mp_seat .seat_visual {
    transform: rotate(270deg);
    transform-origin: center;
  }

  /* Ensure seat number text never rotates */
  .tally_express_seat_rotated_90 .mp_seat .seat_number,
  .tally_express_seat_rotated_180 .mp_seat .seat_number,
  .tally_express_seat_rotated_270 .mp_seat .seat_number {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    rotate: none !important;
    transform-origin: initial !important;
  }

  /* Additional protection for seat numbers */
  .mp_seat_item .seat_number {
    transform: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    rotate: none !important;
    transform-origin: initial !important;
    position: relative !important;
    z-index: 999 !important;
  }

  /* Ensure rotated seats maintain proper spacing and alignment */
  .tally_express_seat_plan_area .mp_seat_item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
  }

  .tally_express_seat_plan_area .mp_seat_item .mp_seat {
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    flex-direction: column;
    background-color: transparent;
    border: none;
  }

  /* Seat structure styles */
  .seat_visual {
    width: 100%;
    height: 100%;
    background-color: inherit;
    border: inherit;
    border-radius: inherit;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.3s ease;
  }

  /* Ensure seat_visual inherits all visual styling from parent seat */
  .mp_seat .seat_visual {
    background-color: inherit;
    border: inherit;
    border-radius: inherit;
    cursor: inherit;
  }

  /* Specific seat state styling for seat_visual */
  .seat_available .seat_visual {
    background-color: var(--tally_express_color_theme_alter);
    cursor: pointer;
  }

  .seat_selected.seat_available .seat_visual {
    background-color: var(--tally_express_color_theme);
  }

  .seat_booked .seat_visual {
    cursor: not-allowed;
    background-color: var(--tally_express_color_warning);
  }

  .seat_in_cart .seat_visual {
    cursor: not-allowed;
    background-color: var(--tally_express_color_light_3);
  }

  /* Override existing seat styling to move visual properties to seat_visual */
  .mp_seat.seat_available {
    background-color: transparent !important;
    border: none !important;
  }

  .mp_seat.seat_booked {
    background-color: transparent !important;
    border: none !important;
  }

  .mp_seat.seat_in_cart {
    background-color: transparent !important;
    border: none !important;
  }

  /* Ensure seat_visual gets the border styling */
  .seat_visual {
    border: 1px solid var(--tally_express_color_border) !important;
  }

  .seat_number {
    position: relative;
    z-index: 2;
    font-weight: bold;
    color: inherit;
    text-align: center;
    line-height: 1;
    pointer-events: none;
    transform: none !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  /* Ensure consistent seat styling for both lower and upper deck */
  .tally_express_seat_plan_area table th,
  .tally_express_seat_plan_area table td {
    min-height: 60px !important;
    text-align: center !important;
    height: 60px !important;
    width: 60px !important;
    background-color: var(--tally_express_color_theme_alter) !important;
    padding: 5px !important;
    min-width: 60px !important;
  }

  /* Make upper deck exactly the same as lower deck */
  .tally_express_seat_plan_upper {
    /* Inherit all lower deck styles */
  }

  .tally_express_seat_plan_upper table {
    margin: 0 auto !important;
  }

  .tally_express_seat_plan_upper table tr {
    background-color: var(--tally_express_color_theme_alter) !important;
  }

  .tally_express_seat_plan_upper table th,
  .tally_express_seat_plan_upper table td {
    min-height: 60px !important;
    text-align: center !important;
    height: 60px !important;
    width: 60px !important;
    background-color: var(--tally_express_color_theme_alter) !important;
    padding: 5px !important;
    min-width: 60px !important;
  }

  .tally_express_seat_plan_upper table thead th {
    height: auto !important;
  }

  /* More specific selectors to override global CSS */
  div.tally_express_bus_list_area div.tally_express_seat_plan_area table th,
  div.tally_express_bus_list_area div.tally_express_seat_plan_area table td,
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper table th,
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper table td {
    min-height: 60px !important;
    text-align: center !important;
    height: 60px !important;
    width: 60px !important;
    background-color: var(--tally_express_color_theme_alter) !important;
    padding: 5px !important;
    min-width: 60px !important;
  }

  /* Ensure seat items have consistent styling */
  .tally_express_seat_plan_area .mp_seat_item,
  .tally_express_seat_plan_upper .mp_seat_item {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Ensure seats have consistent styling */
  .tally_express_seat_plan_area .mp_seat,
  .tally_express_seat_plan_upper .mp_seat {
    border: 1px solid var(--tally_express_color_border);
    width: 100%;
    height: 100%;
    border-radius: 15px 15px 0 0;
    border-bottom: 5px solid var(--tally_express_color_light);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* More specific selectors for seat styling - moved visual properties to seat_visual */
  div.tally_express_bus_list_area div.tally_express_seat_plan_area div.mp_seat,
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.mp_seat {
    border: none !important;
    background-color: transparent !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Apply visual styling to seat_visual instead */
  div.tally_express_bus_list_area div.tally_express_seat_plan_area div.mp_seat .seat_visual,
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.mp_seat .seat_visual {
    border: 1px solid var(--tally_express_color_border) !important;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 5px solid var(--tally_express_color_light) !important;
  }

  /* Force upper deck to use exact same styling as lower deck */
  .tally_express_seat_plan_upper div.mp_seat_item {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }

  .tally_express_seat_plan_upper div.mp_seat {
    border: 1px solid var(--tally_express_color_border) !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 5px solid var(--tally_express_color_light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Most aggressive approach - copy exact lower deck styles to upper deck */
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper table {
    margin: 0 auto !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper table tr {
    background-color: var(--tally_express_color_theme_alter) !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper table th,
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper table td {
    min-height: 60px !important;
    text-align: center !important;
    height: 60px !important;
    width: 60px !important;
    background-color: var(--tally_express_color_theme_alter) !important;
    padding: 5px !important;
    min-width: 60px !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper table thead th {
    height: auto !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.mp_seat_item {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.mp_seat {
    border: none !important;
    background-color: transparent !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Ensure seat states are consistent - moved to seat_visual */
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.seat_available {
    background-color: transparent !important;
    cursor: pointer !important;
    color: var(--tally_express_d_color) !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.seat_booked {
    cursor: not-allowed !important;
    background-color: transparent !important;
    color: var(--tally_express_color_theme_alter) !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.seat_in_cart {
    cursor: not-allowed !important;
    background-color: transparent !important;
    color: var(--tally_express_color_theme_alter) !important;
  }

  /* Apply seat state styling to seat_visual */
  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.seat_available .seat_visual {
    background-color: var(--tally_express_color_theme_alter) !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.seat_booked .seat_visual {
    background-color: var(--tally_express_color_warning) !important;
  }

  div.tally_express_bus_list_area div.tally_express_seat_plan_upper div.seat_in_cart .seat_visual {
    background-color: var(--tally_express_color_light_3) !important;
  }

  /* ULTIMATE FIX - Force upper deck to be exactly like lower deck */
  .tally_express_seat_plan_upper * {
    box-sizing: border-box !important;
  }

  .tally_express_seat_plan_upper table {
    table-layout: fixed !important;
    margin: 0 auto !important;
  }

  .tally_express_seat_plan_upper table th,
  .tally_express_seat_plan_upper table td {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    padding: 0 35px !important;
    margin: 0 !important;
    border: none !important;
    background-color: var(--tally_express_color_theme_alter) !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    font-size: 17px !important;
  }

  .tally_express_seat_plan_upper .mp_seat_item {
    width: 60px !important;
    height: 50px !important;
    min-width: 60px !important;
    min-height: 50px !important;
    max-width: 60px !important;
    max-height: 50px !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .tally_express_seat_plan_upper .mp_seat {
    width: 60px !important;
    height: 50px !important;
    min-width: 60px !important;
    min-height: 50px !important;
    max-width: 60px !important;
    max-height: 50px !important;
    border: 1px solid var(--tally_express_color_border) !important;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 5px solid var(--tally_express_color_light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  /* Override any other styles that might be affecting upper deck */
  .tally_express_seat_plan_upper {
    font-size: inherit !important;
  }

  .tally_express_seat_plan_upper * {
    font-size: inherit !important;
  }

  /* Force the same dimensions as lower deck */
  .tally_express_seat_plan_upper table th,
  .tally_express_seat_plan_upper table td {
    font-size: 12px !important;
    line-height: 1 !important;
  }

  /* Fix seat price dropdown positioning for ALL seat plans */
  .tally_express_seat_plan_area .mp_seat_item,
  .tally_express_seat_plan_upper .mp_seat_item,
  .tally_express_cabin_seat_plan .mp_seat_item {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
  }

  /* Increase z-index when hovering to bring tooltip above other seats */
  .tally_express_seat_plan_area .mp_seat_item:hover,
  .tally_express_seat_plan_upper .mp_seat_item:hover,
  .tally_express_cabin_seat_plan .mp_seat_item:hover {
    z-index: 9999 !important;
  }

  .tally_express_seat_plan_area .mp_seat_item .tally_express_seat_item_list,
  .tally_express_seat_plan_upper .mp_seat_item .tally_express_seat_item_list,
  .tally_express_cabin_seat_plan .mp_seat_item .tally_express_seat_item_list {
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    min-width: 150px !important;
    width: 100% !important;
    display: none !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
    background-color: var(--tally_express_color_light) !important;
    border: 1px solid var(--tally_express_color_theme) !important;
    border-radius: var(--tally_express_dbr) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .tally_express_seat_plan_area .mp_seat_item:hover .tally_express_seat_item_list,
  .tally_express_seat_plan_upper .mp_seat_item:hover .tally_express_seat_item_list,
  .tally_express_cabin_seat_plan .mp_seat_item:hover .tally_express_seat_item_list {
    display: block !important;
  }

  .tally_express_seat_plan_area .mp_seat_item .tally_express_seat_item_list::before,
  .tally_express_seat_plan_upper .mp_seat_item .tally_express_seat_item_list::before,
  .tally_express_cabin_seat_plan .mp_seat_item .tally_express_seat_item_list::before {
    position: absolute !important;
    content: "" !important;
    width: 20px !important;
    height: 20px !important;
    left: 15px !important;
    top: -20px !important;
    border: 10px solid transparent !important;
    border-bottom-color: var(--tally_express_color_theme) !important;
    z-index: 99998 !important;
  }

  .tally_express_seat_plan_area .mp_seat_item .tally_express_seat_item_list li,
  .tally_express_seat_plan_upper .mp_seat_item .tally_express_seat_item_list li,
  .tally_express_cabin_seat_plan .mp_seat_item .tally_express_seat_item_list li {
    cursor: pointer !important;
    padding: 5px var(--tally_express_dmp_xs) !important;
    background-color: var(--tally_express_color_light) !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
    z-index: 99999 !important;
  }

  .tally_express_seat_plan_area .mp_seat_item .tally_express_seat_item_list li:last-child,
  .tally_express_seat_plan_upper .mp_seat_item .tally_express_seat_item_list li:last-child,
  .tally_express_cabin_seat_plan .mp_seat_item .tally_express_seat_item_list li:last-child {
    border-bottom: none !important;
  }

  .tally_express_seat_plan_area .mp_seat_item .tally_express_seat_item_list li:hover,
  .tally_express_seat_plan_upper .mp_seat_item .tally_express_seat_item_list li:hover,
  .tally_express_cabin_seat_plan .mp_seat_item .tally_express_seat_item_list li:hover {
    background-color: var(--tally_express_color_theme) !important;
    color: var(--tally_express_color_theme_alter) !important;
  }

  /* Fix positioning for seats on the right side */
  .tally_express_seat_plan_area table tr th:nth-last-child(2) .tally_express_seat_item_list,
  .tally_express_seat_plan_area table tr th:last-child .tally_express_seat_item_list,
  .tally_express_seat_plan_upper table tr th:nth-last-child(2) .tally_express_seat_item_list,
  .tally_express_seat_plan_upper table tr th:last-child .tally_express_seat_item_list,
  .tally_express_cabin_seat_plan table tr th:nth-last-child(2) .tally_express_seat_item_list,
  .tally_express_cabin_seat_plan table tr th:last-child .tally_express_seat_item_list {
    right: 0 !important;
    left: inherit !important;
  }

  .tally_express_seat_plan_area table tr th:nth-last-child(2) .tally_express_seat_item_list::before,
  .tally_express_seat_plan_area table tr th:last-child .tally_express_seat_item_list::before,
  .tally_express_seat_plan_upper table tr th:nth-last-child(2) .tally_express_seat_item_list::before,
  .tally_express_seat_plan_upper table tr th:last-child .tally_express_seat_item_list::before,
  .tally_express_cabin_seat_plan table tr th:nth-last-child(2) .tally_express_seat_item_list::before,
  .tally_express_cabin_seat_plan table tr th:last-child .tally_express_seat_item_list::before {
    left: inherit !important;
    right: 15px !important;
  }

  /* Fix positioning for seats on the bottom rows */
  .tally_express_seat_plan_area table tr:nth-last-child(2) th .tally_express_seat_item_list,
  .tally_express_seat_plan_area table tr:last-child th .tally_express_seat_item_list,
  .tally_express_seat_plan_upper table tr:nth-last-child(2) th .tally_express_seat_item_list,
  .tally_express_seat_plan_upper table tr:last-child th .tally_express_seat_item_list,
  .tally_express_cabin_seat_plan table tr:nth-last-child(2) th .tally_express_seat_item_list,
  .tally_express_cabin_seat_plan table tr:last-child th .tally_express_seat_item_list {
    top: calc(-100% - 23px) !important;
  }

  .tally_express_seat_plan_area table tr:nth-last-child(2) th .tally_express_seat_item_list::before,
  .tally_express_seat_plan_area table tr:last-child th .tally_express_seat_item_list::before,
  .tally_express_seat_plan_upper table tr:nth-last-child(2) th .tally_express_seat_item_list::before,
  .tally_express_seat_plan_upper table tr:last-child th .tally_express_seat_item_list::before,
  .tally_express_cabin_seat_plan table tr:nth-last-child(2) th .tally_express_seat_item_list::before,
  .tally_express_cabin_seat_plan table tr:last-child th .tally_express_seat_item_list::before {
    top: 100% !important;
    border-top-color: var(--tally_express_color_theme) !important;
    border-bottom-color: transparent !important;
  }

  /* Ensure containers don't clip the dropdown */
  .tally_express_seat_plan_area,
  .tally_express_seat_plan_upper,
  .tally_express_cabin_seat_plan {
    overflow: visible !important;
    position: relative !important;
  }

  .tally_express_seat_plan_area .ovAuto,
  .tally_express_seat_plan_upper .ovAuto,
  .tally_express_cabin_seat_plan .ovAuto {
    overflow: visible !important;
  }

  /* Cabin-specific styles for train/bus multi-cabin support */
  .tally_express_cabin_section {
    margin-bottom: 15px;
    border: 2px solid var(--tally_express_color_border);
    border-radius: 8px;
    background-color: var(--tally_express_color_light);
    overflow: hidden;
  }

  .tally_express_cabin_section:last-child {
    margin-bottom: 0;
  }

  /* Ensure collapsed cabins don't take extra space */
  .tally_express_cabin_section.collapsed {
    margin-bottom: 10px;
  }

  .tally_express_cabin_header {
    background-color: var(--tally_express_color_theme);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
  }

  .tally_express_cabin_toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .tally_express_cabin_title_container {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .tally_express_cabin_toggle_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
  }

  .tally_express_toggle_arrow {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
  }

  .tally_express_cabin_title_container .tally_express_cabin_title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .tally_express_cabin_price_info {
    display: flex;
    align-items: center;
  }

  .tally_express_price_multiplier {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
  }

  .tally_express_price_discount {
    background-color: rgba(76, 175, 80, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
  }

  .tally_express_cabin_seat_plan {
    padding: 20px;
    background-color: white;
  }

  .tally_express_cabin_seat_plan table {
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 8px;
  }

  .tally_express_cabin_seat_plan .mp_seat_item {
    position: relative;
  }

  .tally_express_cabin_direction {
    text-align: center;
    color: var(--tally_express_color_theme);
    font-weight: 500;
    margin-bottom: 10px;
  }

  .tally_express_cabin_separator {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--tally_express_color_border) 50%, transparent 100%);
    margin: 20px 0;
  }

  .tally_express_cabin_seat_plan .seat_available {
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .tally_express_cabin_seat_plan .seat_available:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .tally_express_cabin_seat_plan .seat_booked,
  .tally_express_cabin_seat_plan .seat_in_cart {
    opacity: 0.7;
  }


  .tally_express_search_input_fields_holder {
    display: flex;
    width: 100%;
    gap: 5px;
  }

  .tally_express_input_start_end_location {
    position: relative;
    display: flex;
    align-items: center;
  }

  .tally_express_start_point,
  .tally_express_dropping_point {
    width: 50%;
  }

  /* Legacy duplicate of swap-toggle absolute styling removed.
     tally_express_search.css owns the swap toggle layout. */

  .tally_express_search_location_toggle.rotate i {
    transform: rotate(180deg);
  }

  .swap-animation {
    transition: all .3s ease-in-out;
    transform: translateY(6px);
    opacity: 0.6;
  }

  .tally_express_input_fields_holder {
    display: flex;
    width: calc(100% - 140px);
  }

  .tally_express_bus_search_button_holder {
    display: flex;
    justify-content: center;
  }

  .tally_express_input_start_end_location,
  .tally_express_input_start_end_date {
    display: flex;
    width: 50%;
    position: relative;
  }

  .tally-express-bus-flix-style {
    display: flex;
    flex-direction: column;
    background-color: var(--tally_express_color_light);
    border: 1px solid var(--tally_express_color_border);
    margin: 10px auto;
    border-radius: 5px;
    padding: 10px;
    font-family: sans-serif;
  }

  .tally-express-bus-flix-style_bus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-family: sans-serif;
  }

  .tally-express-bus-flix-style .title {
    width: 100%;
  }

  .tally-express-bus-flix-style .title span {
    padding: 0 8px;
    border-radius: 50px;
    color: #fff;
    background-color: var(--tally_express_color_theme_cc);
    font-size: 11px;
    line-height: 2;
  }

  .tally-express-bus-flix-style .route {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
  }

  .tally-express-bus-flix-style .route .route-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: space-between;
    align-items: center;
    margin: 14px 0;
  }

  .tally-express-bus-flix-style .route .route-info .from,
  .tally-express-bus-flix-style .route .route-info .to {
    width: 45%;
  }

  .tally-express-bus-flix-style .route .route-info .to {
    padding-left: 0;
  }

  .tally-express-bus-flix-style .route .route-info .duration {
    border-bottom: 3px solid var(--tally_express_d_color);
    width: 33%;
    position: relative;
  }

  .tally-express-bus-flix-style .route .route-info .duration .time {
    background: var(--tally_express_color_light);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 5px;
  }

  .tally-express-bus-flix-style .feature {
    display: flex;
    justify-content: start;
    align-items: center;
  }

  .tally-express-bus-flix-style .feature .items {
    padding: 2px 8px;
    border-radius: 50px;
  }

  .tally_express_style {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 20px;
    font-weight: normal;
    font-size: 15px;
    color: #333;
  }

  .tally_express_style .tally_express_search_area {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;

  }

  .tally_express_search_area .inputList {
    margin: 0 10px 5px 0;
  }

  .tally_express_inputList label {
    width: 100%;
  }

  .tally_express_search_input_fields_holder .marker,
  .tally_express_search_input_fields_holder .calendar {
    margin-top: 5px;
  }

  .tally_express_inputList {
    flex: 1;
    margin: 0 5px 0 0;
  }

  .tally_express_search_area .tally_express_inputList:last-child,
  .tally_express_search_area .inputList:last-child {
    margin-right: 0;
  }

  .tally_express_search_area .marker,
  .tally_express_search_area .calendar {
    position: relative;
  }

  .tally_express_search_area .marker i,
  .tally_express_search_area .calendar i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    color: #999;
  }

  .tally_express_search_area .marker input,
  .tally_express_search_area .calendar input {
    padding-left: 30px;
    font-size: 16px;

  }

  .tally_express_search_result .tally-express-date-suggetion {
    margin: 10px;
    overflow: auto;
    background-color: #ddd;
    padding: 5px;
    border-radius: 8px;
  }

  .tally_express_search_result .tally-express-date-suggetion .tally_express_next_date {
    margin-right: 5px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--tally_express_d_color);
    font-weight: normal;
    font-size: 14px;
  }

  #ui-datepicker-div {
    position: inherit;
    z-index: 2 !important;
  }

  .tally_express_search_result .tally-express-date-suggetion .tally_express_next_date:last-child {
    margin-right: 0;
  }

  .tally_express_search_result .tally-express-date-suggetion .tally_express_next_date:hover {
    color: var(--tally_express_color_theme);
    border: 1px solid var(--tally_express_color_theme);
  }

  .tally_express_search_result .tally-express-date-suggetion .tally_express_next_date.active {
    background-color: #f0f6ff;
    color: #4285f4;
    border: 1px solid #4285f4;
  }

  .tally_express_search_result .tally-express-date-route {
    background-color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--tally_express_color_theme);
  }

  .tally-express-date-return-route {
    background-color: white;
    padding: 15px;
    border-radius: 5px 5px 5px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    /*border-bottom: 2px solid var(--tally_express_color_theme);*/
  }

  .tally_express_search_result .tally-express-bus-list {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-top: 0;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid #ddd;
  }

  .tally_express_search_result .tally-express-bus-list:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image {
    border-radius: 12px 0 0 12px;
    width: 100%;
    height: 250px;
    padding: 10px;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image img {
    height: 100%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image .bg_image_area {
    width: 100%;
    height: 100%;
    border-radius: 0 0 0 12px;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image .bg_image_area>div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 0 12px;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-name {
    margin: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-items: start;
    width: 100%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-name p {
    font-size: 14px;
    color: gray;
  }

  .tally_express_search_result .tally-express-bus-route {
    margin: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-items: start;
    gap: 10px;
    width: 100%;
  }

  .tally_express_search_result .tally-express-bus-route h6 {
    font-weight: normal;
    font-size: 16px;
  }

  .tally_express_search_result .tally-express-bus-route h6 i {
    padding-right: 10px;
    color: gray;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-seat-info {
    margin: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    width: 33%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-seat-info:last-child {
    border-right: 0;
  }

  .tally_express_search_result .tally-express-bus-list .ac {
    background-color: #e0f7fa;
    color: #0097a7;
    padding: 3px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .tally_express_search_result .tally-express-bus-list .none-ac {
    background-color: #fff8e1;
    color: #ffa000;
    padding: 2px 6px;
    border-radius: 5px;
  }

  .tally_express_search_result .tally-express-bus-list .seats-available {
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .tally_express_search_result .tally-express-bus-list .seats-price {
    color: var(--tally_express_color_theme);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-seat-book {
    margin: 0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    border-right: 0;
    width: 100%;
  }


  .tally_express_search_result .tally-express-bus-lists .lists-title {
    background: linear-gradient(105deg, #dddddd, #d8d8d8);
    color: var(--tally_express_color_theme);
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    text-align: center;
  }

  .tally_express_search_result .tally-express-bus-lists .tally_express_registration_area {
    padding: 20px;
    border: 1px solid #d0d0d0;
    margin-bottom: 20px;
  }



  .tally_express_style .themeButton,
  .tally_express_style [class*=_themeButton] {
    background-color: var(--tally_express_color_theme);
    color: var(--tally_express_color_theme_alter);
    padding: var(--tally_express_dmp_xs) var(--tally_express_dmp_xs);
    border: 1px solid var(--tally-express-primary);
  }

  .tally_express_style .themeButton span,
  .tally_express_style [class*=_themeButton] span {
    color: var(--tally_express_color_theme_alter);
  }

  .tally_express_style .themeButton:hover,
  .tally_express_style [class*=_themeButton]:hover {
    background-color: var(--tally_express_color_theme);
    color: var(--tally_express_color_theme_alter);
    border-color: var(--tally_express_color_theme);
  }

  .tally_express_style .themeButton:hover span,
  .tally_express_style [class*=_themeButton]:hover span {
    color: var(--tally_express_color_theme_alter);
  }

  .tally_express_bus_info_holder {
    flex-wrap: wrap;
  }

  .tally_express_bus_info_details_holder {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image img {
    height: 100%;
  }

  .tally-express-bus-flix-style_bus {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-name {
    border-right: 1px solid #eee;
    width: 50%;
  }

  .tally_express_search_result .tally-express-bus-route {
    border-right: 0;
    width: 50%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-seat-info {
    border-right: 1px solid #eee;
    border-top: 1px solid #eee;
    width: 50%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-seat-book {
    width: auto;
  }

}

@media (min-width: 540px) {

  .tally-express-bus-flix-style .route .route-info .from,
  .tally-express-bus-flix-style .route .route-info .to {
    width: 33%;
  }
}

@media (min-width: 768px) {
  .tally_express_search_result .tally-express-bus-list {
    flex-direction: row;
    flex-wrap: nowrap;
    border: 0;
  }

  .tally_express_bus_info_details_holder {
    width: 75%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image {
    width: 25%;
    height: auto;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image img {
    height: auto;
  }

  .tally-express-bus-flix-style .title {
    width: 16%;
  }

  .tally-express-bus-flix-style .route {
    width: 40%;
  }

  .tally-express-bus-flix-style .route .route-info .to {
    padding-left: 20px;
  }
}

@media (min-width: 1240px) {
  .tally_express_bus_info_details_holder {
    width: 80%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-image {
    width: 20%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-bus-name {
    width: 25%;
  }

  .tally_express_search_result .tally-express-bus-route {
    border-right: 1px solid #eee;
    width: 25%;
  }

  .tally_express_search_result .tally-express-bus-list .tally-express-seat-info {
    border-right: 1px solid #eee;
    border-top: 0;
    width: 25%;
  }
}

/* Shuttle Seat Selection (Simple Mode) */
.tally_express_shuttle_booking_box {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
}

.tally_express_active_tier_info .tally_express_tier_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.tally_express_tier_name {
    margin: 0 !important;
    color: #2d3748;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.tally_express_tier_price_label {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 4px !important;
}

.tally_express_tier_price_label .price-amount {
    color: var(--tally_express_color_theme);
    font-weight: 700;
}

.tally_express_availability_badge {
    background: #f0fff4;
    color: #2f855a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c6f6d5;
}

.tally_express_availability_badge .status-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    display: inline-block;
}

.tally_express_selection_label {
    display: block;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1rem;
}

.tally_express_simple_seat_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.tally_express_simple_seat_pill {
    position: relative;
    padding: 12px 8px;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    cursor: pointer;
}

.tally_express_simple_seat_pill .pill-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tally_express_simple_seat_pill .seat-icon {
    font-size: 1.2rem;
    display: block;
}

.tally_express_simple_seat_pill.is-available:hover {
    border-color: var(--tally_express_color_theme);
    color: var(--tally_express_color_theme);
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tally_express_simple_seat_pill.selected {
    background: var(--tally_express_color_theme) !important;
    color: #fff !important;
    border-color: var(--tally_express_color_theme) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--tally_express_color_theme_rgb), 0.3);
}

.tally_express_simple_seat_pill.is-booked {
    background: #f7fafc;
    color: #cbd5e0;
    border-color: #edf2f7;
    cursor: not-allowed;
    opacity: 0.8;
}

.tally_express_simple_seat_pill.is-booked .seat-icon {
    filter: grayscale(1);
    opacity: 0.5;
}

.tally_express_selection_summary {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #edf2f7;
}

.tally_express_selection_summary .selection-details .label {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.tally_express_selection_summary .selection-details .values {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1rem;
}

.tally_express_selection_summary .selection-count-box {
    text-align: right;
}

.tally_express_selection_summary .selection-count-box .count-label {
    color: #718096;
    font-size: 0.9rem;
    margin-right: 8px;
}

.tally_express_selection_summary .selection-count-box .count-value {
    background: var(--tally_express_color_theme);
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Layout Adjustments */
.tally_express_without_seat_plan .tally_express_bus_info_section {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.tally_express_without_seat_plan .tally_express_pricing_sidebar {
    background: #fdfdfd;
    height: 100%;
    border-left: 1px solid #edf2f7;
    padding: 20px;
}

@media (max-width: 1000px) {
    .tally_express_without_seat_plan .tally_express_pricing_sidebar {
        border-left: none;
        border-top: 1px solid #edf2f7;
        margin-top: 20px;
    }
}