tr.woocommerce-shipping-totals.shipping {
  display: grid !important;
  grid-template-columns: 1fr;
  display: table-cell !important;
  width: 100%;
  width: 100%;
  display: block;
}

.shipping-method-description {
  display: none;
}

.woocommerce-cart .woocommerce ul#shipping_method {
  margin-top: 50px;
}

.woocommerce #shipping_method li input {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  accent-color: var(--e-global-color-accent);
}

label[for="shipping_method_0_free_shipping2"] {
  background-color: #a8e7a8;
  padding: 5px 15px 8px 15px;
  font-weight: 500 !important;
  color: #135751;
  border-radius: 15px;
}

/* Singolo metodo di spedizione */
.woocommerce-shipping-methods li {
  list-style: none;
  margin: 0;
  margin-bottom: 15px !important;
  flex-direction: row;
  width: 100%;
  justify-content: flex-start;
  column-gap: 10px;
  background: #fff;
  padding: 10px 16px 12px 16px !important;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500 !important;
  color: black !important;
}

.woocommerce-shipping-methods li label {
  line-height: 1;
  font-weight: 500 !important;
  color: black !important;
  font-size: 14px !important;
  display: inline-block !important;
  max-width: 80% !important;
}

/*
.woocommerce-shipping-methods li label:hover {
  border-color: black;
  background: #f8f9fa;
}*/

/* Data di consegna */
.shipping-delivery-date {
  font-size: 14px !important;
  margin-top: 6px;
  font-weight: 400 !important;
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  line-height: 1;
  margin-left: 27px !important;
  color: #787878 !important;
  margin-top: 3px !important;
}

/* Layout responsive */
@media (min-width: 768px) {
  .woocommerce-shipping-methods li label {
    flex-direction: row;
    align-items: center;
  }

  .shipping-delivery-date {
    margin-top: 0;
  }
}

tr.woocommerce-shipping-totals.shipping td {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 880px) {
  .woocommerce-shipping-methods li {
    flex-direction: column;
  }

  .woocommerce-shipping-methods li label {
    width: fit-content;
  }

  .shipping-delivery-date {
    margin: 0;
    font-size: 12px !important;
  }
}

/* 
Pickup points
*/
/* Container principale */
.fs-pickup-point-box-content {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: inherit;
}

/* Titolo */
.fs-pickup-point-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #111;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Lista pickup */
.fs-points-map-nearby-points-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* Singolo punto */
.fs-points-map-nearby-point {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 14px;
  transition: all 0.2s ease;
  background: #fafafa;
  cursor: pointer;
}

.fs-points-map-nearby-point:hover {
  border-color: #111;
  background: #fff;
}

/* label */
.fs-points-map-nearby-point label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
}

/* radio modern */
.fs-points-map-nearby-point input[type="radio"] {
  margin-top: 3px;
  accent-color: #111;
  transform: scale(1.2);
}

/* Selezionato */
.fs-points-map-nearby-point input[type="radio"]:checked + span,
.fs-points-map-nearby-point:has(input:checked) {
  border-color: #111;
  background: #f5f5f5;
}

/* Details box */
.fs-points-point-details-container {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* Nome punto */
.fs-points-point-details-container-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.fs-points-point-details-container-name strong {
  color: #000;
  display: block;
  margin-bottom: 5px;
}

/* Mappa */
.fs-points-point-details-preview-map {
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  margin-bottom: 15px;
}

/* Bottone */
.fs-points-point-details-open-map-button {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.fs-points-point-details-open-map-button:hover {
  background: #333;
}

/* Responsive */
@media (max-width: 768px) {
  tr.woocommerce-shipping-totals.shipping {
    display: block !important;
  }

  .fs-pickup-point-box-content {
    padding: 15px;
  }

  .fs-points-point-details-preview-map {
    height: 200px;
  }

  .elementor-widget-woocommerce-checkout-page .woocommerce .shop_table {
    display: flex;
    flex-direction: column;
  }

  .elementor-widget-woocommerce-checkout-page td.product-name {
    width: 75%;
  }
}
