.popup {
  background: var(--color-white);
  border: 0;
  bottom: 0;
  flex: 1 0 auto;
  flex-direction: column;

  left: 0;

  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  position: fixed;
  right: 0;
  top: 0;

  z-index: 500
}

.popup::-webkit-scrollbar,.popup::-webkit-scrollbar-track {
  background-color: transparent
}

.popup::-webkit-scrollbar {
  width: 4px
}

.popup::-webkit-scrollbar-thumb {
  background-color: var(--color-dark);
  border-radius: 3px
}

.popup:focus {
  outline: none
}

.popup::backdrop {
  background: hsla(0,0%,64%,.5)
}

.popup.is-open,.popup.is-opening {
  display: flex
}

.popup.is-opening {
  animation: fadeInZoom .3s forwards
}

.popup.is-opening::backdrop {
  animation: fadeIn .3s forwards
}

.popup.is-closing {
  animation: fadeOutZoom .3s
}

.popup.is-closing::backdrop {
  animation: fadeOut .3s
}

.popup__container {
  flex: 0 0 100%;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  z-index: 100
}

.popup__container,.popup__header {
  background-color: var(--popup-bg-color);
  display: flex;
  position: relative
}

.popup__header {
  align-items: center;
  border-radius: var(--popup-border-radius) var(--popup-border-radius) 0 0;
  flex: none;
  flex-flow: row nowrap;
  min-height: 2.5rem;
  padding: 1.5rem 8px 1.5rem 12px;
  transition: all .3s ease
}

.popup__main {
  background-color: var(--color-white);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px 1.5rem;
  position: relative;
  width: 100%
}

.popup__main::-webkit-scrollbar-track {
  background-color: transparent
}

.popup__main::-webkit-scrollbar {
  background-color: transparent;
  width: 6px
}

.popup__main::-webkit-scrollbar-thumb {
  background-color: var(--color-dark);
  border-radius: 3px
}

.popup__footer {
  background-color: var(--popup-bg-color);
  display: flex;
  flex: none;
  flex-flow: column;
  padding: .75rem 8px .75rem 12px;
  width: 100%
}

.popup__title {
  color: var(--color-grey-800);
  font-family: $font-family-MA;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0
}

.popup__subtitle,.popup__text {
  color: var(--color-grey-700);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0
}

.popup__subtitle p:last-child,.popup__text p:last-child {
  margin-bottom: 0
}

.popup__btn-close {
  background: transparent;
  border: none;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  height: 20px;
  margin: 0;
  padding: 18px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px
}

.popup__btn-close:hover {
  background-color: var(--color-bg-soft);
  outline: none
}

.popup__btn-close:hover:before {
  transform: rotate(-45deg)
}

.popup__btn-close:hover:after {
  transform: rotate(45deg)
}

.popup__btn-close:focus-visible {
  background-color: var(--color-bg-soft);
  outline: none
}

.popup__btn-close:after,.popup__btn-close:before {
  background-color: var(--color-dark);
  content: "";
  height: 2px;
  left: 8px;
  opacity: 1;
  position: absolute;
  top: 46%;
  transform-origin: 50% 50%;
  transition: all .2s ease;
  width: 60%
}

.popup__btn-close:before {
  transform: rotate(45deg)
}

.popup__btn-close:after {
  transform: rotate(-45deg)
}

.popup__buttons {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  gap: .75rem
}

.popup__buttons .button {
  width: 100%
}

.popup__product {
  display: flex;

  gap: 20px;
  padding: 0 30px 30px;
  position: relative
}

.popup__product-navigation {
  display: flex;
  justify-content: space-between;
  left: 0;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 501
}

.popup__product-navigation button {
  background: transparent;
  border: none;
  cursor: pointer;
  height: 50px;
  outline: none;
  position: relative;
  width: 50px
}

.popup__product-navigation button:after,.popup__product-navigation button:before {
  border-color: transparent;
  border-style: solid;
  content: "";
  display: block;
  height: 0;
  left: 0;
  position: absolute;
  top: 0;
  width: 0
}

.popup__product-navigation button:after {
  border-bottom-width: 13px;
  border-top-width: 13px;
  top: 8px
}

.popup__product-navigation button:before {
  border-bottom-width: 21px;
  border-top-width: 21px;
  opacity: .7
}

button.popup__product-navigation-prev {
  transform: translateX(-20px)
}

button.popup__product-navigation-prev:after {
  border-right: 17px solid #fff;
  left: 31px
}

button.popup__product-navigation-prev:before {
  border-right: 27px solid #3f3f3f;
  left: 25px
}

button.popup__product-navigation-next {
  transform: translateX(20px)
}

button.popup__product-navigation-next:after {
  border-left: 17px solid #fff;
  left: 4px
}

button.popup__product-navigation-next:before {
  border-left: 27px solid #3f3f3f;
  left: 0
}

.popup__product-col {
  width: 100%
}

