/* Adams Gas – product postcode & stockist UI */

.ag-product-postcode-checker {
  margin: 16px 0 12px 0;
  width: 100%;
}

.ag-product-postcode-checker h3 {
  margin-bottom: 8px;
  font-size: var(--text-m);
  text-transform: uppercase;
}

.ag-product-postcode-checker p {
  margin: 0 0 12px 0;
  color: #444;
  font-size: var(--text-s);
}

.postcode-form-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.postcode-form-wrapper #ag-check-postcode {
    padding-top: var(--space-xs);
    padding-right: var(--space-m);
    padding-bottom: var(--space-xs);
    padding-left: var(--space-m);
    background-color: var(--primary);
    color: var(--light);
    line-height: 150%;
    border-radius: var(--radius-s);
    height: 50px;
}

.single-product__add-cart.brxe-product-add-to-cart .cart .single_add_to_cart_button, 
.single-product__add-cart.brxe-product-add-to-cart a.button[data-product_id] {
    height: 50px;
}

.postcode-input {
  width: 100%;
  padding: 10px 12px;
}

.postcode-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bricks-border-color);
    margin-bottom: 25px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: -20px;
}

.postcode-summary span {
    color: var(--primary);
}

.postcode-summary strong {
    color: var(--dark);
    font-weight: 600;
}

.postcode-summary a {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

.single-product__add-cart {
    .variations_button, .cart:not(:has(.variations_button)) {
        display: flex;
        gap: var(--space-xs);
        flex-wrap: wrap;
    }
}

form.cart table.variations, form.woocommerce-cart-form table.variations,
.single-product__add-cart.brxe-product-add-to-cart .cart table.variations {
    margin-bottom: 0 !important;
}

form.cart table.variations tr, 
form.woocommerce-cart-form table.variations tr, 
.single-product__add-cart.brxe-product-add-to-cart .cart table.variations tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 20px;
}

.single-product__price.brxe-product-price .price ins {
    display: block;
}

.single-product__add-cart.brxe-product-add-to-cart .cart table.variations td.value {
    display: flex;
    column-gap: 16px;
    align-items: center;
}

@media (max-width: 440px) {
    form.cart table.variations tr, 
    form.woocommerce-cart-form table.variations tr, 
    .single-product__add-cart.brxe-product-add-to-cart .cart table.variations tr {
        justify-content: flex-start;
        column-gap: 20px;
    }
    
    .single-product__add-cart.brxe-product-add-to-cart .cart table.variations td.value {
        width: 100%;
    }
}

.single-product__add-cart.brxe-product-add-to-cart .cart table.variations td.value a.reset_variations {
    margin-top: 0;
}

.delivery-option.kent-delivery {
    margin-top: 20px;
}

.delivery-option.kent-delivery p {
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
}

.delivery-option.kent-delivery p span {
    font-weight: 700;
    color: var(--primary);
}

