.centre-feedback {
  padding-block: 90px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}
.centre-feedback-copy {
  min-width: 0;
}
.centre-feedback-copy h2 {
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 20px 0 26px;
}
.centre-feedback-copy > p:not(.eyebrow) {
  font-size: 18px;
  color: #62666e;
  line-height: 1.7;
  max-width: 420px;
}
.centre-feedback-copy .text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  min-height: 44px;
}
.feedback-window {
  min-width: 0;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  margin: 0;
  padding: 8px 0;
  background: transparent;
}
.feedback-messages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  padding: 25px 0;
  margin: 0;
}
.feedback-messages li {
  align-self: flex-start;
  position: relative;
  max-width: 87%;
  min-width: 50px;
}
.feedback-messages li.feedback-sent {
  align-self: flex-end;
}
.feedback-bubble {
  margin: 0;
  border-radius: 18px 18px 18px 5px;
  background: #e9e9ee;
  padding: 12px 16px;
  color: #25272b;
  font-size: 14px;
  line-height: 1.45;
  transform-origin: left bottom;
}
.feedback-sent .feedback-bubble {
  color: #fff;
  background: #216adf;
  border-radius: 18px 18px 5px 18px;
  transform-origin: right bottom;
}
.feedback-speaker {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.feedback-typing {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 13px;
  border-radius: 18px;
  background: #e9e9ee;
  color: #737783;
}
.feedback-sent .feedback-typing {
  left: auto;
  right: 0;
  background: #216adf;
  color: #fff;
}
.feedback-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: feedback-dot 0.85s infinite ease-in-out;
}
.feedback-typing i:nth-child(2) {
  animation-delay: 0.14s;
}
.feedback-typing i:nth-child(3) {
  animation-delay: 0.28s;
}
.feedback-pending .feedback-bubble {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feedback-pending .is-shown .feedback-bubble {
  opacity: 1;
  transform: none;
}
.feedback-pending .is-typing .feedback-typing {
  display: inline-flex;
}
.feedback-window figcaption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 38px;
  font-size: 10px;
  color: #70757e;
}
.feedback-window button {
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #245ca4;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 8px;
  min-height: 38px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.feedback-window button:hover {
  background: #eaf0f8;
}
.feedback-window button:active {
  transform: scale(0.98);
}
.feedback-window button[hidden] {
  display: none;
}
@keyframes feedback-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@media (max-width: 700px) {
  .centre-feedback {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 64px;
  }
  .centre-feedback-copy > p:not(.eyebrow) {
    font-size: 17px;
  }
  .feedback-bubble {
    font-size: 13px;
    padding: 11px 14px;
  }
  .feedback-window figcaption {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-pending .feedback-bubble {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feedback-typing,
  .feedback-pending .is-typing .feedback-typing {
    display: none;
  }
  .feedback-typing i {
    animation: none;
  }
  .feedback-window button {
    transition: none;
  }
}
