

/* =========================================
   КРУЖОК «ПОДАЧА ДОКУМЕНТОВ»
   ========================================= */

body #sf-documents-notice {
  position: fixed;

  top: var(--sf-documents-top, 132px);
  left: var(--sf-documents-left, 18px);
  right: auto;
  bottom: auto;

  z-index: 1000;

  width: 42px;
  height: 42px;

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;

  overflow: visible;
  opacity: 1 !important;

  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body #sf-documents-notice,
body #sf-documents-notice *,
body #sf-documents-notice::after {
  box-sizing: border-box;
}

body #sf-documents-notice[hidden],
body #sf-documents-notice [hidden] {
  display: none !important;
}

body #sf-documents-notice.is-open {
  z-index: 1100;
}


/* Кнопка со значком документа. */

body #sf-documents-notice
.sf-documents-attention__button {
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  min-width: 42px;

  height: 42px;
  min-height: 42px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #0082ff;
  color: #ffffff;

  box-shadow: 0 8px 22px rgba(23, 43, 63, .18);

  font: inherit;

  cursor: pointer;

  opacity: 1 !important;
  transform: none !important;

  transition: opacity .2s ease;

  -webkit-tap-highlight-color: transparent;
}

body #sf-documents-notice
.sf-documents-attention__button svg {
  display: block;

  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}


/* Мостик для перехода мышью к подсказке. */

body #sf-documents-notice::after {
  content: "";

  position: absolute;

  top: 0;
  left: 100%;

  width: 10px;
  height: 42px;
}


/* Подсказка. */

body #sf-documents-notice
.sf-documents-attention__tip {
  position: absolute;

  top: 0;
  left: 52px;
  right: auto;

  display: block;

  width: min(360px, calc(100vw - 88px));

  max-height: var(
    --sf-documents-tip-height,
    calc(100dvh - 160px)
  );

  margin: 0;
  padding: 16px;

  overflow: auto;
  overscroll-behavior: contain;

  border: 1px solid #dbe5ef;
  border-radius: 14px;

  background: #ffffff;
  color: #182b40;

  box-shadow: 0 16px 40px rgba(23, 43, 63, .18);

  text-align: left;

  white-space: normal;
  overflow-wrap: break-word;
}

body #sf-documents-notice
.sf-documents-attention__tip:not([hidden]) {
  display: block !important;
}

body #sf-documents-notice
.sf-documents-attention__tip strong {
  display: block;

  margin: 0 0 8px;

  color: #182b40;

  font:
    600 14px/1.4
    Inter, "Segoe UI", Arial, sans-serif;
}

body #sf-documents-notice
.sf-documents-attention__tip p {
  margin: 0 0 14px;

  color: #586b7e;

  font:
    400 13px/1.55
    Inter, "Segoe UI", Arial, sans-serif;
}


/* Кнопка перехода на страницу документов. */

body #sf-documents-notice
a.sf-documents-attention__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  max-width: 100%;
  min-height: 44px;

  margin: 0;
  padding: 10px 14px;

  border: 0;
  border-radius: 9px;

  background: #0082ff;
  color: #ffffff;

  font:
    600 13px/1.4
    Inter, "Segoe UI", Arial, sans-serif;

  text-decoration: none !important;
  white-space: normal;

  transform: none !important;

  transition: background-color .18s ease;
}

body #sf-documents-notice
a.sf-documents-attention__action:hover {
  background: #0074e6;
  color: #ffffff;
}

body #sf-documents-notice
:is(button, a):focus-visible {
  outline: 2px solid #0082ff;
  outline-offset: 3px;
}


/* Общая прозрачность с VPN-кружком. */

@media (max-width: 768px) {
  body.sf-mobile-notices-dim
  #sf-documents-notice
  .sf-documents-attention__button {
    opacity: .45 !important;
  }
}


/* На телефоне кружок справа, подсказка слева. */

@media (max-width: 600px) {
  body #sf-documents-notice {
    left: auto;
    right: 10px;
  }

  body #sf-documents-notice::after {
    left: auto;
    right: 100%;
  }

  body #sf-documents-notice
  .sf-documents-attention__tip {
    left: auto;
    right: 52px;

    width: min(320px, calc(100vw - 82px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body #sf-documents-notice * {
    transition: none !important;
  }
}
