.feedback-widget {
  position: fixed;
  right: 0;
  top: 20%;
  z-index: 40;
  font-family: "geomanist", sans-serif;
}

.feedback-widget__trigger {
  position: relative;
  z-index: 2;
  display: block;
  list-style: none;
  cursor: pointer;
}

.feedback-widget summary {
  list-style: none;
}
.feedback-widget summary::-webkit-details-marker { display: none; }

.feedback-widget__tab {
  display: flex;
  width: 38px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 0;
  border-radius: 7px 0 0 0;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  color: #111820;
  font-size: 15px;
  transition: opacity 300ms ease;
}

.feedback-widget__star,
.feedback-widget__stars { color: #ffc44f; }
.feedback-widget__star { font-size: 23px; line-height: 22px; }
.feedback-widget__tab-icon {
  width: 38px;
  height: 30px;
  margin-top: 3px;
  background: #42b8e8;
  background-image: url("images/feedback-company-small.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 26px;
}
.feedback-widget__summary-label { display: none; }

.feedback-widget__card {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(12px, 12px) scale(.96);
  transform-origin: top right;
  width: 280px;
  padding: 18px 15px 14px;
  border-radius: 16px 16px 0 16px;
  background: #fff;
  box-shadow: 0 7px 18px rgb(0 0 0 / 20%);
  color: #2b3740;
  text-align: center;
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms;
}
.feedback-widget__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 67px;
  border-radius: 16px 16px 0 0;
  background: url("images/feedback-blueband.svg") center top / 100% 67px no-repeat;
  z-index: 0;
}
.feedback-widget__card > * { position: relative; z-index: 1; }
.feedback-widget:hover .feedback-widget__card,
.feedback-widget__trigger:hover + .feedback-widget__card,
.feedback-widget__trigger:focus-visible + .feedback-widget__card {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0) scale(1);
  transition-delay: 0s;
}
.feedback-widget:hover .feedback-widget__tab,
.feedback-widget__trigger:focus-visible .feedback-widget__tab { opacity: 0; }

.feedback-widget__brand-mark {
  width: 66px;
  height: 66px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #fff url("images/feedback-company-big.svg") center / 46px 44px no-repeat;
  box-shadow: 0 2px 8px rgb(0 0 0 / 16%);
}
.feedback-widget__powered { color: #7b858c; font-size: 12px; letter-spacing: 1px; }
.feedback-widget__card h2 { margin: 4px 0 10px; font-size: 25px; font-weight: 600; }
.feedback-widget__copy { min-height: 0; font-size: 17px; line-height: 1.2; }
.feedback-widget__score { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.feedback-widget__stars { font-size: 40px; letter-spacing: -5px; line-height: 1; }
.feedback-widget__stars span {
  color: transparent;
  background: linear-gradient(90deg, #ffc44f 0 50%, #e5e5ea 50% 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.feedback-widget__score strong { font-size: 26px; }
.feedback-widget__count { margin: 10px 0; color: #9bb2c2; font-size: 17px; }
.feedback-widget__button { display: block; padding: 10px; border-radius: 4px; background: #4189ef; color: #fff; }
.feedback-widget__button:hover { background: #3477d6; }

@media (max-width: 480px) {
  .feedback-widget__card { width: min(280px, calc(100vw - 30px)); }
}
