html { /*для привязки футера*/
    position: relative;
    min-height: 100%;
}

body {
    /*margin-bottom: 277px; !*для привязки футера*!*/
}

.close-modal {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 15px;
    right: 15px;
    background: url("../img/close_modal.svg") center center no-repeat;
    background-size: contain;
}

/* ========== Корзина ========== */
#basket {
    font-family: Cera Pro, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 20px;

    color: #331606;
}

#basket-empty {
    margin: 15px 0;
    background: rgba(108, 117, 125, 0.3);
    border-radius: 10px;
}

#basket-table-wrapper {
    /*margin-bottom: 50px;*/
    /* или*/
    margin: 15px 0;
    /*width: 100%;*/
}
#basket-table-wrapper table {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    background: #ebebeb;
    border: 1px solid #6c757d ;
    border-radius: 10px;
    border-spacing: 0;
}

#basket-table-wrapper th {
    padding: 19px 0;
}

#basket-table-wrapper thead tr {
    background: #ebebeb;
}

#basket-table-wrapper tr {
    background: #f5f5f5;
    border: 1px solid #6c757d ;
    border-radius: 10px;
}

#basket-table-wrapper tr:hover {
    background: #e0e0e0;
}

#basket-table-wrapper td {
    border: 1px solid #6c757d ;
    padding: 5px;
}

#basket-table-wrapper .document_goods_img{
    width: 32px!important;
    height: 32px!important;
    object-fit: contain;
}

#basket table, #basket thead, #basket tbody, #basket tr, #basket td {
    border-collapse: inherit;
}

#basket thead, #basket tbody {
    font-family: Cera Pro, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 20px;

    color: #331606;
}

.numeric {
    text-align:left!important;
}

.quantity-wrapper {
    border: 1px solid #6c757d;
}

.quantity::-webkit-outer-spin-button,
.quantity::-webkit-inner-spin-button {
    display: none;
}

.minus, .plus {
    width: 25px;
    height: 25px;
    padding: 0;
    border: none;
    font-size: 20px;
    font-weight: 600;
}

.quantity {
    height: 25px;
    width: 66px;
    border: none;
    border-radius: 0;
    line-height: 32px;
   /* text-align: center;*/
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.delete-item {
    border-radius: 4px;
    color: #dc3545;
    border-color: #dc3545;
}

.delete-item:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.row-spacing {
    height: 15px;
    background: #ebebeb!important;
    border: none!important;
}

.total-row-wrapper {
    font-weight: bold;
}


/* ========== footer ========== */
.footer-init {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* ======================================================================== */
/* ============================ MEDIA-запросы ============================= */
/* ======================================================================== */
@media only screen and (max-width: 800px) {
    /* Force table to not be like tables anymore */
    #basket-table-wrapper table,
    #basket-table-wrapper thead,
    #basket-table-wrapper tbody,
    #basket-table-wrapper th,
    #basket-table-wrapper td,
    #basket-table-wrapper tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    #basket-table-wrapper thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #basket-table-wrapper tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #6c757d ;
        border-radius: 10px;
    }

    #basket-table-wrapper tr td:before {
        padding-left: 5px;
    }

    #basket-table-wrapper tr td:first-child {
        border-bottom: 1px solid #6c757d ;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    #basket-table-wrapper tr td:nth-last-child(1) {
        border-bottom: 1px solid #6c757d ;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    #basket-table-wrapper td {
        /* Behave like a "row" */
        /*border: none;*/
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align:left;
    }

    #basket-table-wrapper td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 40%;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align:left;
        font-weight: bold;
    }

    /* Label the data */
    #basket-table-wrapper td:before {
        content: attr(data-title);
    }

    .total {
        display: none;
    }

    #log-in-or-register, #confirm-email {
        margin-bottom: 25px;
    }
}
