/**
 * Cookie 同意提示（Consent.php / consent.js）。
 * 非強制視窗：左下角一張小卡，不遮罩、不鎖捲動。手機貼在底部導覽列上方（--chic-mbar-h，
 * 定義於 chicing-frontend.css），右側浮動列以 --chic-consent-h 往上讓位（主題 floating-contact.css）。
 */
.chic-consent[hidden] { display: none; }
.chic-consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 9995;
  width: min(440px, calc(100vw - 48px));
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.chic-consent.is-open { opacity: 1; transform: none; }
.chic-consent__inner {
  padding: 22px 24px 20px;
  color: rgba(255, 255, 255, .84);
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-deep) 55%, var(--color-primary-deep) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(32, 24, 22, .18), 0 22px 54px rgba(32, 24, 22, .32);
}
.chic-consent__title { margin: 0 0 8px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.chic-consent__text { margin: 0; font-size: 13.5px; line-height: 1.8; }
.chic-consent__text a { color: var(--color-ivory); text-decoration: underline; text-underline-offset: 3px; }
.chic-consent__text a:hover { color: #fff; }
.chic-consent__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* 每條都帶 .chic-consent 前綴並涵蓋 :focus：主題 base-reset.css 的 [type=button]:focus/:hover
   (0,2,0) 會把按鈕染成 #c36 粉紅底。 */
.chic-consent .chic-consent__btn {
  min-height: 42px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .05em;
  transition: background-color .4s cubic-bezier(0.16, 1, 0.3, 1), color .4s cubic-bezier(0.16, 1, 0.3, 1), border-color .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chic-consent .chic-consent__btn--ghost { color: rgba(255, 255, 255, .86); background: transparent; border: 1px solid rgba(255, 255, 255, .34); }
.chic-consent .chic-consent__btn--ghost:hover, .chic-consent .chic-consent__btn--ghost:focus { color: #fff; background: rgba(255, 255, 255, .06); border-color: var(--color-ivory); }
.chic-consent .chic-consent__btn--primary { color: var(--color-primary); background: var(--color-ivory); border: 1px solid var(--color-ivory); }
.chic-consent .chic-consent__btn--primary:hover, .chic-consent .chic-consent__btn--primary:focus { color: var(--color-primary-deep); background: #fff; border-color: #fff; }
.chic-consent .chic-consent__btn:focus-visible, .chic-consent__text a:focus-visible { outline: 2px solid var(--color-ivory); outline-offset: 3px; }

@media (max-width: 720px) {
  .chic-consent {
    left: 12px; right: 12px; width: auto;
    bottom: calc(var(--chic-mbar-h, 0px) + env(safe-area-inset-bottom, 0px) + 10px);
  }
  .chic-consent__inner { padding: 16px 18px; }
  .chic-consent__text { font-size: 13px; line-height: 1.7; }
  .chic-consent__actions { margin-top: 12px; }
  .chic-consent .chic-consent__btn { flex: 1; min-height: 40px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .chic-consent, .chic-consent .chic-consent__btn { transition: none; }
}
