/* Блокировка скролла и скрытие плавающих виджетов сайта при открытой модалке */
body.fresha-overlay-open {
  overflow: hidden;
}

body.fresha-overlay-open .barber-contact-dock,
body.fresha-overlay-open .prt_floting_customsett,
body.fresha-overlay-open .scroll-top {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Портал в document.body (script.js) — поверх шапки и прочих stacking context */
body>.fresha-modal,
body>.fresha-cart-modal {
  z-index: 10050;
}

body>.fresha-modal.is-open.is-above-cart {
  z-index: 10052;
}

/* Кнопки — .theme-btn.style-two из main.css (разъезжающаяся анимация) */
body>.fresha-modal .theme-btn,
body>.fresha-cart-modal .theme-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

body>.fresha-modal button.theme-btn,
body>.fresha-cart-modal button.theme-btn {
  border: 1px solid var(--fresha-border, #e8e8e8);
}

body>.fresha-cart-modal button.fresha-cart-modal__continue.theme-btn {
  border: none !important;
}

body>.fresha-modal .theme-btn.style-two,
body>.fresha-cart-modal .theme-btn.style-two,
body>.fresha-modal a.theme-btn.style-two {
  color: #fff !important;
  background: var(--fresha-accent, #d6a354) !important;
}

/* На всю ширину треугольники theme-btn ломают вёрстку — простой hover */
body>.fresha-modal .theme-btn.style-two::before,
body>.fresha-modal .theme-btn.style-two::after,
body>.fresha-cart-modal .theme-btn.style-two::before,
body>.fresha-cart-modal .theme-btn.style-two::after,
body>.fresha-modal a.theme-btn.style-two::before,
body>.fresha-modal a.theme-btn.style-two::after {
  display: none !important;
}

body>.fresha-modal .theme-btn.style-two:hover:not(:disabled),
body>.fresha-cart-modal .theme-btn.style-two:hover:not(:disabled),
body>.fresha-modal a.theme-btn.style-two:hover {
  background: var(--fresha-heading, #252525) !important;
  color: #fff !important;
}

body>.fresha-modal .theme-btn.style-three,
body>.fresha-cart-modal .theme-btn.style-three {
  color: var(--fresha-heading, #252525) !important;
  background: var(--fresha-bg, #fff) !important;
  border: 1px solid var(--fresha-border, #e8e8e8) !important;
}

body>.fresha-modal .theme-btn:disabled,
body>.fresha-cart-modal .theme-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

body>.fresha-modal .theme-btn i,
body>.fresha-cart-modal .theme-btn i {
  margin-left: 10px;
}

body>.fresha-cart-modal .fresha-cart-modal__continue.theme-btn i {
  display: none;
}

.fresha-modal__auth-link.theme-btn {
  display: inline-flex;
  text-decoration: none;
}

