/* Production alias of test carousel styles; keep selectors in sync */

.elementor-widget-recast_card_carousel {
    width: 100%;
}

.recast-card-carousel,
.recast-card-carousel .swiper,
.recast-card-carousel .swiper-wrapper,
.recast-card-carousel .swiper-slide {
  overflow: visible !important;
}

.recast-card-carousel__base-container {
  max-width: var(--global-maxwidth-maxwidth-m, 1200px);
  padding: var(--margins-base-vert) 0;
  margin: 0 auto;
  width: 100%;
}

/* Ensure slides can visually stack beyond bounds if needed */
.recast-card-carousel .swiper-slide {
  position: relative;
  z-index: 1;
}

.recast-card-carousel .swiper-slide:hover {
  z-index: 3;
}

@media (max-width: 1440px) {
  .recast-card-carousel__base-container {
    padding: var(--margins-base-vert) var(--margins-s);
    max-width: 100%;
  }
}
/* Mobile: show edge of next card by making slides 80% width */
@media (max-width: 767px) {
  .recast-card-carousel .swiper-wrapper {
    justify-content: flex-start;
  }
  .recast-card-carousel .swiper-slide {
    flex-basis: 80%; 
  }
}

.recast-card-carousel__header {
  margin-bottom: var(--gap-l);
}

.recast-card-carousel__title.heading-s {
  margin: 0;
  color: var(--neutrals-black)
}

.recast-card-carousel__title.heading-s span {
  color: var(--primary-recast-blue);
}

/* In case any inner widget container clips content, relax it locally */
.recast-card-carousel .elementor-widget-container {
  overflow: visible !important;
}

.recast-card-carousel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--neutrals-grey-1);
}

/* Editor-only overlay for Edit Template button */
.elementor-editor-active .recast-template-edit-ui {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}
.elementor-editor-active .recast-template-edit {
  background: rgba(0, 0, 0, 0.6);
  color: var(--neutrals-white);
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
}

.recast-card-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.recast-card-carousel .swiper-slide {
  display: flex;
  flex-direction: column;
  height: auto;
}

.recast-card-carousel .swiper-slide .e-loop-item,
.recast-card-carousel .swiper-slide .e-loop-item .elementor-element,
.recast-card-carousel .swiper-slide .e-loop-item .elementor-element .elementor-widget {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
