/* TRKW Cookie Consent — banner + preferences modal (matches cookies-consent.js templates) */

:root{
  --cc-bg: rgba(255,255,255,.92);
  --cc-border: rgba(0,0,0,.10);
  --cc-text: rgba(11,18,32,.78);
  --cc-muted: rgba(11,18,32,.62);
  --cc-shadow: 0 18px 40px rgba(0,0,0,.22);
}

/* Banner */
.cc-wrap{
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:9999;
  pointer-events:none;
}
.cc-banner{
  pointer-events:auto;
  max-width:980px;
  margin:0 auto;
  background:var(--cc-bg);
  border:1px solid var(--cc-border);
  border-radius:18px;
  box-shadow:var(--cc-shadow);
  padding:14px 16px 12px 16px;
  backdrop-filter: blur(10px);
}
.cc-title{
  font-weight:800;
  font-size:16px;
  line-height:1.2;
  margin:0 0 6px 0;
  color: var(--blue-900, #0b3556);
}
.cc-text{
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:var(--cc-text);
  max-width:78ch;
}
.cc-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  margin-top:12px;
}
.cc-actions .btn{ padding:10px 12px; }
.cc-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:12px;
}
.cc-links a{
  color: rgba(11,18,32,.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-links a:hover{ color: rgba(11,18,32,.92); }

/* Modal */
.cc-modal-overlay{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 6vh 16px 24px 16px;
  background: rgba(0,0,0,.55);
}
.cc-modal{
  width:min(760px, 100%);
  background:#fff;
  border:1px solid var(--cc-border);
  border-radius:18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow:hidden;
}
.cc-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.cc-modal-title{
  font-weight:800;
  color: var(--blue-900, #0b3556);
  font-size:18px;
  line-height:1.2;
}
.cc-modal-sub{
  margin-top:4px;
  font-size:13px;
  color:var(--cc-muted);
  line-height:1.4;
}
.cc-x{
  border:0;
  background:transparent;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  color: rgba(11,18,32,.55);
  padding:0 4px;
}
.cc-x:hover{ color: rgba(11,18,32,.90); }

.cc-modal-body{
  padding: 10px 16px 6px 16px;
}
.cc-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.cc-row:last-child{ border-bottom:0; }
.cc-row b {
    display: block;
    margin-bottom: 2px;
    color: #001d2f;
}
.cc-desc{
  display:block;
  font-size:12px;
  color:var(--cc-muted);
  line-height:1.35;
}

/* Toggle (styles native checkbox into a switch) */
.cc-row input[type="checkbox"]{
  -webkit-appearance:none;
  appearance:none;
  width:52px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#e5e7eb;
  position:relative;
  cursor:pointer;
  flex:0 0 auto;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}
.cc-row input[type="checkbox"]::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: transform .18s ease;
}
.cc-row input[type="checkbox"]:checked{
  background: var(--blue-600, #1f6feb);
  border-color: rgba(31,111,235,.55);
}
.cc-row input[type="checkbox"]:checked::after{
  transform: translateX(22px);
}
.cc-row input[type="checkbox"]:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* Modal actions */
.cc-modal-actions{
  display:flex;
  gap:10px;
  justify-content:space-between;
  flex-wrap:wrap;
  padding: 12px 16px 16px 16px;
  border-top:1px solid rgba(0,0,0,.06);
  background: rgba(233,241,255,.35);
}
.cc-modal-actions .btn{ padding:10px 12px; }

/* Floating settings button */
.cc-settings-btn{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:9998;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(11,18,32,.55);
  color:#fff;
  border-radius: 999px;
  padding:10px 12px;
  font-size:12px;
  cursor:pointer;
  backdrop-filter: blur(10px);
}
.cc-settings-btn:hover{
  background: rgba(11,18,32,.70);
}

@media (max-width: 560px){
  .cc-banner{ padding:12px 12px 10px 12px; }
  .cc-actions{ justify-content:flex-start; }
  .cc-settings-btn{ left:12px; bottom:12px; }
}