.delivery-option.stockist-delivery p {
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.delivery-option.stockist-delivery .no-stockists-message p {
  text-transform: none;
}

.delivery-option.kent-delivery .ag-fulfilment {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
}

.ag-fulfilment .ag-fulfilment-reset {
    margin-left: auto;
    background: none;
    color: var(--primary);
}

.delivery-option.kent-delivery .ag-fulfilment-value {
    color: var(--primary);
}



/* Stockist list */
.stockist-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.stockist-option.selected {
  border-color: #c73529;
  background: #fff;
}

.stockist-option label {
  cursor: pointer;
  display: block;
  width: 90%;
}

.stockist-option strong {
  font-size: 16px;
}

.stockist-option .stockist-distance {
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  column-gap: 8px;
  margin-bottom: 8px;
}

.stockist-option .stockist-name {
  color: var(--dark);
  font-weight: 700;
  display: block;
  max-width: 460px;
}

.stockist-option .stockist-address {
  font-size: 16px;
  color: var(--text-body);
  max-width: 450px;
  display: flex;
  column-gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  margin-bottom: 8px;
}

.stockist-option .stockist-phone {
  font-size: 16px;
  color: var(--text-body);
  display: flex;
  column-gap: 8px;
}

/*.stockist-option .stockist-distance::before {*/
/*    content: url('/wp-content/uploads/sites/2/2025/09/Location-Icon.svg');*/
/*    transform: scale(.8);*/
/*}*/

.stockist-option .stockist-address::before {
    content: url('/wp-content/uploads/sites/2/2025/09/Location-Icon.svg');
    transform: scale(.85);
}

.stockist-option .stockist-phone::before {
    content: url('/wp-content/uploads/sites/2/2025/09/Contact-Phone-Icon.svg');
    transform: scale(.85);
}

.ag-inline-stockists {
    width: 100%;
}

/* Keep the add-to-cart layout intact in Bricks */
form.cart {
  display: grid;
  gap: 16px;
}



/* Product checker layout stays as you have it; only minor polish */

.ag-product-postcode-checker .postcode-form-wrapper { 
    display:flex; 
    gap:12px; 
    align-items:center; 
}

.ag-product-postcode-checker .postcode-input { 
    flex:1 1 auto; 
    height: 50px;
}

/* Stockist list cards (you can refine later) */
.stockist-list { 
    display:grid; 
    gap:12px; 
}
    
.stockist-option { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--bricks-border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
    
.stockist-option input[type="radio"] { 
    margin-top: 4px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary);
    padding: 0.5em;
    -webkit-appearance: none;
    border-radius: 5px;
}

.stockist-option input[type=radio]:checked {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAALUlEQVR42u3NQQEAQAQAsNPpUqgsHDF4bAUWlb/fghCLxWKxWCwWi8Vi8d14APtmQq9jvXdCAAAAAElFTkSuQmCC) no-repeat center center;
  background-size: 18px 18px;
}

.stockist-option input[type=radio]:focus {
  outline-color: transparent;
}
    
.stockist-option .stockist-distance { 
    font-size: 14px; 
}

/* Hide title + help + form whenever postcode confirmed */
.ag-product-postcode-checker.has-postcode > h3,
.ag-product-postcode-checker.has-postcode > p,
.ag-product-postcode-checker.has-postcode .postcode-form-wrapper {
  display: none;
}


/* Basket styling */

/*.basket input#coupon_code {*/
/*    padding: 0 12px !important;*/
/*}*/

.basket__totals.brxe-woocommerce-cart-collaterals .wc-proceed-to-checkout .button {
    font-weight: 700;
}

.woocommerce-cart-form .product-name {
    font-weight: 700;
    text-align: left;
}

.woocommerce-cart-form .actions {
    padding-top: 40px !important;
}

/* Product card hover effect for second image */
.card-products__img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-products__img-wrapper .card-products__img {
    transition: opacity 0.4s ease-in-out;
    position: relative;
    z-index: 2;
}

.card-products__img-wrapper .card-products__img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.card-products__img-wrapper .card-products__img-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* UPDATED: Only apply hover effect when hover image actually exists and has content */
.card-product-14__wrapper:hover .card-products__img-hover:not(:empty) {
    opacity: 1;
}

.card-product-14__wrapper:hover .card-products__img-hover:not(:empty) ~ .card-products__img,
.card-product-14__wrapper:has(.card-products__img-hover:not(:empty)):hover .card-products__img {
    opacity: 0;
}

/* Alternative approach - only hide main image if hover image exists */
.card-product-14__wrapper:hover .card-products__img {
    opacity: 1; /* Keep main image visible by default */
}

/* Only hide main image when there's a valid hover image */
.card-product-14__wrapper:has(.card-products__img-hover img[src]:not([src=""])):hover .card-products__img {
    opacity: 0;
}

.card-product-14__wrapper:has(.card-products__img-hover img[src]:not([src=""])):hover .card-products__img-hover {
    opacity: 1;
}

select {
    font-size: 16px;
}

body.bricks-is-frontend :focus-visible {
    outline: 0px solid var(--primary) !important;
}


.woocommerce-checkout-review-order-table {
    background-color: var(--bg-body) !important;
    border-radius: var(--radius-m);
}

.woocommerce-checkout .woocommerce-checkout-payment, .woocommerce-checkout .woocommerce-checkout-review-order-table {
    border: 0px solid var(--bricks-border-color);
}

ul.woocommerce-shipping-methods label {
    line-height: 25px;
}

.checkout__order-review.brxe-woocommerce-checkout-order-review button[type="submit"] {
    text-transform: capitalize;
    transition: all .2s ease;
}

