



/* ------------- 
content start - Кружен VPN
------------- */

/* =========================================
   БОКОВОЕ ПРЕДУПРЕЖДЕНИЕ О ВОЗМОЖНОМ VPN
   ========================================= */

body #sf-vpn-notice {
  position: fixed;

  top: var(--sf-vpn-top, 132px);
  left: var(--sf-vpn-left, 18px);

  right: auto;
  bottom: auto;

  width: 42px;
  height: 42px;

  z-index: 1000;

  font-family: Inter, Arial, sans-serif;
}

body #sf-vpn-notice,
body #sf-vpn-notice * {
  box-sizing: border-box;
}

body #sf-vpn-notice[hidden],
body #sf-vpn-notice .sf-vpn-notice__tip[hidden] {
  display: none !important;
}

/* Жёлтый кружок */
body #sf-vpn-notice .sf-vpn-notice__button {
  appearance: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #ffe400;
  color: #172b3f;

  box-shadow: 0 8px 22px rgba(23, 43, 63, 0.18);

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body #sf-vpn-notice .sf-vpn-notice__button svg {
  display: block;

  width: 22px;
  height: 22px;

  pointer-events: none;
}

body #sf-vpn-notice .sf-vpn-notice__button:focus-visible {
  outline: 3px solid #0082ff;
  outline-offset: 3px;
}

/* Текст предупреждения */
body #sf-vpn-notice .sf-vpn-notice__tip {
  position: absolute;

  top: 0;
  left: 52px;
  right: auto;

  display: block;

  width: min(360px, calc(100vw - 88px));
  max-height: calc(
    100dvh - var(--sf-vpn-top, 132px) - 16px
  );

  margin: 0;
  padding: 16px;

  overflow: auto;

  border: 1px solid #dbe5ef;
  border-radius: 14px;

  background: #fff;
  color: #061d2b;

  box-shadow: 0 16px 40px rgba(23, 43, 63, 0.16);
}

/* Позволяет перевести курсор с кружка на пояснение */
body #sf-vpn-notice::after {
  content: "";

  position: absolute;

  top: 0;
  left: 100%;

  width: 10px;
  height: 42px;
}

body #sf-vpn-notice .sf-vpn-notice__tip strong {
  display: block;

  margin: 0 0 8px;

  color: inherit;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

body #sf-vpn-notice .sf-vpn-notice__tip p {
  margin: 0;

  color: #586b7e;

  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* Тёмная тема */
body.night-mode #sf-vpn-notice .sf-vpn-notice__tip {
  background: #232832;
  color: #eff3f8;
  border-color: #3b4656;
}

body.night-mode #sf-vpn-notice .sf-vpn-notice__tip p {
  color: #b7c4d3;
}

/* На телефоне кружок справа, пояснение слева */
@media (max-width: 600px) {
  body #sf-vpn-notice {
    left: auto;
    right: 10px;
  }

  body #sf-vpn-notice .sf-vpn-notice__tip {
    left: auto;
    right: 52px;

    width: min(320px, calc(100vw - 82px));
  }

  body #sf-vpn-notice::after {
    left: auto;
    right: 100%;
  }
}


@media (max-width: 768px) {

  /* Прозрачностью управляем у самих кружков */
  body :is(
    #sf-vpn-notice,
    .sf-home-attention-rail,
    .sf-vpn-attention,
    .sf-documents-attention,
    .sf-coworkle-attention
  ) {
    opacity: 1 !important;
  }

  /* Обычное состояние */
  body :is(
    #sf-vpn-notice,
    .sf-home-attention-rail,
    .sf-vpn-attention,
    .sf-documents-attention,
    .sf-coworkle-attention
  ) :is(
    .sf-vpn-notice__button,
    .sf-vpn-attention__button,
    .sf-documents-attention__button,
    .sf-coworkle-attention__button
  ) {
    opacity: 1 !important;
    transition: opacity 0.2s ease !important;
  }

  /* Состояние после прокрутки */
  body.sf-mobile-notices-dim :is(
    #sf-vpn-notice,
    .sf-home-attention-rail,
    .sf-vpn-attention,
    .sf-documents-attention,
    .sf-coworkle-attention
  ) :is(
    .sf-vpn-notice__button,
    .sf-vpn-attention__button,
    .sf-documents-attention__button,
    .sf-coworkle-attention__button
  ) {
    opacity: 0.45 !important;
  }
}
/* ------------- 
content finish - Кружен VPN
------------- */
