/* Custom CSS */

/* Ocultar la cabecera hero en el proceso de compra. */
body#checkout #hero_section {
  display: none !important;
}

/* Unidades junto al selector de cantidad de la ficha de producto. */
.product-add-to-cart .product-quantity .qty.ib-quantity-with-unit {
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}
.product-add-to-cart .ib-quantity-unit {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Conservar el destino AJAX del aviso, sin mostrar un recuadro si no hay texto. */
.product-minimal-quantity:empty {
  display: none !important;
}

/* Contraste del texto de unidades y de los avisos en la ficha. */
body#product .product-add-to-cart .product-quantity .ib-quantity-unit,
body#product .product-minimal-quantity,
body#product article.alert.alert-info,
body#product article.alert.alert-info li {
  color: #00356f !important;
}

/* Resumen de importes comun al popup, lateral y pagina de carrito. */
.ib-cart-financial-summary {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  color: #00356f;
}
.elementor-widget-ava-shopping-cart .elementor-cart__summary .ib-cart-financial-summary .label,
.elementor-widget-ava-shopping-cart .elementor-cart__summary .ib-cart-financial-summary .value,
.elementor-widget-ava-shopping-cart .elementor-cart__summary .ib-cart-summary-heading > strong,
.elementor-widget-ava-shopping-cart .elementor-cart__summary .ib-cart-summary-heading > span {
  display: block;
}
.ib-cart-summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid #dfe4ea;
  text-align: left;
}
.ib-cart-summary-heading > span {
  flex-shrink: 0;
  font-size: 12px;
}
.ib-financial-line.cart-summary-line,
.ib-cart-financial-totals .ib-financial-line.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  margin: 0;
}
.ib-financial-line.cart-summary-line > .label {
  flex: 1 1 auto;
  float: none;
  max-width: none;
  min-width: 0;
  white-space: normal;
  text-align: left;
}
.ib-financial-line.cart-summary-line > .value {
  flex: 0 0 auto;
  float: none;
  text-align: right;
  white-space: nowrap;
}
.ib-financial-line.ib-financial-total {
  border-top: 1px solid #dfe4ea;
  margin-top: 12px;
  padding-top: 18px;
  font-weight: 700;
}
.ib-financial-total > .label,
.ib-financial-total > .value {
  font-weight: 700;
}
.ib-cart-financial-totals .cart-detailed-subtotals {
  padding-bottom: 0;
}
.ib-cart-financial-totals .cart-summary-totals {
  padding-top: 0;
}
#blockcart-modal .ib-financial-line {
  padding-right: 8px;
  padding-left: 8px;
}
