#tabel_list {
    width: 1180px;
    /*border: 1px solid #ddd;
    border-radius: 6px;*/
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-size: 14px;
}


body[data-elementor-device-mode="mobile"]  #tour_exchange_mobile_scroll_wrapper
{
    overflow-x: auto;
}

body[data-elementor-device-mode="mobile"] #tabel_list
{
    width: 100%;
     font-size: 12px;
}


body[data-elementor-device-mode="mobile"] 
.open_tour_exchange_form_popup_wrapper {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #fff;
}


/* HEADER */
#tabel_header {
    display: grid;
   /* grid-template-columns: repeat(10, 1fr);*/
   grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 25px 60px;
    background: #e0e0e0;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
}

#tabel_header .th_col {
    padding: 10px;
    cursor: pointer;
    position: relative;
    text-align: center;
    border-right: 1px solid #ccc;
}

.td_col:last-child {
    border-right: none;
}

#tabel_header .th_col[data-sort] span {

    position: absolute;
    right: 10px;

}

body[data-elementor-device-mode="mobile"] #tabel_header .th_col[data-sort] span
{
    right: 4px;
}


#tabel_header .th_col[data-sort] span::after {
    content: "\f0dc";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

#tabel_header .th_col.ASC span::after {
   content: "\f0dd";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

#tabel_header .th_col.DESC span::after {
     content: "\f0de";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}



#tabel_header .th_col.detaljer,
#tabel_header .th_col.marker
{
    text-align: center;
}

.td_col.td_detaljer a {
    color: #21314d;
    font-weight: 600;
    font-size: 18px;
    line-height: 14px;
}


#tabel_header .th_col:hover {
    /*background: #eee;*/
}

/* BODY ROWS */
#tabel_body .single_item,
#tabel_body .return_item {
    display: grid;
    grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 25px 60px;;
    border-bottom: 1px solid #eee;
}

#tabel_body .single_item:hover,
#tabel_body .return_item:hover {
    background: #fafafa;
}

/* CELLS */
.td_col {
    padding: 10px 0;
    /*border-right: 1px solid #f1f1f1;*/
    background-color: #eeeeee;
    text-align: center;
}

.trip_row.open
{
    font-weight: 600;
}

.trip_row.open .expand_block.show
{
    font-weight: 400;
}

.td_col.arrow
{
    text-align: center;
}

.td_col.td_detaljer,
.td_col.td_marker {
    text-align: center;
}

.td_col:last-child {
    border-right: none;
}

/* CHILD ROW styling */
.return_item .td_col:nth-child(n+11) {
    background: #eeeeee;
    font-size: 13px;
        padding: 0 0 5px 0;
        margin-top: -12px;
}

body[data-elementor-device-mode="mobile"] .return_item .td_col:nth-child(n+11) {
   
    font-size: 12px;
        padding: 0 0 5px 0;
      
}


/* Arrow styling */
/*.return_item .td_col:contains("↳") {
    color: #999;
    text-align: center;
}*/

/* TYPE COLORS */
.trip_type_st {
    background: #fff;
}

.trip_type_dt {
    background: #fdfdfd;
}

.return_item.trip_type_dt .td_col {
  /*  background: #eaf1fd;*/
}



#tabel_body div.trip_row.even .td_col {
    background: #fbfbfb;
}


#tabel_body .expand_block {
    grid-column: 1 / -1;
    background: #eeeeee;
    padding: 10px;
    display: none;  
    /*border: 2px solid;
    border-top: none;*/
}

#tabel_body .expand_block.show {
    grid-column: 1 / -1;
    background: #eeeeee;
    padding: 10px;
    display: block;
 
}

#tabel_body .trip_row.even .expand_block.show
{
    background: #fbfbfb;
}



#tabel_body .return_item.trip_type_dt .expand_block.show
{
   /* border-color: #eaf1fd;*/
}


#tabel_body .expand_block .headline
{
font-size: 1rem;
font-weight: 600;
padding-bottom: 10px;
}

#tabel_body .expand_block .subheadline
{
   font-weight: 600;
}

#tabel_body .expand_block .expand_block_wrapper
{
    display: flex;
    column-gap: 40px;
    align-items: start;
    padding-top:40px;
}

#tabel_body .expand_block .expand_block_wrapper .desc.content pre {
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    
}

#tabel_body .expand_block .one .pick_up_time {
    display: grid;
    grid-template-columns: 80px 1fr;
    /*border-bottom: 1px solid #ccc;*/
    padding-bottom: 4px;
    padding-top: 4px;
}

#tabel_body .expand_block .one .pick_up_time:last-child
{
    border-bottom: none;
}

#tabel_body .expand_block .one
{
      width: 50%;
}

#tabel_body .expand_block .two {
    width: 50%;
    display: grid;
    grid-template-columns: 120px 1fr;
}

#tabel_body .expand_block .two .label
{
      font-weight: 600;
}

/* PAGINATION */
#pagination {
    padding: 10px;
    text-align: center;
    position: relative;
}

#scroll_to_top {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

body[data-elementor-device-mode="mobile"] #pagination {
    padding: 10px 10px 10px 0;
    text-align: left;
}

#pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

body[data-elementor-device-mode="mobile"] #pagination a {
    display: inline-block;
    margin: 0 5px 0 0px;
}

#pagination a:hover {
    background: #eee;
}

