/**
 * EcoShop.com.pl — Dynamic Contextual Intent Hero Banner Styles
 * ==============================================================
 * @version 1.0.0 (2026-11-11)
 * @author EcoShop Engineering & CRO Team
 */

/* Kontener główny */
.ecoshop-intent-hero-wrap {
  position: relative;
  width: 100%;
  margin: 0 0 25px 0;
  box-sizing: border-box;
  animation: ecoshopFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ecoshopFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ukrycie oryginalnego banera, gdy intencja jest aktywna */
.elementor-widget.ecoshop-original-hero-hidden,
.ecoshop-intent-active-section .elementor-widget.ecoshop-original-hero-hidden,
.ecoshop-intent-active-section .elementor-element-j4d6s78.ecoshop-original-hero-hidden {
  display: none !important;
}

/* Wymuszenie wyświetlania na mobile kontenera Elementora dla banera intencyjnego */
.ecoshop-intent-active-section,
.ecoshop-intent-active-section .elementor-column,
.ecoshop-intent-active-section .elementor-column-wrap,
.ecoshop-intent-active-section .elementor-widget-wrap {
  display: block !important;
}

/* Karta banera */
.ecoshop-intent-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #ffffff;
  padding: 38px 46px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Subtelny przycisk zamknięcia personalizacji */
.ecoshop-intent-hero-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.ecoshop-intent-hero-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Ciało banera (Flexbox / Grid) */
.ecoshop-intent-hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

/* Lewa kolumna: Treść */
.ecoshop-intent-hero-content {
  flex: 1 1 65%;
  min-width: 0;
}

/* Błyszcząca odznaka intencji */
.ecoshop-intent-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Tytuł H2 */
.ecoshop-intent-hero-title {
  font-size: 32px;
  line-height: 1.22;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #ffffff;
  letter-spacing: -0.01em;
  font-family: inherit;
}

/* Podtytuł */
.ecoshop-intent-hero-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 18px 0;
  max-width: 680px;
}

/* Rząd odznak zaufania (Trust Pills) */
.ecoshop-intent-hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 22px;
}

.ecoshop-hero-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 4px 10px;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

/* Sekcja akcji CTA */
.ecoshop-intent-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ecoshop-intent-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.ecoshop-intent-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  filter: brightness(1.08);
  text-decoration: none;
}

.ecoshop-cta-arrow {
  transition: transform 0.2s ease;
}

.ecoshop-intent-hero-cta:hover .ecoshop-cta-arrow {
  transform: translateX(4px);
}

.ecoshop-intent-hero-usp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

/* Prawa kolumna: Wizualna */
.ecoshop-intent-hero-visual {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecoshop-intent-hero-img-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ecoshop-intent-hero-img-link:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ecoshop-intent-hero-img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 8px;
}

/* ==========================================================================
   RWD: Tablet (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .ecoshop-intent-hero-card {
    padding: 28px 30px;
  }
  
  .ecoshop-intent-hero-title {
    font-size: 26px;
  }
  
  .ecoshop-intent-hero-desc {
    font-size: 14px;
  }
  
  .ecoshop-intent-hero-visual {
    flex: 0 0 200px;
  }
  
  .ecoshop-intent-hero-img {
    width: 180px;
    height: 180px;
  }
}

/* ==========================================================================
   RWD: Mobile (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .ecoshop-intent-hero-card {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .ecoshop-intent-hero-body {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }

  .ecoshop-intent-hero-content {
    flex: 1 1 100%;
    width: 100%;
  }

  .ecoshop-intent-hero-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .ecoshop-intent-hero-title {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .ecoshop-intent-hero-desc {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .ecoshop-intent-hero-badges-row {
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
  }

  .ecoshop-hero-pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .ecoshop-intent-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .ecoshop-intent-hero-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
    box-sizing: border-box;
  }

  .ecoshop-intent-hero-usp {
    font-size: 11px;
    text-align: center;
  }

  .ecoshop-intent-hero-visual {
    flex: 0 0 auto;
    width: 100%;
  }

  .ecoshop-intent-hero-img-link {
    padding: 6px;
    display: inline-block;
  }

  .ecoshop-intent-hero-img {
    width: 130px;
    height: 130px;
  }
}
