/* VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV */
/* =============== ЛОКАЛЬНАЯ СТИЛИЗАЦИЯ =============== */
/* VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV */

.profile_section_cl {
    width: 80%;
    min-height: calc(96vh - 35px);
    height: calc(96vh - 35px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile_section_cl>span {
    font-size: 5vh;
    /* font-weight: bold; */
    color: black;
    font-family: 'Impact_load_font';
    padding-bottom: 5vh;
}

.profile_section_cl>section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
}

/* ========== ДАННЫЕ ПОЛЬЗОВАТЕЛЯ ========== */

.profile_section_cl>section>section:nth-child(1) {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.profile_section_cl>section>section:nth-child(1)>span {
    font-size: 4.5vh;
    color: #BFBFBF;
    font-family: 'Impact_load_font';
    transition: 300ms all;
}

.profile_section_cl>section>section:nth-child(1)>span:hover {
    cursor: pointer;
    color: black;
    transform: translateX(2.5vw);
}

.profile_section_cl>section>section:nth-child(2) {
    width: 70%;
    height: 100%;
    overflow-y: scroll;
}

.profile_section_cl>section>section:nth-child(2)>section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 20vh;
}

.row_date_one_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.row_date_one_cl>span {
    font-size: 3vh;
    font-weight: bold;
    color: black;
    font-family: 'Impact_load_font';
}

.row_date_two_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
}  

.row_date_two_cl>input {
    flex-grow: 1;
    width: calc(100% - 20px);
    padding: 10px;
    border: none;
    border: 2px solid #282828;
    font-size: 3vh;
    color: black;
    font-family: 'DM_Serif_Display';
}

.row_date_two_cl>input::placeholder {
    color: #BFBFBF;
}

.row_date_three_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.row_date_three_cl>input {
    width: calc(100% - 20px);
    padding: 10px;
    border: none;
    border: 2px solid #282828;
    font-size: 3vh;
    color: black;
    font-family: 'DM_Serif_Display';
}

.row_date_three_cl>input::placeholder {
    color: #BFBFBF;
}

.row_date_descr_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.row_date_descr_cl>span {
    font-size: 1.75vh;
    font-family: 'Inter_load_font';
    color: #BFBFBF;
}

.row_date_button_cl {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    margin-bottom: 2.5vh;
}

.row_date_button_cl:hover {
    cursor: pointer;
}

.row_date_button_cl>span {
    padding: 10px;
    font-size: 3vh;
    font-weight: bold;
    color: white;
    font-family: 'Inter_load_font';
}

.log_out_section_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 2.5vh;
    margin-bottom: 2.5vh;
}

.log_out_section_cl>div {
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    margin-bottom: 2.5vh;
}

.log_out_section_cl>div:hover {
    cursor: pointer;
}

.log_out_section_cl>div>span {
    padding: 10px;
    font-size: 3vh;
    font-weight: bold;
    color: white;
    font-family: 'Inter_load_font';
}

#user_data_section_id {
    display: flex;
    opacity: 1;
    transition: 500ms all;
}

#user_history_section_id {
    display: none;
    opacity: 1;
    transition: 500ms all;
}

/* ========== ИСТОРИЯ ПОЛЬЗОВАТЕЛЯ ========== */

/* Если нету истории */

#there_no_history_id {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

#there_no_history_id>span {
    font-size: 2.5vh;
    font-weight: bold;
    color: #282828;
    font-family: 'Inter_load_font';
}

#there_no_history_id>div {
    padding-bottom: 2.5px;
    border-bottom: 2px solid #28282846;
}

#there_no_history_id>div>span {
    font-size: 2.5vh;
    font-weight: bold;
    color: #28282846;
    font-family: 'Inter_load_font';
}


/* Истории закупок */

#purchase_history_id {
    width: 100%;
}

#purchase_history_id>table {
    width: 100%;
    border-collapse: collapse;
}

#purchase_history_id>table>tbody {
    width: 100%;
}

.table_row_cl {
    width: 100%;
}

.table_top_cl {
    border-top: 2px solid #28282846;
}

.table_row_cl>th {
    font-size: 2vh;
    font-weight: bold;
    color: #282828;
    font-family: 'Inter_load_font';
    padding-bottom: 10px;
    text-align: start;
}

.table_row_cl>td {
    font-size: 2vh;
    color: #282828;
    font-family: 'Inter_load_font';
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: start;
}

