/*--------------------------------------------------------------
# Custom shop CSS file
--------------------------------------------------------------*/

/*
* Quick order form
*/

#custom_quick_order input:read-only:not([name=custom_quick_order_submit]) {
	border:0 !important;
	background-color: transparent;
	color:var(--dark-color);
}

#custom_quick_order strong input:read-only {
	font-weight:700;
}

#custom_quick_order select:disabled {
	border:0 !important;
	background-color: transparent;
	padding: 0;
	width: 100%;
	moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

#custom_quick_order input[name^=product_percentage] {
	max-width: 60px;
}

#custom_quick_order .custom_quick_order_add, #custom_quick_order .custom_quick_order_edit, #custom_quick_order .custom_quick_order_remove, #custom_quick_order .custom_quick_order_add_row, #custom_quick_order input[name=custom_quick_order_submit] {
	cursor:pointer;
}

#custom_quick_order .custom_quick_order_remove { 
	display: inline-block;
}

#custom_quick_order .custom_quick_order_add, #custom_quick_order .custom_quick_order_edit {
	display: inline-block;
    margin-bottom: 15px;
}	

#custom_quick_order .custom_quick_order_add_row {
	display: inline-block;
	margin: 15px 0 30px;
}

#custom_quick_order tr.validated {
	background-color: #F7f7f7;
}

/* Table */

@media screen and (min-width: 981px) {
	
	.custom_quick_order_table thead th:first-of-type {
		width:300px;
	}
}


/* Responsive table */

table.responsive {
  border: 1px solid #707070;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

table.responsive tr {
  /*background-color: #f8f8f8;*/
  border: 1px solid #707070;
  padding: .35em;
}

table.responsive.custom_quick_order_choices, table.responsive.custom_quick_order_choices  tr {
	border: 0;
	border-radius:0;
}

table.responsive.custom_quick_order_table {
	border-radius: 16px;
    border-style: hidden;
    box-shadow: 0 0 0 1px #707070;
    margin-bottom: 50px;
}

table.responsive th, table.responsive td {
 padding: 9px 24px !important;
}

table.responsive th {
  font-size: .85em;
  text-transform: uppercase;
}
	
@media screen and (max-width: 980px) {
	
	table.responsive tr:first-of-type {
		border-top:0;
	}
	
	table.responsive tr:last-of-type {
		border-bottom:0;
	}
	
	table.responsive th, table.responsive td {
 		padding: 9px 0 !important;
	}
	
	table.responsive.custom_quick_order_table tbody tr:first-of-type, table.responsive.custom_quick_order_table tbody tr.totals td:last-of-type, table.responsive.custom_quick_order_table tbody tr td.product_actions {
		border: 0;
	}
	
}

/* Totals */

table.responsive tr.totals td:not(.product_total) span {
	display:none;
}

table.responsive tr.totals td span.total {
	text-transform: uppercase;
	font-size: 1.1em;
}


@media screen and (max-width: 980px) {
  table.responsive {
    border: 0;
  }
  
  table.responsive thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table.responsive tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
	border-left: 0;
    border-right: 0;
  }
  
  table.responsive td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    /*text-align: right;*/
	min-height: 60px;
  }
	
	table.responsive td input, table.responsive td select {
		/*text-align: right;*/
	}
	
	table.responsive td input.margin-left, table.responsive td select.margin-left {
		margin-left: 15px
	}
	
	table.responsive td div.asl_m .proinput input.orig {
		text-align: left;
	}
  
  table.responsive td:not(.product_total)::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
	clear: both;
  }
  
  /*table.responsive tr td:last-of-type {
    border-bottom: 0;
  }*/
	
	/* Totals */
	table.responsive tr.totals td:not([class]) {
		display:none;
	}
	
	table.responsive tr.totals td span:not(.total) {
		display:inline-block;
		margin-left:5px;
	}
}

#custom_quick_order textarea {
	width: 100%;
}

#custom_quick_order h3 {
	font-size:22px;
	text-transform: uppercase;
	text-align: center;
}

/*
* Quick view
*/

/* Search form */

#custom_quick_order div.asl_w {
	box-shadow: none;
}

#custom_quick_order div.asl_w .probox {
	height: auto;
}

#custom_quick_order div.asl_w .probox .proinput, #custom_quick_order div.asl_w .probox .proinput input.orig::placeholder {
	font-family: inherit !important;
}

#custom_quick_order div.asl_w .probox .proinput input.orig {
	height: auto;
	text-shadow: none;
	padding-right: 20px !important;
	font-family: inherit !important;
}

/* Results list */

#custom_quick_order div.asl_w .probox .promagnifier {
	cursor: default;
	position: relative;
    top: 10px;
    left: -15px;
	border: 0;
    box-shadow: none;
}

div.asl_r .results .item .asl_content .asl_desc {
	display: none;
}

div.asl_r .results .item .asl_content h3 {
	font-family: inherit !important;
}

div.asl_r .results .item .asl_content h3 a {
	color:var(--orange-color) !important;
	font-family: inherit !important;
}

#custom_quick_order div.asl_w_container + input[name^=product_main], #custom_quick_order .custom_quick_order_table input[name^=product_main] {
	font-size: 16px;
    font-weight: 700;
}

/* Popup */

#woosq-popup div.product-attribute {
	padding-bottom: .5em;
}

#woosq-popup div.product-attribute:first-of-type, #woosq-popup div.product-description {
	padding-top: .5em;
}

#woosq-popup div.product-description > ul {
	padding-top: .5em;
	list-style: disc;
	list-style-position: inside;
}

#woosq-popup div.product-description >strong {
	display: block;
	padding-top: .5em;
	padding-bottom: .5em;
	font-size: large;
}
