﻿.live-results .results-table .body .route-overview.tlc-mt-0 {
    padding-top: 0;
}
.train-loading-component {
    padding: 1.5rem 1.5rem 1.5rem 3.25rem;
    background-color: #fff;
    position: relative;
    border-top: 3px solid #007CAD;
    margin: 0px 0 40px;
    z-index: 1;
}

.train-loading-component .top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.train-loading-component .top-wrapper .left-wrapper{
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.train-loading-component .top-wrapper h3 {
    padding: 0;
    font-size: 1.75rem;
}

.train-loading-component .top-wrapper .top-carriages-last-updated-wrapper{
    display: flex;
    gap: .5rem;
    align-items: center;
}
.train-loading-component .top-carriages-last-updated-wrapper .carriage-text {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
}
.train-loading-component .top-carriages-last-updated-wrapper .simple-dot{
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #6A7680;
}
.train-loading-component .top-carriages-last-updated-wrapper .last-updated-text{
    line-height: 1.5;
}

.train-loading-component .top-wrapper .right-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.view-facilities {
    display: block;
    padding: 0.688rem 1.375rem;
    border-radius: 6px;
    border: 1px solid #007CAD;
    color: #007CAD;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.25;
}

.train-loading-component .top-wrapper .right-wrapper .toggle-train-info {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.5rem;
    width: 1.5rem;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    cursor: pointer;
    background-color: transparent;
}
.train-loading-component .top-wrapper .toggle-train-info:hover{
    background-color: #E9F0F5;
}
.train-loading-component .top-wrapper .right-wrapper .toggle-train-info .icon-carat_down_soft {
    margin: 0;
    font-size: .875rem;
    transform: scale(1);
    transition: all 100ms ease;
}
.train-loading-component.expandResult .top-wrapper .right-wrapper .toggle-train-info .icon-carat_down_soft{
    transform: scale(-1);
}

.train-loading-data-unavailable {
    padding: 1rem;
    background-color: #fff;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: .5rem;
}
.train-loading-data-unavailable .data-unavailable {
    font-size: 1rem;
}

.train-loading-component-loader {
    padding: 1.5rem 1.5rem 1.5rem 3.25rem;
    background-color: #fff;
    border-top: 3px solid #007CAD;
    margin: 0px 0 40px;
    z-index: 1;
}
.loading-container.train-loading-modal-component-loader {
    padding: 2rem;
    background-color: #fff;
}
.train-loading-refresh-button {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 0 0 1.125rem;
    border: 1px solid transparent;
    background-color: transparent;
    font-size: .875rem;
    line-height: 1.5;
    cursor: pointer;
    position: relative;
    color: #0092CB;
}
.train-loading-refresh-button:hover {
    text-decoration: underline;
}

.train-loading-refresh-button .icon-travel_refresh {
    position: absolute;
    left: -1px;
    top: 3.5px;
}

.train-loading-component .top-carriages-last-updated-wrapper .travel-direction-text {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
}

.train-loading-component.expandResult .train-loading-result {
    display: flex;
    margin-top: 1.5rem;
    justify-content: center;
    width: 100%;
}

.train-loading-component:not(.expandResult) .train-loading-result,
.train-loading-component:not(.expandResult) .refresh-last-update-wrapper,
.train-loading-component:not(.expandResult) .top-carriages-last-updated-wrapper,
.train-loading-component:not(.expandResult) .view-facilities,
.train-loading-component:not(.expandResult) .train-loading-data-unavailable {
    display: none;
}
.train-loading-component .train-coach-seat-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.train-loading-component .train.coach-inner-wrapper {
    overflow-x: auto;
    display: flex;
    width: 100%;
}

.train-loading-component .train-coaches {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    padding: .25rem;
}

.train-loading-component .single-coach {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.train-loading-component .coach-class {
    text-align: center;
    font-size: .75rem;
    line-height: 1.25;
}

.train-loading-component .coach-number {
    background-color: #bfbfbf;
    width: 4.375rem;
    height: 2.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    border-radius: 0px;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    align-items: center;
    text-transform: uppercase;
}

.train-loading-component .coach-number.no-data-seat {
    background-color: #bfbfbf;
}

.train-loading-component .single-coach:last-child .coach-number {
    border-top-right-radius: 1.5rem;
}

.train-loading-component .train-seats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}
.train-loading-component .train-seats .vertical-separator{
    background-color: #6A7680;
    width: 1px;
    height: 1.5rem;
}
.train-loading-component .train-seats .travel-direction-text {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    line-height: 1.5;
}
.train-loading-component .travel-direction-text .arrow-right-icon {
    width: .75rem;
    height: .75rem;
    display: inline-block;
    line-height: .75rem;
    flex-shrink: 0;
    color: currentcolor;
    vertical-align: middle;
    margin: 0;
    font-size: .75rem;
}
.train-loading-component .seat-level {
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

.train-loading-component .train-seats ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.train-loading-component .train-seats li {
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.train-loading-component .train-seats .availability-color {
    width: 1rem;
    height: 1rem;
    background-color: transparent;
    border-radius: 2px;
}

.train-loading-component .train-seats .availability-color.many-seat {
    background-color: #9ae6b4;
}
.train-loading-component .train-seats .availability-color.some-seat {
    background-color: #f2d19b;
}
.train-loading-component .train-seats .availability-color.few-seat {
    background-color: #fb8590;
}
.train-loading-component .train-seats .availability-color.no-data-seat {
    background-color: #bfbfbf;
}

.train-loading-component .train-seats .availability-text {
    font-size: inherit;
    line-height: inherit;
}

.train-loading-component .last-updated-text {
    font-size: .875rem;
    line-height: 1.25;
}
.refresh-last-update-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/*Train loading modal - Start*/
.modal-open .train-loading-modal {
    z-index: 9999;
    overflow-x: hidden;
    overflow-y: auto;
}
.train-loading-modal .modal-dialog {
    transform: translate(-50%, 80px) !important;
    margin: 0 !important;
    left: 50%;
    top: 0;
}
.train-loading-modal .modal-content {
    padding: 0rem;
}
.modal-content.train-loading-content div {
    padding: 0;
}
.train-loading-modal .modal-content .modal-header {
    border-bottom: 1px solid #c7dae7;
    margin: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.train-loading-modal .modal-content .modal-body {
    padding: 0 1.5rem;
    font-weight: 400;
}
.train-loading-modal .modal-content .modal-footer {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #6A768033;
}
.train-loading-modal .modal-header .header-left {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.train-loading-modal .modal-header .refresh-last-updated-wrapper {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.train-loading-modal .modal-content .modal-header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
}

.train-loading-modal .modal-content .modal-header .carriage-text {
    font-size: 14px !important;
    margin: 0;
    padding: 0;
    font-weight: 400;
    text-align: left;
}

.train-loading-modal .modal-content .modal-header .close {
    margin: 0;
    padding: 0;
    height: 2.5rem;
    width: 2.5rem;
    border: 1px solid transparent;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.train-loading-modal .modal-header .close:hover {
    background-color: #E9F0F5;
}
.train-loading-modal .modal-header .close .icon-minus-plus {
    position: relative;
    width: 1.25rem;
    height: .125rem;
    background-color: #061b2b;
    margin: 0;
    transform: rotate(45deg);
}
.train-loading-modal .modal-header .close .icon-minus-plus::after {
    width: .125rem;
    background-color: #061b2b;
    margin: 0;
    position: absolute;
    content: "";
    height: 1.25rem;
    display: inline-block;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.refresh-last-updated-wrapper .vertical-separator {
    background-color: #6A7680;
    width: 1px;
    height: 1.5rem;
}
.train-loading-modal .modal-body .refresh-last-updated-wrapper {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: 1rem;
}

.train-loading-modal .refresh-last-updated-wrapper .last-updated-text {
    font-size: .875rem;
}

.travel-direction-facilities-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
}

.train-loading-modal .modal-content .travel-direction-facilities-wrapper .travel-direction-wrapper,
.train-loading-modal .modal-content .travel-direction-facilities-wrapper .facilities-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}
.train-loading-modal .modal-content .travel-direction-facilities-wrapper .travel-direction-wrapper {
    padding-right: 1.5rem;
    border-right: 1px solid #6A768033;
}
.train-loading-modal .modal-content .travel-direction-facilities-wrapper .facilities-wrapper {
    padding-left: 1.5rem;
}
.train-loading-modal .modal-content .travel-direction-facilities-wrapper .travel-direction-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    padding: 0 0 0 .5rem;
    width: 100%;
}

.travel-direction-facilities-wrapper .travel-direction-text .arrow-top-icon {
    width: 1rem;
    height: 1rem;
    transform: rotate(-90deg);
    font-weight: 400;
}

.travel-direction-wrapper .carriage-outer-wrapper {
    width: 100%;
    max-height: 325px;
    overflow-y: auto;
    border: 1px solid transparent;
}
.travel-direction-wrapper .carriage-outer-wrapper:focus{
    border: 1px #e9f0f5 solid !important;
    outline: 2px solid #007cad !important;
}
.travel-direction-wrapper .carriage-outer-wrapper::-webkit-scrollbar,
.train-loading-component .train.coach-inner-wrapper::-webkit-scrollbar{
    width: 6px;
    height: 6px;
    overflow: visible;
}
.travel-direction-wrapper .carriage-outer-wrapper::-webkit-scrollbar-thumb,
.train-loading-component .train.coach-inner-wrapper::-webkit-scrollbar-thumb{
    background-color: #061b2b;
    border-radius: 15px;
}
.travel-direction-wrapper .carriage-outer-wrapper::-webkit-scrollbar-track,
.train-loading-component .train.coach-inner-wrapper::-webkit-scrollbar-track{
    background-color: #c7dae7;
    border-radius: 15px;
}

.train-loading-modal .modal-content .travel-direction-wrapper .carriage-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: .375rem;
    align-items: flex-start;
    width: 100%;
    padding: .5rem 0;
}

.train-loading-modal .modal-content .travel-direction-wrapper .single-carriage {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.train-loading-modal .modal-content .travel-direction-wrapper .single-carriage .carriage-name {
    background-color: #bfbfbf;
    width: 1.875rem;
    height: 4.25rem;
    text-align: center;
    padding-top: .675rem;
    color: #061B2B;
    margin: 0px;
    font-size: 1rem;
    font-weight: 600;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.travel-direction-wrapper .single-carriage .carriage-name.many-seat {
    background-color: #9ae6b4;
}
.travel-direction-wrapper .single-carriage .carriage-name.some-seat {
    background-color: #f2d19b;
}
.travel-direction-wrapper .single-carriage .carriage-name.few-seat {
    background-color: #fb8590;
}
.travel-direction-wrapper .single-carriage .carriage-name.no-data-seat {
    background-color: #bfbfbf;
}

.travel-direction-wrapper .single-carriage .carriage-data-wrapper {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.travel-direction-wrapper .single-carriage .carriage-data-wrapper .carriage-data-text {
    font-size: .875rem;
}

.travel-direction-wrapper .single-carriage .carriage-data-wrapper .facilities-image-wrappper {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.travel-direction-wrapper .single-carriage .carriage-data-wrapper .facilities-image-wrappper svg {
    width: 1.5rem;
    height: 1.5rem;
}

.train-loading-modal .modal-content .travel-direction-facilities-wrapper .facilities-wrapper .facilities-text {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.travel-direction-facilities-wrapper .facilities-wrapper .facilities-inner-wrapper{
    width: 100%;
}

.train-loading-modal .modal-content .travel-direction-facilities-wrapper .facilities-wrapper .single-facilities {
    padding: .675rem;
    border-bottom: 1px solid #6A768033;
    width: 100%;
    display: flex;
    align-items: center;
    gap: .675rem;
}
.travel-direction-facilities-wrapper .facilities-wrapper .single-facilities .facilities-icon {
    width: 1.5rem;
    height: 1.5rem;
}
.travel-direction-facilities-wrapper .facilities-wrapper .single-facilities .facilities-name {
    font-size: .875rem;
}
.train-loading-modal .modal-footer .btn-close {
    font-size: 1rem;
}
.live-results.live-component-changetime-nav-main .results-table .body .route-overview:before{
    z-index: 9;
}

/*Train loading modal - End*/

@media screen and (min-width:767.99px) {
    .train-loading-component .train.coach-inner-wrapper {
        flex-direction: row;
        justify-content: center;
    }
    .train-loading-component .train-coach-seat-wrapper .view-facilities {
        display: none;
    }
    .mobile-only{
        display: none !important;
    }
}

@media screen and (max-width:767.98px) {
    .desktop-only {
        display: none;
    }
    .train-loading-component {
        padding: .75rem .75rem .75rem 3.25rem;
    }
    .train-loading-component .top-wrapper {
        align-items: flex-start;
    }
    .train-loading-component .top-wrapper .left-wrapper {
        gap: .25rem;
    }
    .train-loading-component .top-wrapper .right-wrapper .toggle-train-info {
        height: 1.25rem;
        width: 1.25rem;
    }
    .train-loading-component .top-wrapper h3 {
        font-size: 1.25rem;
    }
    .train-loading-component .top-wrapper .top-carriages-last-updated-wrapper {
        gap: .25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .train-loading-component .top-carriages-last-updated-wrapper .simple-dot {
        display: none;
    }
    .train-loading-component .top-wrapper .right-wrapper .view-facilities {
        display: none;
    }
    .train-loading-component .train-seats {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
        order: 1;
        row-gap: 1rem;
    }
    .train-loading-component .train-seats .travel-direction-text {
        order: 1;
        width: auto;
    }
    .train-loading-component .train-seats .vertical-separator {
        display: none;
    }
    .train-loading-component .train-seats ul {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .train-loading-component .train-seats .train-loading-refresh-button {
        order: 2;
        width: auto;
        justify-content: flex-end;
        text-decoration: none;
        padding: 0;
    }
    .train-loading-refresh-button .icon-travel_refresh {
        position: static;
    }
    .train-loading-component.expandResult .train-loading-result {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }
    .train-loading-component .train-coach-seat-wrapper{
        gap: 1rem;
    }
    .train-loading-component .coach-number {
        font-size: 1rem;
    }
    .train-loading-component .train-coach-seat-wrapper .view-facilities {
        order: 3;
        margin-top: .25rem;
    }
    .train-loading-component .train.coach-inner-wrapper {
        flex-direction: row-reverse;
        overflow-x: auto;
        padding-bottom: 0px;
        order: 2;
    }
    .travel-direction-facilities-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .train-loading-modal .modal-content .modal-header h2 {
        padding-right: 2rem;
    }
    .train-loading-modal .modal-content .travel-direction-facilities-wrapper .travel-direction-wrapper,
    .train-loading-modal .modal-content .travel-direction-facilities-wrapper .facilities-wrapper {
        width: 100%;
        padding: 0;
        border: 0;
        gap: .75rem;
    }
    .train-loading-data-unavailable .train-loading-refresh-button {
        padding: 0;
    }
    .train-loading-component .seat-level,
    .train-loading-component .train-seats li,
    .train-loading-component .last-updated-text,
    .train-loading-refresh-button,
    .train-loading-modal .refresh-last-updated-wrapper .last-updated-text {
        font-size: 0.875rem;
    }
    .train-loading-modal .modal-content .modal-header {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        inset: 0;
        padding: 1rem;
        gap: .5rem;
    }
    .train-loading-modal .modal-header .header-left {
        width: 100%;
    }
    .train-loading-modal .modal-content .modal-header .train-loading-refresh-button {
        padding-left: 0;
    }
    .train-loading-modal .modal-header .refresh-last-updated-wrapper {
        gap: .5rem;
    }
    .refresh-last-updated-wrapper .vertical-separator {
        height: 1.25rem;
    }
    .train-loading-modal .modal-content .travel-direction-facilities-wrapper .travel-direction-text {
        padding: 0 0 0 .375rem;
    }
    .train-loading-modal .modal-header .close {
        position: absolute;
        right: 12px;
        top: 12px;
        width: 2rem;
        height: 2rem;
    }
    .train-loading-modal .modal-content .modal-body,
    .train-loading-modal .modal-content .modal-footer {
        padding: 1rem;
    }
    .travel-direction-wrapper .carriage-outer-wrapper {
        max-height: none;
    }
    .train-loading-modal .modal-content .travel-direction-facilities-wrapper .facilities-wrapper .single-facilities {
        padding: .5rem 0;
    }
}

@media screen and (max-width:480.98px) {
    .train-loading-component {
        padding: .75rem .75rem .75rem calc(8.2% + .75rem);
    }
    .train-loading-component .train-seats ul {
        gap: .25rem;
    }
    .train-loading-component .train-seats li {
        gap: .125rem;
    }
    .train-loading-component .train-seats .availability-color {
        width: .875rem;
        height: .875rem;
    }
}