.ty-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.ty-carousel__viewport {
  position: relative;
  overflow: hidden;
}
.ty-carousel__track {
  display: flex;
  position: relative;
}
.ty-carousel__track_fade {
  position: relative;
}
.ty-carousel__slide {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}
.ty-carousel_fade .ty-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.ty-carousel_fade .ty-carousel__slide_active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.ty-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ty-carousel-arrow-size);
  height: var(--ty-carousel-arrow-size);
  border: none;
  border-radius: 50%;
  background: var(--ty-carousel-arrow-bg);
  color: var(--ty-carousel-arrow-color);
  cursor: pointer;
  transition: background 0.3s;
  outline: none;
}
.ty-carousel__arrow:hover {
  background: var(--ty-carousel-arrow-hover-bg);
}
.ty-carousel__arrow_prev {
  left: var(--ty-carousel-arrow-offset);
}
.ty-carousel__arrow_next {
  right: var(--ty-carousel-arrow-offset);
}
.ty-carousel__dots {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  z-index: 1;
}
.ty-carousel__dots_bottom {
  bottom: var(--ty-carousel-arrow-offset);
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
}
.ty-carousel__dots_top {
  top: var(--ty-carousel-arrow-offset);
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
}
.ty-carousel__dots_left {
  left: var(--ty-carousel-arrow-offset);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
}
.ty-carousel__dots_right {
  right: var(--ty-carousel-arrow-offset);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
}
.ty-carousel__dot {
  width: var(--ty-carousel-dot-width);
  height: var(--ty-carousel-dot-height);
  margin: 0 var(--ty-carousel-dot-gap);
  border-radius: var(--ty-carousel-dot-radius);
  background: var(--ty-carousel-dot-bg);
  cursor: pointer;
  transition: all 0.3s;
}
.ty-carousel__dot button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.ty-carousel__dot:hover {
  background: var(--ty-carousel-dot-hover-bg);
}
.ty-carousel__dot_active {
  width: var(--ty-carousel-dot-width-active);
  background: var(--ty-carousel-dot-active-bg);
}
.ty-carousel_vertical-dots .ty-carousel__dot {
  width: var(--ty-carousel-dot-height);
  height: var(--ty-carousel-dot-width);
  margin: var(--ty-carousel-dot-gap) 0;
}
.ty-carousel_vertical-dots .ty-carousel__dot_active {
  width: var(--ty-carousel-dot-height);
  height: var(--ty-carousel-dot-height-active);
}