.feedback{
  position: fixed;
  right: clamp(14px, 3vw, 22px);
  bottom: calc(clamp(14px, 3vw, 22px) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  font-family: inherit;
}

.feedback__toggle{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 95, 255, .35);
  display: grid;
  place-items: center;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}

.feedback__toggle:hover{
  background: var(--primary-700);
}

.feedback__toggle:active{
  transform: translateY(1px);
}

.feedback__toggle:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.feedback__icon{
  width: 22px;
  height: 22px;
}

.feedback__panel{
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(320px, calc(100vw - 28px));
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  padding: 14px 14px 12px;
  display: none;
}

.feedback.is-open .feedback__panel{
  display: block;
}

.feedback__title{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.feedback__text{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

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

.feedback__link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.feedback__link:hover{
  border-color: rgba(11, 95, 255, .35);
}

.feedback__link small{
  color: var(--muted);
  font-weight: 600;
}

button.feedback__link{
  width: 100%;
  text-align: left;
  font: inherit;
  appearance: none;
  background: #fff;
}

.feedback__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  cursor: pointer;
}

.feedback__close::before,
.feedback__close::after{
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.feedback__close::before{
  transform: rotate(45deg);
}

.feedback__close::after{
  transform: rotate(-45deg);
}
