:host {
  /**
   * @prop --vviinn-carousel-columns: A number of items in grid mode.
   * @prop --product-card-calculated-height: Calculated height of Product Card.
   */
}

.body {
  display: flex;
  position: relative;
  width: var(--vviinn-carousel-content-width);
  flex-direction: column;
}

.body.append-slider {
  min-height: calc(var(--product-card-calculated-height) + 24px);
}

.body.append-slider.empty-results {
  min-height: unset;
}

.bullets {
  display: flex;
  flex-direction: row;
  grid-gap: 24px;
  justify-content: center;
}

.bullet {
  width: 10px;
  height: 10px;
  background: #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
}

.bullet.active {
  background: #161616;
}

.content {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-y: hidden;
  overflow-x: auto;
  flex-grow: 1;
  scrollbar-width: thin;
}

:host(.continuity) .content,
:host(.grid) .content {
  padding-bottom: 16px;
}

.content:not(.show-scrollbar),
.content.grid {
  scrollbar-color: #fff0 #fff0;
}

content. .content:not(.show-scrollbar)::-webkit-scrollbar,
.content.grid::-webkit-scrollbar {
  opacity: 0;
}

@supports (scrollbar-color: unset) {
  .content.continuity,
  :host(.set) {
    scrollbar-color: transparent transparent;
  }
  .content.continuity:hover,
  :host(.set:hover) {
    scrollbar-color: initial;
  }
}

.content.left > * {
  scroll-snap-align: start;
}

.content.right > * {
  scroll-snap-align: end;
}

:host(.continuity) .prev,
:host(.continuity) .next {
  border-radius: 2px;
}

:host(.grid) .prev,
:host(.grid) .next {
  border-radius: 50%;
}

.prev,
.next {
  align-items: center;
  background-color: white;
  border: none;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
  fill: #525252;
  cursor: pointer;
  display: grid;
  height: 40px;
  justify-items: center;
  position: absolute;
  top: calc(50% - 20px);
  width: 40px;
  z-index: 1;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease-in-out;
}

.next:disabled,
.prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.next.grid-arrows-dynamic:disabled,
.prev.grid-arrows-dynamic:disabled {
  display: none;
}

.prev svg {
  transform: rotate(180deg);
  margin-left: -5px;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.items-group {
  display: grid;
  grid-gap: 16px;
  grid-template-columns: repeat(var(--vviinn-carousel-columns, 4), 1fr);
  min-width: 100%;
}

.body.set {
  max-width: 100%;
  justify-content: space-between;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  gap: 112px;
}

.body.set::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .body.set {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .items-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content.set {
  grid-gap: 20px;
  height: -moz-fit-content;
  height: fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
  overflow: unset;
}