.table_row_cl>td:nth-child(1) {
    width: 30%;
}

.table_row_cl>td:nth-child(1)>img {
    width: 8vh;
    height: 8vh;
    object-fit: contain;
    object-position: 50% 50%;
    visibility: hidden;
}

.table_row_cl>td:nth-child(2) {
    width: 15%;
}

.table_row_cl>td:nth-child(3) {
    width: 15%;
}

.table_row_cl>td:nth-child(4) {
    width: 15%;
}

.table_row_cl>td:nth-child(5) {
    width: 15%;
}

.table_row_cl>td:nth-child(6) {
    width: 10%;
    text-align: end;
}

.table_row_cl>td:nth-child(6)>svg {
    width: 4.5vh;
    height: 4.5vh;
}

.table_row_cl>td:nth-child(6)>svg:hover {
    cursor: pointer;
}

.table_row_cl>td:nth-child(6)>svg>g>line {
    fill: none;
    stroke: #000;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1px;
}

.sect_row_cl {
    width: 100%;
    height: 12.5vh;
    display: none;
    flex-direction: row;
    align-items: center;
    padding-top: 10px;
    border-top: 2px solid #28282846;
}

.sect_row_cl>section:nth-child(1) {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
}

.sect_row_cl>section:nth-child(1)>img {
    width: 10vh;
    height: 10vh;
    visibility: hidden;
}

.sect_row_cl>section:nth-child(2) {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.sect_row_cl>section:nth-child(2)>span {
    font-size: 1.75vh;
    color: #282828;
    font-family: 'Inter_load_font';
    text-align: start;
}

.sect_row_cl>section:nth-child(3) {
    width: 10%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.sect_row_cl>section:nth-child(3)>svg {
    width: 4vh;
    height: 4vh;
}

.sect_row_cl>section:nth-child(3)>svg>g>line {
    fill: none;
    stroke: #000;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1px;
}

/* ========== МОДАЛЬНОЕ ОКНО ВЫХОДА ИЗ ПРОФИЛЯ ========== */

#profile_exit_window_id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.25);
    visibility: collapse;
    opacity: 0;
    z-index: 1000;
    transition: 500ms all;
}

#profile_exit_window_id>section {
    padding: 20px;
    padding-left: 60px;
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: white;
    border: 2px solid black;
}

#profile_exit_window_id>section>span {
    font-size: 2.5vh;
    color: #282828;
    font-family: 'Inter_load_font';
    text-align: start;
}

#profile_exit_window_id>section>section {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#profile_exit_window_id>section>section>div {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    border: 2px solid black;
    margin-top: 2.5vh;
    transition: 300ms all;
}

#profile_exit_window_id>section>section>div:hover {
    cursor: pointer;
}

#profile_exit_window_id>section>section>div>span {
    padding: 7.5px;
    padding-left: 22.5px;
    padding-right: 22.5px;
    font-size: 2vh;
    font-weight: bold;
    color: white;
    font-family: 'Inter_load_font';
    transition: 300ms all;
}

@media (max-width: 1000px) {

    .profile_section_cl {
        width: 95%;
        height: auto;
        align-items: start;
    }

    .profile_section_cl>span {
        font-size: 4.25vh;
        padding-bottom: 1.5vh;
    }

    .profile_section_cl>section {
        flex-direction: column;
        align-items: center;
    }

    .profile_section_cl>section>section:nth-child(1) {
        width: 100%;
        flex-direction: row;
        align-items: start;
        justify-content: start;
        margin-bottom: 2.25vh;
        gap: 20px;
    }

    .profile_section_cl>section>section:nth-child(1)>span:hover {
        transform: translateY(-2.5vh);
    }

    .profile_section_cl>section>section:nth-child(2) {
        width: 100%;
        /* height: auto; */
        overflow-y: hidden;
    }

    .row_date_two_cl>input {
        font-size: 2.75vh;
    }

    .row_date_button_cl {
        margin-bottom: 5vh;
    }

    .row_date_button_cl>span {
        padding: 7.5px;
        font-size: 2.75vh;
    }

    .log_out_section_cl>div>span {
        padding: 7.5px;
        font-size: 2.75vh;
    }

    .row_date_descr_cl>span {
        font-size: 1.5vh;
    }

}

