/* Gas division — product & category template styles */

.tax-grid-wrapper .summary-view {
    text-align:center;
    font-weight: bold;
}
.tax-grid-wrapper .tax-grid-logo {
    display: block;
    padding: 10px 10px 15px;
}
.tax-grid-wrapper .tax-grid-logo img {
    display: block;
    aspect-ratio:20/6;
    object-fit: contain;
}
.tax-grid-wrapper .tax-grid-name {
    display: block;
}
.tax-gas-product-brand #main,
.tax-gas-product-equipment-type #main,
.tax-gas-product-category #main {
    max-width: 100%;
    padding: 0;
}
.tax-gas-product-brand #content,
.tax-gas-product-equipment-type #content,
.tax-gas-product-category #content{
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40);
}
.gas-product-cat-header.wp-block-cover {
    position: relative;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    background-position: 50%;
    box-sizing: border-box;
    display: flex;
    min-height: 200px;
    overflow: clip;
    padding-top: var(--wp--preset--spacing--30);
  padding-right: var(--wp--preset--spacing--50);
  padding-bottom: var(--wp--preset--spacing--30);
  padding-left: var(--wp--preset--spacing--50);
}
.gas-product-cat-header.wp-block-cover .wp-block-cover__image-background {
  border: none;
  bottom: 0;
  box-shadow: none;
  height: 100%;
  left: 0;
  margin: 0;
  max-height: none;
  max-width: none;
  -o-object-fit: cover;
  object-fit: cover;
  outline: none;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.gas-product-cat-header.wp-block-cover .wp-block-cover__background {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
    opacity: 0.8;
}
.gas-product-cat-header.wp-block-cover .wp-block-cover__inner-container {
    max-width: 1300px;
   margin: 0 auto;
    position: relative;
    width: 100%;
    color: #FFFFFF !important;
}
.gas-product-cat-header.wp-block-cover h1 {
    color: #FFFFFF !important;
    margin-bottom: 20px;
}

.product-grid .summary-view > .image,
.related-products .summary-view > .image {
    margin: 15px 15px 0;
    background-color: #FFFFFF;
}
.product-grid .summary-view > .image img,
.related-products .summary-view > .image img {
    object-fit: contain;
}

.product-filters input.search-field {
    background-color:#f2f2f2;
    width: 100%;
    box-sizing: border-box;
    border:none;
}
.product-filters input.search-submit {
    display: none;
}
.product-filter {
    margin-bottom: 20px;
}
.product-filters h3 {
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    
}
.product-filters p {
    margin-bottom: 20px;
}
.product-filter__list {
    font-size: 15px;
}
.product-filter li {
    margin-bottom: 5px;
}

@media screen and (min-width:768px) {
    .product-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap:20px;
    }
    .product-filters {
        flex-basis: 20%;
    }
    .product-grid > .grid {
        flex-basis: calc(80% - 20px);
    }
}
/*Single Product*/
ul.gas-product-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap:10px;
    list-style: none;
    margin: 0 0 20px;
}
ul.gas-product-tags li {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.gas-product-tags li a {
    background-color: var(--wp--preset--color--light-grey);
    color: var(--wp--preset--color--cem-blue);
    padding: 8px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    text-decoration: none;
    transition: background 300ms;
}
ul.gas-product-tags li a:hover {
    background-color: #A9D1E4;
}
/*Quote Table*/
table.quote-table {
    border-collapse: collapse;
	width: 100%;
    min-width: 100%;
    border-bottom: 2px solid  var(--wp--preset--color--cem-blue);
}
.quote-table th {
    background-color: var(--wp--preset--color--cem-blue);
    color: #FFF;
    text-transform: uppercase;
    padding: 8px;
    white-space: nowrap;
    font-weight: bold;
    font-size: 13px;
	z-index: 1;
}

.quote-table td {
    padding: 16px 8px;
    vertical-align: top;
    font-size: 15px;
}
.quote-table tr:nth-child(2n) td{
    background-color: #EFEFEF;
}
.quote-table tr:hover td{
    background-color: #C5EAF9;
}
.quote-table td.my-quote-col {
	padding: 8px;
}
.quote-table th.my-quote-col, 
.quote-table td.my-quote-col {
    position: sticky;
    right: 0;
    width: 130px;
	text-align: center;
   
}
.quote-table tr:nth-child(2n) td.my-quote-col,
.quote-table td.my-quote-col {
     background-color: #E3F5FD;
    padding-left: 5px;
    padding-right: 5px;
}
.quote-table tr:nth-child(2n) td.my-quote-col {
    background-color: #D5F0FC;
}
.quote-table td button.add-to-quote-btn,
.quote-table td button.delete-btn {
    background-color: var(--wp--preset--color--cem-bright-blue);
    appearance: none;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-weight: bold;
   
    text-align: center;
    border-radius: 15px;
    transition: background 300ms;
    padding: 0;
    text-transform: uppercase;
}
.quote-table td button.add-to-quote-btn {
    padding: 5px 15px;
    line-height: 14px;
}
.quote-table td button.delete-btn {
     width: 30px;
    height: 30px;
     line-height: 30px;
}
.quote-table td button:hover {
    background-color: var(--wp--preset--color--cem-blue);
    
}
@media screen and (max-width:781px) {
	.quote-table-wrapper {
		overflow-x: auto;
		position: relative;
		width: calc(100vw - 40px);
		padding-bottom: 10px;
	}
	table.quote-table {
		width: max-content;
	}
}
@media screen and (max-width:480px) {
	table.quote-table td {
		font-size: 15px;
	}
	.quote-table th.my-quote-col, .quote-table td.my-quote-col {
		width: 80px;
	}
	.quote-table td.my-quote-col {
		padding: 0 5px;
		vertical-align: middle;
		
	}
	.quote-table td button {
		padding: 9px 8px;
		border-radius: 0px;
		font-size: 12px;
		text-transform: uppercase;
	}
}
.main-navigation .blue-btn > a {
    position: relative;
}
.main-navigation .blue-btn > a:has(.has-items) {
    padding-left: 16px;
    padding-right: 34px;
}
#quote-count.has-items {
  background-color: var(--wp--preset--color--cem-light-blue);
  border-radius: 50%;
  text-align: center;
  width: 17px;
  height: 17px;
  line-height: 17px;
  font-size: 10px;
    font-weight: bold;
    margin-left: 3px;
  transition: background-color 200ms ease-in-out;
    display: inline-block;
    color:var(--wp--preset--color--cem-blue);
    position: absolute;
    right: 10px;
    top: 9px;
}

