/* At tablet width Elementor shows both headers and fixes its mobile header to 100px. */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-location-header > .elementor-element-50c50e8 { display: none !important; }
  .elementor-location-header > .elementor-element-98b1f3b.elementor-sticky__spacer { display: none !important; }
  .elementor-location-header > .elementor-element-98b1f3b:not(.elementor-sticky__spacer) {
    display: flex !important; position: relative !important; top: auto !important; left: auto !important;
    width: 100% !important; max-width: 100% !important; min-height: 0 !important; margin: 0 !important;
  }
  .elementor-location-header .elementor-element-98b1f3b > .e-con-inner {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  }
  .elementor-location-header .elementor-element-30f2b86 {
    display: grid !important; grid-template-columns: 44px minmax(110px, 1fr) auto 44px !important;
    gap: 10px !important; align-items: center !important; width: 100% !important;
    min-height: 68px !important; padding: 8px 20px !important;
  }
  .elementor-location-header .elementor-element-30f2b86 > div {
    width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important;
    transform: none !important; justify-content: center !important;
  }
  .elementor-location-header .elementor-element-30f2b86 .elementor-widget { width: auto !important; }
  .elementor-location-header .elementor-element-30f2b86 .elementor-element-c01a890 img {
    width: 100% !important; max-width: 145px !important; height: auto !important;
  }
  .elementor-location-header .elementor-element-30f2b86 .tudtf-incidencia-link {
    position: static !important; transform: none !important; margin: 0 !important;
    white-space: nowrap !important;
  }
}

/* The link is a full-width field, never a column beside the quantity. */
@media (max-width: 767px) {
  .single-product form.cart .wapf-field-container:has(input[name="wapf[field_ebc8072]"]),
  .single-product form.cart .wapf-field-container:has(input[name="wapf[field_c2a6b46]"]) {
    width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important;
  }
  body.home { overflow-x: clip; }
  body.home .elementor-widget-container, body.home .elementor-heading-title { max-width: 100%; }
}
@media (max-width: 359px) {
  body.home .go-hnp__head { overflow: clip; }
  body.home .go-hnp__actions { transform: translateX(-14px); }
  body.home .elementor-headline-dynamic-wrapper { max-width: calc(100vw - 32px) !important; overflow: hidden !important; }
  .elementor-location-footer ul.elementor-icon-list-items { box-sizing: border-box; max-width: 100vw !important; width: 100% !important; margin-left: 0 !important; }
}

.tudtf-patch-delivery {
  box-sizing: border-box; width: 100%; padding: 12px 14px; margin: 12px 0;
  border: 1px solid #efd7db; border-radius: 9px; background: #fff7f8;
  color: #8d1524; font-size: 15px; line-height: 1.5;
}
body.tudtf-cart-has-flexpatch .tdd-rate-date,
body.tudtf-cart-has-flexpatch .tdd-summary { display: none !important; }
body.tudtf-cart-has-flexpatch .wfacp_shipping_options::before {
  content: "Los productos FlexPatch requieren fabricación. El envío urgente afecta al transporte posterior, no acorta la fecha de producción indicada en la ficha.";
  display: block; padding: 12px 14px; margin: 0 0 12px; border-radius: 8px;
  background: #fff7f8; color: #8d1524; line-height: 1.45;
}

/* FunnelKit copies the shipping label into a narrow confirmation row. */
.wfacp_order_summary .tdd-rate-date,
.wfacp_main_form .wfacp_shipping_step .tdd-rate-date { margin-left: 0 !important; }
.wfacp_step_preview .tdd-shipping-heading,
.wfacp_steps_wrap .tdd-shipping-heading { display: flex !important; flex-wrap: wrap; gap: 4px 8px; }

.tudtf-link-error { display: block; color: #b8071b; font-size: 14px; line-height: 1.35; margin-top: 6px; }
.tudtf-credit-explanation { padding: 12px 16px; border: 1px solid #e4e7ee; border-radius: 8px; background: #fafbfc; }
