/* ============================================
   TTP FEEDBACK COMPONENTS
   Exit Intent Card + Persistent Feedback Button
============================================ */

/* --- Exit Intent Card --- */
.ttp-exit-card {
  position: fixed;
  bottom: -200px;
  left: 24px;
  width: 320px;
  background: #161b22;
  border: 1px solid rgba(26,144,184,0.3);
  border-radius: 12px;
  padding: 20px;
  z-index: 9000;
  transition: bottom 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.ttp-exit-card.visible { bottom: 24px; }
.ttp-exit-close {
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
  color: #556;
  font-size: 1.2rem;
  line-height: 1;
}
.ttp-exit-close:hover { color: #8a9ab0; }
.ttp-exit-question {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e0e8f0;
  margin-bottom: 12px;
  padding-right: 16px;
}
.ttp-exit-options { display: flex; flex-direction: column; gap: 6px; }
.ttp-exit-opt {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.8rem;
  color: #c0c8d0;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ttp-exit-opt:hover { background: rgba(26,144,184,0.1); border-color: rgba(26,144,184,0.3); color: #fff; }
.ttp-exit-opt.selected { background: rgba(26,144,184,0.15); border-color: #1A90B8; color: #fff; }
.ttp-exit-other-wrap { margin-top: 10px; display: flex; gap: 8px; }
.ttp-exit-other-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #e0e8f0;
  outline: none;
  font-family: inherit;
}
.ttp-exit-other-input:focus { border-color: #1A90B8; }
.ttp-exit-submit {
  background: #1A90B8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.ttp-exit-thanks { font-size: 0.85rem; color: #7ECAC3; text-align: center; padding: 8px 0; }

/* --- Persistent Feedback Button --- */
.ttp-fb-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #1A90B8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 8900;
  box-shadow: 0 4px 16px rgba(26,144,184,0.4);
  transition: transform 0.2s;
  user-select: none;
}
.ttp-fb-btn:hover { transform: scale(1.1); }
.ttp-fb-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 300px;
  background: #161b22;
  border: 1px solid rgba(26,144,184,0.3);
  border-radius: 12px;
  padding: 16px;
  z-index: 8900;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: none;
}
.ttp-fb-panel.open { display: block; }
.ttp-fb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ttp-fb-title { font-size: 0.9rem; font-weight: 700; color: #fff; }
.ttp-fb-close { cursor: pointer; color: #556; font-size: 1.1rem; }
.ttp-fb-close:hover { color: #8a9ab0; }
.ttp-fb-subtitle { font-size: 0.75rem; color: #8a9ab0; margin-bottom: 12px; }
.ttp-fb-categories { display: flex; flex-direction: column; gap: 6px; }
.ttp-fb-cat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.8rem;
  color: #c0c8d0;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ttp-fb-cat:hover { background: rgba(26,144,184,0.1); border-color: rgba(26,144,184,0.3); color: #fff; }
.ttp-fb-cat.selected { background: rgba(26,144,184,0.15); border-color: #1A90B8; color: #fff; }
.ttp-fb-input-wrap { margin-top: 10px; display: flex; gap: 8px; }
.ttp-fb-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #e0e8f0;
  outline: none;
  font-family: inherit;
}
.ttp-fb-input:focus { border-color: #1A90B8; }
.ttp-fb-send {
  background: #1A90B8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.ttp-fb-thanks { font-size: 0.82rem; color: #7ECAC3; text-align: center; padding: 8px 0; }
