/*
 Theme Name:   Enfold - Child
 Description: <strong>A superflexible and responsive Business Theme by Kriesi</strong>
 Author: Kriesi
 Author URI: https://kriesi.at
 Template:     enfold
 Version:      4.7.6.3
*/

/* =Theme customization starts here
-------------------------------------------------------------- */

#top .avia-button .avia_button_background {
  bottom: -3px !important;
}


/* ============================================================
   DONATION FOR WOOCOMMERCE - BOTTONE
============================================================ */

.wc-donation-f-submit-donation,
.single_add_to_cart_button,
button[name="add-to-cart"] {
  background: #0248AB !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 28px !important;
  min-height: 58px !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  transition: all 0.25s ease !important;
}

.wc-donation-f-submit-donation:hover,
.single_add_to_cart_button:hover,
button[name="add-to-cart"]:hover {
  color: #ffffff !important;
  opacity: 0.9;
  transition: all 0.4s ease-in-out;
}

.wc-donation-f-submit-donation:active,
.single_add_to_cart_button:active,
button[name="add-to-cart"]:active {
  transform: translateY(0);
}


/* ============================================================
   DONATION FOR WOOCOMMERCE - BOX IMPORTO
============================================================ */

.wc-label-button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 138px !important;
  min-height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #000 !important;
  border-radius: 16px !important;
  color: #000000 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.wc-label-button input[type="radio"] {
  display: none !important;
}

.wc-label-button::before {
  content: "CHF";
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  min-width: 72px !important;
  margin-right: 20px !important;
  background: #f47a20 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

/* ============================================================
   DONATION BOX - NUMERI AL POSTO DI CHF
============================================================ */

[id^="wc_donation_on_single_"] .wc-label-button:has(input[value="50"])::before {
  content: "x1" !important;
  font-size: 18px !important;
}

[id^="wc_donation_on_single_"] .wc-label-button:has(input[value="100"])::before {
  content: "x2" !important;
  font-size: 18px !important;
}

[id^="wc_donation_on_single_"] .wc-label-button:has(input[value="150"])::before {
  content: "x3" !important;
  font-size: 18px !important;
}

/* Autre */
[id^="wc_donation_on_single_"] .wc-label-button:has(input[value="other"])::before,
[id^="wc_donation_on_single_"] .wc-label-button:has(input[value="Other"])::before {
  content: "+" !important;
  font-size: 22px !important;
}

.wc-label-button input[type="radio"]:checked {
  accent-color: #f47a20 !important;
}


/* ============================================================
   DONATION FOR WOOCOMMERCE - IMPORTO PERSONALIZZATO
============================================================ */


.woocommerce-message, .wc-block-components-notices{display: none!important;}

/* ============================================================
   CHECKOUT DESKTOP - DUE COLONNE 50% / 50%
============================================================ */

@media only screen and (min-width: 768px) {


  #top.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 60px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #top.woocommerce-checkout .wc-block-components-main,
  #top.woocommerce-checkout .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #top.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}

[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #0248AB !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"]::before {
  content: attr(currency) !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 72px !important;
  min-width: 72px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #f47a20 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 58px !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] .wc-input-text,
[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] .wc-donation-f-donation-other-value,
[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] input[data-campaign_id] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  height: auto !important;
  padding: 0 16px 0 92px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #0248AB !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] .wc-input-text::placeholder,
[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] .wc-donation-f-donation-other-value::placeholder,
[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] input[data-campaign_id]::placeholder {
  color: #0248AB !important;
  opacity: 0.7 !important;
}

[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] .wc-input-text:focus,
[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] .wc-donation-f-donation-other-value:focus,
[id^="wc_donation_on_single_"] .price-wrapper[class*="other-price-wrapper-"] input[data-campaign_id]:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ============================================================
   DONATION FOR WOOCOMMERCE - LAYOUT PACK
============================================================ */

[id^="wc_donation_on_single_"] .in-action-elements {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

[id^="wc_donation_on_single_"] .in-action-elements > .row0,
[id^="wc_donation_on_single_"] .in-action-elements > .row1,
[id^="wc_donation_on_single_"] .in-action-elements > .row2,
[id^="wc_donation_on_single_"] .in-action-elements > .row1 > .row1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

[id^="wc_donation_on_single_"] .row0 br {
  display: none !important;
}

[id^="wc_donation_on_single_"] .wc-label-button,
[id^="wc_donation_on_single_"] .wc-donation-f-submit-donation {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

[id^="wc_donation_on_single_"] .wc-label-button {
  justify-content: flex-start !important;
}

[id^="wc_donation_on_single_"] .wc-donation-f-submit-donation {
  justify-content: center !important;
  text-align: center !important;
}

/* ============================================================
   DONATION FOR WOOCOMMERCE - NASCONDI DUPLICATI
============================================================ */

[id^="wc_donation_on_single_"] .wc-donation-in-action .campaign-title,
[id^="wc_donation_on_single_"] .wc-donation-in-action .block-campaign-thumbnail {
  display: none !important;
}

.campaign_description-wrapper p {
  text-align: justify !important;
}


/* ============================================================
   MINI CARRELLO WOOCOMMERCE / ENFOLD
============================================================ */

/* Mini cart dropdown migliorato */
#top .cart_dropdown {
  z-index: 9999 !important;
}

#top .cart_dropdown .cart_dropdown_link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  line-height: 52px !important;
  background: #ffffff !important;
  border: 1px solid rgba(2, 72, 171, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(2, 72, 171, 0.12) !important;
  color: #0248AB !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

#top .cart_dropdown .cart_dropdown_link:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(2, 72, 171, 0.35) !important;
  box-shadow: 0 12px 28px rgba(2, 72, 171, 0.18) !important;
}

#top .cart_dropdown .av-cart-container svg path {
  fill: #0248AB !important;
}

#top .cart_dropdown .av-cart-counter {
  top: -8px !important;
  right: -8px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #0248AB !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 18px !important;
  text-align: center !important;
  box-shadow: 0 6px 14px rgba(2, 72, 171, 0.24) !important;
}

#top .cart_dropdown .dropdown_widget_cart {
  width: 390px !important;
  max-width: calc(100vw - 24px) !important;
  right: 0 !important;
  left: auto !important;
  padding-top: 14px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#top .cart_dropdown .dropdown_widget_cart .avia-arrow {
  width: 18px !important;
  height: 18px !important;
  top: 6px !important;
  right: 26px !important;
  background: #0248AB !important;
  border: none !important;
  transform: rotate(45deg) !important;
  box-shadow: none !important;
}

#top .cart_dropdown .widget_shopping_cart_content {
  overflow: hidden !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(2, 72, 171, 0.14) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(2, 72, 171, 0.22) !important;
}

#top .cart_dropdown .widget_shopping_cart_content::before {
  content: "Votre panier" !important;
  display: block !important;
  padding: 16px 18px !important;
  background: #0248AB !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.2px !important;
}

#top .cart_dropdown .woocommerce-mini-cart.cart_list.product_list_widget {
  max-height: 430px !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 10px 14px 0 !important;
  background: #ffffff !important;
}

#top .cart_dropdown .woocommerce-mini-cart.cart_list.product_list_widget::-webkit-scrollbar {
  width: 8px !important;
}

#top .cart_dropdown .woocommerce-mini-cart.cart_list.product_list_widget::-webkit-scrollbar-thumb {
  background: rgba(2, 72, 171, 0.22) !important;
  border-radius: 999px !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.woocommerce-mini-cart-item,
#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item {
  position: relative !important;
  min-height: 96px !important;
  margin: 0 !important;
  padding: 16px 94px 16px 0 !important;
  list-style: none !important;
  border-bottom: 1px solid rgba(2, 72, 171, 0.10) !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.woocommerce-mini-cart-item:last-child,
