﻿html,
body {
    height: 100vh;
    /* clip, а не hidden: hidden делает html скролл-контейнером, и тогда viewport
       для position:fixed включает полосу прокрутки — шапка залезала на скроллбар.
       clip обрезает так же, но скролл-контейнер не создаёт. */
    overflow-x: clip;
    background: #EFEFF2;
    scrollbar-color: #fff;
    scrollbar-width: thin;
}

/* <picture> используется только как обёртка для webp-фолбэка и не должна участвовать
   в раскладке: иначе флекс-элементом становится она, а не <img>, и центрирование
   через margin:auto / align-items на самой картинке перестаёт работать.
   display:contents убирает её бокс, оставляя <img> прямым потомком родителя. */
picture {
    display: contents;
}

::-webkit-scrollbar {
    width: 5px;
    height:5px;
}

::-webkit-scrollbar-track {
    background: #ECECF0;
    border-radius: 15px;
}

::-webkit-scrollbar-thumb {
    background: rgba(68, 68, 68, 0.5);
    border-radius: 15px;
}

.wrapper {
    position: relative;
    min-height: 100vh;
}

/* Отступ под фиксированную шапку. --header-h объявлена в style.css и меняется
   по брейкпоинтам — раньше здесь стояло жёсткое 80px, из-за чего на планшете
   и мобиле под шапкой оставался белый разрыв. margin-top вместо position/top:
   сдвиг через top оставлял фантомные 80px пустоты внизу документа. */
.content {
    min-height: calc(100vh - var(--header-h, 80px));
    background: #ffffff;
    position: relative;
    margin-top: var(--header-h, 80px);
}
.font-1 {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    /* identical to box height, or 136% */


    color: #222222;
}

.wrapper-row {
    display: flex;
    flex-direction: row;
}

.wrapper-column {
    display: flex;
    flex-direction: column;
}

.custom-flex-center{
    justify-content:center;
}



/*customSelect*/


.selectCustom {
    width: 100%;
}

.selectCustom-options {
    height: auto;
    max-height: 500px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05), 0px 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    /* identical to box height, or 143% */
    transition: opacity .4s linear, max-height .6s ease-in-out;
    color: #444444;
}
.selectCustom-option {
    flex-wrap: wrap;
    height: 50px;
    padding-left: 15px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
}
    .selectCustom-option:hover {
        font-weight: 700;
    }
.isActive {
    display: block !important;
}

.hr-option {
    margin: 0;
    bottom: -12px;
    position: relative;
    width: 95%;
    height:1px;
    color:#ECECF0;
}

.gray-mask {
    display: none;
    position: fixed;
    z-index: 4;
    background-color: gray;
    opacity: 0.4;
    width: 100vw;
    height: 100vh;
    flex-wrap:wrap;
    justify-content:center;
    align-content:center;
}
.active-flex{
    display:flex !important;
}
.hidden {
    max-height: 0px !important;
    opacity: 0 !important;
}
.modal-window-refresh {
    cursor:pointer;
    position: fixed;
    background: #FFFFFF;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.05), 0px 5px 25px rgba(0, 0, 0, 0.07);
    border-radius: 15px;
    /* min-height: 310px; */
    /* padding: 24px; */
    width: 341px;
    /* margin-right: 20px; */
    /* margin-bottom: 20px; */
    top: 15px;
    right: 20px;
    z-index: 5;
    height: 68px;
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 600;
    padding:10px;
    font-size: 16px;
    line-height: 20px;
    
    /* identical to box height, or 136% */
}


.yes-message-button,
.yes-button {
    width: 100px;
    height: 50px;
    border-radius: 50px;
    border-color: transparent;
    background: #0E8C1A;
    color: white;
    cursor: pointer;
}
.no-button {
    width: 100px;
    height: 50px;
    border-radius: 50px;
    border-color: transparent;
    background: #fff;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.05), 0px 5px 25px rgba(0, 0, 0, 0.07);
    color: black;
    cursor: pointer;
}

.shortify {
    width: 330px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.loader-wrapper{
    width: 80px;
    height: 80px;
    position: absolute;
    right: 32px;
    display: none;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #0E8C1A;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

.submit-loader-wrapper{
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    justify-content: flex-end;
    padding-right: 30px;
    position: fixed;
    bottom: 50px;
    background: rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
}

.input-error{
    animation: error 2s linear infinite;
}

@keyframes error {
    0%{
        background: #ffe0d6;
        border: 1px solid #FF3D00;
    }

    50%{
        background: #ffe0d6;
        border: 1px solid transparent;
    }

    100%{
        background: #ffe0d6;
        border: 1px solid #FF3D00;
    }
}

.error-input-text{
    margin-top: 5px;
    color: red;
    display: none;
}

/* FILE ELEMENT */
.file-element{
    display: flex; 
    flex-wrap: wrap; 
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    margin: 10px 0px;
    border-bottom: 1px solid #444444;
}

.file-element span{
    cursor:pointer; 
    font-family: 'Inter Tight'; 
    font-style: normal; 
    font-weight: 500; 
    font-size: 14px; 
    line-height: 20px; 
    letter-spacing: 0.02em; 
    color: #0E8C1A;
}

.file-element--loading .file-element__delete{
    display: none;
}

.file-element--loading .file-element__loader{
    display: flex;
}

.file-element--download{
    border-bottom: 1px solid #0E8C1A;
}

.file-list__title{
    margin-top:40px; 
    font-family: 'Inter Tight'; 
    font-style: normal; 
    font-weight: 700; 
    font-size: 15px; 
    line-height: 18px; 
    color: #333333;
}

.file-element__loader {
    width: 18px;
    height: 18px;
    border: 3px solid #FFF;
    border-bottom-color: #0E8C1A;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    display: none;
}

.file-element__actions{
    display: flex;
}

.file-element__delete{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    cursor: pointer;
    background: none;
    opacity: .8;
    transition: .2s;
}

.file-element__delete img{
    width: 18px;
    height: 18px;
    margin: 0;
}

.file-element__delete:hover{
    transform: translateY(-2px);
    opacity: 1;
}

.file-element__delete:active{
    transform: translateY(2px);
    opacity: 1;
}

.yes-button-post {
    width: 130px;
    height: 50px;
    border-radius: 50px;
    border-color: transparent;
    background: #0E8C1A;
    color: white;
    cursor: pointer;
}

.no-button-post {
    width: 100px;
    height: 50px;
    border-radius: 50px;
    border-color: transparent;
    background: #fff;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.05), 0px 5px 25px rgba(0, 0, 0, 0.07);
    color: black;
    cursor: pointer;
}