/*modal*/
.modal-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 10;
}

.modal-wrapper.modal-closed {
    display: flex;
    z-index: -10;
}

.modal-overlay {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    z-index: 20;
    opacity: 0.4;
    background: var(--fixed-black);
    transition: opacity .6s ease-out;
    left: 0;
}

.modal-wrapper.modal-closed .modal-overlay {
    opacity: 0;
    z-index: 0;
}

.modal-window-flex-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    height: 100vh;
    bottom: 0;
    z-index: 1000;
    transition: bottom .6s ease-out;
}

.modal-wrapper.modal-closed .modal-window-flex-container {
    bottom: -100%;
    z-index: 0;
}

.modal-window {
    display: flex;
    width: 640px;
    max-height: calc(100vh - 40px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: var(--space-11, 20px);
    background: var(--gray-monochromatic-00);
    box-shadow: 0px 80px 180px 0px rgba(0, 0, 0, 0.16);
    z-index: 20;
    overflow: hidden;
    padding: var(--space-13);
}

.modal-header {
    width: 100%;
    /*display: flex;*/
    /*flex-direction: column;*/
    /*justify-content: flex-start;*/
    /*align-items: center;*/
    padding-bottom: var(--space-13);
    gap: var(--space-5);
}

.modal-window-header-line {
    display: none;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-monochromatic-100);
    margin: auto auto var(--space-5);
}

.modal-header-text {
    color: var(--gray-neutral-900);
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 34px;
    flex-basis: 10000px;
    flex-shrink: 10;
}

.modal-window-close {
    flex-shrink: 0;
    flex-grow: 0;
    height: 30px;
    width: 30px;
    padding: var(--space-3, 4px);
    border-radius: var(--space-5, 8px);
    background-image: url("../../img/icons/close.svg");
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: absolute;
    right: var(--space-13);
    top: var(--space-13);
}

.modal-window-close:hover {
    background-color: var(--gray-monochromatic-50)
}

.modal-window-close:active {
    background-color: var(--gray-monochromatic-100)
}

.modal-window-table {
    margin: var(--space-5) var(--space-5);
    padding: 0 calc(var(--space-13) - var(--space-5));
    overflow-x: auto;
    flex-shrink: 10;
    width: -webkit-fill-available;
}

.modal-window-table::-webkit-scrollbar {
    width: 4px
}

.modal-window-table::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px
}

.modal-window-table::-webkit-scrollbar-thumb {
    background: var(--gray-monochromatic-100);
    border-radius: 2px
}

.modal-window-table table {
    width: 100%;
    color: var(--gray-neutral-900, #1A1A1A);
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    border-collapse: collapse;
}

.modal-window-table table td {
    padding: 0;
    width: 20%;
    background: var(--fixed-white);
}
.modal-window-table tbody tr {
    height: 60px;
}

.modal-window-table tbody tr:not(:first-child) {
    height: 60px;
    border-top: 1px solid var(--gray-monochromatic-50);
}

.modal-window-table table thead tr:first-child {
    color: var(--gray-monochromatic-600, rgba(26, 26, 26, 0.60));
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    position: sticky;
    top: 0;
    background: white;
    height: 36px;
}

.modal-window-table table thead {
    position: sticky;
    z-index: 200;
}

.cell-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-2, 2px);
    max-height: 36px;
}

.sort-icon {
    padding: var(--space-3, 4px);
    height: 30px;
    width: 30px;
    background-image: url("../../img/icons/unfold-more.svg");
    background-position: center;
    background-repeat: no-repeat;
}

.modal-window-buttons {
    width: 100%;
    padding: var(--space-13, 24px);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: var(--space-5, 2px);
}


.contact-us-modal .modal-window {
    width: unset;
    padding: 0;
}

.contact-us-modal .contact-us-tile {
    margin: 0;
}

.contact-us-modal .contact-us-modal-window-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 30;
}

@media (max-width: 768px) {
    .modal-wrapper {
        /*position: fixed;*/
        /*bottom: -100%;*/
    }

    .modal-window-flex-container {
        display: block;
        width: 100%;
        height: unset;
    }

    .modal-window-table table {
        font-size: 12px;
    }

    .modal-window-table table td {
        width: 5%;
    }

    .contact-us-modal .modal-window,
    .modal-window {
        position: absolute;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        touch-action: none;
        padding-right: var(--space-7);
        padding-left: var(--space-7);
    }
    .modal-window-header-line {
        display: block;
    }

    .modal-window-close {
        display: none;
    }

    .contact-us-modal-content {
        width: 100%;
        display: flow;
    }

    .contact-us-modal .contact-us-tile {
        width: 100%;
        border-radius: 0;
    }
}

