/* ─── Feedback Module Styles ─── */

/* Container */
.feedback-container {
  padding: 4px 42px 0;
}

/* Button row */
.feedback-btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--ep-border-light, #E9EAEB);
  background: var(--ep-white, #fff);
  color: var(--ep-dark-60, #6e6e6e);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.feedback-btn:hover {
  border-color: var(--ep-border, #D4D5D7);
  color: var(--ep-dark, #262B38);
  background: var(--ep-bg, #F5F5F5);
}

.feedback-btn--selected {
  border-color: var(--ep-blue, #004EA2);
  color: var(--ep-blue, #004EA2);
  background: var(--ep-blue-bg, #EDF1FA);
}

.feedback-btn--selected:hover {
  background: var(--ep-blue-bg, #EDF1FA);
  color: var(--ep-blue, #004EA2);
}

.feedback-btn-icon {
  font-size: 14px;
  line-height: 1;
}

/* ─── Feedback Form ─── */
.feedback-form {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--ep-border-light, #E9EAEB);
  border-radius: var(--radius-md, 11px);
  background: var(--ep-white, #fff);
  animation: feedbackSlideIn 0.2s ease both;
}

.feedback-form--closing {
  animation: feedbackSlideOut 0.2s ease both;
}

@keyframes feedbackSlideIn {
  from { opacity: 0; transform: translateY(-4px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 600px; }
}

@keyframes feedbackSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-4px); }
}

/* Categories */
.feedback-categories {
  border: none;
  padding: 0;
  margin: 0 0 10px;
}

.feedback-categories-legend {
  font-size: 0.85rem;
  color: var(--ep-dark-80, #515560);
  margin-bottom: 6px;
  font-variation-settings: "wght" 500;
}

.feedback-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--ep-border-light, #E9EAEB);
  border-radius: var(--radius-sm, 6px);
  font-size: 12px;
  color: var(--ep-dark-60, #6e6e6e);
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}

.feedback-cat-label:hover {
  border-color: var(--ep-border, #D4D5D7);
  color: var(--ep-dark, #262B38);
}

.feedback-cat-label:has(.feedback-cat-cb:checked) {
  border-color: var(--ep-blue, #004EA2);
  color: var(--ep-blue, #004EA2);
  background: var(--ep-blue-bg, #EDF1FA);
}

.feedback-cat-cb {
  width: 12px;
  height: 12px;
  accent-color: var(--ep-blue, #004EA2);
}

/* Comment */
.feedback-comment-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ep-dark-80, #515560);
  margin-bottom: 4px;
}

.feedback-comment {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ep-border, #D4D5D7);
  border-radius: var(--radius-sm, 6px);
  font-family: inherit;
  font-size: 13px;
  color: var(--ep-dark, #262B38);
  resize: vertical;
  min-height: 48px;
  max-height: 120px;
  transition: border-color 0.15s;
}

.feedback-comment:focus {
  border-color: var(--ep-blue-light, #1e6cff);
  outline: 2px solid var(--ep-blue-light, #1e6cff);
  outline-offset: 1px;
}

.feedback-comment::placeholder {
  color: var(--ep-dark-60, #6e6e6e);
}

.feedback-comment-count {
  text-align: right;
  font-size: 11px;
  color: var(--ep-dark-60, #6e6e6e);
  margin-top: 2px;
}

/* Form actions */
.feedback-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.feedback-submit-btn {
  padding: 5px 16px;
  border-radius: var(--radius-sm, 6px);
  border: none;
  background: var(--ep-blue, #004EA2);
  color: var(--ep-white, #fff);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s;
}

.feedback-submit-btn:hover {
  background: var(--ep-blue-dark, #082B7A);
}

.feedback-submit-btn:disabled {
  background: var(--ep-border, #D4D5D7);
  cursor: not-allowed;
}

/* ─── Toast Notification ─── */
.feedback-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: var(--ep-dark, #262B38);
  color: var(--ep-white, #fff);
  font-family: inherit;
  font-size: 13px;
  border-radius: var(--radius-md, 11px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: toastIn 0.3s ease both;
}

.feedback-toast--hide {
  animation: toastOut 0.3s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(12px); }
}