@media (max-width: 600px) {

    .profile_section_cl {
        width: 95%;
    }

    .profile_section_cl>span {
        font-size: 3.5vh;
    }

    .profile_section_cl>span {
        font-size: 3.5vh;
    }
    
    .row_date_one_cl>span {
        font-size: 2vh;
    }

    .profile_section_cl>section>section:nth-child(1)>span {
        font-size: 2.5vh;
    }

    .profile_section_cl>section>section:nth-child(1)>span:hover {
        color: black;
        transform: translateX(0vw);
    }

    .row_date_two_cl {
        flex-direction: column;
    }

    .row_date_two_cl>input {
        /* width: calc(100% - 15px); */
        padding: 7.5px;
        font-size: 2vh;
    }

    .row_date_button_cl>span {
        font-size: 1.75vh;
    }

    .log_out_section_cl>div {
        width: 50%;
    }

    .log_out_section_cl>div>span {
        font-size: 1.75vh;
    }

    .row_date_descr_cl>span {
        font-size: 1.25vh;
    }

    #purchase_history_id>table {
        display: none;
    }

    .sect_row_cl {
        display: flex;
    }

}

/* ========== ОКНО ПЕРЕЧНЯ КУПЛЕННОГО ========== */

.win_list_purc_it_cl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    visibility: collapse;
    opacity: 0;
    transition: 500ms all;
}

.win_list_purc_it_cl>section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-left: 60px;
    padding-right: 60px;
    background-color: white;
}

.win_list_purc_it_cl>section>span {
    font-size: 3vh;
    font-weight: bold;
    color: black;
    font-family: 'Impact_load_font';
}

.win_list_purc_it_cl>section>section {
    width: 100%;
    height: 65vh;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow-y: scroll;
}

.win_list_purc_it_cl>section>section>section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.win_list_purc_it_cl>section>article {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.win_list_purc_it_cl>section>article>div {
    font-size: 2.5vh;
    font-weight: bold;
    color: white;
    font-family: 'Inter_load_font';
    padding: 7.5px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: black;
}

.win_list_purc_it_cl>section>article>div:hover {
    cursor: pointer;
}

.your_order_card_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.your_order_card_cl>img {
    width: 30%;
    height: 15vh;
    object-fit: contain;
    object-position: 50% 50%;
}

.your_order_card_cl>section {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.your_order_card_cl>section>span {
    font-size: 2vh;
    color: black;
    font-family: 'Impact_load_font';
}

.your_order_card_cl>section>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.your_order_card_cl>section>div>span {
    font-size: 1.75vh;
    color: #939393;
    font-family: 'Inter_load_font';
}

.your_order_card_cl>section>section {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.your_order_card_cl>section>section>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.your_order_card_cl>section>section>div>span {
    font-size: 1.75vh;
    color: #939393;
    font-family: 'Inter_load_font';
}

.your_order_card_cl>section>section>span {
    font-size: 2vh;
    font-style: italic;
    color: black;
    font-family: 'DM_Serif_Display';
    margin-right: 5px;
}

@media (max-width: 600px) {

    .win_list_purc_it_cl>section {
        width: calc(100% - 80px);
        padding-left: 20px;
        padding-right: 20px;
        margin: 20px;
    }

    .win_list_purc_it_cl>section>section {
        height: 50vh;
    }

    .win_list_purc_it_cl>section>article {
        flex-direction: column-reverse;
    }

    .win_list_purc_it_cl>section>article>div {
        width: calc(100% - 60px);
        font-size: 2vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

/* ========== ОКНО ПОКАЗА СТАТУСА ЗАКАЗА ========== */

#order_status_display_window_id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    visibility: collapse;
    opacity: 0;
    transition: 500ms all;
}

#order_status_display_window_id>section {
    padding: 20px;
    padding-left: 60px;
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: white;
}

#order_status_display_window_id>section>span {
    font-size: 3vh;
    font-weight: bold;
    color: black;
    font-family: 'Impact_load_font';
}

#order_status_display_window_id>section>section {
    font-size: 3vh;
    color: #282828;
    font-family: 'Inter_load_font';
    text-align: center;
    margin-top: 2.5vh;
    margin-bottom: 2.5vh;
}

#order_status_display_window_id>section>div {
    font-size: 2.5vh;
    font-weight: bold;
    color: white;
    font-family: 'Inter_load_font';
    padding: 7.5px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: black;
}

#order_status_display_window_id>section>div:hover {
    cursor: pointer;
}

@media (max-width: 600px) {
    #order_status_display_window_id>section {
        width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
        margin: 20px;
    }
}