/*Support #320471 - Style the table here https://waterfiltersofamerica.com/iron-in-water-pyrolox-iron-filter-remove-iron/ */
.wp-block-table.Pyrolox-table{
  overflow: unset;
}

.wp-block-table.Pyrolox-table tbody tr{
  border-top: 1px solid grey;
  line-height: 20px;
}

.wp-block-table.Pyrolox-table thead{
  background: #0d6ddc;
  color: white;
  line-height: 25px;
}

/*Support #Add-to-cart notice ("X has been added to your cart") - shop/archive pages*/
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-top: 3px solid #4CAF50;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(20,40,70,.08);
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 15px;
  color: #1a2733;
}

.woocommerce-info{
  border-top-color: #0d63c4;
}

.woocommerce-error{
  border-top-color: #cc1818;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before{
  position: static !important;
  margin: 0 !important;
  font-size: 20px !important;
}

.woocommerce-message .button.wc-forward,
.woocommerce-info .button.wc-forward,
.woocommerce-error .button.wc-forward{
  order: 2;
  margin-left: auto;
  background: linear-gradient(180deg, #1f7ae0 0%, #0d63c4 100%);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  box-shadow: 0 1px 2px rgba(13,60,120,.2);
  transition: background .15s ease, box-shadow .15s ease;
}

.woocommerce-message .button.wc-forward:hover,
.woocommerce-info .button.wc-forward:hover,
.woocommerce-error .button.wc-forward:hover{
  background: linear-gradient(180deg, #2a86ec 0%, #1170d4 100%);
  box-shadow: 0 3px 8px rgba(13,60,120,.3);
  color: #fff;
}

/*Support #Buy Now button - single product page, next to Add to Cart*/
.single-product div.product form.cart .buy-now-button{
  margin:0 0 0 10px;
  background: linear-gradient(180deg, #5cbf60 0%, #4CAF50 100%);
  color:#fff;
  border:0;
  border-radius:8px;
  font-weight:700;
  font-size:15px;
  letter-spacing:.02em;
  padding:12px 28px;
  height:46px;
  box-shadow:0 1px 2px rgba(20,80,20,.2);
  transition:background .15s ease, box-shadow .15s ease;
}

.single-product div.product form.cart .buy-now-button:hover{
  background: linear-gradient(180deg, #4CAF50 0%, #3d8b40 100%);
  box-shadow:0 3px 8px rgba(20,80,20,.3);
  color:#fff;
}

/*Support #Nav cart button - make it yellow instead of blue*/
#menu-main-menu li{
  vertical-align: middle;
}

#menu-main-menu li.wfoa-nav-cart-item{
  background: linear-gradient(180deg, #ffd54a 0%, #f5b300 100%);
  box-shadow: 0 1px 2px rgba(150,110,0,0.3);
  vertical-align: middle;
}

#menu-main-menu li.wfoa-nav-cart-item a.wfoa-nav-cart-link{
  padding: 10px 16px;
  line-height: 1;
  box-sizing: border-box;
}

#menu-main-menu li.wfoa-nav-cart-item:hover{
  background: linear-gradient(180deg, #ffdd6b 0%, #ffc107 100%);
  box-shadow: 0 2px 6px rgba(150,110,0,0.4);
}

#menu-main-menu li.wfoa-nav-cart-item .wfoa-nav-cart-icon{
  color: #3a2a00;
}

#menu-main-menu li.wfoa-nav-cart-item .wfoa-nav-cart-count{
  box-shadow: 0 0 0 2px #f5b300;
}

/*Support #Checkout page redesign - WooCommerce Checkout block*/

