/* CrossPilot 离站反馈卡 — 右下角轻量卡片，无遮罩 */

.cp-exit-feedback {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.14);
  padding: 12px 12px 10px;
  color: #202223;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 260ms ease;
}

.cp-exit-feedback.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cp-exit-feedback__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6d7175;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.cp-exit-feedback__close:hover {
  background: #f6f6f7;
  color: #202223;
}

.cp-exit-feedback__title {
  margin: 0 34px 3px 0;
  font-size: 14px;
  font-weight: 700;
  color: #0A2540;
  letter-spacing: -0.01em;
}

.cp-exit-feedback__sub {
  margin: 0 0 8px;
  font-size: 11px;
  color: #6d7175;
  line-height: 1.45;
}

.cp-exit-feedback__reasons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-exit-feedback__reason {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e1e3e5;
  background: #fafbfc;
  border-radius: 9px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  color: #202223;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.cp-exit-feedback__reason:hover {
  background: rgba(0, 180, 173, 0.08);
  border-color: #9ad5d1;
}

.cp-exit-feedback__reason:active {
  transform: scale(0.99);
}

.cp-exit-feedback__other {
  margin-top: 8px;
}

.cp-exit-feedback__other.hidden,
.cp-exit-feedback__body.hidden,
.cp-exit-feedback__thanks.hidden,
.cp-exit-feedback__err.hidden {
  display: none !important;
}

.cp-exit-feedback__other textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d2d5d8;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 12px;
  resize: vertical;
  min-height: 56px;
  font-family: inherit;
}

.cp-exit-feedback__other-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}

.cp-exit-feedback__count {
  font-size: 10px;
  color: #6d7175;
}

.cp-exit-feedback__submit {
  border: 0;
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #00B4AD, #0056B3);
  cursor: pointer;
}

.cp-exit-feedback__err {
  margin: 6px 0 0;
  font-size: 11px;
  color: #b91c1c;
}

.cp-exit-feedback__thanks {
  padding: 8px 4px 4px;
  font-size: 13px;
  color: #0A2540;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cp-exit-feedback {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }
}
