
/* ── Plugin panel: completely transparent, no border, no background ever ── */
#ezzy-solution-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}


/* Hero sync: keep the search hidden until Divi hero text has rendered. */
#ezzy-solution-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  will-change: opacity, transform;
}

#ezzy-solution-panel.ezzy-search-ready {
  visibility: visible;
  animation: ezzyHeroSearchFadeUp .55s ease forwards;
}

@keyframes ezzyHeroSearchFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ezzy-solution-panel.ezzy-search-ready {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Search bar ── */
.ezzy-search {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto 0;
  border: 2.5px solid #25a0da;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(37,160,218,.12);
  height: 54px;
}

/* Override Divi input styles */
#ezzy-solution-panel .ezzy-search input,
#ezzy-solution-panel .ezzy-search input[type=text] {
  flex: 1;
  border: none !important;
  padding: 0 22px !important;
  margin: 0 !important;
  font-size: 18px !important;
  outline: none !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #333 !important;
  min-width: 0;
  width: auto;
  height: 100% !important;
  box-sizing: border-box !important;
  border-radius: 50px !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

#ezzy-solution-panel .ezzy-search input::placeholder {
  color: #aab4c0 !important;
}

.ezzy-search button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  height: 100%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(90deg, #25a0da 0%, #e05f80 100%);
  white-space: nowrap;
  letter-spacing: .3px;
  transition: opacity .2s;
  flex-shrink: 0;
}

.ezzy-search button:hover { opacity: .88; }

.ezzy-search button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Message ── */
#ezzy-message {
  text-align: center;
  margin: 12px 0;
  color: #cccccc;
  font-weight:400;
  font-size: 14px;
}

/* ── Results wrapper injected inside Divi video container ── */
#ezzy-results-wrapper {
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

/* ── Slider container ── */
.ezzy-slider-container {
  position: relative;
}

/* Arrow buttons */
.ezzy-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #25a0da;
  background: #fff;
  color: #25a0da;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.ezzy-arrow:hover {
  background: #25a0da;
  color: #fff;
}

.ezzy-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ezzy-arrow-left  { left: -22px; }
.ezzy-arrow-right { right: -22px; }

.ezzy-arrow.hidden { display: none; }

/* ── Results row ── */
#ezzy-results {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 8px 4px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

#ezzy-results::-webkit-scrollbar {
  display: none;
}

/* ── Individual card ── */
.ezzy-card {
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid #c8d8ea;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.ezzy-card:hover {
  box-shadow: 0 4px 18px rgba(37,160,218,.2);
}

.ezzy-card-inner {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.ezzy-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  margin: 0 0 12px;
  min-height: 40px;
}

.ezzy-image-wrap {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #f5f8fb;
  border-radius: 8px;
  overflow: hidden;
}

.ezzy-image-wrap img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
}

.ezzy-description {
  color: #444;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.ezzy-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ezzy-toggle-desc {
  background: none;
  border: none;
  color: #25a0da;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  padding: 0;
  margin-bottom: 12px;
  text-decoration: underline;
}

.ezzy-card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: center;
}

.ezzy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 44px;
  border-radius: 8px;
  background: #e0415f;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 15px;
  letter-spacing: .3px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  box-shadow: 0 2px 8px rgba(224,65,95,.25);
  width: 100%;
}

.ezzy-btn:hover {
  background: #c8304a;
  color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ezzy-arrow-left  { left: -16px; }
  .ezzy-arrow-right { right: -16px; }
}

@media (max-width: 600px) {
  .ezzy-search {
    height: 48px;
    border-radius: 40px;
  }

  #ezzy-solution-panel .ezzy-search input,
  #ezzy-solution-panel .ezzy-search input[type=text] {
    font-size: 15px !important;
    padding: 0 16px !important;
  }

  .ezzy-search button {
    font-size: 15px;
    padding: 0 18px;
    gap: 6px;
  }

  .ezzy-search button svg {
    width: 16px;
    height: 16px;
  }

  .ezzy-card {
    min-width: 250px;
    max-width: 250px;
  }

  .ezzy-arrow {
    width: 34px;
    height: 34px;
  }

  .ezzy-arrow-left  { left: -14px; }
  .ezzy-arrow-right { right: -14px; }
}

@media (max-width: 400px) {
  .ezzy-card {
    min-width: 220px;
    max-width: 220px;
  }
}


/* Mobile: keep the normal slider padding/arrow positioning, but show exactly one card.
   The card width is the scroll viewport minus the row's left/right padding (4px + 4px).
   Gap remains only between cards, so the next card starts outside the visible viewport. */
@media (max-width: 600px) {
  #ezzy-results {
    gap: 20px !important;
    padding: 8px 4px 14px !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
  }

  .ezzy-card {
    flex: 0 0 calc(100% - 8px) !important;
    width: calc(100% - 8px) !important;
    min-width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
    box-sizing: border-box;
    scroll-snap-align: start;
  }
}
