input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

input[type=number]{
    -moz-appearance: textfield;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.noscroll{
    overflow: hidden;
}

.dark-overlay{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.7);
    visibility: hidden;
    opacity: 0;
    z-index: 999;
    transition: visibility .2s, opacity .2s;
}

.dark-overlay.show{
    visibility: visible;
    opacity: 1;
}

.btn.active{
    cursor: default;
}

.btn.btn-secondary.disabled{
    opacity: .5;
}

.form-check-input[type=checkbox]{
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    cursor: pointer;
}

.form-check-input[type=checkbox] + label{
    cursor: pointer;
}

.w-75p{
    width: 75px !important;
}

.h-200p{
    height: 200px !important;
}

.h-250p{
    height: 250px !important;
}

.h-300p{
    height: 300px !important;
}

.h-390p{
    height: 390px !important;
}

.h-435p{
    height: 435px !important;
}

.h-450p{
    height: 450px !important;
}

.h-548p{
    height: 548px !important;
}

.fs-15p{
    font-size: 15px !important;
}

.overflow-y-auto{
    overflow-y: auto !important;
}

.border{
    border-radius: .25rem !important;
    border: 1px solid #ced4da !important;
}

.ui-accordion .ui-accordion-content{
    max-height: 400px;
}

/* NAVBAR */

.navbar .navbar-nav li.active a{
    color: rgba(0,0,0,.7);
}

.dropdown-item.navbar-text{
    color: #212529 !important;
}

.dropdown-item.navbar-text:hover,
.dropdown-item.navbar-text:active,
.dropdown-item.navbar-text:focus{
    background-color: transparent !important;
}

.dropdown-menu{
    z-index: 99999;
}

/* ELEMENTI */

.custom-table-head{
    background: #6c757d;
}

.custom-table-row{
    display: flex;
    align-items: center;
}

.custom-table-cell{
    padding: 10px 15px;
}

.custom-table-cell .btn{
    font-size: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-table-cell .btn.btn-warning{
    color: #fff;
}

.custom-table-body > .custom-table-row:nth-child(even){
    background: #f8f9fa;
}

.custom-table-mobile-title{
    text-transform: uppercase;
    font-size: 15px;
    margin: 0 0 5px 0;
    display: none;
}

.custom-table-head-mobile{
    background: #6c757d;
    display: none;
}

.custom-table-head .custom-table-cell,
.custom-table-head-mobile .custom-table-cell{
    color: #fff;
    font-weight: 600;
}

.custom-table-pagination{
    margin: 15px 0 0 0;
    display: flex;
    align-items: center;
}

.custom-table-pagination + select{
    margin: 15px 0 0 0;
}

.custom-table-pagination > *{
    margin-bottom: 10px;
}

.custom-table-pagination > *:not(:first-child){
    margin-left: 10px;
}

.ui-accordion-header-icon{
    background-image: none !important;
    height: auto;
    width: auto;
    display: inline-block;
    vertical-align: unset;
    margin-top: 0; 
    position: relative; 
    text-indent: unset; 
    overflow: unset;
    margin-right: 10px;
}

.cart-container{
    position: fixed;
    top: 0;
    right: -450px;
    background: #fff;
    width: 450px;
    height: 100%;
    overflow-y: auto;
    z-index: 9999;
    transition: right .3s;
}

.cart-container.show{
    right: 0;
}

.cart-container > button{
    position: fixed;
    right: 0;
    outline: none !important;
    font-size: 24px;
    top: 120px;
    padding: 11px 15px 11px 5px;
    border-radius: 25% 0 0 25%;
    box-shadow: none !important;
    transition: right .3s, top.3s;
}

.cart-container.show > button{
    right: 450px;
}

.cart-container:not(.show) > button > i:nth-child(2){
    display: none;
}

.cart-container.show > button > i:first-child{
    display: none;
}

.cart-products{
    max-height: calc(100vh - 174px);
    overflow-y: auto;
    border-bottom: 1px solid #333;
}

.cart-counter{
    position: absolute;
    z-index: 999999;
    right: 0;
    top: 0;
    background: #198754;
    border-radius: 50%;
    min-width: 25px;
    min-height: 25px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

input.error,
textarea.error{
    background: rgba(255,0,0,.3);
}

.fake-input{
    background: #fff;
    width: 100%;
    border: 1px solid #ced4da;
    padding: 6px 12px;
    border-radius: .25rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.psw-input{
    border-top: 1px solid #ced4da;
    border-right: none;
    border-bottom: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
    border-radius: .25rem 0 0 .25rem;
}

.psw-show{
    background: none;
    border-top: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    border-left: none;
    padding: 6px 6px;
    border-radius: 0 .25rem .25rem 0;
}

.psw-show:not(.show) > i:last-child{
    display: none;
}

.psw-show.show > i:first-child{
    display: none;
}

.form-check{
    width: 25px;
    min-width: 25px;
    height: 25px;
    min-height: 25px;
    cursor: pointer;
}

.w-220px{
    width: 220px;
}

.w-350px{
    width: 350px;
}

/* MEDIA QUERY */

@media screen and (max-width: 767px){
    .custom-table-head{
        display: none;
    }
    
    .custom-table-row{
        display: block;
    }
    
    .custom-table-cell{
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .custom-table-row > .custom-table-cell:not(:last-child){
        padding: 10px 15px 5px;
    }
    
    .custom-table-mobile-title{
        display: block;
    }
    
    .custom-table-head-mobile{
        display: block;
    }
    
    .custom-table-cell .btn{
        display: inline-block;
    }
}

@media screen and (max-width: 499px){
    .cart-container{
        width: 100vw;
        right: -100vw;
    }
    
    .cart-container > button{
        right: 0 !important;
        font-size: 20px;
        padding: 11px 15px 11px 8px;
    }
    
    .cart-container.show > button{
        top: 0;
    }
}

@media screen and (max-width: 419px){
    .w-350px{
        width: calc(100vw - 56px);
    }
}

@media screen and (max-width: 369px){
    .custom-table-pagination{
        display: block;
    }
}

@media screen and (max-width: 279px){
    .w-220px{
        width: calc(100vw - 56px);
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px){
    .custom-table-body .custom-table-row > .custom-table-cell:last-child{
        padding: 10px 9px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px){
    .custom-table-cell .btn{
        width: 30px;
        height: 30px;
    }
}

@media screen and (min-width: 576px){
    .w-sm-50{
        width: 50% !important;
    }
}

@media screen and (min-width: 768px){
    .w-md-25{
        width: 25% !important;
    }
    
    .w-md-33{
        width: 33.3333333333% !important;
    }
}

@media screen and (min-width: 992px){
    .w-lg-25{
        width: 25% !important;
    }
    
    .w-lg-50{
        width: 50% !important;
    }
}
