.consent-settings { min-height: 36px; padding: 6px 0; border: 0; color: #39465f; background: none; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-panel, .consent-panel * { box-sizing: border-box; }
.consent-panel { position: fixed; z-index: 40; bottom: 20px; left: 20px; width: min(440px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px; border: 1px solid #c9d0da; border-radius: 14px; background: #fff; color: #39465f; box-shadow: 0 10px 40px rgba(23,35,59,.18); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; font-size: 13px; line-height: 1.75; }
.consent-panel [hidden], .consent-panel[hidden], .consent-notice[hidden] { display: none; }
.consent-panel p { margin: 0 0 12px; }
.consent-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.consent-panel .consent-panel-title { color: #17233b; font-size: 17px; line-height: 1.5; font-weight: 800; margin-bottom: 12px; }
.consent-panel a { color: #83404b; text-underline-offset: 3px; }
.consent-panel .consent-reassurance { color: #17233b; font-weight: 700; font-size: 12px; }
.consent-close, .consent-secondary button { min-height: 36px; padding: 4px; border: 0; background: none; color: #39465f; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-close { flex: 0 0 auto; margin-top: -6px; }
.consent-secondary { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 8px; font-size: 12px; }
.consent-panel .consent-small-note { margin: 4px 0 0; color: #59657a; font-size: 11px; line-height: 1.65; }
.consent-option { display: flex; align-items: flex-start; gap: 10px; padding-block: 8px; cursor: pointer; }
.consent-option input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #83404b; }
.consent-option strong { display: block; color: #17233b; font-size: 13px; }
.consent-option small { display: block; font-size: 12px; line-height: 1.6; }
.consent-option input:disabled { opacity: .5; cursor: not-allowed; }
.consent-panel .consent-dependency-note { margin: 0 0 4px 30px; color: #59657a; font-size: 11px; line-height: 1.6; }
.consent-actions { display: flex; gap: 8px; margin-top: 14px; }
.consent-actions button { flex: 1; min-height: 46px; padding: 10px 8px; border: 1px solid #9faabd; border-radius: 8px; background: #fff; color: #263951; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.consent-quick-actions button { border-color: #536882; font-size: 13px; }
.consent-actions button:hover { background: #f0f3f7; }
.consent-actions button[data-consent-choice="selected"] { border-color: #83404b; color: #83404b; }
.consent-panel button:focus-visible, .consent-panel a:focus-visible, .consent-option input:focus-visible, .consent-settings:focus-visible { outline: 3px solid #4f7899; outline-offset: 3px; }
.consent-notice { position: fixed; z-index: 41; bottom: 90px; left: 20px; width: min(440px, calc(100% - 40px)); margin: 0; padding: 16px; border: 1px solid #9faabd; border-radius: 10px; background: #fff; color: #263951; font-size: 13px; line-height: 1.7; box-shadow: 0 6px 24px rgba(23,35,59,.18); }
@media (max-width: 760px) {
  .consent-panel { bottom: calc(74px + env(safe-area-inset-bottom)); left: 12px; width: calc(100% - 24px); padding: 18px; max-height: calc(100dvh - 98px); }
  .consent-panel .consent-panel-title { font-size: 16px; }
  .consent-actions { gap: 6px; }
  .consent-actions button { padding-inline: 5px; }
  .consent-quick-actions button { font-size: 12px; }
  .consent-notice { left: 12px; width: calc(100% - 24px); }
}
@media (max-width: 340px) { .consent-quick-actions { flex-direction: column; } }

.heatmap-footer-notice { max-width: 960px; margin: 16px auto 0; padding: 16px 24px; color: #39465f; background: #f4f6f9; border-radius: 8px; font-size: 14px; line-height: 1.8; }
.heatmap-footer-notice p { margin: 0 0 6px; }
.heatmap-footer-notice a, .heatmap-footer-notice button { color: #39465f; font-size: 14px; }
