/* spinner start */
#preloader {
    position: absolute;
    top: 4px;
    left: 1px;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 5px solid #cccccc;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* spinner end */

.hide-scroll {
    overflow: hidden;
}

.modal__input {
    text-transform: uppercase;
}

.order-status-wrapper {
    box-shadow: 0.0625rem 0.1875rem 0.375rem #00000026;
    margin: 16px 0;
    border-radius: 10px;
    padding: 16px;
}

.order-status-container {
    display: flex;
    flex-direction: row;
    column-gap: .125rem;
    border-radius: 50px;
    margin-top: 10px;
}

.status-container {
    display: flex;
    flex-direction: column;
    height: 75px;
    min-width: 140px;
    width: 100%;
}

.status-name {
    width: 100%;
    color: #FFFFFF;
    font-weight: 600;
    text-align: center;
    padding: 6px 0;
    background-color: rgb(216, 217, 235);
    margin: 0;
    position: relative;
}

.passed {
    background-color: var(--blue);
}

.in-progress {
    background-color: #18357e;
}

.in-progress:after {
    content: "";
    border: solid transparent;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 99;
}
.in-progress:after {
    border-left-color: #18357e;
    border-width: 18px;
    margin-top: 0;
}


.date-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.date-name {
    line-height: .875rem;
    font-size: 9px;
    color: rgb(108, 117, 134);
}

.date-value {
    font-size: 14px;
    color: #202020;
}

.info-wrapper {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 16px;
    width: 100%;
}

.info-column {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    border-radius: 10px;
    padding: 8px;
    background-color: rgb(237, 238, 253);
    gap: 16px;
}

.photos-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0.0625rem 0.1875rem 0.375rem #00000026;

    > span {
        color: rgb(142, 152, 170);
        font-weight: 600;
        font-size: 16px;
    }
}

.photos-container {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    gap: 8px;
}

.photos-download-button {
    border-radius: 6px;
    text-align: center;
    background-color: rgb(216, 217, 235);
    color: var(--blue);
    cursor: pointer;
    min-width: 150px;
    width: 100%;
    transition: all .3s ease;
    padding: 10px 0;
}

.photos-download-button:hover {
    background-color: rgba(216, 217, 235, 0.8);
}

.photos-slider-button {
    position: relative;
    background-color: #8e98aae6;
    color: #ffffff;
    height: 64px;
    border-radius: 6px;
    border: none;
    padding: 0;
}

.photos-slider-button:hover, .photos-slider-button:focus {
    color: #ffffff;
}

.photos-slider-button:disabled {
    cursor: default;
}

.slider-preview {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px;
    object-fit: cover;
    z-index: 1;
    height: 100%;
}

.slider-text-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    border-radius: 6px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.photos-title {
    font-weight: 600;
}

.info-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 16px 12px;
    box-shadow: 0.0625rem 0.1875rem 0.375rem #00000026;
}

.info-title {
    margin: 0;
    font-weight: 400;
    color: var(--black);
    font-size: 1em;
    line-height: 16px;
    text-transform: capitalize;
}

.info-value-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 44px;
    text-transform: uppercase;
}

.info-name {
    width: 50%;
    line-height: 14px;
    text-align: left;
    font-weight: 600;
    color: var(--blue);
    font-size: 1em;
    text-transform: capitalize;
}

.info-value {
    width: 50%;
    text-align: left;
    font-weight: 400;
    color: var(--grey);
    font-size: 0.9em;
    line-height: 14px;
    text-transform: capitalize;
}

.tracking-container {
    display: flex;
    flex-direction: row;
    height: 500px;
    width: 100%;
}
.tracking-details-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 612px;
    padding: 16px;
    gap: 10px;
}

.tracking-map-container {
    display: flex;
    flex-grow: 1;
    position: relative;
    border-radius: 10px;
    padding: 8px;
    background-color: rgb(237, 238, 253);
    margin-top: 16px;
    z-index: 1;

    > #map {
        width: 100%;
        height: 100%;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 10px;
        box-shadow: 0.0625rem 0.1875rem 0.375rem #00000026;
    }
}

.car-info-container {
    display: flex;
    gap: 10px;
}

.vin-form {
    display: flex;
    box-shadow: 0 4px 15px rgba(58, 112, 191, .1);
    border-radius: 6px;
    padding: 4px;
    align-items: center;
}

.search-button {
    background-color: var(--blue);
    border-radius: 5px;
    padding: 5px;
    transition: all .3s ease;
    position: relative;

    > svg, svg path {
        fill: var(--white);
    }
}

.input-container {
    width: 100%;
    padding-right: 5px;
}

