html.with-fancybox {
  pointer-events: none;
}

html.with-fancybox .fancybox__container,
html.with-fancybox .tempus-dominus-widget,
html.with-fancybox .suggestions-wrapper,
html.with-fancybox .select2-container,
html.with-fancybox .tooltip {
  pointer-events: auto;
}

.fancybox__container {
  --fancybox-color: var(--black-50);
  --fancybox-bg: rgba(0, 0, 0, 0.4);
}

.fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {
  padding: 0 !important;
}

.fancybox__caption {
  padding-left: var(--container-space);
  padding-right: var(--container-space);
}

@media (min-width: 698px) {
  .fancybox__track {
    column-gap: 10px;
  }
}

.popup-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 20px;
  height: 20px;
  z-index: 101;
}

.popup-block {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--white);
  padding: 40px;
  width: 760px;
  border-radius: 20px;
  overflow: visible;
  line-height: 1.2;
  color: var(--black);
  max-width: calc(100% - 20px);
}

.popup-block:not(.fancybox__content) {
  margin: 0 auto;
  box-shadow: var(--popup-shadow);
  max-width: 100%;
}

.popup-block__header {
  padding-bottom: 30px;
}

.popup-block__title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
}

.popup-block__title.h4 {
  font-size: var(--fs-h4);
}

.popup-block__content {
  padding-bottom: 30px;
}

.popup-block__content_last {
  padding-bottom: 0;
}

.popup-block__content.has-scrollbar {
  overscroll-behavior: contain;
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 10px;
  padding-right: 10px;
}

.popup-block__alert {
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: var(--grey-light);
}

.popup-block__footer {
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}

.popup-block_full-height {
  max-height: calc(100% - 8px);
}

.popup-block_full-height .popup-block__header {
  flex-shrink: 0;
}

.popup-block_full-height .popup-block__content {
  flex-grow: 1;
  min-height: 1px;
}

.popup-block_full-height .popup-block__footer {
  flex-shrink: 0;
}

.fancybox__carousel.has-thumbs {
  overflow: hidden;
}

.popup-block_full {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border-radius: 0;
  padding: 30px;
}

.popup-block_full .popup-block__header {
  flex-shrink: 0;
}

.popup-block_full .popup-block__content {
  flex-grow: 1;
  min-height: 1px;
}

.popup-block_full .popup-block__footer {
  flex-shrink: 0;
}

@media (max-width: 1399.98px) {
  .popup-block {
    padding: 30px;
    width: 660px;
  }
}

@media (max-width: 991.98px) {
  .popup-block {
    padding: 30px 24px;
    width: 600px;
  }

  .popup-block__content_last {
    padding-bottom: 0;
  }

  .popup-block_tablet-full-height {
    height: 100%;
    width: 100%;
    max-height: none;
    max-width: none;
    border-radius: 0;
    padding: 0;
  }

  .popup-block_tablet-full-height .popup-block__header {
    flex-shrink: 0;
    padding: 20px 17px;
    padding-right: 55px;
    position: relative;
    z-index: 100;
  }

  .popup-block_tablet-full-height .popup-block__header.is-fixed {
    box-shadow: var(--popup-shadow);
  }

  .popup-block_tablet-full-height .popup-block__content {
    flex-grow: 1;
    min-height: 1px;
    margin: 0;
    padding: 30px 17px;
  }

  .popup-block__content.has-scrollbar {
    overflow-y: scroll;
  }

  .popup-block_tablet-full-height .popup-block__footer {
    flex-shrink: 0;
    padding: 10px 17px;
    padding-bottom: var(--mobile-bottom-space);
    box-shadow: var(--popup-shadow-top);
    position: relative;
    z-index: 100;
  }

  .popup-block_tablet-full-height .popup-block__footer .btn {
    height: 40px;
  }
}