.checkout__order-review.brxe-woocommerce-checkout-order-review button[type="submit"]:hover {
      background-color: var(--primary-d-1);
}

.brxe-woocommerce-products-filter input[type=checkbox]:checked, .brxe-woocommerce-products-filter input[type=radio]:checked {
    background-color: var(--primary);
    border-color: var(--primary-d-1);
    box-shadow: inset 0 0 0 2px #fff;
}

.single-product__gallery.brxe-product-gallery .woocommerce-product-gallery .flex-control-thumbs img {
    border: 1px solid transparent;
    border-radius: var(--radius-m);
    max-height: 82px;
    object-fit: contain;
}

/*.single-product__gallery {*/
/*    .flex-viewport, .woocommerce-product-gallery__image {*/
/*        border-radius: var(--radius-m);*/
/*        height: 630px !important;*/
/*        object-fit: contain;*/
/*        object-position: top;*/
/*    }*/
/*}*/

.postcode-form-wrapper input:not([type=submit]), select, textarea {
    border-radius: var(--radius-s);
}

form.woocommerce-cart-form .quantity .minus {
    border-radius: var(--radius-s) 0 0 var(--radius-s) !important;
}

 .plus {
    border-radius: 0 var(--radius-s) var(--radius-s) 0 !important;
}


/*.checkout .checkout__form-details .input, .checkout .checkout__form-details input:not([type=submit]), .checkout .checkout__form-details select, .checkout .checkout__form-details textarea {*/
/*    border-radius: var(--radius-s) !important;*/
/*}*/

/*.checkout .select2-container--default .select2-selection--single {*/
    
/*    border: 1px solid var(--dark-20);*/
/*    border-radius: var(--radius-s) !important;*/
/*}*/


.brxe-woocommerce-account-page .input, .brxe-woocommerce-account-page  input:not([type=submit]), .brxe-woocommerce-account-page  select, .brxe-woocommerce-account-page textarea {
    line-height: 50px;
    border-radius: var(--radius-s);
}

.brxe-woocommerce-account-page button[type=submit] {
    padding: 12px 20px;
}

.woocommerce-account form .show-password-input {
    height: 50px;
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    right: 1px;
}

.woocommerce-variation-price .price {
    font-size: var(--text-xl);
    color: var(--text-title);
}

.woocommerce-variation-price .price ins {
    text-decoration: none;
}


.card-products__price .wwp-wholesale-pricing-details p,
.single-product__price .wwp-wholesale-pricing-details p {
    margin-bottom: 5px;
    color: var(--text-title);
}

.card-products__price .wwp-wholesale-pricing-details p b,
.single-product__price .wwp-wholesale-pricing-details p b {
    font-size: 16px;
    color: var(--primary);
}

.card-products__price .wwp-wholesale-pricing-details p:nth-child(2),
.card-products__price .wwp-wholesale-pricing-details p:nth-child(2) b {
    font-size: var(--text-m);
    color: var(--text-title);
    font-weight: 700;
}

.card-products__price .wwp-wholesale-pricing-details p:nth-child(2) b .amount,
.single-product__price .wwp-wholesale-pricing-details p:nth-child(2) b .amount,
.card-products__price .wwp-wholesale-pricing-details p:nth-child(2) .amount,
.single-product__price .wwp-wholesale-pricing-details p:nth-child(2) .amount,
.card-products__price .wwp-wholesale-pricing-details p:nth-child(2) small.woocommerce-price-suffix,
.single-product__price .wwp-wholesale-pricing-details p:nth-child(2) small.woocommerce-price-suffix{
    color: var(--primary);
}

.single-product__price .wwp-wholesale-pricing-details p:nth-child(2) b,
.single-product__price .wwp-wholesale-pricing-details p:nth-child(2) {
    font-size: var(--text-l);
    color: var(--text-title);
    font-weight: 700;
}

.woocommerce-customer-details.ag-supplier-details {
    margin-top: 30px !important;
}

.woo-thank-you__details address {
    padding-left: 0 !important;
}

.woocommerce-shipping-totals.shipping th{
    width: 50%;
}

.woocommerce-shipping-totals.shipping td li {
    display: flex;
    align-items: flex-start;
}

.woocommerce-shipping-totals.shipping td li label {
    margin-top: -2px;
}
  