#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item:last-child {
  border-bottom: none !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item > a:not(.remove) {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #0248AB !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.15px !important;
  text-decoration: none !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item > a:not(.remove):hover {
  color: #f47a20 !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item img {
  position: absolute !important;
  top: 16px !important;
  right: 0 !important;
  width: 72px !important;
  height: 72px !important;
  float: none !important;
  margin: 0 !important;
  border: 2px solid rgba(2, 72, 171, 0.10) !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  box-shadow: 0 8px 18px rgba(2, 72, 171, 0.12) !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item .remove.remove_from_cart_button {
  position: absolute !important;
  top: 10px !important;
  right: -8px !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  background: #C91455 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(201, 20, 85, 0.26) !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item .remove.remove_from_cart_button:hover {
  background: #a80f45 !important;
  color: #ffffff !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item dl.variation {
  display: block !important;
  margin: 7px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #5f6673 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item dl.variation dt {
  display: none !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item dl.variation dd {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item dl.variation dd p {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(244, 122, 32, 0.12) !important;
  color: #0248AB !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item .quantity {
  display: block !important;
  margin: 8px 0 0 !important;
  color: #6b7280 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item .quantity .amount,
#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item .quantity .woocommerce-Price-amount {
  color: #0248AB !important;
  font-weight: 900 !important;
}

#top .cart_dropdown .woocommerce-mini-cart__total.total {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  background: rgba(2, 72, 171, 0.06) !important;
  border-top: 1px solid rgba(2, 72, 171, 0.10) !important;
  color: #0248AB !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

#top .cart_dropdown .woocommerce-mini-cart__total.total strong {
  color: #0248AB !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

#top .cart_dropdown .woocommerce-mini-cart__total.total .amount,
#top .cart_dropdown .woocommerce-mini-cart__total.total .woocommerce-Price-amount {
  color: #0248AB !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

#top .cart_dropdown .woocommerce-mini-cart__buttons.buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px !important;
  background: #ffffff !important;
}

#top .cart_dropdown .woocommerce-mini-cart__buttons.buttons a.button,
#top .cart_dropdown .woocommerce-mini-cart__buttons.buttons a.wc-forward {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

#top .cart_dropdown .woocommerce-mini-cart__buttons.buttons a.button:not(.checkout) {
  background: #ffffff !important;
  color: #0248AB !important;
  border: 1px solid rgba(2, 72, 171, 0.20) !important;
}

#top .cart_dropdown .woocommerce-mini-cart__buttons.buttons a.button:not(.checkout):hover {
  background: rgba(2, 72, 171, 0.06) !important;
  color: #0248AB !important;
}

#top .cart_dropdown .woocommerce-mini-cart__buttons.buttons a.checkout {
  background: #0248AB !important;
  color: #ffffff !important;
  border: 1px solid #0248AB !important;
}

#top .cart_dropdown .woocommerce-mini-cart__buttons.buttons a.checkout:hover {
  background: #013a8d !important;
  color: #ffffff !important;
}

#top .cart_dropdown .woocommerce-mini-cart__empty-message {
  margin: 0 !important;
  padding: 26px 20px !important;
  color: #0248AB !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

@media only screen and (max-width: 480px) {
  .av-hamburger{margin-right: 10px;}

  #top .cart_dropdown .dropdown_widget_cart {
    position: fixed !important;
    top: 78px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  #top .cart_dropdown .woocommerce-mini-cart__buttons.buttons {
    grid-template-columns: 1fr !important;
  }
}



/* ============================================================
   WOOCOMMERCE - TESTI BOX PRODOTTI
============================================================ */

#top.woocommerce-shop ul.products li.product .inner_product {
  border-radius: 18px !important;
  overflow: hidden !important;
}

#top.woocommerce-shop ul.products li.product .inner_product_header {
  background: #ffffff !important;
  padding: 22px 22px 8px !important;
  min-height: auto !important;
}

#top.woocommerce-shop ul.products li.product .inner_product_header_table,
#top.woocommerce-shop ul.products li.product .inner_product_header_cell {
  display: block !important;
  height: auto !important;
}

#top.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
  color: #0248AB !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.3px !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

#top.woocommerce-shop ul.products li.product .woocommerce-product-description {
  color: #333333 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 8px 22px 22px !important;
  min-height: 92px !important;
}

#top.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title {
  color: #f47a20 !important;
}

#top.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link:hover .woocommerce-product-description {
  color: #111111 !important;
}


/* ============================================================
   WOOCOMMERCE - TESTI PAGINA PRODOTTO / BOX PACK
============================================================ */

#top.single-product .single-product-summary .product_title.entry-title {
  color: #0248AB !important;
  font-size: clamp(30px, 4vw, 46px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.8px !important;
  margin: 0 0 18px !important;
  text-align: left !important;
}

#top.single-product .single-product-summary .wc-donation-in-action {
  background: #ffffff !important;
  border: 1px solid rgba(2, 72, 171, 0.14) !important;
  border-radius: 22px !important;
  padding: 26px !important;
  box-shadow: 0 14px 34px rgba(2, 72, 171, 0.08) !important;
  box-sizing: border-box !important;
}

#top.single-product .single-product-summary .campaign_description-wrapper {
  color: #222222 !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  margin: 0 0 18px !important;
}

#top.single-product .single-product-summary .campaign_description-wrapper p {
  color: #222222 !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  text-align: left !important;
  margin: 0 0 15px !important;
}

#top.single-product .single-product-summary .campaign_description-wrapper p:first-of-type {
  color: #0248AB !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

#top.single-product .single-product-summary .campaign_description-wrapper p:last-child {
  margin-bottom: 0 !important;
}

#top.single-product .single-product-summary .wc-donation-description,
#top.single-product .single-product-summary .wc-donation-title {
  margin: 0 !important;
  padding: 0 !important;
}

#top.single-product .single-product-main-image img {
  border-radius: 22px !important;
  box-shadow: 0 14px 34px rgba(2, 72, 171, 0.10) !important;
}

@media only screen and (max-width: 767px) {
  #top.single-product .single-product-summary .product_title.entry-title {
    font-size: 32px !important;
    text-align: center !important;
  }

  #top.single-product .single-product-summary .wc-donation-in-action {
    padding: 20px !important;
    border-radius: 18px !important;
  }

  #top.single-product .single-product-summary .campaign_description-wrapper p,
  #top.single-product .single-product-summary .campaign_description-wrapper p:first-of-type {
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }
}

/* ============================================================
   WOOCOMMERCE - RELATED PRODUCTS / TESTI BOX PRODOTTI
============================================================ */

#top.single-product section.related.products {
  margin-top: 35px !important;
}

#top.single-product section.related.products > h2 {
  color: #0248AB !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.6px !important;
  text-align: center !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

#top.single-product section.related.products ul.products li.product .inner_product {
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(2, 72, 171, 0.14) !important;
  box-shadow: 0 14px 34px rgba(2, 72, 171, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

#top.single-product section.related.products ul.products li.product .inner_product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 42px rgba(2, 72, 171, 0.13) !important;
}

#top.single-product section.related.products ul.products li.product .thumbnail_container img {
  border-radius: 0 !important;
}

#top.single-product section.related.products ul.products li.product .inner_product_header {
  padding: 22px 18px 8px !important;
  background: #ffffff !important;
  min-height: auto !important;
}

#top.single-product section.related.products ul.products li.product .inner_product_header_table,
#top.single-product section.related.products ul.products li.product .inner_product_header_cell {
  display: block !important;
  height: auto !important;
}

#top.single-product section.related.products ul.products li.product .woocommerce-loop-product__title {
  color: #0248AB !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.25px !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

#top.single-product section.related.products ul.products li.product .woocommerce-product-description {
  color: #333333 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 8px 20px 22px !important;
  min-height: 92px !important;
}

#top.single-product section.related.products ul.products li.product .woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title {
  color: #f47a20 !important;
}

#top.single-product section.related.products ul.products li.product .woocommerce-LoopProduct-link:hover .woocommerce-product-description {
  color: #111111 !important;
}

#top.single-product section.related.products ul.products li.product .avia_cart_buttons {
  border-top: 1px solid rgba(2, 72, 171, 0.10) !important;
}

@media only screen and (max-width: 767px) {
  #top.single-product section.related.products > h2 {
    font-size: 28px !important;
    margin-bottom: 22px !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 21px !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-product-description {
    font-size: 15px !important;
    min-height: 0 !important;
  }
}


