:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Davivienda, sans-serif;
}

body {
  background: transparent;
  color: #1f2937;
}

.embed-page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.carousel-block {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px 12px;
}

.carousel-block[data-theme="light"] {
  background: #ffffff;
}

.carousel-block[data-theme="dark"] {
  background: #111827;
  border-color: #1f2937;
}

.carousel-header {
  margin-bottom: 8px;
}

.carousel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.carousel-block[data-theme="dark"] .carousel-title {
  color: #f9fafb;
}

.ep-carousel {
  position: relative;
  width: min(299px, 100%);
  height: 71px;
  margin: 0 auto;
  overflow: hidden;
}

.ep-carousel__frame {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.ep-carousel__viewport {
  position: absolute;
  inset: 33.8% 2.7% 11.2% 2.7%;
  display: grid;
  grid-template-columns: 14px 1fr 14px;
  align-items: center;
  gap: 0;
}

.ep-carousel__track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
  align-items: center;
}

.ep-carousel__track-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: center;
}

.ep-carousel__item {
  flex: 0 0 16.6667%;
  min-width: 16.6667%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
}

.ep-carousel__item img {
  max-width: 100%;
  max-height: 26px;
  object-fit: contain;
  display: block;
}

.ep-carousel__nav {
  position: relative;
  z-index: 2;
  border: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  font-size: 10px;
}

.carousel-block[data-theme="light"] .ep-carousel__nav {
  background: #e5e7eb;
  color: #111827;
}

.carousel-block[data-theme="dark"] .ep-carousel__nav {
  background: #374151;
  color: #f9fafb;
}

.ep-carousel__empty {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.carousel-block[data-theme="dark"] .ep-carousel__empty {
  color: #d1d5db;
}

@media (max-width: 640px) {
  .ep-carousel__viewport {
    inset: 33.8% 3.1% 11.2% 3.1%;
  }

  .ep-carousel__item {
    flex-basis: 20%;
    min-width: 20%;
  }
}
