.reels-section {
  background-color: rgb(var(--color-background));
  overflow: hidden; 
}
carousel-component {
  display: block;
  position: relative;
  width: 100%;
}
.carousels-video {
  width: 100%;
  overflow: visible;
}
.reels-section .block-video img{
  width: 100%;
}
.reels-section .block-video video, .reels-section .block-video iframe {
  width: 100%;
  height: 100%;
}
.reels-section .block-video {
  border-radius: 8px;
  overflow: hidden;
}
.reels-section  .theme-video-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousels-video .theme-video-media__poster,
.carousels-video .theme-video-media__play-button,
.carousels-video .theme-video-media__media,
.carousels-video .theme-video-media video,
.carousels-video .theme-video-media iframe {
  pointer-events: none;
}
/* .video-wrapper.swiper-wrapper {
  align-items: center;
  transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}
.carousels-video .swiper-slide {
  border-radius: 16px;
  flex: 0 0 220px;
  transition: flex-basis .4s ease;
}
.carousels-video .swiper-slide-active {
   flex: 0 0 280px;
} */

.carousels-video.swiper.swiper-initialized {
    margin-top: var(--extra-height);
}

.carousel-product-card.swiper.swiper-fade.swiper-initialized {
    margin-top: calc(var(--extra-height) + 10px);
}

.carousels-video .swiper-slide {
  border-radius: 16px;
  transition: transform 0.4s ease;
}
.carousels-video .swiper-slide-active {
  transform: scale(var(--slide-active-scale, 1)) !important;
  margin-left: calc(30px + (var(--slide-gap) / 2)) !important;
  margin-right: calc(30px + (var(--slide-gap) / 2)) !important;
}

.carousels-video.swiper.swiper-initialized{
  margin-left: calc(-30px - (var(--slide-gap) / 2));
}

@media (max-width: 749px) {
  .carousels-video .swiper-slide-active {
    transform: scale(var(--slide-active-scale, 1)) !important;
    margin-left: calc(25px + (var(--slide-gap) / 2)) !important;
    margin-right: calc(25px + (var(--slide-gap) / 2)) !important;
  }

  .carousels-video.swiper.swiper-initialized{
    margin-left: calc(-25px - (var(--slide-gap) / 2));
  }
}
button.vmodal-btn svg, button.mini-btn svg {
    stroke: #fff
}