/* ACTIVE PAGE */
#pagination a.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.loader_slide
{
    background: linear-gradient(300deg,transparent,#F0F0F0,transparent);
    background-size: 180% 180%;
    animation: gradient-animation 03s ease infinite;
    display: flex;
    height: 41px;
    width: 100%;
    border-bottom: 1px solid #eee;
    align-items: center;
    padding-left: 20px;
}


@keyframes gradient-animation {
  0% {
    background-position: 30% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 30% 50%;
  }
}


/*** FORM POPUP START**/
#tour_exchange_form_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.4);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;

    z-index: 9999;
}

/* selve popup */
#tour_exchange_form_popup_content {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    min-width: 400px;
    height: 70vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}


a.tour_exchange_form_popup_close_btn {
    position: absolute;
    top: 0px;
    right: 0px;
    left: auto;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #000;
    font-weight: 800;
    border-radius: 50%;
    z-index: 10;

}


body[data-elementor-device-mode="mobile"]  #tour_exchange_form_popup_content {
    position: absolute;
    bottom: 0;
    right: auto;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: 70vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.open_tour_exchange_form_popup_wrapper
{
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


button#scroll_to_bund {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: transparent;
}

button#scroll_to_bund:hover {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: transparent;
}


button.open_tour_exchange_form_popup {
    border-color: #1B2942 !important;
    background-color: #1B2942;
    color: #FFF;
}

button.open_tour_exchange_form_popup.bund
{
    margin-top: 10px;
}

button.open_tour_exchange_form_popup:focus, button.open_tour_exchange_form_popup:hover,
button#booking_form_submit:focus,button#booking_form_submit:hover,button,
button#tour_exchange_form_popup_close_btn:focus,button#tour_exchange_form_popup_close_btn:hover
{
    border-color: #1B2942 !important;
    background-color: #1B2942;
    color: #FFF;
}


.open_tour_exchange_form_popup_error
{
    display: none;
    font-weight: 600;
margin-top: 10px;

}
.open_tour_exchange_form_popup_error.show
{
    display: block;

}

body[data-elementor-device-mode="mobile"] #form-grid
{
    display: grid;
    /*grid-template-columns: 33% 33% 1fr;*/
    column-gap: 20px;
}


/* aktiv state */
#tour_exchange_form_popup.active {
    opacity: 1;
    pointer-events: auto;
}

#tour_exchange_form_popup #tour_exchange_form_popup_content {
    transform: translateY(0);
}

.tour_exchange_form_popup_content_teaser{
    padding-bottom: 10px;
}

#booking_form .form-group 
{
    padding-bottom: 5px;
}

#booking_form .form-group.checkbox
{
padding-top:8px;
}

#booking_form .form-group.checkbox .container_checkbox {
 display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 0px;
    cursor: pointer;
    font-size: 16px;
    line-height: 26px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
#booking_form .form-group.checkbox .container_checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
#booking_form .form-group.checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  border: 1px solid #666;
}

/* On mouse-over, add a grey background color */
#booking_form .form-group.checkbox .container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
#booking_form .form-group.checkbox .container_checkbox input:checked ~ .checkmark {
  background-color: #1B2942;
}

/* Create the checkmark/indicator (hidden when not checked) */
#booking_form .form-group.checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
#booking_form .form-group.checkbox .container_checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
#booking_form .form-group.checkbox  .container_checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}



#tour_exchange_form_popup_content #start_form h2
{
    font-size: 22px;
}



#add_vognnumre
{
    font-size: 14px;
}





#booking_form .form-group label
{
    font-weight: 600;
    padding-bottom: 5px;
}

#booking_form_submit
{
     margin-top: 10px;
}

#start_form_kvittering
{
    display: none;
}

#start_form_kvittering.show
{
    display: block;
}

#start_form.hide
{
    display: none;
}

#rotate_device_overlay {
   
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 99999;
     display: none;
}

#rotate_device_overlay .icon {
    background: url(/wp-content/plugins/sj_tour_exchange/assets/turn_mobile.png);
    background-repeat: no-repeat;
    height: 100px;
    background-size: 100px;
    background-position: 50% 100%;
    margin-bottom: 20px;
}

#rotate_device_overlay .desc{
    font-weight: 800;
}

body[data-elementor-device-mode="mobile"].mobile-portrait .open_tour_exchange_form_popup_wrapper,
body[data-elementor-device-mode="mobile"].mobile-portrait #tabel_list
{
    display: none;
}

body[data-elementor-device-mode="mobile"].mobile-portrait #rotate_device_overlay
{
     display: block;
}


 .table_sticky {
  position: fixed;
  top: 0;
  width: 1180px;
}

body[data-elementor-device-mode="mobile"] .table_sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

body.admin-bar .table_sticky {
  position: fixed;
  top: 32px;
  width: 1180px;
}


button#tour_exchange_form_popup_close_btn {
    background: transparent;
    color: #1B2942 !important;
    border: none;
    margin-left: 30px;
    padding: 0;
}

button#tour_exchange_form_popup_close_btn:hover {
    background: transparent;
    color: #1B2942 !important;
    border: none;
    margin-left: 30px;
    padding: 0;
}


.vognnummer_row {
    display:flex;
    gap:10px;
    align-items:center;
}

.remove_vognnummer {
    white-space:nowrap;
}



img.tour_image_preview_one,img.tour_image_preview_two,img.tour_image_preview_three
{
width: 100%;
height: auto;
cursor: pointer;
}


.image_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 60px; 
    text-align: center;
	align-content: center;
}

.image_overlay img {
    max-width: 95%;
    max-height: calc(100vh - 80px); 
    object-fit: contain;
}

.image_overlay_close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 1000001;
}

.scroll_wrapper.do_scroll {
    width: 100%;
    overflow-x: auto;
}