#quote-overlay {
  background-color: rgba(255, 255, 255, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
}
.overlay-content {
  background-color: var(--wp--preset--color--cem-blue);
  color: #FFFFFF;
  box-shadow: 1px 1px 5px rgba(0,0,0,.21);
  left: 50%;
  margin: -70px 0 0 -280px;
  width: 560px;
  padding: 20px;
  position: absolute;
  top: 50%;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
}
#quote-overlay  .close-btn {
  float: right;
  cursor: pointer;
  padding: 5px;
  line-height: 20px;
  width: 20px;
  text-align: center;
  margin: -6px -10px 0px 0px;
  font-size: 20px;
}
#quote-overlay h3 {
    color: #FFFFFF; font-size: 24px; font-weight: bold; margin-bottom: 20px;
}
.overlay-content .code, .overlay-content .qty {
  margin-bottom: 20px;
}
.overlay-content label {
  display: inline-block;
  width: 130px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}
.overlay-content input#quote-qty {
    border: none;
    border-radius: 3px;
    width: calc(100% - 135px);
}
.overlay-content #addto-btn,
.overlay-content .storage-fail,
.overlay-content .addto-feedback,
.overlay-content .addto-fail {
  margin-top: 10px;
  background-color:  var(--wp--preset--color--cem-bright-blue);
  padding: 5px 8px;
  line-height: 1.5em;
  border-radius: 7px;
  display: none;
}
.overlay-content #addto-btn {
    width: 100%;
    box-sizing: border-box;
    color: #FFF;
    text-transform: uppercase;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 20px;
}
.overlay-content a {
    color: #FFFFFF;
    text-decoration: underline !important;
}
.overlay-content .addto-fail {
  background-color: var(--wp--preset--color--bright-blue);
}

#request-summary {
    margin-bottom: 40px;
    
}
#request-summary .quote-table{
    margin-bottom: 10px;
}
#request-summary th.qty-col{
    width: 70px;
}
#request-summary td {
    vertical-align: middle;
}
#request-summary td input {
    width: 60px;
}
#request-summary td:last-child {
    text-align: center;
    width: 60px;
}
#request-summary p {
    min-height: 24px;
}
#request-summary #update-quote-btn {
    background-color: var(--wp--preset--color--cem-bright-blue);
    border: none;
    outline: none;
    color:var(--wp--preset--color--navy);
    padding: 8px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    color: #FFFFFF;

}
#request-summary #update-quote-btn:hover {
    background-color: var(--wp--preset--color--cem-blue);
    color: #FFFFFF;
}
/* Media query to enable scrolling below 782px */
@media (max-width: 782px) {
    .table-wrapper {
        overflow-x: auto;
        display: block;
    }
    .overlay-content {
        width: 330px;
        margin: -70px 0 0 -165px;
    }
}