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

.ufc,
.ufc * {
  box-sizing: border-box;
}

.ufc__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-radius: 999px;
  background: var(--ufc-accent, #2563eb);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .16);
  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;
}

.ufc__toggle:hover,
.ufc__toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  outline: none;
}

.ufc__toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), 0 18px 42px rgba(0, 0, 0, .22);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ufc-accent, #2563eb) 18%, transparent), 0 18px 42px rgba(0, 0, 0, .22);
}

.ufc__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);
}

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

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

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

.ufc__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;
}

.ufc.is-open .ufc__toggle {
  min-width: 50px;
  min-height: 50px;
  padding-left: 12px;
  padding-right: 12px;
  gap: 0;
}

.ufc.is-open .ufc__toggle-icon--open {
  opacity: 0;
  transform: scale(.78) rotate(90deg);
}

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

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

.ufc__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);
}

.ufc.is-open .ufc__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

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

.ufc__items {
  display: grid;
  gap: 8px;
}

.ufc__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;
}

.ufc__item:hover,
.ufc__item:focus-visible {
  color: #071327;
  border-color: var(--ufc-accent, #2563eb);
  box-shadow: 0 10px 24px rgba(0, 56, 92, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.ufc__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: rgba(253, 252, 248, 1);
  color: #c96f3b;
}

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

.ufc__item-label {
  display: block;
}

.ufc__item--form .ufc__item-icon {
  background: #c96f3b;
  color: #fff;
}

.ufc--hide-desktop {
  display: none;
}

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

  .ufc--hide-desktop {
    display: block;
  }

  .ufc--hide-mobile {
    display: none;
  }

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

  .ufc__toggle-text {
    display: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  .ufc__toggle,
  .ufc__toggle-icon,
  .ufc__toggle-text,
  .ufc__panel,
  .ufc__item {
    transition: none;
  }
}