/* ============================================================
   WOOCOMMERCE - RELATED PRODUCTS / LAYOUT ORIZZONTALE DESKTOP
   Foto a sinistra, testi e pulsanti a destra
============================================================ */

#top.single-product section.related.products > h2 {
  color: #FFFFFF !important;
}

@media only screen and (min-width: 990px) {
  #top.single-product section.related.products ul.products {
    display: block !important;
  }

  #top.single-product section.related.products ul.products li.product {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 920px !important;
    margin: 0 auto 26px !important;
    padding: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .inner_product {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: stretch !important;
    min-height: 260px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-LoopProduct-link {
    display: contents !important;
  }

  #top.single-product section.related.products ul.products li.product .thumbnail_container {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 260px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #top.single-product section.related.products ul.products li.product .thumbnail_container img {
    width: 100% !important;
    height: 100% !important;
    min-height: 260px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .inner_product_header {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 34px 36px 8px !important;
    background: #ffffff !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-loop-product__title {
    text-align: left !important;
    font-size: 26px !important;
    line-height: 1.18 !important;
    margin: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-product-description {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    min-height: 0 !important;
    padding: 8px 36px 18px !important;
    margin: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .avia_cart_buttons {
    grid-column: 2 !important;
    grid-row: 3 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
    width: auto !important;
    margin: 0 36px 34px !important;
    padding: 0 !important;
    border-top: none !important;
    background: transparent !important;
  }

  #top.single-product section.related.products ul.products li.product .avia_cart_buttons a,
  #top.single-product section.related.products ul.products li.product .avia_cart_buttons .button {
    width: auto !important;
    min-width: 150px !important;
    margin: 0 !important;
  }
}

/* ============================================================
   WOOCOMMERCE - RELATED PRODUCTS / LAYOUT ORIZZONTALE LANDSCAPE
   Tablet e mobile in orizzontale: foto a sinistra, contenuto a destra
============================================================ */

@media only screen and (orientation: landscape) and (min-width: 568px) and (max-width: 989px) {
  #top.single-product section.related.products ul.products {
    display: block !important;
  }

  #top.single-product section.related.products ul.products li.product {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 22px !important;
    padding: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .inner_product {
    display: grid !important;
    grid-template-columns: minmax(190px, 38%) minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: stretch !important;
    min-height: 220px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-LoopProduct-link {
    display: contents !important;
  }

  #top.single-product section.related.products ul.products li.product .thumbnail_container {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #top.single-product section.related.products ul.products li.product .thumbnail_container img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .inner_product_header {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 24px 26px 6px !important;
    background: #ffffff !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-loop-product__title {
    text-align: left !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
    margin: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .woocommerce-product-description {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    min-height: 0 !important;
    padding: 8px 26px 16px !important;
    margin: 0 !important;
  }

  #top.single-product section.related.products ul.products li.product .avia_cart_buttons {
    grid-column: 2 !important;
    grid-row: 3 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    margin: 0 26px 24px !important;
    padding: 0 !important;
    border-top: none !important;
    background: transparent !important;
  }

  #top.single-product section.related.products ul.products li.product .avia_cart_buttons a,
  #top.single-product section.related.products ul.products li.product .avia_cart_buttons .button {
    width: auto !important;
    min-width: 135px !important;
    margin: 0 !important;
  }
}

.product-sorting.avia-product-sorting{display: none!important;}
.special-heading-border{display: none!important;}

/* ============================================================
   MINI CARRELLO - FIX PULSANTE CARRELLO + ELIMINA PRODOTTI
============================================================ */

/* Evita che il pulsante carrello venga tagliato o schiacciato */
#top .cart_dropdown,
#top .cart_dropdown_first {
  overflow: visible !important;
}

#top .cart_dropdown .cart_dropdown_link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(2, 72, 171, 0.22) !important;
  box-shadow: 0 8px 22px rgba(2, 72, 171, 0.16) !important;
  color: #0248AB !important;
  line-height: 1 !important;
}

#top .cart_dropdown .cart_dropdown_link:hover {
  transform: none !important;
  background: #ffffff !important;
  border-color: rgba(2, 72, 171, 0.38) !important;
  box-shadow: 0 10px 26px rgba(2, 72, 171, 0.22) !important;
}

#top .cart_dropdown .av-cart-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#top .cart_dropdown .av-cart-container svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

#top .cart_dropdown .av-cart-container svg path {
  fill: #0248AB !important;
}

#top .cart_dropdown .av-cart-counter {
  position: absolute !important;
  top: 8px !important;
  right: -9px !important;
  min-width: 22px !important;
  width: auto !important;
  height: 22px !important;
  padding: 0 6px !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #0248AB !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 18px !important;
  text-align: center !important;
  box-shadow: 0 6px 14px rgba(2, 72, 171, 0.28) !important;
}

/* Mantiene il dropdown sotto il pulsante senza far uscire l'icona dal bordo */
#top .cart_dropdown .dropdown_widget_cart {
  right: 0 !important;
  left: auto !important;
  margin-top: 8px !important;
}

#top .cart_dropdown .dropdown_widget_cart .avia-arrow {
  right: 20px !important;
}

/* Dà spazio all'immagine e al pulsante elimina senza tagli */
#top .cart_dropdown .woocommerce-mini-cart li.woocommerce-mini-cart-item,
#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item {
  overflow: visible !important;
  padding-right: 96px !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item img {
  right: 8px !important;
  top: 16px !important;
  width: 68px !important;
  height: 68px !important;
  border-radius: 14px !important;
}

/* Pulsante elimina completamente visibile */
#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item .remove.remove_from_cart_button {
  position: absolute !important;
  top: 8px !important;
  right: 2px !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  background: #C91455 !important;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 18px !important;
  text-indent: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  opacity: 1 !important;
  box-shadow: 0 6px 14px rgba(201, 20, 85, 0.28) !important;
}

#top .cart_dropdown .woocommerce-mini-cart li.mini_cart_item .remove.remove_from_cart_button:hover {
  background: #a80f45 !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
}

/* Su schermi piccoli il pulsante resta dentro lo schermo */
@media only screen and (max-width: 480px) {
  #top .cart_dropdown .cart_dropdown_link {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  #top .cart_dropdown .dropdown_widget_cart {
    top: 74px !important;
    right: 12px !important;
    left: 12px !important;
    margin-top: 0 !important;
  }

  #top .cart_dropdown .dropdown_widget_cart .avia-arrow {
    right: 28px !important;
  }
}

/* ============================================================
   CHECKOUT - ORDER SUMMARY / FIX PULITO
   WooCommerce Blocks: woocommerce/checkout-order-summary-block
============================================================ */

#top.woocommerce-checkout .wc-block-components-sidebar,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  box-sizing: border-box !important;
}

#top.woocommerce-checkout .wc-block-components-sidebar {
  position: sticky !important;
  top: 130px !important;
  align-self: flex-start !important;
}

#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  background: #ffffff !important;
  border: 1px solid rgba(2, 72, 171, 0.18) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 46px rgba(2, 72, 171, 0.10) !important;
}

/* Titolo principale del box: solo il titolo del blocco, non i titoli prodotto */
#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > .wc-block-components-title,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > h2,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > h3 {
  margin: 0 !important;
  padding: 22px 24px 18px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(2, 72, 171, 0.14) !important;
  color: #0248AB !important;
  font-family: inherit !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.3px !important;
  text-align: left !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary,
#top.woocommerce-checkout .wc-block-components-order-summary__content,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-cart-items-block {
  margin: 0 !important;
  padding: 0 !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto !important;
  gap: 12px 16px !important;
  align-items: start !important;
  padding: 20px 24px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(2, 72, 171, 0.12) !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__image {
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  position: relative !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  margin: 0 !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__image > div,
#top.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  display: block !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 8px 20px rgba(2, 72, 171, 0.18) !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  z-index: 3 !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #0248AB !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  text-align: center !important;
  box-shadow: 0 6px 14px rgba(2, 72, 171, 0.28) !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__description {
  grid-column: 2 !important;
  grid-row: 1 / span 3 !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #333333 !important;
}

/* FIX: impedisce al titolo prodotto di diventare un blocco blu verticale */
#top.woocommerce-checkout .wc-block-components-order-summary-item h2,
#top.woocommerce-checkout .wc-block-components-order-summary-item h3,
#top.woocommerce-checkout .wc-block-components-product-name {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0248AB !important;
  font-family: 'Segoe Script', cursive !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}