@media (max-width: 767.98px) {
  .popup-block {
    padding: 30px 20px;
  }

  .popup-block__title {
    font-size: 20px;
  }

  .popup-block__alert {
    padding: 15px;
  }

  .popup-block_mob-full-height,
  .popup-block_tablet-full-height {
    height: 100%;
    width: 100%;
    max-height: none;
    max-width: none;
    border-radius: 0;
    padding: 0;
  }

  .popup-block_mob-full-height .popup-block__header,
  .popup-block_tablet-full-height .popup-block__header {
    flex-shrink: 0;
    padding: 20px 10px;
    padding-right: 55px;
    position: relative;
    z-index: 100;
  }

  .popup-block_mob-full-height .popup-block__header.is-fixed,
  .popup-block_tablet-full-height .popup-block__header.is-fixed {
    box-shadow: var(--popup-shadow);
  }

  .popup-block_mob-full-height .popup-block__content,
  .popup-block_tablet-full-height .popup-block__content {
    flex-grow: 1;
    min-height: 1px;
    margin: 0;
    padding: 30px 10px;
  }

  .popup-block_mob-full-height .popup-block__footer,
  .popup-block_tablet-full-height .popup-block__footer {
    flex-shrink: 0;
    padding: 10px;
    padding-bottom: var(--mobile-bottom-space);
    box-shadow: var(--popup-shadow-top);
    position: relative;
    z-index: 100;
  }

  .popup-block_mob-full-height .popup-block__footer .btn,
  .popup-block_tablet-full-height .popup-block__footer .btn {
    height: 42px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .fancybox__footer {
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease-in-out;
    transition-delay: 0.15s;
  }

  html.fancybox-type-image .fancybox__footer,
  html:has(.fancybox__iframe) .fancybox__footer {
    opacity: 1;
    visibility: visible;
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    padding: 0;
    padding: 40px 0;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    width: 143px;
    z-index: 11;
  }

  html.fancybox-type-image .fancybox__footer .f-thumbs__viewport,
  html.fancybox-type-image .fancybox__footer .f-thumbs.is-vertical,
  html:has(.fancybox__iframe) .fancybox__footer .f-thumbs__viewport,
  html:has(.fancybox__iframe) .fancybox__footer .f-thumbs.is-vertical {
    overflow: visible;
  }

  .fancybox__carousel.has-thumbs {
    margin-left: 183px;
  }
}

html.fancybox-type-image .fancybox__container,
html:has(.fancybox__iframe) .fancybox__container {
  --fancybox-bg: rgba(255, 255, 255, 1);
}

html.fancybox-type-image .fancybox__slide,
html:has(.fancybox__iframe) .fancybox__slide {
  margin: 0;
  padding: 40px;
}

.f-thumbs.is-vertical {
  padding: 0;
}

.f-thumbs.is-vertical .f-thumbs__track {
  padding: 0;
}

.f-thumbs.is-vertical .f-thumbs__slide {
  --f-thumb-gap: 20px;
}

.f-thumbs__slide,
.f-thumbs__slide__button {
  width: 143px;
  height: 90px;
}

.f-thumbs__slide__button {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px;
  margin: 0;
  box-sizing: border-box;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.is-nav-selected .f-thumbs__slide__button {
  border-color: var(--grey-dark);
}

.is-nav-selected .f-thumbs__slide__button::after {
  display: none;
}

.for-video .f-thumbs__slide__button:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 8px;
  border-radius: 6px;
  background-color: rgba(37, 33, 48, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m25 16.732-13.5 7.794c-1.333.77-3-.192-3-1.732V7.206c0-1.54 1.667-2.502 3-1.732L25 13.268c1.333.77 1.333 2.694 0 3.464Z' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 30px 30px;
  z-index: 1;
}

.f-thumbs__slide__img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.for-video .f-thumbs__slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-map .fancybox__content,
.has-pdf .fancybox__content,
.has-youtube .fancybox__content,
.has-vimeo .fancybox__content,
.has-html5video .fancybox__content {
  border-radius: 12px;
}

.fancybox-image,
.fancybox__html5video,
.fancybox__iframe {
  border-radius: 12px;
}

.is-idle .fancybox__nav,
.is-idle .fancybox__toolbar {
  animation: none;
}

html.fancybox-type-image .popup-close-btn,
html:has(.fancybox__iframe) .popup-close-btn {
  position: fixed;
}

html.fancybox-type-image .fancybox__slide:not(.is-done) .popup-close-btn,
html:has(.fancybox__iframe) .fancybox__slide:not(.is-done) .popup-close-btn {
  display: none !important;
}

html.fancybox-type-image .popup-close-btn,
html:has(.fancybox__iframe) .popup-close-btn,
.fancybox__toolbar.is-absolute {
  right: 40px;
  top: 40px;
}

.fancybox__nav {
  --f-button-next-pos: 40px;
  --f-button-prev-pos: 40px;
}

html.fancybox-type-image .popup-close-btn,
html:has(.fancybox__iframe) .popup-close-btn,
.f-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--grey-dark);
  color: var(--black);
}

html.fancybox-type-image .popup-close-btn:hover,
html:has(.fancybox__iframe) .popup-close-btn:hover,
.f-button:hover {
  color: var(--red-main-color) !important;
  border-color: var(--red-main-color);
}

html.fancybox-type-image .popup-close-btn svg,
html:has(.fancybox__iframe) .popup-close-btn svg,
.f-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  filter: none;
}

.fancybox__nav .f-button {
  width: 42px;
  height: 42px;
}