.popup__product-content {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.popup__product-info {
  display: flex;
  flex-direction: column;
  gap: 15px
}

.popup__product-price {
  font-size: 1.125rem
}

.popup__product-labels {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.popup__product-label {
  background: var(--color-bg-soft);
  border-radius: 10px;
  display: inline-block;
  font-size: .6875rem;
  letter-spacing: .5px;
  padding: 5px 10px
}

.popup__product-title {
  font-size: 1.125rem;
  margin: 0
}

.popup__product-tools {
  display: flex;
  gap: 10px
}

@media (min-width: 80em) {
  .popup__product-tools {
      flex-direction: column;
  }
  .popup__product-navigation {
    left: 50px;
    max-width: calc(100% - 100px)
  }

  .popup__product-col:first-child {
      width: 53.4%
  }

  .popup__product-col:nth-child(2) {
      width: 44%
  }

  .popup__product-title {
      font-size: 1.25rem
  }

  .popup__product-tools {
      flex-direction: column
  }

  .popup__product-tools .counter {
      justify-content: space-between;
      width: 100%
  }
}

.popup__product-summary {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.popup__product-summary-item {
  display: flex;
  gap: 4px
}

.popup__product-summary-item span {
  color: var(--color-dark-soft);
  white-space: nowrap
}

.popup__product-summary-item a {
  white-space: nowrap
}

.popup--mob-bottom {
  flex: 0 0 auto;
  height: auto;
  justify-content: flex-end;
  max-height: 100%
}

.popup--mob-bottom.is-opening {
  animation: fadeInUp .3s forwards
}

.popup--mob-bottom.is-closing {
  animation: fadeOutUp .3s
}

.popup--mob-bottom .popup__container {
  border-radius: 1rem 1rem 0 0;
  flex: 0 0 auto;
  height: auto
}

.popup--mob-bottom .popup__main {
  flex: 0 1 auto
}

.popup--mob-bottom .popup__btn-close {
  display: none
}

.popup--add-number .popup__main {
  overflow: visible;
  z-index: 20
}

.popup__backdrop {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0
}

.popup-product-swiper__swiper {
  max-height: 450px;
  position: relative
}

.popup-product-swiper__wrapper .popup-product-swiper__slide img {
  max-height: 100%;
  max-width: 100%;
  -o-object-fit: cover;
  object-fit: cover
}

.popup-product-swiper__navigation {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 2
}

.popup-product-swiper__navigation button {
  background: none;
  border: none;
  color: var(--color-dark-soft);
  height: 50px;
  opacity: 1;
  transition: all .2s ease;
  width: 50px
}

.popup-product-swiper__navigation button .icon {
  height: 40px;
  width: 40px
}

.popup-product-swiper__thumbs {
  margin-top: 10px
}

.popup-product-swiper__thumbs-slide {
  max-width: 80px
}

@media (min-width: 80em) {
  .popup__main:last-child {
    margin-bottom: 0;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  font-family: Arial, sans-serif;
}

.pagination__numbers {
  display: flex;
  gap: 5px;
}

.pagination__number,
.pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: all 0.3s;
}

.pagination__number:hover,
.pagination__arrow:hover {
  background-color: #f5f5f5;
}

.pagination__number--active {
  background-color: #7d7d7d;
  color: white;
  border-color: #7d7d7d;
}

.pagination__dots {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.review-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e1e2e3
}

.review-item:last-of-type {
  border-bottom: none
}

.review-item__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  gap: 12px;
  padding-right: 100px
}

.review-item__image {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 60px;
  flex: 0 0 60px
}

.review-item__image img {
  aspect-ratio: 1;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%
}

.review-item__text strong {
  display: inline-block;
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 15px;
  line-height: 140%;
  letter-spacing: .01em;
  color: #060606
}

.review-item__text p {
  margin: 0 0 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: .01em;
  color: #4e5051
}

.review-item__action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column
}

.review-item__rating {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center
}

.review-item__star {
  display: 0 0 12px;
  width: 12px;
  height: 12px;
  background: url(../icon/star-gray.svg) center no-repeat
}

.review-item__star.active {
  background: url(../icon/star.svg) center no-repeat
}

.review-item__remove {
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: .01em;
  color: #4e5051
}

.review-item__like {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  gap: 12px
}

.review-item__like a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  gap: 6px;
  font-weight: 400;
  font-size: 11px;
  line-height: 11px;
  color: #18b394
}

.review-item__like a+a {
  color: #ce2b37
}

.review-item.user {
  border: 1px solid #e1e2e3;
  margin: 0 0 12px
}

.review-item.user .review-item__content {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start
}

.review-item.user .review-item__like {
  margin: 12px 0 0
}

.review-item.user .review-item__image {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 8px
}

.review-item.user .review-item__image img {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 64px;
  flex: 0 0 64px;
  width: 64px
}

.review-item.user .review-item__image>div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start
}

.review-item.user .review-item__image>div strong {
  font-weight: 700;
  font-size: 14px;
  line-height: 140%;
  color: #060606
}

.review-item.user .review-item__image>div span {
  display: inline-block;
  margin: 4px 0;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: .01em;
  color: #75787a
}
