.tb-feedback {
  --tb-feedback-coral: #ef4956;
  --tb-feedback-ink: #202437;
  --tb-feedback-muted: #67716d;
  --tb-feedback-green: #0b5551;
  position: fixed;
  z-index: 2147482000;
  top: 96px;
  right: 18px;
  font-family: inherit;
  opacity: 1;
  pointer-events: auto;
}

.tb-feedback > summary {
  list-style: none;
}

.tb-feedback > summary::-webkit-details-marker {
  display: none;
}

.tb-feedback__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: var(--tb-feedback-green);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(18, 35, 35, 0.2);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.tb-feedback__trigger:hover,
.tb-feedback__trigger:focus-visible {
  color: #fff;
  background: #073f3c;
  outline: 3px solid rgba(239, 73, 86, 0.25);
  outline-offset: 2px;
}

.tb-feedback__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 27, 39, 0.5);
  backdrop-filter: blur(3px);
}

.tb-feedback__dialog {
  display: none;
  position: fixed;
  top: 154px;
  right: 18px;
  width: min(520px, calc(100vw - 48px));
  max-height: calc(100vh - 174px);
  padding: 30px;
  overflow-y: auto;
  box-sizing: border-box;
  color: var(--tb-feedback-ink);
  background: #fffdfa;
  border: 1px solid #eaded5;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(21, 27, 39, 0.25);
}

.tb-feedback[open] .tb-feedback__backdrop,
.tb-feedback[open] .tb-feedback__dialog,
.tb-feedback.is-open .tb-feedback__backdrop,
.tb-feedback.is-open .tb-feedback__dialog {
  display: block;
}

.tb-feedback[open] .tb-feedback__trigger,
.tb-feedback.is-open .tb-feedback__trigger {
  color: var(--tb-feedback-ink);
  background: #fffdfa;
  border-color: #d9e2df;
}

.tb-feedback__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  color: #515967;
  background: #f5f1ed;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tb-feedback__eyebrow {
  margin: 0 52px 8px 0;
  color: var(--tb-feedback-coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-feedback__dialog h2 {
  margin: 0 44px 10px 0;
  color: var(--tb-feedback-ink);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.08;
}

.tb-feedback__intro {
  margin: 0 0 24px;
  color: var(--tb-feedback-muted);
  font-size: 16px;
  line-height: 1.55;
}

.tb-feedback__form fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.tb-feedback__form legend,
.tb-feedback__message-label {
  display: block;
  margin: 0 0 9px;
  color: var(--tb-feedback-ink);
  font-size: 15px;
  font-weight: 850;
}

.tb-feedback__categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tb-feedback__categories label {
  margin: 0;
  cursor: pointer;
}

.tb-feedback__categories input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tb-feedback__categories span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 13px;
  color: #39414d;
  background: #fff;
  border: 1px solid #dfe5e2;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.tb-feedback__categories input:checked + span {
  color: #8d2530;
  background: #fff1f0;
  border-color: var(--tb-feedback-coral);
  box-shadow: 0 0 0 2px rgba(239, 73, 86, 0.12);
}

.tb-feedback__categories input:focus-visible + span {
  outline: 3px solid rgba(239, 73, 86, 0.22);
  outline-offset: 2px;
}

.tb-feedback textarea {
  display: block;
  width: 100%;
  min-height: 118px;
  margin: 0;
  padding: 13px 15px;
  resize: vertical;
  color: var(--tb-feedback-ink);
  background: #fff;
  border: 1px solid #d8dfdc;
  border-radius: 14px;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.tb-feedback textarea:focus {
  border-color: var(--tb-feedback-coral);
  box-shadow: 0 0 0 3px rgba(239, 73, 86, 0.12);
  outline: 0;
}

.tb-feedback__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
}

.tb-feedback__meta {
  margin: 10px 0 18px;
  color: #7b837f;
  font-size: 12px;
  line-height: 1.4;
}

.tb-feedback__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #8d2530;
  background: #fff0ef;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.tb-feedback__submit,
.tb-feedback__success button,
.tb-feedback__success a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 12px 20px;
  color: #fff;
  background: var(--tb-feedback-coral);
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.tb-feedback__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.tb-feedback__success {
  padding: 30px 0 8px;
  text-align: center;
}

.tb-feedback__success > div {
  margin-bottom: 12px;
  font-size: 44px;
}

.tb-feedback__success h2 {
  margin: 0 0 8px;
}

.tb-feedback__success p {
  margin: 0 0 20px;
  color: var(--tb-feedback-muted);
}

html.tb-feedback-lock,
html.tb-feedback-lock body {
  overflow: hidden;
}

@media (max-width: 767px) {
  .tb-feedback {
    top: calc(72px + env(safe-area-inset-top));
    right: 12px;
  }

  .tb-feedback__trigger {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .tb-feedback__dialog {
    top: calc(124px + env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 144px - env(safe-area-inset-top));
    padding: 26px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .tb-feedback__dialog h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-feedback,
  .tb-feedback__categories span {
    transition: none;
  }
}
