.stories-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3%;
  overflow: auto;
  margin-top: 53px;
  width: 100%;

}
.stories-slider .item-stories .promotion-category {
  width: 87px;
  height: 87px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px dashed var(---colorTextFooter);
}

.item-stories {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(---colorOnefooter);
  color: var(---colorTextFooter);
  border-radius: 0.5em;
  width: 135px;
  cursor: pointer;
  gap: 9px;
  padding: 10px;
  margin-bottom: 6px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.item-stories .promotion-category-name {
  font-size: 12px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .stories-slider {
    margin-top: 22px !important;
  }
  .stories-slider .item-stories .promotion-category {
    width: 65px !important;
    height: 65px !important;
    border: 2px dashed red !important;
  }
  .swiper-stories {
    width: 100% !important;
  }

  .story {
    width: 100% !important;
  }

  .controls {
    width: 100% !important;
    bottom: 122px !important;
  }

  .product-stories {
    margin: 6px auto !important;
    width: 91% !important;
  }

  .bar-stories {
    margin-top: 16px !important;
  }
  .slide-nav button {
    background-color: rgba(0, 0, 0, 0) !important;
  }
  .slide-nav .slide-next {
    right: 0 !important;
  }
  .slide-nav .slide-prev {
    left: 0 !important;
  }
  .modal-comment-stories .content-comment {
    height: 626px !important;
  }

  .close-stories-mobile {
    position: absolute;
    font-size: 15px;
    top: 17px;
    left: 9px;
    color: #fff;
    z-index: 999999;
  }
}

.story {
  background: linear-gradient(217deg, rgba(0,0,0,.8), rgba(0,0,0,0) 70.71%);
  height:fit-content;
  width: 359px;
  border-radius: 0.5em;
}

.story .story__slider .story__wrapper .story__slide1 video {
  width: 100%;
  position: relative;
}

.stories-slider .item-stories .promotion-category img {
  width: 100%;
  height: 100%;
}

.not-stories {
  position: absolute;
  margin: auto;
  display: inline-block;
  left: 0;
  right: 0;
  top: 36%;
  background: #fff;
  width: fit-content;
  padding: 0.3em;
  border-radius: 5px;
  z-index: 99999;
  color: red;
  font-size: 12px;
  font-weight: bold;
}

.story__slide1 video {
  height: fit-content !important;
}

.story__slider {
  width: 359px;
  height: fit-content !important;
  border-radius: 6px;
  overflow: hidden;
}
.story__slide1 {
  position: relative;
}
.story__slide1 video,
.story__slide1 img {
  height: fit-content;
  width: 316px;
  object-fit: cover;
  object-position: center;
}
.story__pagination {
  bottom: unset !important;
  top: 8px !important;
  display: flex;
  padding: 0 4px;
}
.story__pagination .swiper-pagination-bullet {
  flex-grow: 1;
  border-radius: 100vh;
  height: 3px;
  margin: 0 2px !important;
  background-color: rgba(247, 247, 245, 0.4);
  opacity: 1;
}
.story__pagination .swiper-pagination-bullet .swiper-pagination-progress {
  height: 100%;
  width: 0%;
  border-radius: 100vh;
  background-color: #f7f7f5;
}
.story__prev, .story__next {
  height: 100%;
  width: 50%;
  top: 0;
  margin-top: 0;
}
.story__prev::after, .story__next::after {
  content: none;
}
.story__prev {
  left: 0;
}
.story__next {
  right: 0;
}

.story__pagination {
  z-index: 9999999 !important;
}

.stories {
  position: absolute;
  padding: 0.5em;
  top: 438px;
  left: 245px;
  z-index: 10000;
}

.stories > ul > li.stories-item {
  margin-right: 0.8em;
  width: 110px;
  height: 110px;
  border: 1px solid red;
  border-radius: 50%;
  list-style: none;
  overflow: hidden;
  cursor: pointer;
  float: right;
}

.stories > ul > li.stories-item > img {
  width: 100%;
}

.modal-stories {
  width: 100%;
  height: 100dvh;
  background: linear-gradient(217deg, rgba(0,0,0,.8), rgba(0,0,0,0) 70.71%),
  linear-gradient(127deg, rgba(0,0,0,.8), rgba(0,0,0,0) 70.71%),
  linear-gradient(336deg, rgba(0,0,0,.8), rgba(0,0,0,0) 70.71%);
  position: fixed;
  z-index: 999999999999;
  top: 0;
  right: 0;
  display: none;
  justify-content: center;
  align-items: center;
}

.product-stories-swiper {
  width: 359px;
}


.story__next {
  width: 58px !important;
  height: 60dvh !important;
  left: 0 !important;
  top: 0 !important;
}
.story__prev {
  width: 58px !important;
  height: 60dvh !important;
  right: 0 !important;
  top: 0 !important;
}

#story_item {
  z-index: 9999999;
}



