/* Sorteos comparte la proporción de Comida y Ayuda. Los ajustes del admin prevalecen. */
#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) {
  display: block;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 1px solid #e9def8 !important;
  border-radius: 22px !important;
  background: #f8f3ff !important;
  box-shadow: 0 8px 22px rgb(74 35 111 / 9%) !important;
}

#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > .home-opportunity-art {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 20 / 7;
  object-fit: contain;
}

#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > .user-giveaways-home-copy {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > button {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  max-width: none;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
  transform: none !important;
  cursor: pointer;
}

#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > button .bi { display: none; }
#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > button:disabled { cursor: default; }
#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner):focus-within {
  outline: 3px solid #7c3aed;
  outline-offset: 3px;
}

/* Texto y acción reales disponibles cuando la imagen no está disponible. */
:is(.yovoy-reduced-data #user-giveaways-entry, #user-giveaways-entry.is-giveaways-image-unavailable).home-opportunity-card:not(.is-configured-banner) {
  padding: 18px !important;
}
:is(.yovoy-reduced-data #user-giveaways-entry, #user-giveaways-entry.is-giveaways-image-unavailable).home-opportunity-card:not(.is-configured-banner) > .home-opportunity-art {
  display: none !important;
}
:is(.yovoy-reduced-data #user-giveaways-entry, #user-giveaways-entry.is-giveaways-image-unavailable).home-opportunity-card:not(.is-configured-banner) > .user-giveaways-home-copy {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0 0 12px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
:is(.yovoy-reduced-data #user-giveaways-entry, #user-giveaways-entry.is-giveaways-image-unavailable).home-opportunity-card:not(.is-configured-banner) > button {
  position: relative !important;
  inset: auto;
  height: auto !important;
  width: auto !important;
  padding: 12px 18px !important;
  color: #fff !important;
  font-size: 13px !important;
  background: #7c3aed !important;
  border-radius: 14px;
}

@media (prefers-reduced-data: reduce), (forced-colors: active) {
  #user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) { padding: 18px !important; }
  #user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > .home-opportunity-art { display: none !important; }
  #user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > .user-giveaways-home-copy {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0 0 12px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  #user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) > button {
    position: relative !important;
    inset: auto;
    height: auto !important;
    width: auto !important;
    padding: 12px 18px !important;
    color: #fff !important;
    font-size: 13px !important;
    background: #7c3aed !important;
    border-radius: 14px;
  }
}

#user-giveaways-entry.home-opportunity-card:not(.is-configured-banner) .user-giveaways-home-copy p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 13px;
}
