/**
 * Temporary compatibility bridge for the 2021-2026 Avada Global Custom CSS.
 * Every !important here counters an existing legacy !important rule. Delete
 * this file after the corresponding legacy blocks have been removed from
 * Avada > Options > Custom CSS (ES and EN).
 */
body.cy-design :where(.price, .product .price) .amount,
body.cy-design .product-details span.woocommerce-Price-amount,
body.cy-design .muestraTiendaPie .amount,
body.cy-design .fusion-menu-cart-item-details .amount {
  margin-right: .2rem !important;
  font-size: inherit !important;
}

body.cy-design :where(
  .wpcf7-form,
  .woocommerce-form,
  .woocommerce-checkout,
  .woocommerce-MyAccount-content
) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]), textarea, select) {
  height: auto !important;
  min-height: 3.2rem !important;
  padding: .78rem 1rem !important;
  border: 1px solid rgb(23 20 26 / 14%) !important;
  border-radius: var(--cy-radius-md) !important;
  background: rgb(255 255 255 / 88%) !important;
  font-size: .95rem !important;
}

body.cy-design :where(.wpcf7-form, .woocommerce-form, .woocommerce-checkout) textarea {
  min-height: 9.5rem !important;
}

body.cy-design :where(.contenedorPatrocinadores, .cy-sponsor-strip) {
  height: auto !important;
}

/* Avada and Slider Revolution emit inline typography and mobile dimensions. */
body.cy-design :is(h1, h2, h3, h4, h5, h6),
body.cy-design .fusion-title .title-heading-tag,
body.cy-design .cy-home-hero-copy {
  font-family: var(--cy-font-display) !important;
}

body.cy-page-home .cy-home-news-hidden {
  display: none !important;
}

body.cy-page-home .cy-home-news-empty {
  display: none !important;
}

body.cy-page-home .contenedorPatrocinadores > .fusion-builder-row > .fusion-builder-column:nth-child(2) {
  padding-top: clamp(8.75rem, 9vw, 10.65rem) !important;
}

body.cy-page-home .cy-native-sponsor img,
body.cy-page-home .cy-native-sponsor:hover img,
body.cy-page-home .cy-native-sponsor:focus-visible img {
  transform: none !important;
}

body.cy-page-home .fusion-fullwidth.contenedorPatrocinadores,
body.cy-page-home .contenedorPatrocinadores {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: 0 !important;
  margin-left: calc(50% - 50vw) !important;
}

body.cy-design .BlogDestacado .fusion-post-wrapper,
body.cy-design #BlogDestacado .fusion-post-wrapper {
  height: auto !important;
  border-radius: var(--cy-radius-lg) !important;
}

body.cy-design .BlogDestacado .fusion-post-content-wrapper,
body.cy-design #BlogDestacado .fusion-post-content-wrapper {
  height: auto !important;
  padding: clamp(1.25rem, 2.2vw, 2rem) !important;
  background: linear-gradient(180deg, rgb(14 12 16 / 44%), rgb(14 12 16 / 88%)) !important;
}

/* Legacy blog rules removed horizontal padding from compact cards. */
body.cy-design :where(
  .BlogActualidad,
  .BlogPortada,
  .BlogDestacado,
  #BlogActualidad,
  #BlogPortada,
  #BlogDestacado,
  .fusion-blog-shortcode
) .fusion-post-wrapper .fusion-post-content-wrapper {
  padding: clamp(1.25rem, 2.2vw, 2rem) !important;
}

body.cy-design :where(
  .BlogActualidad,
  .BlogPortada,
  .BlogDestacado,
  #BlogActualidad,
  #BlogPortada,
  #BlogDestacado,
  .fusion-blog-shortcode
) .fusion-post-wrapper .fusion-post-content {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.cy-design :where(
  .fusion-content-boxes,
  .fusion-events-shortcode,
  .fusion-recent-posts
) :where(.content-wrapper-background, .fusion-events-content-wrapper, .recent-posts-content) {
  padding: clamp(1.1rem, 2vw, 1.65rem) !important;
}

body.cy-design .related .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

body.cy-design .related .products li.product {
  display: block !important;
  width: auto !important;
}

body.cy-design .tribe-events-event-image {
  display: block !important;
}

body.cy-design .fusion-events-content-wrapper {
  padding: clamp(1rem, 2vw, 1.5rem) !important;
}

body.cy-design .fusion-button.button-2 {
  color: #fff !important;
  border-color: transparent !important;
  border-radius: var(--cy-radius-pill) !important;
  background: linear-gradient(135deg, var(--cy-accent-bright), var(--cy-accent-deep)) !important;
}

body.cy-design .fusion-button.button-2 :where(.fusion-button-text, i) {
  color: #fff !important;
}

body.cy-design .fusion-tb-header .fusion-social-network-icon:hover {
  color: #fff !important;
  background: var(--cy-accent) !important;
}

@media (max-width: 767px) {
  body.cy-page-home .contenedorPatrocinadores {
    background-color: #f8f5ef !important;
    background-image: none !important;
  }

  body.cy-page-home .cy-home-hero-kicker {
    width: min(88vw, 23rem) !important;
    font-size: clamp(1.15rem, 5.8vw, 1.6rem) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  body.cy-page-home .cy-home-hero-title {
    width: min(94vw, 25rem) !important;
    font-size: clamp(2rem, 9.5vw, 2.65rem) !important;
    font-weight: 700 !important;
    line-height: 1.02 !important;
    letter-spacing: -.025em !important;
    white-space: normal !important;
  }

  body.cy-page-home .cy-home-hero-strapline {
    width: min(90vw, 24rem) !important;
    font-size: clamp(.78rem, 3.35vw, .94rem) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  body.cy-page-home .contenedorPatrocinadores > .fusion-builder-row > .fusion-builder-column:nth-child(2) {
    padding-top: 0 !important;
  }

  body.cy-design .related .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  body.cy-design .related .products {
    grid-template-columns: minmax(0, 1fr);
  }

  body.cy-design #moove_gdpr_cookie_info_bar {
    right: .65rem !important;
    bottom: .65rem !important;
    left: .65rem !important;
    width: auto !important;
    margin: 0 !important;
  }
}
