/* Backfolio Cookie Consent */
.bf-cc-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:9999;display:none}
.bf-cc-card{max-width:980px;margin:0 auto;background:rgba(20,20,20,.92);color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.35);padding:16px}
.bf-cc-row{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.bf-cc-text{min-width:260px;flex:1}
.bf-cc-title{font-weight:700;font-size:14px;margin:0 0 6px}
.bf-cc-desc{font-size:13px;line-height:1.45;margin:0;color:rgba(255,255,255,.82)}
.bf-cc-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bf-cc-btn{appearance:none;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;border-radius:12px;padding:10px 12px;font-weight:700;font-size:13px;cursor:pointer}
.bf-cc-btn:hover{background:rgba(255,255,255,.14)}
.bf-cc-btn.primary{background:linear-gradient(90deg,#111 0%,#333 100%);border-color:rgba(255,255,255,.22)}
.bf-cc-btn.ghost{background:transparent}

.bf-cc-modal{position:fixed;inset:0;display:none;z-index:10000;background:rgba(0,0,0,.55);padding:24px}
.bf-cc-modal[aria-hidden="false"]{display:block}
.bf-cc-panel{max-width:820px;margin:0 auto;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 18px 70px rgba(0,0,0,.35)}
.bf-cc-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #eee}
.bf-cc-head b{font-size:14px}
.bf-cc-x{border:0;background:transparent;font-size:18px;cursor:pointer;opacity:.8}
.bf-cc-body{padding:16px 18px}
.bf-cc-cats{display:grid;gap:12px;margin:0 0 16px}
.bf-cc-cat{display:flex;gap:12px;align-items:flex-start;border:1px solid #eee;border-radius:14px;padding:12px}
.bf-cc-cat h4{margin:0 0 4px;font-size:13px}
.bf-cc-cat p{margin:0;font-size:12px;color:#555;line-height:1.45}
.bf-cc-switch{margin-left:auto;display:flex;align-items:center;gap:8px}
.bf-cc-switch input{width:18px;height:18px}
.bf-cc-note{font-size:12px;color:#666;margin:10px 0 0}
.bf-cc-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:10px}
.bf-cc-table th,.bf-cc-table td{border-bottom:1px solid #eee;padding:8px 6px;text-align:left;vertical-align:top}
.bf-cc-foot{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding:14px 18px;border-top:1px solid #eee;background:#fafafa}
.bf-cc-link{color:inherit;text-decoration:underline}

/* --- Backfolio hotfix: make modal text fully black for readability --- */
#bf-consent-modal,
#bf-consent-modal * {
  color: #000 !important;
}

#bf-consent-modal .bf-consent-muted,
#bf-consent-modal .bf-consent-note,
#bf-consent-modal .bf-consent-small {
  color: #000 !important;
  opacity: 1 !important;
}

#bf-consent-modal table,
#bf-consent-modal th,
#bf-consent-modal td {
  color: #000 !important;
  opacity: 1 !important;
}

#bf-consent-modal th {
  font-weight: 700 !important;
}

#bf-consent-modal .bf-consent-table-wrap {
  background: #fff !important;
}