#top.woocommerce-checkout .wc-block-components-product-metadata{
  display: none!important;}
#top.woocommerce-checkout .wc-block-components-product-details {
  display: block;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: #4a4a4a !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

#top.woocommerce-checkout .wc-block-components-product-metadata__description,
#top.woocommerce-checkout .wc-block-components-order-summary-item__description p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 7px 0 0 !important;
  color: #555555 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

#top.woocommerce-checkout .wc-block-components-product-details li,
#top.woocommerce-checkout .wc-block-components-product-metadata li {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: auto !important;
  margin: 8px 0 0 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(244, 122, 32, 0.12) !important;
  color: #0248AB !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

#top.woocommerce-checkout .wc-block-components-product-details__name,
#top.woocommerce-checkout .wc-block-components-product-metadata__name {
  color: #0248AB !important;
  font-weight: 800 !important;
}

#top.woocommerce-checkout .wc-block-components-product-details__value,
#top.woocommerce-checkout .wc-block-components-product-metadata__value,
#top.woocommerce-checkout .wc-block-components-product-details__value p,
#top.woocommerce-checkout .wc-block-components-product-metadata__value p {
  margin: 0 !important;
  color: #0248AB !important;
  font-weight: 800 !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
#top.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
#top.woocommerce-checkout .wc-block-components-product-price {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  width: auto !important;
  min-width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #0248AB !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  background: transparent !important;
}

#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block,
#top.woocommerce-checkout .wc-block-components-totals-wrapper,
#top.woocommerce-checkout .wc-block-components-panel {
  border-color: rgba(2, 72, 171, 0.12) !important;
}

#top.woocommerce-checkout .wc-block-components-panel,
#top.woocommerce-checkout .wc-block-components-totals-wrapper {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

#top.woocommerce-checkout .wc-block-components-panel__button,
#top.woocommerce-checkout .wc-block-components-totals-coupon-link {
  color: #0248AB !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

#top.woocommerce-checkout .wc-block-components-totals-item {
  padding: 16px 0 !important;
  color: #444444 !important;
  font-size: 15px !important;
}

#top.woocommerce-checkout .wc-block-components-totals-item__label {
  color: #444444 !important;
  font-weight: 600 !important;
}

#top.woocommerce-checkout .wc-block-components-totals-item__value,
#top.woocommerce-checkout .wc-block-components-totals-item__value .woocommerce-Price-amount,
#top.woocommerce-checkout .wc-block-components-totals-item__value .amount {
  color: #0248AB !important;
  font-weight: 850 !important;
}

#top.woocommerce-checkout .wc-block-components-totals-footer-item {
  margin: 0 !important;
  padding: 20px 24px !important;
  background: rgba(2, 72, 171, 0.06) !important;
}

#top.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
#top.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
#top.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value .amount {
  color: #0248AB !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

@media only screen and (max-width: 989px) {
  #top.woocommerce-checkout .wc-block-components-sidebar {
    position: static !important;
    top: auto !important;
  }

  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
    border-radius: 20px !important;
  }

  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > .wc-block-components-title,
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > h2,
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > h3 {
    padding: 20px 20px 16px !important;
    font-size: 22px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    gap: 10px 12px !important;
    padding: 18px 20px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item__image,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__image > div,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__image img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
  }

  #top.woocommerce-checkout .wc-block-components-product-name,
  #top.woocommerce-checkout .wc-block-components-order-summary-item h2,
  #top.woocommerce-checkout .wc-block-components-order-summary-item h3 {
    font-size: 16px !important;
    line-height: 1.22 !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
  #top.woocommerce-checkout .wc-block-components-product-price {
    font-size: 14px !important;
  }

  #top.woocommerce-checkout .wc-block-components-product-metadata__description,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__description p {
    -webkit-line-clamp: 2 !important;
    font-size: 13px !important;
  }
}

@media only screen and (max-width: 420px) {
  #top.woocommerce-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    padding: 16px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item__image,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__image > div,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__image img {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }

  #top.woocommerce-checkout .wc-block-components-product-name,
  #top.woocommerce-checkout .wc-block-components-order-summary-item h2,
  #top.woocommerce-checkout .wc-block-components-order-summary-item h3 {
    font-size: 15px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
  #top.woocommerce-checkout .wc-block-components-product-price {
    font-size: 13px !important;
  }

  #top.woocommerce-checkout .wc-block-components-panel,
  #top.woocommerce-checkout .wc-block-components-totals-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #top.woocommerce-checkout .wc-block-components-totals-footer-item {
    padding: 18px 16px !important;
  }
}

/* ============================================================
   CHECKOUT - ORDER SUMMARY / FIX DEFINITIVO BADGE + PRODOTTO
   Corregge overlap tra quantità, immagine, titolo e prezzo
============================================================ */

#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  overflow: hidden !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) max-content !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 14px !important;
  row-gap: 4px !important;
  align-items: start !important;
  padding: 24px 24px 22px !important;
  min-height: 118px !important;
  overflow: visible !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__image {
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  position: relative !important;
  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  z-index: 2 !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__image > div:not(.wc-block-components-order-summary-item__quantity),
#top.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  margin: 0 !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  display: block !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}

/* Badge quantità: piccolo, sopra l'immagine, mai sopra il titolo */
#top.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
#top.woocommerce-checkout .wc-block-components-order-summary-item__image .wc-block-components-order-summary-item__quantity,
#top.woocommerce-checkout .wc-block-components-order-summary-item > .wc-block-components-order-summary-item__quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  left: auto !important;
  bottom: auto !important;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #0248AB !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 6px 14px rgba(2, 72, 171, 0.28) !important;
  transform: none !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
}