/**
dsffsd
 */

.slide-stories {
  position: relative;
  width:410px;
  height: 766px;
  margin:1% auto 0;
  display: grid;
  padding:0 0 10px;
  border-radius:10px;
  background: linear-gradient(to bottom, transparent, #000);
}

.slide-items {
  position: relative;
  grid-area: 1/1;
  overflow: hidden;
  margin: auto;
  height: 100%;

}

.slide-items .story img, .slide-items .story video {
  height: fit-content;
  width: 360px;
  object-fit: cover;
  object-position: center;
  border-radius:2px;
}

.slide-nav {
  grid-area: 1/1;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
}

.slide-items > * {
  position: absolute;
  top: 0;
  opacity: 0;
}

.slide-items > .active {
  position: relative;
  opacity: 1;
}

.slide-nav button {
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  width: 70px;
  height: 70px;
  border: 0;
  outline: none;
  opacity: 1;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
}

.slide-nav .slide-prev {
  position: absolute;
  left: -88px;
  top: 40%;

}

.slide-nav .slide-next {
  position: absolute;
  right:-88px;
  top: 40%;
}

.slide-thumb {
  display: flex;
  grid-column: 1/3;
  padding: 0 15px;
  width: 360px;
  margin: auto;
  gap: 6px;
  direction: ltr;
}

.slide-thumb > .time-bar-stories {
  flex: 1;
  display: block;
  height: 2px;
  background: #afafaf;
  margin: 3px;
  margin-top: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.slide-thumb > .time-bar-stories.done:after {
  content: "";
  display: block;
  height: inherit;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
}

/*.slide-thumb > .time-bar-stories.active:after {*/
/*  content: "";*/
/*  display: block;*/
/*  height: inherit;*/
/*  background: rgba(255, 255, 255, 0.9);*/
/*  border-radius: 3px;*/
/*  transform: translateX(100%);*/
/*  !*animation: thumb 8s forwards linear;*!*/
/*}*/

@keyframes thumb {
  to {
    transform: initial;
  }
}

.feature-stories {
  width: 100%;
  position: relative;
  padding-bottom: 0;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 99;
}

.feature-stories .like-message {
  height:130px;
  width: 36px;
  position: absolute;
  bottom: 157%;
  left: 5px;
  cursor: pointer;
  z-index: 99;
}

.feature-stories .like-message .like, .feature-stories .like-message .message {
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 24px;
}

.feature-stories .like-message .like img, .feature-stories .like-message .message img {
  width: 100%;
}

.product-stories {
    height: 79px;
    width: 100%;
    background-color: #fff;
    display: flex !important;
    justify-content: right;
    align-items: center;
    padding: 4px 9px;
    border-radius: 0.4em;
  margin-top: 30px;

}

.product-stories .image {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 0.5em;
}

.product-stories .image img {
    width: 100%;
    height: 100%;
}

.product-stories .content-product {
    width: 256px;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-right: 1.4em;
    cursor: pointer;
}

.product-stories .content-product .title {
    font-weight: bold;
    font-size: 12px;
    height: 45%;
    margin-top: 10px;
}

.product-stories .content-product a {
    border: 0;
    border-radius: 0.3em;
    font-size: 11px;
    font-weight: bold;
    background-color:#165eabdb;
    color: #fff;
    width: 132px;
    padding: 0.4em;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.title__story__slide {
  position: absolute;
  bottom: 166%;
  right: 13px;
  font-weight: bold;
  color: #fff;
  z-index: 9999;
  width: 80%;
  height: 118px;
}

/*
 controls video
*/
.controls {
  display: flex;
  position: fixed;
  width: 21%;
  bottom: 143px;
  align-items: center;
  transition: opacity .2s;
  margin-right: 18px;
}

.controls div {
  color: #fff;
  margin-right: 5px;
}

.playing {
  width: 100%;
  height: 100dvh;
  background: linear-gradient(to bottom, transparent, #000);
  top: 0;
  left: 3px;
  position: fixed;
  z-index: 99999999;
  display: flex;
  justify-content: center;
}

.playing.controls {
  display: flex;
  position: absolute;
  width: 78%;
  bottom: 9px;
  background: linear-gradient(to bottom, transparent, #000);
  align-items: center;
  transition: opacity .2s;
}

.video-player.playing .controls {
  opacity: 0;
}

.video-player:hover .controls {
  opacity: 1;
}

.control-button {
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: .8;
  transition: all .2s;
}

.control-button:hover {
  opacity: 1;
}

.control-button.play-button {
  height: 40px;
  width: 40px;
}

.control-button.sound-button {
  height: 40px;
  width: 40px;
}

.control-button.fullscreen-button {
  height: 35px;
  width: 35px;
}

.control-button svg {
  stroke: #fff;
  fill: transparent;
}

.timeline{
  -webkit-appearance: none;
  width: calc(100% - 125px);
  height: .5em;
  background-color: rgba(255, 255, 255, .5);
  border-radius: 5px;
  background-size: 0% 100%;
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
}

.bar-stories{
  -webkit-appearance: none;
  width: calc(100% - 125px);
  height:2px;
  margin-top: 5px;
  background-color: rgba(255, 255, 255, .7);
  border-radius: 5px;
  background-size: 0% 100%;
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
}

.timeline::-webkit-slider-thumb, .bar-stories::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all .1s;
  background-color: rgba(255, 255, 255, .8);
}

.timeline::-moz-range-thumb, .bar-stories::-moz-range-thumb {
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all .1s;
  background-color: rgba(255, 255, 255, .8);
}

.timeline::-ms-thumb, .bar-stories::-ms-thumb {
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all .1s;
  background-color: rgba(255, 255, 255, .8);
}

.timeline::-webkit-slider-thumb:hover, .bar-stories::-webkit-slider-thumb:hover {
  background-color: #fff;
}

.timeline:hover::-webkit-slider-thumb {
  opacity: 1;
}

.timeline::-moz-range-thumb:hover {
  background-color: #fff;
}

.timeline:hover::-moz-range-thumb {
  opacity: 1;
}

.timeline::-ms-thumb:hover {
  background-color: #fff;
}

.timeline:hover::-ms-thumb {
  opacity: 1;
}

.timeline::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.timeline::-moz-range-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.timeline::-ms-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

/*
 comment
*/

.modal-comment-stories {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right:0;
  background-color: #fff;
  border-radius: 0.5em;
  padding: 10px;
  z-index: 9999;
}

.modal-comment-stories .header-comment {
  width: 100%;
  height: 50px;
  box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px inset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size:15px;
}

.modal-comment-stories .header-comment .close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 2px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.modal-comment-stories .header-comment .close img {
  width: 100%;
}
.modal-comment-stories .content-comment {
  width: 100%;
  height: 635px;
  overflow: auto;
}

.content-comment .comment {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 10px;
  /*border-right-color: #ba8b00;*/
  /*border-right-style: dashed;*/
  /*border-right-width: 2px;*/
  padding-right: 5px;
}

.content-comment .comment .user {
  display: flex;
  align-items: center;
  justify-content: right;
  margin-bottom: 10px;
}

.content-comment .comment .user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 8px;
}

.content-comment .comment .user span.date {
  margin-right:12px;
}

.content-comment .comment .message {
  margin-right: 20px;
}

.modal-comment-stories .footer-content {
  width: 100%;
  height: 60px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-comment-stories .footer-content input {
  width: 90%;
  height: 80%;
  outline: 0;
  border: 0;
  background-color: #c1c1c1;
  border-radius: 0.7em;
  padding: 0 63px;
  font-weight: bold;
}

.modal-comment-stories .footer-content img {
  position: absolute;
  top: 12px;
  right: 29px;
  width: 37px;
}

.loading-stories {
  width: 100%;
  height: 100%;
  position: absolute;
  top:0;
  left: 0;
  right:0;
  margin: auto;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  display: none;
  background-color: rgba(0, 0, 0, 0.1);
}
