/*
 * Правовые документы kyrsi-manikyra.ru
 * Файл:
 * /public_html/wp-content/themes/emi/assets/css/legal-documents.css
 */

/* Блок под основным футером */
body .emi-legal {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 22px 20px 26px !important;
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  overflow: visible !important;
  background: #ea516d !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  transform: none !important;
}

body .emi-legal *,
body .emi-legal *::before,
body .emi-legal *::after {
  box-sizing: border-box;
}

body .emi-legal__inner {
  display: block !important;
  width: 100% !important;
  max-width: 1170px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .emi-legal__title {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

body .emi-legal__links {
  display: flex !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 9px 24px !important;
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body button.emi-legal__link {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 0 3px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(237, 115, 136, 0.5) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: normal !important;
  cursor: pointer !important;
  appearance: none !important;
  transition:
    color 0.2s ease,
    border-color 0.2s ease !important;
}

body button.emi-legal__link:hover,
body button.emi-legal__link:focus-visible {
  border-bottom-color: #ed7388 !important;
  color: #ed7388 !important;
  outline: none !important;
}

/* Правовые окна внутри уже подключённого GraphModal */
body .graph-modal__container.emi-legal-popup {
  width: calc(100% - 32px) !important;
  max-width: 920px !important;
  max-height: 88vh !important;
  margin: 30px auto !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  border: 0 !important;
  border-top: 4px solid #ed7388 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
  color: #2e2e2e !important;
  text-align: left !important;
}

body .emi-legal-popup__content {
  display: flex !important;
  width: 100% !important;
  max-height: calc(88vh - 4px) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #2e2e2e !important;
}

body .emi-legal-popup__header {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 22px 70px 18px 28px !important;
  border-bottom: 1px solid #ececec !important;
  background: #ffffff !important;
}

body .emi-legal-popup__title {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #252525 !important;
  font-family: inherit !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

body .emi-legal-popup__body {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 24px 28px 34px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #ffffff !important;
  scrollbar-width: thin;
  scrollbar-color: #ed7388 #eeeeee;
}

body .emi-legal-popup__body::-webkit-scrollbar {
  width: 8px;
}

body .emi-legal-popup__body::-webkit-scrollbar-track {
  background: #eeeeee;
}

body .emi-legal-popup__body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #ed7388;
}

body .emi-legal-doc-text {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: pre-line !important;
  color: #383838 !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

body .emi-legal-popup .graph-modal__close {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  top: 15px !important;
  right: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f1f1f1 !important;
  background-image: none !important;
  color: #252525 !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

body .emi-legal-popup .graph-modal__close::before,
body .emi-legal-popup .graph-modal__close::after {
  content: "" !important;
  position: absolute !important;
  top: 19px !important;
  left: 10px !important;
  width: 20px !important;
  height: 2px !important;
  border: 0 !important;
  background: currentColor !important;
}

body .emi-legal-popup .graph-modal__close::before {
  transform: rotate(45deg) !important;
}

body .emi-legal-popup .graph-modal__close::after {
  transform: rotate(-45deg) !important;
}

body .emi-legal-popup .graph-modal__close:hover,
body .emi-legal-popup .graph-modal__close:focus-visible {
  background: #ed7388 !important;
  color: #ffffff !important;
  outline: none !important;
}

@media (max-width: 767px) {
  body .emi-legal {
    padding: 21px 18px 25px !important;
  }

  body .emi-legal__title {
    margin-bottom: 13px !important;
    text-align: left !important;
  }

  body .emi-legal__links {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  body button.emi-legal__link {
    font-size: 13px !important;
    text-align: left !important;
  }

  body .graph-modal__container.emi-legal-popup {
    width: calc(100% - 16px) !important;
    max-height: 94vh !important;
    margin: 8px auto !important;
    border-radius: 9px !important;
  }

  body .emi-legal-popup__content {
    max-height: calc(94vh - 4px) !important;
  }

  body .emi-legal-popup__header {
    padding: 19px 58px 15px 18px !important;
  }

  body .emi-legal-popup__title {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }

  body .emi-legal-popup__body {
    padding: 20px 18px 28px !important;
  }

  body .emi-legal-doc-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  body .emi-legal-popup .graph-modal__close {
    width: 36px !important;
    height: 36px !important;
    top: 11px !important;
    right: 11px !important;
  }

  body .emi-legal-popup .graph-modal__close::before,
  body .emi-legal-popup .graph-modal__close::after {
    top: 17px !important;
    left: 9px !important;
    width: 18px !important;
  }
}


/* ==========================================================
   Нижнее уведомление об использовании cookies
   Метрика этим блоком не блокируется.
   ========================================================== */

body .emi-cookie-notice[hidden] {
  display: none !important;
}

body .emi-cookie-notice {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 900 !important;
  background: rgba(55, 55, 55, 0.97) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 -7px 24px rgba(0, 0, 0, 0.22) !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

body .emi-cookie-notice.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

body .emi-cookie-notice,
body .emi-cookie-notice *,
body .emi-cookie-notice *::before,
body .emi-cookie-notice *::after {
  box-sizing: border-box;
}

body .emi-cookie-notice__inner {
  display: flex !important;
  width: 100% !important;
  max-width: 1170px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 18px 20px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px 24px !important;
  position: static !important;
  background: transparent !important;
}

body .emi-cookie-notice__text {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  text-align: center !important;
}

body .emi-cookie-notice__line {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
}

body button.emi-cookie-notice__details {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: inherit !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer !important;
  appearance: none !important;
}

body button.emi-cookie-notice__details:hover,
body button.emi-cookie-notice__details:focus-visible {
  color: #ed7388 !important;
  text-decoration: underline !important;
  outline: none !important;
}

body button.emi-cookie-notice__accept {
  display: inline-flex !important;
  width: auto !important;
  min-width: 190px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 11px 18px !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  border: 1px solid #ed7388 !important;
  border-radius: 2px !important;
  background: #ed7388 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer !important;
  appearance: none !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

body button.emi-cookie-notice__accept:hover,
body button.emi-cookie-notice__accept:focus-visible {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #252525 !important;
  outline: none !important;
}

@media (max-width: 767px) {
  body .emi-cookie-notice__inner {
    padding: 15px 16px 17px !important;
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 13px !important;
  }

  body .emi-cookie-notice__text {
    font-size: 13px !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  body .emi-cookie-notice__line + .emi-cookie-notice__line {
    margin-top: 5px !important;
  }

  body button.emi-cookie-notice__accept {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .emi-cookie-notice,
  body button.emi-cookie-notice__accept {
    transition: none !important;
  }
}
