:where(.refactor-site) .floating-contact {
  position: fixed;
  z-index: 900;
  top: 50%;
  right: 14px;
  width: 120px;
  transform: translateY(-42%);
  color: var(--ink-deep);
}

:where(.refactor-site) .floating-contact__panel {
  position: relative;
  width: 100%;
  padding-top: 0;
  border: 1px solid #d7e2da;
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 6px 18px rgba(23, 58, 43, .09);
  animation: floating-contact-in .2s cubic-bezier(.2, .8, .2, 1) both;
}

:where(.refactor-site) .floating-contact__close {
  position: absolute;
  top: -20px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #60776b;
  border-radius: 50%;
  isolation: isolate;
}

:where(.refactor-site) .floating-contact__close::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid #d7e2da;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 4px 12px rgba(23, 58, 43, .1);
}

:where(.refactor-site) .floating-contact__close:hover::before,
:where(.refactor-site) .floating-contact__close:focus-visible::before {
  background: #f0f5f0;
}

:where(.refactor-site) .floating-contact__close:hover,
:where(.refactor-site) .floating-contact__close:focus-visible {
  color: var(--ink-deep);
}

:where(.refactor-site) .floating-contact__close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}

:where(.refactor-site) .floating-contact__items {
  overflow: hidden;
  border-radius: 13px;
}

:where(.refactor-site) .floating-contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 78px;
  padding: 7px 4px;
  color: var(--ink-deep);
  text-align: center;
  background: transparent;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  white-space: normal;
}

:where(.refactor-site) .floating-contact__label {
  max-width: 4.5em;
  text-align: center;
  overflow-wrap: anywhere;
}

:where(.refactor-site) .floating-contact__phone {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

:where(.refactor-site) .floating-contact__item + .floating-contact__item {
  border-top: 1px solid #d7e2da;
}

:where(.refactor-site) .floating-contact__item:hover:not(:disabled),
:where(.refactor-site) .floating-contact__item:focus-visible {
  background: #f1f6f2;
}

:where(.refactor-site) .floating-contact__item:disabled {
  cursor: not-allowed;
  color: #7a8a80;
}

:where(.refactor-site) .floating-contact__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf4ed;
  color: var(--ink);
}

:where(.refactor-site) .floating-contact__item:hover:not(:disabled) .floating-contact__icon,
:where(.refactor-site) .floating-contact__item:focus-visible .floating-contact__icon {
  background: #e6efe7;
}

:where(.refactor-site) .floating-contact__item:disabled .floating-contact__icon {
  color: #7a8a80;
}

:where(.refactor-site) .floating-contact__reopen {
  display: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #dce7df;
  border-radius: 50%;
  background: #fffefa;
  color: var(--ink);
  box-shadow: 0 7px 20px rgba(23, 58, 43, .12);
}

:where(.refactor-site) .floating-contact__reopen:hover,
:where(.refactor-site) .floating-contact__reopen:focus-visible {
  background: #edf4ed;
}

:where(.refactor-site) .floating-contact[data-view="collapsed"] {
  width: 52px;
}

:where(.refactor-site) .floating-contact[data-view="collapsed"] .floating-contact__panel {
  display: none;
}

:where(.refactor-site) .floating-contact[data-view="collapsed"] .floating-contact__reopen {
  display: grid;
}

:where(.refactor-site) .floating-contact__qr {
  position: absolute;
  top: 54px;
  right: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 190px;
  padding: 14px;
  border: 1px solid #dce7df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 58, 43, .12);
  font-size: 12px;
  line-height: 1.4;
  color: #64776b;
  animation: floating-contact-in .2s cubic-bezier(.2, .8, .2, 1) both;
}

:where(.refactor-site) .floating-contact__qr strong {
  font-size: 14px;
  color: var(--ink-deep);
}

:where(.refactor-site) .floating-contact__qr img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #fff;
}

@keyframes floating-contact-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  :where(.refactor-site) .floating-contact,
  :where(.refactor-site) .floating-contact[data-view="collapsed"] {
    top: auto;
    right: 16px;
    bottom: 22px;
    width: 52px;
    transform: none;
  }

  :where(.refactor-site) .floating-contact[data-view="default"] .floating-contact__panel {
    display: none;
  }

  :where(.refactor-site) .floating-contact[data-view="default"] .floating-contact__reopen {
    display: grid;
  }

  :where(.refactor-site) .floating-contact[data-view="expanded"] .floating-contact__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 154px;
  }

  :where(.refactor-site) .floating-contact__item {
    min-height: 72px;
    gap: 5px;
    padding: 7px;
  }

  :where(.refactor-site) .floating-contact__icon {
    width: 32px;
    height: 32px;
  }

  :where(.refactor-site) .floating-contact__label {
    max-width: none;
  }

  :where(.refactor-site) .floating-contact__qr {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.refactor-site) .floating-contact__panel,
  :where(.refactor-site) .floating-contact__qr {
    animation: none;
    transition: none;
  }
}