/* Se il badge è fratello dell'immagine, lo posiziona comunque sopra la foto */
#top.woocommerce-checkout .wc-block-components-order-summary-item > .wc-block-components-order-summary-item__quantity {
  top: 15px !important;
  left: 84px !important;
  right: auto !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__description {
  grid-column: 2 !important;
  grid-row: 1 / span 3 !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Titolo prodotto: leggibile, non script stretto, non si sovrappone */
#top.woocommerce-checkout .wc-block-components-product-name,
#top.woocommerce-checkout .wc-block-components-order-summary-item h2,
#top.woocommerce-checkout .wc-block-components-order-summary-item h3,
#top.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #0248AB !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.2px !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

#top.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
#top.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
#top.woocommerce-checkout .wc-block-components-product-price {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 2px 0 0 !important;
  min-width: max-content !important;
  color: #0248AB !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

#top.woocommerce-checkout .wc-block-components-product-metadata__description,
#top.woocommerce-checkout .wc-block-components-order-summary-item__description p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 7px 0 0 !important;
  color: #555555 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

@media only screen and (max-width: 480px) {
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > .wc-block-components-title,
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > h2,
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > h3 {
    padding: 20px 18px 16px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item {
    grid-template-columns: 62px minmax(0, 1fr) max-content !important;
    column-gap: 12px !important;
    padding: 22px 18px 20px !important;
    min-height: 106px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item__image,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__image > div:not(.wc-block-components-order-summary-item__quantity),
  #top.woocommerce-checkout .wc-block-components-order-summary-item__image img {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__image .wc-block-components-order-summary-item__quantity {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    top: -7px !important;
    right: -7px !important;
    font-size: 11px !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item > .wc-block-components-order-summary-item__quantity {
    top: 15px !important;
    left: 68px !important;
    right: auto !important;
  }

  #top.woocommerce-checkout .wc-block-components-product-name,
  #top.woocommerce-checkout .wc-block-components-order-summary-item h2,
  #top.woocommerce-checkout .wc-block-components-order-summary-item h3 {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  #top.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
  #top.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
  #top.woocommerce-checkout .wc-block-components-product-price {
    font-size: 13px !important;
  }
}

.cart_dropdown{border-style: none!important;}

.html_visible_cart .cart_dropdown {
    right: 10px!important;
}

/* ============================================================
   DONATION FOR WOOCOMMERCE - DONAZIONE RICORRENTE
   Full width, coerente con i box CHF - niente colonne desktop
============================================================ */

[id^="wc_donation_on_single_"] .in-action-elements > .row3 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* Box checkbox ricorrente */
[id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  margin: 0 0 12px !important;
  padding: 0 58px 0 92px !important;
  border: 2px solid #0248AB !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #0248AB !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Fascia arancione a sinistra, come i box CHF */
[id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label::before {
  content: "↻" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 72px !important;
  min-width: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f47a20 !important;
  color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

/* Nasconde il checkbox originale */
[id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label input.donation-is-recurring {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Checkbox grafico a destra */
[id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label .checkmark {
  position: absolute !important;
  top: 50% !important;
  right: 18px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 2px solid #0248AB !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  transform: translateY(-50%) !important;
  box-sizing: border-box !important;
}

[id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label .checkmark::after {
  content: "" !important;
  position: absolute !important;
  left: 7px !important;
  top: 3px !important;
  width: 6px !important;
  height: 12px !important;
  border: solid #ffffff !important;
  border-width: 0 3px 3px 0 !important;
  opacity: 0 !important;
  transform: rotate(45deg) !important;
}

[id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label input.donation-is-recurring:checked + .checkmark {
  background: #0248AB !important;
}

[id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label input.donation-is-recurring:checked + .checkmark::after {
  opacity: 1 !important;
}

/* Wrapper select: niente display forzato, così il plugin può mostrarlo/nasconderlo */
[id^="wc_donation_on_single_"] .row3 .donation_subscription {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Select ricorrenza full width, uno sotto l'altro */
[id^="wc_donation_on_single_"] .row3 .donation_subscription select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 44px 0 18px !important;
  border: 2px solid #0248AB !important;
  border-radius: 16px !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #ffffff !important;
  color: #0248AB !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

[id^="wc_donation_on_single_"] .row3 .donation_subscription select:last-child {
  margin-bottom: 0 !important;
}

[id^="wc_donation_on_single_"] .row3 .donation_subscription select:focus {
  border-color: #f47a20 !important;
  box-shadow: 0 0 0 3px rgba(244, 122, 32, 0.16) !important;
}

/* Mobile: testo e spazi più compatti */
@media only screen and (max-width: 480px) {
  [id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label {
    min-height: 56px !important;
    padding-left: 84px !important;
    padding-right: 52px !important;
    font-size: 16px !important;
  }

  [id^="wc_donation_on_single_"] .row3 .wc-label-radio.recurring-label::before {
    width: 66px !important;
    min-width: 66px !important;
  }

  [id^="wc_donation_on_single_"] .row3 .donation_subscription select {
    min-height: 56px !important;
    font-size: 15px !important;
  }
}


[id^="wc_donation_on_single_"] .checkmark {
    visibility: hidden!important;
}

.wc-block-components-product-details__name{display: none!important;}

/* ============================================================
   CART VUOTO - BOX PRODOTTI UGUALI ALLA PAGINA FAIRE UN DON
   Struttura WooCommerce Blocks: .wc-block-grid__product
============================================================ */

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block > h2.wp-block-heading,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-separator {
  display: none !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  width: 100% !important;
  max-width: 1220px !important;
  margin: 55px auto 70px !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-product-new,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-product-new {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
  position: relative !important;
  width: 100% !important;
  height: 390px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f7f7f7 !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  font-family: 'kalam', Helvetica, Arial, sans-serif;
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 23px 24px 0 !important;
  color: #0248AB !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.3px !important;
  text-align: center !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title::before {
  content: "" !important;
  position: absolute !important;
  top: -8px !important;
  left: 50% !important;
  width: 16px !important;
  height: 16px !important;
  margin-left: -8px !important;
  background: #ffffff !important;
  transform: rotate(45deg) !important;
  z-index: 2 !important;
}

/* Descrizioni aggiunte nel cart vuoto per imitare i box della pagina shop */
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="pack-alimentaire"] .wc-block-grid__product-title::after,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="pack-soutien-scolaire"] .wc-block-grid__product-title::after,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="kit-depistage-du-paludisme"] .wc-block-grid__product-title::after {
  display: block !important;
  margin: 21px auto 0 !important;
  color: #333333 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="pack-alimentaire"] .wc-block-grid__product-title::after {
  content: "Un soutien essentiel pour aider une famille vulnérable à couvrir une partie de ses besoins alimentaires de base." !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="pack-soutien-scolaire"] .wc-block-grid__product-title::after {
  content: "Une aide pour permettre aux enfants vulnérables de poursuivre leur scolarité avec plus de dignité et de stabilité." !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="kit-depistage-du-paludisme"] .wc-block-grid__product-title::after {
  content: "Une aide pour faciliter le dépistage du paludisme et favoriser une orientation rapide vers les soins nécessaires." !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price:empty {
  display: none !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  padding: 16px 22px 18px !important;
  border-top: 1px solid rgba(2, 72, 171, 0.08) !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #c9c9c9 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a:hover,
#top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a.add_to_cart_button:hover {
  color: #0248AB !important;
  background: transparent !important;
  transform: none !important;
}

@media only screen and (max-width: 1180px) {
  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
    height: 320px !important;
  }
}

@media only screen and (max-width: 989px) {
  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
    height: 280px !important;
  }
}

@media only screen and (max-width: 767px) {
  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    margin: 35px auto 55px !important;
    padding: 0 18px !important;
  }

  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
    border-radius: 18px !important;
  }

  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
    height: 260px !important;
  }

  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
    padding: 22px 22px 0 !important;
    font-size: 22px !important;
  }

  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="pack-alimentaire"] .wc-block-grid__product-title::after,
  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="pack-soutien-scolaire"] .wc-block-grid__product-title::after,
  #top.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link[href*="kit-depistage-du-paludisme"] .wc-block-grid__product-title::after {
    margin-top: 18px !important;
    font-size: 15px !important;
  }
}
/* ============================================================
   CHECKOUT - FORM PIÙ LEGGIBILE
   WooCommerce Blocks + fallback checkout classico
============================================================ */

#top.woocommerce-checkout .wp-block-woocommerce-checkout,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
#top.woocommerce-checkout .wc-block-checkout__main,
#top.woocommerce-checkout .wc-block-components-form {
  color: #222222 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

#top.woocommerce-checkout .wc-block-components-title,
#top.woocommerce-checkout .wc-block-components-checkout-step__title,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block h2,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block h3,
#top.woocommerce-checkout form.checkout h2,
#top.woocommerce-checkout form.checkout h3 {
  color: #0248AB !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  margin: 0 0 18px !important;
}

#top.woocommerce-checkout .wc-block-components-checkout-step,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-billing-address-block,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-payment-block,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-additional-information-block,
#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block {
  margin-bottom: 34px !important;
}

#top.woocommerce-checkout .wc-block-components-address-form,
#top.woocommerce-checkout .wc-block-components-checkout-step__container {
  gap: 16px !important;
}

#top.woocommerce-checkout .wc-block-components-text-input,
#top.woocommerce-checkout .wc-block-components-combobox,
#top.woocommerce-checkout .wc-block-components-country-input,
#top.woocommerce-checkout .wc-block-components-state-input,
#top.woocommerce-checkout form.checkout .form-row {
  margin-bottom: 16px !important;
}

#top.woocommerce-checkout .wc-block-components-text-input input,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
#top.woocommerce-checkout .wc-block-components-textarea,
#top.woocommerce-checkout form.checkout input.input-text,
#top.woocommerce-checkout form.checkout textarea,
#top.woocommerce-checkout form.checkout select,
#top.woocommerce-checkout form.checkout .select2-container .select2-selection--single {
  min-height: 62px !important;
  height: 62px !important;
  padding: 24px 16px 9px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
}

#top.woocommerce-checkout .wc-block-components-text-input label,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label,
#top.woocommerce-checkout form.checkout .form-row label {
  top: 9px !important;
  left: 16px !important;
  color: #5f6673 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  opacity: 1 !important;
}

