.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #dee2e6;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #dee2e6;
}

.select2 {
    max-width: 100%;
    width: 100%;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.select2-container--open {
    z-index: 9999;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.dataTables_length label select {
    width: 65px!important;
}

div.dt-button-collection {
    padding: 0;
}

.buttons-columnVisibility {
    display: block;
}

.buttons-columnVisibility.active {
    background-color: rgba(128, 128, 128, 0.1);
    font-weight: bolder;
}
.sidebar-dark-primary .nav-sidebar > li.nav-item.menu-open > .nav-treeview{
    background:#bbbbbb;
}
.sidebar-dark-primary .nav-sidebar > li.nav-item.menu-open > .nav-treeview .nav-link {
    color: #343a40;
}
.tab-content > .row.active{
    display:flex;
}
body.loggedin #top-nav .navbar-toggler{
    border-color: #e53935;
}
.prod-btn:hover{
    box-shadow: 0 0 3px #249DD6;
    background: #ffffff;
    color: #e53935;
    border-color: #249DD6;
    font-weight:bold;
}

.paging_link:hover{
    background: #FFF;
    color: #249DD6;
}
.paging_link.active:hover{
    background: #FFF;
    color: #e53935;
}

#cart_container{
    position: fixed;
    height: 2em;
    width: 80px;
    bottom: 0;
    right: 0;
    border: none;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: 0 -4px 20px rgba(229, 57, 53, 0.3);
    z-index: 9999999;
    transition: all 0.3s ease;
}

#cart_container:hover{
    transform: translateY(-2px);
    box-shadow: 0 -6px 25px rgba(229, 57, 53, 0.4);
}

#cart_container.open{
    height: 95%;
    width: 270px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

#cart_contents{
    overflow-y: auto;
    max-height: 95%;
}

#cart_container.open #cart_contents, #cart_container.open #cart_title{
    display: block;
    padding: 1em;
    padding-bottom: 0em;
    overflow-x: hidden;
}

#checkout_button{
    position: absolute;
    bottom: 3.5em;
    width: 100%;
    padding: 1em;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
    cursor: pointer;
    display: none;
    border: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

#checkout_button:hover{
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

#cart_container.open #checkout_button{
    display: block;
}

#cart_button{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3.5em;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
    padding: 0;
    cursor: pointer;
    border: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#cart_button:hover{
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

#cart_button .fa-shopping-basket{
    font-size: 1.5em;
    margin: 0;
}

#cart_button .hide_cart{
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1em;
}

#cart_button .fa-chevron-circle-down{
    font-size: 1.2em;
    margin-left: 0.5em;
}

#cart_container.open #cart_button{
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-bottom: none;
}
.cart_row {
    font-size: 0.9em;
    border-bottom: 1px solid #f0f0f0;
    padding: 1em 0;
    margin-bottom: 0.8em;
    transition: all 0.2s ease;
    position: relative;
}

.cart_row:hover{
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1em 0.5em;
    margin-left: -0.5em;
    margin-right: -0.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart_row:last-child{
    margin-bottom: 10em;
}

.cart_row .cart_qty{
    width: 4em;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.4em;
    text-align: center;
    font-size: 0.9em;
    transition: border-color 0.2s ease;
}

.cart_row .cart_qty:focus{
    border-color: #e53935;
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
    outline: none;
}

.cart_row strong{
    color: #495057;
    font-weight: 600;
    line-height: 1.3;
}

.cart_row .col-6:last-child{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.85em;
}

#cart_close{
    display: none;
    float: right;
    padding: 1em;
    padding-right: 2em;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
}

#cart_close:hover{
    color: #e53935;
}

#cart_container.open #cart_close{
    display: block;
}

.remove_cart{
    float: right;
    color: #e53935;
    transition: all 0.2s ease;
    padding: 0.2em;
    border-radius: 4px;
}

.remove_cart:hover{
    background: #e53935;
    color: #fff;
    transform: scale(1.1);
}
.hide_cart{
    font-weight: bold;
}

#cart_title{
    color: #495057;
    font-weight: 600;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e9ecef;
}

#cart_count_badge{
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border: none;
    font-size: 0.8em;
    padding: 0.3em 0.6em;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.2);
}

#cart_fav_link{
    color: #e53935; 
    margin-left: 1em;
    transition: all 0.2s ease;
    padding: 0.3em;
    border-radius: 4px;
    text-decoration: none;
}

#cart_fav_link:hover{
    background: #e53935;
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
}

/* Improve other cart elements */
.other_carts{
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid #e9ecef;
}

.other_carts h5{
    color: #495057;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.other_carts a{
    color: #e53935;
    text-decoration: none;
    font-size: 0.8em;
    margin-right: 0.5em;
    transition: color 0.2s ease;
}

.other_carts a:hover{
    color: #c62828;
    text-decoration: underline;
}

.other_carts .text-danger{
    color: #dc3545 !important;
}

.other_carts .text-danger:hover{
    color: #c82333 !important;
}

/* Improve save email section */
#save_email{
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5em;
    width: 100%;
    font-size: 0.9em;
}

#save_email:focus{
    border-color: #e53935;
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
    outline: none;
}

#save_email_btn{
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

#save_email_btn:hover{
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-1px);
}

/* Improve alert styling */
#cart_contents .alert{
    border-radius: 6px;
    border: none;
    font-size: 0.9em;
    margin-bottom: 1em;
}

#cart_contents .alert-warning{
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Improve cart row links */
.cart_row a{
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart_row a:hover{
    color: #e53935;
    text-decoration: underline;
}

#cart_button.alt .fa-chevron-circle-down:before{
    content: "\f078";
}

@media (min-width: 1000px) {
    h2.home-intro-title{
        font-size:1.5em;
    }
}
@media (max-width: 700px) {

    #cart_container.open{
        width: 100%;
        border-radius: 0;
    }
    
    #cart_container{
        border-radius: 8px 8px 0 0;
    }
    
    .cart_row .remove_cart{
        font-size: 1.5em;
        margin-top: -0.5em;
    }
    
    #checkout_button, #cart_button{
        text-align: center;
    }
    
    #cart_button{
        border-radius: 8px 8px 0 0;
    }
    
    #cart_container.open #cart_button{
        border-radius: 0;
    }
}

