.mr-fc {
  position: fixed;
  right: var(--mr-fc-right-desktop, 24px);
  bottom: var(--mr-fc-bottom-desktop, 105px);
  z-index: 9998;
  font-family: inherit;
}

.mr-fc,
.mr-fc * {
  box-sizing: border-box;
}

.mr-fc__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 58px;
  min-height: 58px;
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--mr-grad);
  color: #fff;
  box-shadow: 0 15px 35px rgba(0, 58, 96, 0.22);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: min-width .36s cubic-bezier(.2, .8, .2, 1), padding .36s cubic-bezier(.2, .8, .2, 1), gap .36s cubic-bezier(.2, .8, .2, 1), transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mr-fc__toggle:hover,
.mr-fc__toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 58, 96, 0.28);
  outline: none;
}

.mr-fc__toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 183, 241, 0.18), 0 18px 42px rgba(0, 58, 96, 0.28);
}

.mr-fc__toggle-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  transition: opacity .32s ease, transform .38s cubic-bezier(.2, .8, .2, 1);
}

.mr-fc__toggle-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.mr-fc__toggle-icon--open {
  opacity: 1;
  transform: scale(1.3) rotate(0deg);
}

.mr-fc__toggle-icon--close {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.78) rotate(-90deg);
}

.mr-fc__toggle-text {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
  transform: none;
  transition: max-width .36s cubic-bezier(.2, .8, .2, 1) .08s, opacity .22s ease .18s;
}

.mr-fc.is-open .mr-fc__toggle {
  min-width: 50px;
  min-height: 50px;
  padding-left: 12px;
  padding-right: 12px;
  gap: 0;
}

.mr-fc.is-open .mr-fc__toggle-icon--open {
  opacity: 0;
  transform: scale(.78) rotate(90deg);
}

.mr-fc.is-open .mr-fc__toggle-icon--close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.mr-fc.is-open .mr-fc__toggle-text {
  max-width: 0;
  opacity: 0;
  transform: none;
  transition: opacity .16s ease, max-width .34s cubic-bezier(.2, .8, .2, 1) .16s;
}

.mr-fc__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(310px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(12, 26, 46, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 55px rgba(0, 30, 56, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .26s ease, visibility .26s ease, transform .26s cubic-bezier(.2, .8, .2, 1);
}

.mr-fc.is-open .mr-fc__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mr-fc__title {
  padding: 4px 4px 12px;
  color: #071327;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.mr-fc__items {
  display: grid;
  gap: 8px;
}

.mr-fc__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 26, 46, 0.08);
  border-radius: 15px;
  background: #fff;
  color: #071327 !important;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.mr-fc__item:hover,
.mr-fc__item:focus-visible {
  color: #071327;
  border-color: rgba(37, 183, 241, 0.4);
  box-shadow: 0 10px 24px rgba(0, 56, 92, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.mr-fc__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: rgba(37, 183, 241, 0.11);
  color: var(--mr-fc-accent, #25B7F1);
}

.mr-fc__item-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mr-fc__item-label {
  display: block;
}

.mr-fc__item--form .mr-fc__item-icon {
  background: var(--mr-fc-accent, #25B7F1);
  color: #fff;
}

.mr-fc--hide-desktop {
  display: none;
}

@media (max-width: 767px) {
  .mr-fc {
    right: var(--mr-fc-right-mobile, 16px);
    bottom: var(--mr-fc-bottom-mobile, 95px);
  }

  .mr-fc--hide-desktop {
    display: block;
  }

  .mr-fc--hide-mobile {
    display: none;
  }

  .mr-fc__toggle {
    min-width: 50px;
    min-height: 50px;
    padding: 0 12px;
  }

  .mr-fc__toggle-text {
    display: none;
  }

  .mr-fc__panel {
    right: 0;
    width: min(300px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mr-fc__toggle,
  .mr-fc__toggle-icon,
  .mr-fc__toggle-text,
  .mr-fc__panel,
  .mr-fc__item {
    transition: none;
  }
}