#top.woocommerce-checkout .wc-block-components-text-input input::placeholder,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input::placeholder,
#top.woocommerce-checkout form.checkout input.input-text::placeholder,
#top.woocommerce-checkout form.checkout textarea::placeholder {
  color: #7a828f !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

#top.woocommerce-checkout .wc-block-components-text-input input:focus,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
#top.woocommerce-checkout .wc-block-components-textarea:focus,
#top.woocommerce-checkout form.checkout input.input-text:focus,
#top.woocommerce-checkout form.checkout textarea:focus,
#top.woocommerce-checkout form.checkout select:focus,
#top.woocommerce-checkout form.checkout .select2-container--focus .select2-selection--single,
#top.woocommerce-checkout form.checkout .select2-container--open .select2-selection--single {
  border-color: #0248AB !important;
  box-shadow: 0 0 0 3px rgba(2, 72, 171, 0.12) !important;
  outline: none !important;
}

#top.woocommerce-checkout .wc-block-components-text-input.has-error input,
#top.woocommerce-checkout .wc-block-components-combobox.has-error input,
#top.woocommerce-checkout form.checkout .form-row.woocommerce-invalid input.input-text,
#top.woocommerce-checkout form.checkout .form-row.woocommerce-invalid select {
  border-color: #C91455 !important;
  box-shadow: 0 0 0 3px rgba(201, 20, 85, 0.10) !important;
}

#top.woocommerce-checkout .wc-block-components-validation-error,
#top.woocommerce-checkout .wc-block-components-validation-error p,
#top.woocommerce-checkout form.checkout .woocommerce-error,
#top.woocommerce-checkout form.checkout .woocommerce-invalid-required-field .required {
  color: #C91455 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__address_2-toggle,
#top.woocommerce-checkout .wc-block-components-panel__button,
#top.woocommerce-checkout .wc-block-components-checkbox__label,
#top.woocommerce-checkout .wc-block-components-radio-control__label,
#top.woocommerce-checkout .wc-block-components-radio-control__description,
#top.woocommerce-checkout .wc-block-checkout__terms,
#top.woocommerce-checkout .wc-block-components-totals-item,
#top.woocommerce-checkout form.checkout p,
#top.woocommerce-checkout form.checkout label {
  color: #454b55 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__address_2-toggle,
#top.woocommerce-checkout .wc-block-components-panel__button {
  color: #0248AB !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

#top.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input,
#top.woocommerce-checkout .wc-block-components-radio-control__input {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
}

#top.woocommerce-checkout .wc-block-components-button:not(.is-link),
#top.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-components-button,
#top.woocommerce-checkout form.checkout button.button,
#top.woocommerce-checkout form.checkout #place_order {
  min-height: 58px !important;
  border-radius: 12px !important;
  background: #0248AB !important;
  color: #ffffff !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

#top.woocommerce-checkout .wc-block-components-button:not(.is-link):hover,
#top.woocommerce-checkout form.checkout button.button:hover,
#top.woocommerce-checkout form.checkout #place_order:hover {
  background: #013a8d !important;
  color: #ffffff !important;
}

#top.woocommerce-checkout .wc-block-components-express-payment__title,
#top.woocommerce-checkout .wc-block-components-express-payment-continue-rule,
#top.woocommerce-checkout .wc-block-components-express-payment-continue-rule__content {
  color: #333333 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

#top.woocommerce-checkout .wc-block-components-express-payment__content {
  border-color: #d8dde6 !important;
  border-radius: 14px !important;
}

@media only screen and (max-width: 767px) {
  #top.woocommerce-checkout .wc-block-components-title,
  #top.woocommerce-checkout .wc-block-components-checkout-step__title,
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block h2,
  #top.woocommerce-checkout .wp-block-woocommerce-checkout-fields-block h3,
  #top.woocommerce-checkout form.checkout h2,
  #top.woocommerce-checkout form.checkout h3 {
    font-size: 19px !important;
    margin-bottom: 15px !important;
  }

  #top.woocommerce-checkout .wc-block-components-text-input input,
  #top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
  #top.woocommerce-checkout .wc-block-components-textarea,
  #top.woocommerce-checkout form.checkout input.input-text,
  #top.woocommerce-checkout form.checkout textarea,
  #top.woocommerce-checkout form.checkout select,
  #top.woocommerce-checkout form.checkout .select2-container .select2-selection--single {
    min-height: 58px !important;
    height: 58px !important;
    padding: 23px 14px 8px !important;
    font-size: 15px !important;
  }

  #top.woocommerce-checkout .wc-block-components-text-input label,
  #top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label,
  #top.woocommerce-checkout form.checkout .form-row label {
    left: 14px !important;
    font-size: 11px !important;
  }
}


/* ============================================================
   CHECKOUT - DROPDOWN PAYS / CANTON PIÙ LEGGIBILI
   WooCommerce Blocks combobox + fallback select classico
============================================================ */

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control {
  position: relative !important;
  min-height: 62px !important;
}

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control label,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control label {
  position: absolute !important;
  top: 8px !important;
  left: 16px !important;
  z-index: 3 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #111111 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  transform: none !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control input.components-combobox-control__input,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control input.components-combobox-control__input {
  display: block !important;
  width: 100% !important;
  min-height: 62px !important;
  height: 62px !important;
  margin: 0 !important;
  padding: 29px 56px 9px 16px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  appearance: none !important;
}

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control input.components-combobox-control__input:focus,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control input.components-combobox-control__input:focus {
  border-color: #0248AB !important;
  box-shadow: 0 0 0 3px rgba(2, 72, 171, 0.12) !important;
  outline: none !important;
}

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control button,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control button,
#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control .components-combobox-control__button,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control .components-combobox-control__button {
  position: absolute !important;
  top: 1px !important;
  right: 1px !important;
  bottom: 1px !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: calc(100% - 2px) !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid #e5e8ef !important;
  border-radius: 0 12px 12px 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
}

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control button svg,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control button svg,
#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control .components-combobox-control__button svg,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control .components-combobox-control__button svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: #111111 !important;
  fill: currentColor !important;
}

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control:hover input.components-combobox-control__input,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control:hover input.components-combobox-control__input {
  border-color: #bfc7d5 !important;
}

#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control .components-form-token-field__suggestions-list,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control .components-form-token-field__suggestions-list,
#top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control__suggestions-container,
#top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control__suggestions-container {
  border-radius: 0 0 12px 12px !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
}

/* Fallback se WooCommerce usa select/select2 invece del combobox Blocks */
#top.woocommerce-checkout form.checkout #billing_country,
#top.woocommerce-checkout form.checkout #billing_state,
#top.woocommerce-checkout form.checkout .form-row .select2-container .select2-selection--single {
  min-height: 62px !important;
  height: 62px !important;
  padding: 24px 52px 9px 16px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
}

#top.woocommerce-checkout form.checkout .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  color: #1f2937 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 27px !important;
}

#top.woocommerce-checkout form.checkout .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 1px !important;
  right: 1px !important;
  width: 50px !important;
  height: 60px !important;
  border-left: 1px solid #e5e8ef !important;
}

@media only screen and (max-width: 767px) {
  #top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control input.components-combobox-control__input,
  #top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control input.components-combobox-control__input,
  #top.woocommerce-checkout form.checkout #billing_country,
  #top.woocommerce-checkout form.checkout #billing_state,
  #top.woocommerce-checkout form.checkout .form-row .select2-container .select2-selection--single {
    min-height: 58px !important;
    height: 58px !important;
    padding: 27px 52px 8px 14px !important;
    font-size: 15px !important;
  }

  #top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control label,
  #top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control label {
    top: 8px !important;
    left: 14px !important;
    font-size: 12px !important;
  }

  #top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control button,
  #top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control button,
  #top.woocommerce-checkout .wc-block-components-country-input .wc-block-components-combobox-control .components-combobox-control__button,
  #top.woocommerce-checkout .wc-block-components-state-input .wc-block-components-combobox-control .components-combobox-control__button {
    width: 48px !important;
    min-height: 56px !important;
  }
}

