/* feedback-widget.css
   Professor Caviar — 回饋元件樣式
   對齊品牌視覺系統:深靛 (deep indigo) × 金 (gold)
   如你嘅 PWA 已有 CSS variables,可將下面兩個顏色改成 var(--pc-indigo) 等 */

:root {
  --pc-indigo: #1e2a4a;
  --pc-gold: #c9a227;
  --pc-gold-soft: rgba(201, 162, 39, 0.14);
}

/* --- 回饋按鈕列 --- */
.pc-feedback {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.pc-feedback:hover,
.pc-feedback:focus-within {
  opacity: 1;
}

.pc-fb-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  padding: 5px 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.pc-fb-btn:hover {
  background: var(--pc-gold-soft);
  transform: scale(1.12);
}

.pc-fb-btn:focus-visible {
  outline: 2px solid var(--pc-gold);
  outline-offset: 2px;
}

.pc-fb-sending .pc-fb-btn {
  pointer-events: none;
  opacity: 0.4;
}

/* --- 送出後嘅謝意訊息 --- */
.pc-fb-thanks {
  font-size: 12.5px;
  color: var(--pc-gold);
  letter-spacing: 0.02em;
}

.pc-fb-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* --- 同意對話框 --- */
.pc-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.pc-consent-card {
  background: #fffdf7;
  color: var(--pc-indigo);
  max-width: 380px;
  border-radius: 14px;
  border-top: 3px solid var(--pc-gold);
  padding: 22px 24px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.pc-consent-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.pc-consent-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
}

.pc-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pc-consent-actions button {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid var(--pc-indigo);
  background: transparent;
  color: var(--pc-indigo);
}

.pc-consent-yes {
  background: var(--pc-indigo) !important;
  color: #fffdf7 !important;
  border-color: var(--pc-indigo) !important;
}

.pc-consent-yes:hover {
  background: #2a3a63 !important;
}

@media (prefers-reduced-motion: reduce) {
  .pc-fb-btn,
  .pc-feedback,
  .pc-fb-fade {
    transition: none;
  }
}