.wp-block-woocommerce-checkout{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Step headings: "Contact information", "Billing address", "Payment options" */
.wc-block-components-checkout-step__title{
  font-size: 20px;
  font-weight: 700;
  color: #1a2733;
}

.wc-block-components-checkout-step__heading{
  border-bottom: 2px solid #e3e8ee;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.wc-block-components-checkout-step__container{
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(20,40,70,.06);
}

/* Text inputs, selects, textareas */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-address-form__address_2 input,
.wc-block-components-select select,
.wc-block-components-textarea textarea{
  border: 1px solid #d7dee6 !important;
  border-radius: 8px !important;
  padding: 24px 12px 8px !important;
  height: auto !important;
  min-height: 58px !important;
  line-height: 1.3 !important;
  font-size: 15px;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus,
.wc-block-components-textarea textarea:focus{
  border-color: #0d63c4 !important;
  box-shadow: 0 0 0 3px rgba(13,99,196,.15) !important;
}

/* Always show the field label as a small caption above the value (instead of
   relying on the WooCommerce "is-active" state, which doesn't always toggle
   for pre-filled/autofilled fields and was causing the label to sit on top
   of the typed value) */
.wc-block-components-text-input label,
.wc-block-components-select label{
  top: 14px !important;
  transform: scale(.8) !important;
  transform-origin: top left;
  left: 12px !important;
  color: #5b6b7a;
}

/* Payment method options as cards */
.wc-block-components-radio-control__option{
  border: 1px solid #e0e6ec;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .15s ease, background .15s ease;
}

.wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control__option:has(input:checked){
  border-color: #0d63c4;
  background: #f3f8ff;
}

/* Notices (e.g. "no payment methods available") */
.wc-block-components-notice-banner{
  border-radius: 10px;
}

/* Order summary sidebar */
.wc-block-checkout__sidebar .wc-block-components-panel,
.wc-block-checkout__sidebar > *:not(.wc-block-components-notices__snackbar){
  background: #fff;
}

/* Support: mobile checkout showing a large blank white box over the form.
   The sidebar rule above painted every direct child of the sidebar white --
   including WooCommerce's own notices/snackbar portal div, which is always
   rendered there even when empty. That div is normally invisible, but on
   phones WooCommerce's checkout.css has a specificity conflict: a
   max-width:782px rule pins it to top:10px, while its *other* class
   (.wc-block-components-notice-snackbar-list) carries an unscoped
   bottom/left/right:24px rule that also matches. Combined, the (now white)
   div stretched to cover nearly the whole screen. Excluding it above stops
   the white paint; this re-collapses it back to WooCommerce's intended
   small top-anchored toast so it can't block the page even if a notice
   does render into it. */
@media (max-width: 782px){
  .wc-block-components-notices__snackbar.wc-block-components-notice-snackbar-list{
    bottom: auto;
    right: auto;
  }
}

.wp-block-woocommerce-checkout-order-summary-block{
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(20,40,70,.06);
}

@container (min-width: 700px){
  .wp-block-woocommerce-checkout-order-summary-block{
    position: sticky;
    top: 20px;
  }
}

.wc-block-components-checkout-order-summary__title{
  border-bottom: 2px solid #e3e8ee;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.wc-block-components-checkout-order-summary__title-text,
.wc-block-components-order-summary__button-text{
  font-size: 20px;
  font-weight: 700;
  color: #1a2733;
}

.wc-block-components-order-summary-item{
  padding: 14px 0;
  border-bottom: 1px solid #eef1f4;
}

.wc-block-components-order-summary-item__image img{
  border-radius: 8px;
  border: 1px solid #eef1f4;
}

.wc-block-components-order-summary-item__badge{
  background: #0d63c4;
}

.wc-block-components-totals-item{
  padding: 10px 0;
}

.wc-block-components-totals-footer-item{
  border-top: 2px solid #e3e8ee;
  margin-top: 8px;
  padding-top: 14px;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-size: 19px;
  font-weight: 700;
  color: #1a2733;
}

.wc-block-components-totals-coupon-link{
  color: #0d63c4;
  font-weight: 600;
}

/* Place order button */
.wc-block-components-checkout-place-order-button{
  background: linear-gradient(180deg, #5cbf60 0%, #4CAF50 100%) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: .02em;
  padding: 16px 24px !important;
  height: auto !important;
  box-shadow: 0 1px 2px rgba(20,80,20,.2);
  transition: background .15s ease, box-shadow .15s ease;
}

.wc-block-components-checkout-place-order-button:hover{
  background: linear-gradient(180deg, #4CAF50 0%, #3d8b40 100%) !important;
  box-shadow: 0 3px 8px rgba(20,80,20,.3);
  color: #fff !important;
}

.wc-block-components-checkout-return-to-cart-button{
  color: #0d63c4;
  font-weight: 600;
}

@media (max-width: 480px){
  .wc-block-components-checkout-step__container,
  .wp-block-woocommerce-checkout-order-summary-block{
    padding: 16px;
  }
}