/* ============================================================
   CHECKOUT - FIX DEFINITIVO DROPDOWN PAYS / CANTON
   WooCommerce Blocks usa classi wc-block-components-*.
   Questo blocco va ALLA FINE del file style.css.
============================================================ */

#top.woocommerce-checkout .wc-block-components-address-form__country,
#top.woocommerce-checkout .wc-block-components-address-form__state,
#top.woocommerce-checkout .wc-block-components-combobox {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 16px !important;
  box-sizing: border-box !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control,
#top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control {
  position: relative !important;
  width: 100% !important;
  min-height: 66px !important;
  height: 66px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control label,
#top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control label,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label,
#top.woocommerce-checkout .wc-block-components-combobox-control__label {
  position: absolute !important;
  top: 8px !important;
  left: 16px !important;
  right: 60px !important;
  z-index: 20 !important;
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 80px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  color: #111111 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control input,
#top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control input,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
#top.woocommerce-checkout .wc-block-components-combobox-control input.wc-block-components-combobox-control__input,
#top.woocommerce-checkout input.wc-block-components-combobox-control__input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 66px !important;
  height: 66px !important;
  margin: 0 !important;
  padding: 30px 60px 9px 16px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  outline: none !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control input:focus,
#top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control input:focus,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
#top.woocommerce-checkout input.wc-block-components-combobox-control__input:focus {
  border-color: #0248AB !important;
  box-shadow: 0 0 0 3px rgba(2, 72, 171, 0.13) !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control button,
#top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control button,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control button,
#top.woocommerce-checkout .wc-block-components-combobox-control__button {
  position: absolute !important;
  top: 1px !important;
  right: 1px !important;
  bottom: 1px !important;
  left: auto !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid #e5e8ef !important;
  border-radius: 0 12px 12px 0 !important;
  outline: none !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control button:hover,
#top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control button:hover,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control button:hover,
#top.woocommerce-checkout .wc-block-components-combobox-control__button:hover {
  background: #f7f9fc !important;
  color: #0248AB !important;
}

#top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control button svg,
#top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control button svg,
#top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control button svg,
#top.woocommerce-checkout .wc-block-components-combobox-control__button svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: currentColor !important;
  fill: currentColor !important;
}

#top.woocommerce-checkout .wc-block-components-combobox-control .components-form-token-field__suggestions-list,
#top.woocommerce-checkout .wc-block-components-combobox-control .wc-block-components-combobox-control__suggestions-container,
#top.woocommerce-checkout .wc-block-components-combobox-control__suggestions-container,
#top.woocommerce-checkout .wc-block-components-form-token-field-wrapper {
  z-index: 99999 !important;
  border-radius: 0 0 12px 12px !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
}

/* Fallback checkout classico / Select2 */
#top.woocommerce-checkout form.checkout #billing_country_field,
#top.woocommerce-checkout form.checkout #billing_state_field {
  position: relative !important;
}

#top.woocommerce-checkout form.checkout #billing_country_field label,
#top.woocommerce-checkout form.checkout #billing_state_field label {
  position: absolute !important;
  top: 8px !important;
  left: 16px !important;
  z-index: 20 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111111 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  pointer-events: none !important;
}

#top.woocommerce-checkout form.checkout #billing_country,
#top.woocommerce-checkout form.checkout #billing_state,
#top.woocommerce-checkout form.checkout #billing_country_field .select2-container .select2-selection--single,
#top.woocommerce-checkout form.checkout #billing_state_field .select2-container .select2-selection--single {
  min-height: 66px !important;
  height: 66px !important;
  padding: 30px 60px 9px 16px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

#top.woocommerce-checkout form.checkout #billing_country_field .select2-selection__rendered,
#top.woocommerce-checkout form.checkout #billing_state_field .select2-selection__rendered {
  padding: 0 !important;
  color: #1f2937 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 25px !important;
}

#top.woocommerce-checkout form.checkout #billing_country_field .select2-selection__arrow,
#top.woocommerce-checkout form.checkout #billing_state_field .select2-selection__arrow {
  top: 1px !important;
  right: 1px !important;
  width: 54px !important;
  height: 64px !important;
  border-left: 1px solid #e5e8ef !important;
}

@media only screen and (max-width: 767px) {
  #top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control,
  #top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control,
  #top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control {
    min-height: 62px !important;
    height: 62px !important;
  }

  #top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control input,
  #top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control input,
  #top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
  #top.woocommerce-checkout input.wc-block-components-combobox-control__input,
  #top.woocommerce-checkout form.checkout #billing_country,
  #top.woocommerce-checkout form.checkout #billing_state,
  #top.woocommerce-checkout form.checkout #billing_country_field .select2-container .select2-selection--single,
  #top.woocommerce-checkout form.checkout #billing_state_field .select2-container .select2-selection--single {
    min-height: 62px !important;
    height: 62px !important;
    padding: 29px 56px 8px 14px !important;
    font-size: 16px !important;
  }

  #top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control label,
  #top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control label,
  #top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label,
  #top.woocommerce-checkout .wc-block-components-combobox-control__label,
  #top.woocommerce-checkout form.checkout #billing_country_field label,
  #top.woocommerce-checkout form.checkout #billing_state_field label {
    top: 8px !important;
    left: 14px !important;
    font-size: 12px !important;
  }

  #top.woocommerce-checkout .wc-block-components-address-form__country .wc-block-components-combobox-control button,
  #top.woocommerce-checkout .wc-block-components-address-form__state .wc-block-components-combobox-control button,
  #top.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control button,
  #top.woocommerce-checkout .wc-block-components-combobox-control__button {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
  }
}

/* ============================================================
   CHECKOUT - LABEL FUORI DAL CAMPO
   WooCommerce Blocks + checkout classico
============================================================ */

html body#top.woocommerce-checkout .wc-block-checkout,
html body#top.woocommerce-checkout .wc-block-components-sidebar-layout {
  color: #222222 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
}

/* Spazio generale tra i campi */
html body#top.woocommerce-checkout .wc-block-components-address-form,
html body#top.woocommerce-checkout .wc-block-components-checkout-step__content,
html body#top.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block,
html body#top.woocommerce-checkout .wp-block-woocommerce-checkout-billing-address-block {
  overflow: visible !important;
}

/* Contenitore dei campi: il label diventa una riga sopra */
html body#top.woocommerce-checkout .wc-block-components-text-input,
html body#top.woocommerce-checkout .wc-block-components-combobox-control,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Label fuori dal campo */
html body#top.woocommerce-checkout .wc-block-components-text-input label,
html body#top.woocommerce-checkout .wc-block-components-combobox-control label,
html body#top.woocommerce-checkout .wc-block-components-text-input .wc-block-components-text-input__label,
html body#top.woocommerce-checkout .wc-block-components-combobox-control .wc-block-components-combobox-control__label,
html body#top.woocommerce-checkout .wc-block-components-address-form label {
  position: static !important;
  order: 1 !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  color: #111111 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Input normali */
html body#top.woocommerce-checkout .wc-block-components-text-input input,
html body#top.woocommerce-checkout .wc-block-components-text-input input[type="text"],
html body#top.woocommerce-checkout .wc-block-components-text-input input[type="email"],
html body#top.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
html body#top.woocommerce-checkout .wc-block-components-text-input input[type="number"],
html body#top.woocommerce-checkout .wc-block-components-text-input input[type="password"],
html body#top.woocommerce-checkout .wc-block-components-combobox-control input,
html body#top.woocommerce-checkout input.wc-block-components-combobox-control__input {
  position: relative !important;
  order: 2 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  outline: none !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 58px !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transform: none !important;
}

/* Dropdown: spazio per la freccia */
html body#top.woocommerce-checkout .wc-block-components-combobox-control input,
html body#top.woocommerce-checkout input.wc-block-components-combobox-control__input {
  padding-right: 64px !important;
}

/* Focus più leggibile */
html body#top.woocommerce-checkout .wc-block-components-text-input input:focus,
html body#top.woocommerce-checkout .wc-block-components-combobox-control input:focus,
html body#top.woocommerce-checkout input.wc-block-components-combobox-control__input:focus {
  border-color: #0248AB !important;
  box-shadow: 0 0 0 3px rgba(2, 72, 171, 0.14) !important;
}

