/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Fix WooCommerce filter label spacing */
.wpc-filter-shipping_time .wpc-term-label::after {
    content: attr(data-label);
    display: inline-block;
    text-indent: 0;
    margin-left: 2.5em; /* Match pushed-out space */
    color: inherit;
}

/* Hide the "ATNAUJINTI KREPŠELĮ" (Update Cart) button completely */
.cart-actions-wrapper,
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"],
form.woocommerce-cart-form .button[name="update_cart"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Message below the checkout button */
.cart-next-step-note {
  margin-top: 7px;
  font-size: 14px;
  color: #1a1a1a; /* Same tone as product title "Prekė" */
  font-weight: normal;
  text-align: right;
}


/*************** ADD MOBILE ONLY CSS HERE  ***************/
@media only screen and (max-width: 48em) {

  /* Mobile-specific styles can go here later if needed */

}
<script>
document.addEventListener('DOMContentLoaded', function () {
  const radios = document.querySelectorAll('.payment-option input[type="radio"]');

  function updateSelectedPayment() {
    document.querySelectorAll('.payment-option').forEach(option => {
      option.classList.remove('selected');
    });

    radios.forEach(radio => {
      if (radio.checked) {
        radio.closest('.payment-option').classList.add('selected');
      }
    });
  }

  radios.forEach(radio => {
    radio.addEventListener('change', updateSelectedPayment);
  });

  // Run on page load
  updateSelectedPayment();
});
</script>