.search-button:hover {
    opacity: 0.8;
}

.modal__input {
    border: none;
    outline: none;
    padding-left: 15px;
}

.modal__input:valid, .modal__input:focus {
    border: none;
}

/* slider styles */

.slider-wrapper {
    display: none;
    position: fixed;
    z-index: 99999999;
    background-color: #20202093;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 20px 40px;
}

.slider-wrapper._open {
    display: block;
}

.slider-container {
    all: unset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.slider-header {
    background-color: rgb(237, 238, 253);
    padding: 16px;
    position: relative;
    font-weight: 600;
}

.slider-close-button {
    position: absolute;
    cursor: pointer;
    right: 16px;
    transform: translateY(-100%);
}

.slider-close-button__img {
    transform: rotate(45deg);
    pointer-events: none;
}

.slider-photos-container {
    display: flex;
    width: 100%;
    padding: 16px;
    height: 100%;
    overflow: hidden;
    background-color: #FFFFFF;
    gap: 10px;
}

.slider-gallery-wrapper {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.slider-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    overflow: hidden;
    height: fit-content;
}

.gallery-item-wrapper {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 2px solid #FFFFFF;
    overflow: hidden;
    cursor: pointer;
    transition: all .3s ease;
}

.gallery-item-wrapper:hover {
    border-color: var(--blue);
}

.gallery-item {
    all: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-photo-wrapper {
    display: flex;
    overflow: hidden;
    justify-content: center;
    height: 100%;
}

.slider-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

.slider-main-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.slider-gallery-wrapper.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}
.slider-gallery-wrapper {
    cursor: grab;
    cursor: -webkit-grab;
    touch-action: pan-y; /* Запрещает вертикальный скролл на мобильных устройствах во время горизонтального перетаскивания */
}

.slider-gallery-wrapper,
.slider-gallery-wrapper * {
    user-select: none; /* Запрещает выделение текста и элементов */
    -webkit-user-select: none; /* Для Safari */
    -ms-user-select: none; /* Для IE */
}

/* container route info styles start */

.route-info-wrapper {
    padding: 20px 0 0;
}

.route-info-container {
    display: flex;
    width: 100%;
    gap: 20px;
}

.info-item-wrapper {
    width: 50%;
    border-radius: 10px;
    padding: 8px;
    background-color: rgb(237, 238, 253);
}

.info-item-container {
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 16px 12px;
    box-shadow: 0.0625rem 0.1875rem 0.375rem #00000026;
}

.info-item-title {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--black);
    font-size: 1em;
    line-height: 16px;
    text-transform: capitalize;
}

.container-route {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.point-name {
    font-weight: 400;
    color: var(--black);
    font-size: 1em;
    line-height: 16px;
    text-transform: capitalize;
}

.point-info-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;

    >p {
        width: fit-content;
        font-size: 14px;
        line-height: 14px;
    }
}

.vessels-info-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.vessel-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vessel-info-item {
    display: flex;
}

.vessel-info:not(:first-child) {
    border-top: 1px solid;
    padding-top: 10px;
}

.info-item-name {
    max-width: 130px;
    margin: 0;
    font-weight: 400;
    color: var(--black);
    font-size: 1em;
    line-height: 16px;
    text-transform: capitalize;
}

.info-item-value {
    margin: 0;
    font-weight: 400;
    color: var(--black);
    font-size: 1em;
    line-height: 16px;
    text-transform: capitalize;
}

/* container route info styles end */

/* media requests */

@media (max-width: 980px) {
    .order-status-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 15px;
    }

    .info-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .photos-column {
        grid-column: 1/3;
    }

    .photos-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .photos-slider-button {
        min-width: 150px;
    }

    .slider-photos-container {
        grid-template-rows: 5fr 2fr;
    }

    .slider-gallery-wrapper {
        overflow-x: hidden;
        overflow-y: scroll;
    }

    .slider-photo-wrapper {
        height: unset;
        width: 100%;
    }

    .point-info-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .info-wrapper {
        grid-template-columns: 1fr;
    }

    .photos-column {
        grid-column: 1;
    }

    .slider-photos-container {
        grid-template-rows: 3fr 2fr;
    }

    .photos-container {
        flex-direction: column;
    }

    .status-name {
        font-size: 0.8em;
    }

    .container-route {
        gap: 10px;
    }

    .route-info-container {
        flex-direction: column;
    }

    .info-item-wrapper {
        width: 100%;
    }
}

@media (max-width: 540px) {

}

@media (max-width: 480px) {
    .slider-photos-container {
        grid-template-rows: repeat(2, 1fr);
    }
}
