body.inline-feedback-open {
  overflow: hidden;
}

.inline-feedback-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #17233b;
  color: #fff;
  box-shadow: 0 14px 36px rgba(23, 35, 59, .24);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.inline-feedback-trigger.has-sticky-footer {
  bottom: 92px;
}

.inline-feedback-trigger:hover {
  background: #2a4e7d;
}

.inline-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 24, 43, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.inline-feedback-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.inline-feedback-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  width: min(460px, 100vw);
  padding: 22px;
  overflow-y: auto;
  background: #f7f4ee;
  box-shadow: -18px 0 50px rgba(23, 35, 59, .2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.inline-feedback-drawer.is-open {
  transform: translateX(0);
}

.inline-feedback-shell {
  display: grid;
  gap: 18px;
}

.inline-feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.inline-feedback-header h2 {
  margin: 0;
  color: #17233b;
  font-size: 1.7rem;
  line-height: 1.1;
}

.inline-feedback-header p {
  margin: 7px 0 0;
  color: #566171;
  line-height: 1.5;
}

.inline-feedback-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #e7ebf2;
  color: #17233b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.inline-feedback-context {
  padding: 14px 16px;
  border-left: 5px solid #2a4e7d;
  border-radius: 0 12px 12px 0;
  background: #eef3f8;
}

.inline-feedback-context span {
  display: block;
  margin-bottom: 4px;
  color: #2a4e7d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.inline-feedback-context strong {
  display: block;
  color: #17233b;
  line-height: 1.45;
}

.inline-feedback-form {
  display: grid;
  gap: 14px;
}

.inline-feedback-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-feedback-field {
  display: grid;
  gap: 7px;
}

.inline-feedback-field label {
  color: #17233b;
  font-size: 13px;
  font-weight: 900;
}

.inline-feedback-field input,
.inline-feedback-field textarea {
  width: 100%;
  border: 1px solid rgba(23, 35, 59, .2);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #17233b;
  font: inherit;
}

.inline-feedback-field textarea {
  min-height: 86px;
  resize: vertical;
}

.inline-feedback-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.inline-feedback-submit,
.inline-feedback-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.inline-feedback-submit {
  background: #17233b;
  color: #fff;
}

.inline-feedback-submit:hover {
  background: #2a4e7d;
}

.inline-feedback-submit:disabled {
  cursor: wait;
  opacity: .6;
}

.inline-feedback-secondary-action {
  background: #e7ebf2;
  color: #17233b;
}

.inline-feedback-status {
  min-height: 20px;
  color: #566171;
  font-size: 13px;
  font-weight: 700;
}

.inline-feedback-status.error {
  color: #8a1f1f;
}

.inline-feedback-success {
  display: none;
  padding: 20px;
  border: 2px solid #20592f;
  border-radius: 16px;
  background: #eef8f0;
  text-align: center;
}

.inline-feedback-success.is-visible {
  display: block;
}

.inline-feedback-success h3 {
  margin: 0 0 8px;
  color: #20592f;
}

.inline-feedback-success p {
  margin: 0 0 16px;
  color: #566171;
}

.inline-feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 680px) {
  .inline-feedback-trigger {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .inline-feedback-trigger.has-sticky-footer {
    bottom: 84px;
  }

  .inline-feedback-drawer {
    width: 100vw;
    padding: 18px;
  }

  .inline-feedback-row {
    grid-template-columns: 1fr;
  }

  .inline-feedback-submit,
  .inline-feedback-secondary-action {
    width: 100%;
  }
}