body {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: auto;
    position: relative;
    line-height: 1.42857143;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

h1 {
    font-weight: 400
}

header {
    height: 50px;
    width: 100%;
    background: #fff;
    box-shadow: 0 0 3px rgb(0 0 0 / 25%);
    z-index: 2;
    position: absolute;
}

header + .main_block {
    padding-top: 50px;
}

div.header_content {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    height: 50px;
}

div.main_block {
    position: relative;
    z-index: 1;
    will-change: transform;
    overflow-y: hidden;
    min-height: 100vh;
    box-sizing: border-box;
}

div.content {
    max-width: 1200px;
    padding: 10px 15px 0 15px;
    margin: 0 auto;
    position: relative;
    /* width : 100%; */

}

div.entry_content {
    min-height: 100vh;
    overflow: hidden;
    margin: 0 auto -50px auto;
    box-sizing: border-box;
    padding-bottom: 50px;
}

@media (max-width: 1200px) {
    div.content {
        max-width: 970px;

    }

    /* div.entry_content {
        width: 80%;
    } */
}

@media (max-width: 992px) {

    div.content,
    div.header_content {
        max-width: 750px;

    }

    /* div.entry_content {
        width: 90%;

    } */
}

@media (max-width: 767px) {

    div.content,
    div.header_content {
        max-width: none;

    }

    /* div.entry_content {
        width: 100%;
    } */
}


.authorize {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.authorize_block {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    padding: 25px 0 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgb(0 0 0 / 8%);
}

.authorize-block_body {
    max-width: 370px;
    width: 85%;
    padding: 0 10px;
}

.form__field {
    margin-top: 10px;
}

.form__field input {
    box-sizing: border-box;
    height: 40px;
    width: 100%;
    background-color: #f8f6f9;
    border-radius: 3px;
    box-shadow: inset 0 0 15px rgb(0 0 0 / 8%);
    padding: 5px 60px 5px 10px;
    text-overflow: ellipsis;
    font-size: 14px;
    resize: none;
    color: #444;
    letter-spacing: 1px;
}

.auth-btn button,
.auth-btn input {
    box-sizing: border-box;
    width: 100%;
    border-radius: 3px;
    box-shadow: inset 0 0 15px rgb(0 0 0 / 8%);
}


div.uploader {
    padding-top: 30px;
    padding-bottom: 15px;
}


div.row {
    display: block;
    margin-bottom: 10px;
}

select {
    font-size: 16px !important;
    border: 1px solid #ccc;
    border-radius: 2px;
    height: 34px;
    outline: none;
    background: #e8e8e8;
}

button,
.button {
    color: #000;
    margin-top: 10px;
    max-width: 300px;
    background: #e8e8e8;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none !important;
}

a {
    color: #000 !important;
    text-decoration: none !important;
}

.mainmenu {
    font-size: 14px;
    display: block;
    float: left;
    margin-left: 0;
    overflow: hidden;
}

.mainmenu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 50px;
    display: block;
}

.mainmenu li {
    height: 50px;
    display: block;
    float: left;
    box-sizing: border-box;
}

.mainmenu a {
    padding: 15px 14px;
    display: block;
}

.mainmenu a:hover,
.user_a:hover {
    color: #800000;
    /* Цвет ссылки при наведении на нее курсора мыши */
    text-decoration: underline;
    /* Добавляем подчеркивание */
}

.img img {
    max-width: 100%;
    height: auto;
    max-width: 100%;
    margin: 25px 0 25px;
}

.banner {
    position: relative;
}

i {
    font-size: 60%;
    display: block;
}

.upload_button {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 160px;
    padding: 7px;
    background: #e8e8e8;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.upload_button:hover {
    background: #989898;
}

.qqfile {
    position: absolute;
    right: 0px;
    top: 0px;
    font-family: Arial;
    font-size: 118px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    opacity: 0;
    height: 100%;
    width: 174px;
}

img.thumb {
    height: 200px;
    width: 200px;
    border: 1px solid #000;
    object-fit: contain;
    border-radius: 4px;
    padding: 4px;
    margin: 10px 5px 0 0;

}

.file-delete {
    width: fit-content;
    font-size: large;
    margin: 0 auto;
    cursor: pointer;
    padding-right: 5px;
}

.file-block {
    display: inline-flex;
    flex-grow: 1;
    flex-direction: column-reverse;
}

.img_done {
    max-height: 300px;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 25px 0 25px;
}

.qqfile_none {
    display: none
}

.banner {
    max-width: 400px;
}

.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip button .tooltiptext {
    visibility: hidden;
    max-width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 40%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip button .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.custom-tooltip:hover button .tooltiptext {
    visibility: visible;
    opacity: 1;
}


.table {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    border: none;
    margin-bottom: 20px;
}

.table thead th {
    font-weight: bold;
    text-align: left;
    border: none;
    padding: 10px 15px;
    background: #d8d8d8;
    font-size: 14px;
}

.table thead tr th:first-child {
    border-radius: 8px 0 0 8px;
}

.table thead tr th:last-child {
    border-radius: 0 8px 8px 0;
}

.table tbody td {
    text-align: left;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    vertical-align: middle;
}

.table tbody tr:nth-child(even) {
    background: #f3f3f3;
}

.table tbody tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.table tbody tr td:last-child {
    border-radius: 0 8px 8px 0;
}

.table-wrap {
    overflow-x: auto;
}

.boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.box {
    float: left;
    max-width: 330px;

    margin: 15px 0 0 15px;
    padding: 15px 15px 7px 15px;
    position: relative;
}

.invalid {
    border: 2px solid red;
}

.valid {
    border: 2px solid green;
}


.in_block {
    opacity: 0;
    width: 100%;
}


.row select {
    max-width: 200px;
}

/*общие настройки сетки*/
.preview .row {
    max-height: 300px;
    overflow: scroll;
}

.files-names {
    display: flex;
    flex-direction: row;

}


.file-block {
    display: inline-flex;
    flex-grow: 0 !important;
    flex-direction: column-reverse;
}

.gal-link {
    margin: auto 0;
}

.gal-link input {
    width: 250px;
}

.link {
    font-weight: bold;
}

.link:hover {
    color: #800000;
    text-decoration: underline;
}


.img_logo {
    max-width: 15%;
    padding: 2px;
}

.img_logo img {
    width: 100%;
}

.item-title {
    text-decoration: none;
    color: #141414;
    font-size: 12px;
}

.shop-img {
    padding-bottom: 0 !important;
    width: 100%;
    max-width: 208.4px;
    max-height: 193.05px;

}

.item_name {
    margin-bottom: 0 !important;
}

.back_img {
    border-radius: .25rem;
}

.table_img {
    max-width: 140px;
    max-height: 140px;
}