.fancybox__nav .f-button svg {
  fill: none;
  width: 20px;
  height: 20px;
}

@media (max-width: 1399.98px) and (min-width: 768px) {
  html.fancybox-type-image .fancybox__footer,
  html:has(.fancybox__iframe) .fancybox__footer {
    width: 120px;
  }

  .fancybox__carousel.has-thumbs {
    margin-left: 160px;
  }
}

@media (max-width: 1399.98px) {
  .f-thumbs.is-vertical .f-thumbs__slide {
    --f-thumb-gap: 16px;
  }

  .f-thumbs__slide,
  .f-thumbs__slide__button {
    width: 120px;
    height: 75px;
  }

  .f-thumbs__slide__button {
    padding: 6px;
  }

  .for-video .f-thumbs__slide__button:before {
    margin: 6px;
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  html.fancybox-type-image .fancybox__footer,
  html:has(.fancybox__iframe) .fancybox__footer {
    left: 20px;
  }

  .fancybox__carousel.has-thumbs {
    margin-left: 140px;
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  html.fancybox-type-image .fancybox__footer,
  html:has(.fancybox__iframe) .fancybox__footer {
    padding: 20px 0;
  }
}

@media (max-width: 991.98px) {
  html.fancybox-type-image .popup-close-btn,
  html:has(.fancybox__iframe) .popup-close-btn,
  .fancybox__toolbar.is-absolute {
    right: 20px;
    top: 20px;
  }

  .fancybox__nav {
    --f-button-next-pos: 20px;
    --f-button-prev-pos: 20px;
  }
}

@media (max-width: 767.98px) {
  .f-thumbs.is-vertical {
    display: none;
  }

  html.fancybox-type-image .fancybox__slide,
  html:has(.fancybox__iframe) .fancybox__slide {
    padding: 20px;
  }

  .fancybox__nav {
    display: none;
  }

  .fancybox__thumbs.is-horizontal {
    padding: 0;
  }

  .f-thumbs__viewport {
    padding: 0 20px 20px;
    padding-bottom: var(--mobile-bottom-space);
  }

  .f-thumbs.is-horizontal .f-thumbs__track {
    padding: 0;
  }

  .f-thumbs__slide,
  .f-thumbs__slide__button {
    width: 80px;
    height: 60px;
  }

  .f-thumbs__slide__button {
    padding: 5px;
  }
}

@media (min-width: 768px) {
  .f-thumbs.is-horizontal {
    display: none;
  }
}

@media (min-width: 992px) {
  .distributors-popup {
    width: 1440px;
    padding: 0;
    height: calc(100% - 80px);
    max-width: calc(100% - 80px);
    max-height: 720px;
    overflow: hidden;
  }

  .distributors-popup .popup-close-btn {
    width: 52px;
    height: 52px;
    right: 20px;
    top: 20px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--popup-shadow);
  }

  .distributors-popup .popup-block__header {
    display: none;
  }
}

@media (min-width: 992px) {
  .distributors-popup .popup-block__content {
    padding: 0;
  }
}

@media (max-width: 991.98px) {
  .distributors-popup .popup-block__content {
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .popup-block__content.has-dropdown {
    overflow: visible;
  }
}

.popup-block .suggestions-wrapper .suggestions-suggestions {
  max-height: none;
}

.popup-add-consignee__inn-kpp:not(.is-visible) {
  opacity: 0;
}

.popup-delivery-info__footer {
  background: var(--grey-light);
  border-radius: 12px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  column-gap: 20px;
}

.popup-delivery-info__footer-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  position: relative;
}

.popup-delivery-info__footer-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.popup-delivery-info__footer-count {
  position: absolute;
  right: -13px;
  top: -5px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: bold;
  border: 2px solid #34c759;
  background: var(--white);
  box-shadow: var(--popup-shadow);
  border-radius: 50%;
}

.popup-delivery-info__footer-content {
  flex-grow: 1;
  min-width: 1px;
}

.popup-delivery-info__section-title {
  position: relative;
  padding-right: 88px;
}

.popup-delivery-info__section-title img {
  position: absolute;
  right: 0;
  top: 0;
  width: 68px;
  opacity: 0.5;
}

.delivery-price-slider {
  position: relative;
}

.delivery-price-slider .swiper-button-prev,
.delivery-price-slider .swiper-button-next {
  width: 42px;
  height: 42px;
  margin-top: -21px;
  background: var(--white);
}

.delivery-price-slider .swiper-button-prev {
  left: 0;
}

.delivery-price-slider .swiper-button-next {
  right: 0;
}

.delivery-price-slider .swiper-slide {
  width: auto;
}

.delivery-price-slider__item {
  width: 170px;
  position: relative;
  cursor: pointer;
}

.delivery-price-slider__item:after {
  content: "";
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  border-left: 1px dotted var(--black-50);
}

.swiper-slide:last-child .delivery-price-slider__item:after {
  display: none;
}

.delivery-price-slider__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.delivery-price-slider__item-image {
  flex-shrink: 0;
}

.delivery-price-slider__item-image img {
  width: 68px;
  opacity: 0.5;
}

.delivery-price-slider__item-num {
  display: block;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: bold;
  border: 2px solid var(--grey-dark);
  background: var(--white);
  box-shadow: var(--popup-shadow);
  border-radius: 50%;
}

.delivery-price-slider__item-table-row {
  display: flex;
  align-items: center;
  padding-top: 5px;
}

.delivery-price-slider__item-table-title {
  font-size: 14px;
  line-height: 1.2;
  flex: 0 0 auto;
  width: 4.3em;
  white-space: nowrap;
}

.delivery-price-slider__item-table-content {
  flex-grow: 1;
  min-width: 1px;
}

.delivery-price-slider__item-line {
  position: relative;
  height: 5px;
  border-radius: 100px;
  background: var(--grey);
}

.delivery-price-slider__item-line > span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 100px;
  background: var(--green);
}

