/* ── Feedback Widget ── */

.lpr-feedback-btn {
  position: fixed;
  inset-inline-start: 28px;
  inset-block-end: 180px;
  z-index: 88;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #406a00;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(64,106,0,0.35);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.lpr-feedback-btn:hover {
  background: #273329;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(64,106,0,0.4);
}

.lpr-feedback-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Popup */
.lpr-feedback-popup {
  position: fixed;
  inset-inline-start: 28px;
  inset-block-end: 240px;
  z-index: 89;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
  font-family: "Poppins", sans-serif;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms cubic-bezier(0.34,1.2,0.64,1), opacity 180ms ease;
}

.lpr-feedback-popup.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.lpr-feedback-popup__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}

.lpr-feedback-popup__header-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.lpr-feedback-popup__btn-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 140ms ease, color 140ms ease;
}

.lpr-feedback-popup__btn-icon:hover {
  background: #f0f0f0;
  color: #273329;
}

.lpr-feedback-popup__intro {
  font-size: 0.78rem;
  color: #637060;
  margin-bottom: 10px;
  line-height: 1.5;
}

.lpr-feedback-popup__question {
  font-size: 0.9rem;
  font-weight: 700;
  color: #273329;
  line-height: 1.4;
  margin-bottom: 18px;
}

/* Emojis */
.lpr-feedback-emojis {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.lpr-feedback-emoji {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
  flex: 1;
}

.lpr-feedback-emoji:hover {
  background: #eef3ea;
  transform: translateY(-2px);
}

.lpr-feedback-emoji.is-selected {
  border-color: #84b72e;
  background: #eef3ea;
}

.lpr-feedback-emoji__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.lpr-feedback-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #888;
  margin-bottom: 16px;
}

/* Comentario */
.lpr-feedback-comment {
  margin-bottom: 16px;
}

.lpr-feedback-comment__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.lpr-feedback-comment__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #273329;
  white-space: nowrap;
}

.lpr-feedback-comment__tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #637060;
  background: #eef3ea;
  border-radius: 999px;
  padding: 3px 9px;
}

.lpr-feedback-comment__input {
  display: block;
  width: 100%;
  resize: none;
  padding: 10px 12px;
  background: #f6f8f4;
  border: 1.5px solid #dbe3d6;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #273329;
  box-sizing: border-box;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.lpr-feedback-comment__input::placeholder {
  color: #a3ac9c;
}

.lpr-feedback-comment__input:hover {
  border-color: #b5c4a8;
}

.lpr-feedback-comment__input:focus {
  outline: none;
  background: #fff;
  border-color: #84b72e;
  box-shadow: 0 0 0 3px rgba(132,183,46,0.18);
}

.lpr-feedback-comment__count {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: #a3ac9c;
  margin-top: 4px;
}

/* Submit */
.lpr-feedback-submit {
  width: 100%;
  padding: 10px;
  background: #406a00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}

.lpr-feedback-submit:hover { background: #273329; }
.lpr-feedback-submit:disabled { background: #aaa; cursor: not-allowed; }

/* Thank you */
.lpr-feedback-thanks {
  text-align: center;
  padding: 12px 0 4px;
}

.lpr-feedback-thanks__emoji { font-size: 2.4rem; margin-bottom: 8px; }

.lpr-feedback-thanks__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #273329;
  margin-bottom: 4px;
}

.lpr-feedback-thanks__sub {
  font-size: 0.78rem;
  color: #637060;
}

@media (max-width: 400px) {
  .lpr-feedback-popup { inset-inline-start: 12px; width: calc(100vw - 24px); }
  .lpr-feedback-btn { inset-inline-start: 12px; }
}
