#order-selector {
    display: flex;
    gap: 10px;
    background-color: #f7f7f7;
    padding: .5rem;
    border: 1px solid #ddd;
}

#order-selector button {
    border-radius: 10px;
}

#order-selector button:disabled {
  cursor: no-drop;
}

#order-selector button {
    padding: .5rem;
    height: auto;
    text-align: center;
    white-space: normal;
    color: #7a7a7a;
    background-color: white;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border: 1px solid #7a7a7a;
    border-radius: 10px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    text-transform: initial;
    font-size: 0.9rem;
    vertical-align: middle;
    font-weight: 500;
    font-family: 'Helvetica', sans-serif !important;
    letter-spacing: 1px;
}

#order-selector button:hover {
    color: white;
    background-color: #e6e6e6;
}

#fast-order-table {
	width: 100%;
	margin-bottom: 0rem;
}

#fast-order-table thead th {
	color: #3D9266;;
    background-color: #f7f7f7;
    padding: 10px;
    font-size: 1rem;
}

#fast-order-table thead .head-reference {
	width: 20%;
}

#fast-order-table thead .head-image {
	width: 10%;
}

#fast-order-table thead .head-name {
    width: 30%;
}

#fast-order-table thead .head-unit_price {
    width: 12%;
}

#fast-order-table thead .head-units {
    width: 10%;
}

#fast-order-table thead .head-price {
    width: 10%;
}

#fast-order-table thead .head-delete {
	width: 3%;
}

#fast-order-table thead th, #fast-order-table tbody td {
    border: 1px solid #ddd;

}

#fast-order-table .fast-order-row {
	height: 70px;
}

#fast-order-table .fast-order-input {
	position: relative;
    width: 100%;
    box-sizing: inherit;
}

#fast-order-table .reference, #fast-order-table .name, #fast-order-table .unit_price, #fast-order-table .price {
    padding: 0 15px;
}

#fast-order-table .image, #fast-order-table .delete {
	text-align: center;
}

#fast-order-table .image img {
	width: 70px;
}

#fast-order-table .fast-order-input-container .fast-order-autocomplete {
	width: 400px;
    background: white;
    position: absolute;
    border: 2px solid #f2f2f2;
    z-index: 999;
    overflow-y: scroll;
}

#fast-order-table .fast-order-input-container .product-row {
	margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    position: relative;
}

#fast-order-table .fast-order-input-container .product-row .product-info-container {
    font-size: 0.9rem;
}

.product-row .product-info-container .available i, .product-row .product-info-container .available .stock-msg {
    color: green;
}

.product-row .product-info-container .unavailable i, .product-row .product-info-container .unavailable .stock-msg {
    color: red;
}

.product-row .product-info-container .stock-msg {
    display: inline;
}

#fast-order-table .fast-order-input-container .no-stock {
    cursor: no-drop;
    opacity: 0.5;
}

#fast-order-table .qty .product_qty {
	display: flex;
    justify-content: center;
    align-items: center;
}

#fast-order-table .qty .product_qty .product_qty-units {
	border: 1px solid grey;
	cursor: pointer;
}

#fast-order-table .qty .product_qty .product_qty-text input {
	width: 45px;
	height: 32px;
	text-align: center;
    border: 1px grey;
    border-style: solid none;
}

#fast-order-table .qty .product_qty .icon-minus, #fast-order-table .qty .product_qty .icon-plus {
	margin: 5px;
    vertical-align: middle;
    display: inline-block;
}

#fast-order-table td.delete .empty {
    opacity: .5;
    cursor: default;
}

#fast-order-table td.delete i {
    cursor: pointer;
    padding: 10px 0px;
    font-size: 1.25rem;
}

.alter-table .add-line, .alter-table .delete-list {
	display: inline;
	border: solid 1px #7a7a7a;
    background-color: #fff;
    color: #7a7a7a;
    border-radius: 10px;
    font-style: normal;
    font-stretch: normal;
    line-height: .89;
    letter-spacing: normal;
    cursor: pointer;
    padding: .5rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Helvetica', sans-serif;
}

.alter-table .add-line:hover, .alter-table .delete-list:hover {
    background-color: #e6e6e6;
}

#fast-order-table .table-footer i {
	font-style: normal;
}

#fast-order-table tfoot .table-footer td {
	background-color: #f7f7f7;
    padding: 1.25rem 15px;
    border: 1px solid #ddd;
}	

#fast-order-table tfoot .product-total {
	text-align: center;
    font-size: 1.5rem;
    font-weight: bolder;
}

#total_price div {
	display: inline;
}

#extra-content #button-add-to-cart {
	display: flex;
    justify-content: flex-end;
    text-align: center;
}

#extra-content #add-to-cart {
    padding: 0.5rem ;
    height: auto;
    width: 100%;
    text-align: center;
    white-space: normal;
    color: white;
    background-color: #3D9266;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border: 2px solid #3D9266;
    border-radius: 10px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    text-transform: initial;
    font-size: 0.975rem;
    vertical-align: middle;
    font-weight: 600;
    text-transform: initial;
    font-family: 'Helvetica', sans-serif !important;
    letter-spacing: 1px;
}

#extra-content #add-to-cart::before {
    content: '\F174';
    font-family: bootstrap-icons;
    vertical-align: top;
    font-weight: bold;
    margin-right: .2em;
}

#extra-content #add-to-cart:hover {
    background-color: #2e7753;
    border: 2px solid #2e7753;
    color: #fff;
}

#extra-content .alter-table {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    margin-top: 20px;
    gap: 10px;
    text-align: center;
}

#extra-content .alter-table .add-line, #extra-content .alter-table .delete-list {
    width: 50%;
}

.d-none {
    display: none;
}

@media (max-width: 457px){
    #extra-content .alter-table i {
        display: block;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 459px){
    #fast-order-table .fast-order-input-container .fast-order-autocomplete {
        width: auto;
    }
}

@media (max-width: 549px){
    #order-selector {
        flex-direction: column;
    }
}

@media (min-width: 768px){
    #fast-order-table tfoot .product-total {
        text-align: right !important;
    }

    #extra-content #add-to-cart {
        width: auto;
    }

    .d-sm-table-cell {
        display: table-cell !important;
    }

    #extra-content .alter-table .add-line, #extra-content .alter-table .delete-list {
        display: none;
    }
}

#module-mu_fast_order-FastOrder #wrapper {
    padding-top: 0;
}

#module-mu_fast_order-FastOrder .card-block {
    padding: 0;
  }

#module-mu_fast_order-FastOrder #wrapper nav.breadcrumb {
    margin: 1rem 0 1rem;
} 

#module-mu_fast_order-FastOrder .d-none {
    display: table-cell !important;
} 

#module-mu_fast_order-FastOrder .mr-3 {
    margin-right: 1rem !important;
} 

#module-mu_fast_order-FastOrder .icon-trash::before {
    vertical-align: top;
    font-size: 1.1rem;
} 

@media (max-width: 767px) {
    #module-mu_fast_order-FastOrder #wrapper nav.breadcrumb {
        margin: 0 0 1rem;
    } 

    #module-mu_fast_order-FastOrder h1 {
        font-size: 1.5rem;
    }
    
    #fast-order-table thead th {
        font-size: 1rem;
    }

    #module-mu_fast_order-FastOrder .reference input {
        font-size: .9rem;
        padding: .5rem;
    }

    #fast-order-table tfoot .product-total {
        font-size: 1.25rem;
    }

    #module-mu_fast_order-FastOrder .d-none {
        display: none !important;
    } 
    
}