.wp-block-acf-froggy-card-carousel {
  max-width: 1280px;
}

.froggy-card-carousel {
  --swiper-theme-color: var(--color-primary, #cb7f16);
  position: relative;
  padding-bottom: 2.5rem;
}

/**
 * Fallback layout for when Swiper hasn't initialized (before JS loads, or
 * inside the block editor's preview iframe, which doesn't run scripts
 * enqueued via enqueue_block_editor_assets) - a plain scrollable row so
 * the block never looks broken without JS. Swiper adds the
 * "swiper-initialized" class itself once it takes over.
 */
.froggy-card-carousel:not(.swiper-initialized) {
  padding-bottom: var(--spacing-s, 1rem);
}

.froggy-card-carousel:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: var(--spacing-m, 1.5rem);
}

.froggy-card-carousel:not(.swiper-initialized) .swiper-slide {
  scroll-snap-align: start;
}

.froggy-card-carousel:not(.swiper-initialized) .swiper-pagination,
.froggy-card-carousel:not(.swiper-initialized) .swiper-button-prev,
.froggy-card-carousel:not(.swiper-initialized) .swiper-button-next {
  display: none;
}

.swiper-slide.froggy-card-carousel__item {
  width: 250px;
  height: auto;
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, #ddd);
  border-radius: 30px;
  overflow: hidden;
}

.froggy-card-carousel__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.froggy-card-carousel__body {
  padding: var(--spacing-s, 1rem);
}

.froggy-card-carousel__tags {
  display: flex;
  gap: .375rem;
  margin-bottom: 24px;
}

.froggy-card-carousel__tag {
  display: flex;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid #000;
  line-height: 100%;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.froggy-card-carousel__title {
  color: #000;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 140%; /* 33.6px */
  text-transform: uppercase;
}

.froggy-card-carousel__subtitle {
  color: #000;
  margin-bottom: 6px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
}

.froggy-card-carousel__text {
  font-family: var(--font-default);
  font-size: 16px;
  color: var(--color-text-light, #777);
}

.froggy-card-carousel__text p {
  margin-bottom: 0;
}

.froggy-card-carousel .swiper-button-prev,
.froggy-card-carousel .swiper-button-next {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -1.125rem;
  background: var(--color-white, #fff);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.froggy-card-carousel .swiper-button-prev::after,
.froggy-card-carousel .swiper-button-next::after {
  font-size: .875rem;
  color: var(--color-black, #000);
}
