/* 2026-11-13: floating card bottom-right (desktop/tablet), full-width bottom sheet on phone. Dark Void to match the top bar. */
.fenzo-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  box-sizing: border-box;
  width: min(400px, calc(100vw - 48px));
  margin: 0;
  padding: 22px 22px 20px;
  color: #f6f3ed;
  background: #141414;
  border: 1px solid rgba(246, 243, 237, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  font-family: "Noto Sans TC Variable", Inter, sans-serif;
  animation: fenzo-consent-in 0.35s ease-out both;
}

.fenzo-consent__copy strong { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.fenzo-consent__copy p { margin: 0; color: rgba(246, 243, 237, 0.74); font-size: 13px; line-height: 1.75; }
.fenzo-consent__copy a { display: inline-block; margin-top: 8px; color: inherit; font-size: 12px; text-underline-offset: 3px; }
.fenzo-consent__actions { display: flex; gap: 8px; margin-top: 18px; }
.fenzo-consent__actions button { flex: 1; }
.fenzo-consent__actions button,
.fenzo-consent-settings {
  min-height: 44px;
  padding: 10px 15px;
  color: #f6f3ed;
  background: transparent;
  border: 1px solid rgba(246, 243, 237, 0.35);
  border-radius: 0;
  font: 500 13px/1 Inter, "Noto Sans TC Variable", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.fenzo-consent__actions button:hover { border-color: rgba(246, 243, 237, 0.8); }
.fenzo-consent__actions .is-primary { color: #141414; background: #f6f3ed; border-color: #f6f3ed; }
.fenzo-consent__actions .is-primary:hover { background: #fff; }
.fenzo-consent__actions button:focus-visible,
.fenzo-consent__copy a:focus-visible { outline: 2px solid #f6f3ed; outline-offset: 2px; }

.fenzo-consent-settings {
  display: block;
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 12px 24px 16px auto;
  min-height: 30px;
  padding: 6px 9px;
  color: #1a1b1a;
  background: rgba(246, 243, 237, 0.88);
  border-color: rgba(26, 27, 26, 0.25);
  font-size: 12px;
  opacity: 0.85;
}
.fenzo-consent-settings:hover { border-color: rgba(26, 27, 26, 0.65); }
.fenzo-consent-settings[hidden] { display: none; }

@keyframes fenzo-consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fenzo-consent { animation: none; } }

@media (max-width: 640px) {
  .fenzo-consent {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px calc(16px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  }
  .fenzo-consent-settings { margin-right: 16px; }
}