@media (max-width: 767.98px) {
  .delivery-price-slider .swiper-button-prev,
  .delivery-price-slider .swiper-button-next,
  .delivery-price-slider .swiper-overlay {
    display: none !important;
  }

  .delivery-price-slider .swiper-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    transform: none !important;
  }

  .delivery-price-slider .swiper-slide {
    margin: 0 !important;
  }

  .delivery-price-slider__item {
    width: auto;
  }

  .delivery-price-slider__item:after {
    display: none;
  }

  .popup-delivery-info__footer {
    padding: 8px 30px 8px 8px;
  }

  .popup-delivery-info__footer-content .text-18 {
    font-size: 16px;
  }

  .popup-delivery-info__footer-content .text-18 br {
    display: none;
  }
}

.money-popup__status {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: currentColor;
}

.money-popup-settings-row.is-disabled .money-popup-settings-row__title {
  opacity: 0.5;
}

.money-popup-settings-row.is-disabled .money-line {
  opacity: 0.3;
}

@media (min-width: 992px) {
  .dropdown-popup-wrapper {
    position: relative;
  }

  .dropdown-popup {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 5px;
    padding: 15px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--popup-shadow);
    z-index: 100;
    font-size: 14px;
    line-height: 1.2;
    width: 400px;
  }

  .dropdown-popup-wrapper:not(.is-open) .dropdown-popup {
    display: none;
  }

  .dropdown-popup_documents {
    width: 320px;
  }

  .dropdown-popup__header {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .dropdown-popup {
    background: var(--white);
    padding: 25px 30px 20px;
    width: 486px;
    border-radius: 20px;
    overflow: visible;
    font-size: 14px;
    line-height: 1.2;
    max-width: 100%;
    display: none;
  }

  .dropdown-popup__header {
    margin-bottom: 30px;
  }

  .dropdown-popup__title {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
  }
}

@media (max-width: 767.98px) {
  .fancybox__slide:has(.dropdown-popup):after {
    display: none;
  }

  .dropdown-popup {
    width: 100%;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 20px 20px 0 0;
  }

  .dropdown-popup__header {
    margin-bottom: 20px;
  }

  .dropdown-popup__title {
    font-size: 20px;
  }
}

.popup-shipment-status__header {
  font-size: 14px;
  line-height: 1.2;
}

.popup-shipment-status__footer {
  display: flex;
  justify-content: flex-end;
  column-gap: 15px;
}

@media (max-width: 767.98px) {
  .popup-shipment-status__header {
    font-size: 12px;
  }

  .popup-shipment-status__new-window-btn,
  .popup-shipment-status__print-btn {
    display: none;
  }

  .popup-shipment-status__download-btn {
    width: 100%;
  }
}

body.empty-page {
  padding: 0 !important;
}

body.empty-page .popup-block_full {
  height: 100vh !important;
}

body.empty-page .popup-shipment-status__new-window-btn {
  display: none;
}

@media (min-width: 768px) {
  .popup-model-request .popup-block__content.has-scrollbar {
    overflow: visible;
    overscroll-behavior: unset;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    scroll-behavior: unset;
    -webkit-overflow-scrolling: unset;
  }

  .popup-model-request .item-row__image {
    width: 126px;
  }

  .popup-model-request .item-row__row {
    column-gap: 20px;
  }

  .popup-model-request .autocomplete-dropdown__list {
    max-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .popup-model-request .autocomplete-dropdown__list {
    max-height: 230px;
  }
}