.reels-section .block-video {
  width: 100%;
  height: 100%;
}
carousel-component {
  max-width: 100vw;
  margin: auto;
}
.carousels-video {
  position: relative;
	width: 100vw;
}
.carousel-product-card {
  position: relative;
  margin: 16px auto 0;
  bottom: auto;
  left: auto;
  transform: none;
  width: min(92%, 360px);
  height: auto;
  z-index: 100;
  pointer-events: none;
}
.reels-carousel-controls {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.reels-carousel-controls .swiper-pagination,
.reels-carousel-controls .swiper-pagination-bullets {
  position: static;
  width: auto;
}
.reels-carousel-controls .swiper-pagination-bullets {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.reels-carousel-controls .swiper-pagination-bullet,
.reels-dot {
  width: 8px;
  height: 8px;
  opacity: 0.5;
  background: currentColor;
  margin: 0;
  border: 0;
  border-radius: 100%;
  padding: 0;
  cursor: pointer;
}
.reels-carousel-controls .swiper-pagination-bullet-active {
  opacity: 1;
}
.reels-dot.active {
  opacity: 1;
}
.reels-carousel-controls .swiper-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reels-carousel-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.reels-carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgb(var(--color-entry-line));
  background: rgb(var(--color-button-secondary-background));
  display: flex;
  place-items: center;
  cursor: pointer;
  justify-content: center;
}

.carousel-video__product-card {
    background: rgb(var(--color-background));
    border: 1px solid rgb(var(--color-entry-line));
    border-radius: 8px;
    padding: 10px 16px;
    max-width: 100%;
    cursor: pointer;
    transition: border-color .2s,box-shadow .2s;
    margin: 0px auto;
    max-width: 225px;
    width: 100%;
}
.carousel-video__product-card:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.carousel-video__product-card-inner{
    display: flex;
    align-items: center;
    gap: 12px;
}
.carousel-video__product-card-image {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.carousel-video__product-card-image img{
  width: 100%;
  height: 100%;
}
.carousel-video__product-card-operate-wrapper {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    align-items: flex-end;
    margin-inline-start: auto;
}
.carousel-video__product-card-operate-wrapper-quick-add {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--color-background));
    background-color: rgb(var(--color-text));
    border-radius: 100%;
}
.carousel-video__product-card-operate-wrapper-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.carousel-video__product-card-operate-wrapper-quick-add > svg {
    position: relative;
    inset-inline-start: 1px;
    width: 18px;
    height: 18px;
}
.carousel-video__product-card-operate-wrapper-quick-add
  .carousel-video__product-card-quick-add-form {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
}
.carousel-video__product-card-operate-wrapper-quick-add
  .carousel-video__product-card-quick-add-form
  > button {
    width: 100%;
    height: 100%;
    opacity: 0;
}
.carousel-video__product-card-operate-wrapper{
  display: none;
}
.button__spinner {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    display: none;
    width: 20px;
    height: 20px;
    margin-block-start: -10px;
    margin-inline-start: -10px;
    color: rgb(var(--color-button-text));
}
.carousel-video__product-card-title{
  font-weight: 500;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* reels-modal css */


.vmodal-overlay {
    position: absolute;
    cursor: pointer;
    inset: 0px;
    background: rgba(0, 0, 0, 0.88);
}
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0px;
}
.video-modal.is-open{
  display: flex;
  align-items: center;
  justify-content: center;
}
.vmodal-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
}
.vmodal-player {
    position: relative;
    max-width: 380px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgb(var(--color-text));
}
.vmodal-pbars {
    display: flex;
    gap: 3px;
    padding: 10px 12px 4px;
    z-index: 5;
}
.vmodal-top {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 2px 10px 6px;
    z-index: 5;
}
.vmodal-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.vmodal-pbar {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,.25);
    border-radius: 1px;
    overflow: hidden;
}
.vmodal-pbar-fill {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 1px;
}
.vmodal-video {
    max-height: 480px;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}
.vmodal-prodbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
}
.mini-video {
    aspect-ratio: 9/14;
}
.vmodal-prodbar  .carousel-video__product-card{
  max-width: 100%;
  padding: 0;
  border: 0;
  box-shadow: unset;
}
.vmodal-video  .block-video{
  border-radius: 0;
}
.vmodal-prodbar .carousel-video__product-card-operate-wrapper{
  display: flex;
}
.vmodal-sidenav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vmodal-snav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: background .2s,color .2s;
}

.video-modal theme-video-media, .video-modal .theme-video-media{
  height: 100%;
}
.vmodal-item .sound-svg{
  display: none;
}

.vmodal-item:not(.is-muted) .vmodalMute .mute-svg {
    display: none;
}
.vmodal-item:not(.is-muted) .vmodalMute .sound-svg {
    display: block;
}
/* mini-player */
.mini-inner .sound-svg{
  display: none;
}
.mini-inner:not(.is-muted) .mute-svg{
  display: none;
}
.mini-inner:not(.is-muted) .sound-svg{
  display: block;
}
reel-modal-component .mini-player {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
reel-modal-component.is-open-mini .mini-player {
  display: block;
}
reel-modal-component .mini-inner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

reel-modal-component .mini-top {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 5;
}
reel-modal-component .mini-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.45);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mini-prodbar .carousel-video__product-card{
  max-width: 100%;
}

@media (max-width: 749px) {
  .vmodal-sidenav {
      display: none !important;
  }
  .vmodal-wrap {
      padding: 20px;
  }
}