/* Freccia dei dropdown allineata al campo, non al label */
html body#top.woocommerce-checkout .wc-block-components-combobox-control button,
html body#top.woocommerce-checkout .wc-block-components-combobox-control__button {
  position: absolute !important;
  top: auto !important;
  right: 1px !important;
  bottom: 1px !important;
  left: auto !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid #e5e8ef !important;
  border-radius: 0 12px 12px 0 !important;
  outline: none !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
}

html body#top.woocommerce-checkout .wc-block-components-combobox-control button:hover,
html body#top.woocommerce-checkout .wc-block-components-combobox-control__button:hover {
  background: #f7f9fc !important;
  color: #0248AB !important;
}

html body#top.woocommerce-checkout .wc-block-components-combobox-control button svg,
html body#top.woocommerce-checkout .wc-block-components-combobox-control__button svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: currentColor !important;
  fill: currentColor !important;
}

/* Menu suggerimenti dei dropdown */
html body#top.woocommerce-checkout .wc-block-components-combobox-control .components-form-token-field__suggestions-list,
html body#top.woocommerce-checkout .wc-block-components-combobox-control .wc-block-components-combobox-control__suggestions-container,
html body#top.woocommerce-checkout .wc-block-components-combobox-control__suggestions-container,
html body#top.woocommerce-checkout .wc-block-components-form-token-field-wrapper {
  z-index: 99999 !important;
  margin-top: 4px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  box-shadow: 0 14px 32px rgba(2, 72, 171, 0.14) !important;
}

/* Eventuali label richiesti/optional */
html body#top.woocommerce-checkout .wc-block-components-address-form .required,
html body#top.woocommerce-checkout .wc-block-components-address-form .optional {
  color: #6b7280 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Checkout classico / Select2 fallback */
html body#top.woocommerce-checkout form.checkout .form-row {
  display: block !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body#top.woocommerce-checkout form.checkout .form-row label {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #111111 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
  transform: none !important;
}

html body#top.woocommerce-checkout form.checkout .form-row input.input-text,
html body#top.woocommerce-checkout form.checkout .form-row textarea,
html body#top.woocommerce-checkout form.checkout .form-row select,
html body#top.woocommerce-checkout form.checkout .form-row .select2-container .select2-selection--single {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 58px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body#top.woocommerce-checkout form.checkout .form-row .select2-container .select2-selection--single {
  padding-right: 54px !important;
}

html body#top.woocommerce-checkout form.checkout .form-row .select2-selection__rendered {
  padding: 0 !important;
  color: #1f2937 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 58px !important;
}

html body#top.woocommerce-checkout form.checkout .form-row .select2-selection__arrow {
  top: 1px !important;
  right: 1px !important;
  width: 54px !important;
  height: 56px !important;
  border-left: 1px solid #e5e8ef !important;
}

@media only screen and (max-width: 767px) {
  html body#top.woocommerce-checkout .wc-block-components-text-input,
  html body#top.woocommerce-checkout .wc-block-components-combobox-control,
  html body#top.woocommerce-checkout form.checkout .form-row {
    margin-bottom: 18px !important;
  }

  html body#top.woocommerce-checkout .wc-block-components-text-input label,
  html body#top.woocommerce-checkout .wc-block-components-combobox-control label,
  html body#top.woocommerce-checkout .wc-block-components-address-form label,
  html body#top.woocommerce-checkout form.checkout .form-row label {
    margin-bottom: 7px !important;
    font-size: 14px !important;
  }

  html body#top.woocommerce-checkout .wc-block-components-text-input input,
  html body#top.woocommerce-checkout .wc-block-components-combobox-control input,
  html body#top.woocommerce-checkout input.wc-block-components-combobox-control__input,
  html body#top.woocommerce-checkout form.checkout .form-row input.input-text,
  html body#top.woocommerce-checkout form.checkout .form-row select,
  html body#top.woocommerce-checkout form.checkout .form-row .select2-container .select2-selection--single {
    min-height: 56px !important;
    height: 56px !important;
    padding-left: 14px !important;
    font-size: 16px !important;
    line-height: 56px !important;
  }

  html body#top.woocommerce-checkout .wc-block-components-combobox-control button,
  html body#top.woocommerce-checkout .wc-block-components-combobox-control__button,
  html body#top.woocommerce-checkout form.checkout .form-row .select2-selection__arrow {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
  }
}


html body#top.woocommerce-checkout .wc-block-components-combobox-control input, html body#top.woocommerce-checkout input.wc-block-components-combobox-control__input, html body#top.woocommerce-checkout .wc-block-components-address-form select, html body#top.woocommerce-checkout .wc-block-components-address-form .components-combobox-control__input {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 16px !important;
}

.wc-blocks-components-select .wc-blocks-components-select__expand {top:90%!important;}

/* ============================================================
   WOOCOMMERCE BLOCKS - NASCONDI SKELETON / CARICAMENTO GRIGIO
============================================================ */

#top.woocommerce-cart .wc-block-components-skeleton,
#top.woocommerce-checkout .wc-block-components-skeleton,
#top.woocommerce-cart .wc-block-components-loading-mask,
#top.woocommerce-checkout .wc-block-components-loading-mask,
#top.woocommerce-cart [class*="skeleton"],
#top.woocommerce-checkout [class*="skeleton"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

html.svf-wc-blocks-loading body.woocommerce-cart .entry-content,
html.svf-wc-blocks-loading body.woocommerce-checkout .entry-content {
  visibility: hidden !important;
  opacity: 0 !important;
}

html.svf-wc-blocks-ready body.woocommerce-cart .entry-content,
html.svf-wc-blocks-ready body.woocommerce-checkout .entry-content {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ============================================================
   CHECKOUT - ALLINEA DROPDOWN PAESE + CANTON
============================================================ */

html body#top.woocommerce-checkout .wc-block-components-address-form__country,
html body#top.woocommerce-checkout .wc-block-components-address-form__state,
html body#top.woocommerce-checkout .wc-block-components-country-input,
html body#top.woocommerce-checkout .wc-block-components-state-input,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Label fuori dal campo */
html body#top.woocommerce-checkout .wc-block-components-address-form__country label,
html body#top.woocommerce-checkout .wc-block-components-address-form__state label,
html body#top.woocommerce-checkout .wc-block-components-country-input label,
html body#top.woocommerce-checkout .wc-block-components-state-input label,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select__label,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control label {
  position: static !important;
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #111111 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Contenitore dropdown */
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select__container,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control {
  width: 100% !important;
  max-width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Campo dropdown vero e proprio */
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select__select,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control input,
html body#top.woocommerce-checkout .wc-block-components-address-form input.wc-block-components-combobox-control__input {
  width: 100% !important;
  max-width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 58px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Spazio corretto se il dropdown ha il pulsante/freccia a destra */
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control input,
html body#top.woocommerce-checkout .wc-block-components-address-form input.wc-block-components-combobox-control__input {
  padding-right: 64px !important;
}

/* Pulsante freccia allineato al campo */
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control button,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control__button {
  position: absolute !important;
  right: 1px !important;
  bottom: 1px !important;
  top: auto !important;
  width: 54px !important;
  height: 56px !important;
  min-height: 56px !important;
  border: none !important;
  border-left: 1px solid #e5e8ef !important;
  border-radius: 0 12px 12px 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* Focus */
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select__select:focus,
html body#top.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control input:focus,
html body#top.woocommerce-checkout .wc-block-components-address-form input.wc-block-components-combobox-control__input:focus {
  border-color: #0248AB !important;
  box-shadow: 0 0 0 3px rgba(2, 72, 171, 0.14) !important;
  outline: none !important;
}
/* ============================================================
   CHECKOUT - CHECKBOX NOTE DONAZIONE VISIBILE
============================================================ */

html body#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkbox__input {
  position: relative !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 0 !important;
  accent-color: #0248AB !important;
  cursor: pointer !important;
}

html body#top.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkbox__label {
  color: #1f2937 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.wc-block-components-product-metadata__description {display: none!important;}
