:root{
  --cc-bg:#ffffff;
  --cc-text:#111111;
  --cc-muted:#5b6470;
  --cc-border:#d9dee5;
  --cc-shadow:0 18px 60px rgba(0,0,0,.18);
  --cc-radius:16px;
  --cc-gap:12px;
}

#cc-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  z-index:9998;
  display:none;
}

#cc-banner,
#cc-modal{
  font-family:Arial,Helvetica,sans-serif;
  color:var(--cc-text);
  box-sizing:border-box;
}

#cc-banner *,
#cc-modal *{
  box-sizing:border-box;
}

#cc-banner{
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  width:min(980px, calc(100% - 40px));
  margin:0 auto;
  background:var(--cc-bg);
  border:1px solid var(--cc-border);
  border-radius:var(--cc-radius);
  box-shadow:var(--cc-shadow);
  padding:22px;
  z-index:9999;
  display:none;
}

#cc-banner h2,
#cc-modal h2{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.2;
}

#cc-banner p,
#cc-modal p{
  margin:0 0 10px;
  font-size:15px;
  line-height:1.55;
}

.cc-small{
  color:var(--cc-muted);
  font-size:13px;
}

.cc-actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--cc-gap);
  margin-top:18px;
}

.cc-btn{
  appearance:none;
  border:1px solid #111;
  background:#fff;
  color:#111;
  padding:11px 16px;
  border-radius:10px;
  font-size:14px;
  line-height:1.2;
  cursor:pointer;
  transition:transform .08s ease, opacity .15s ease;
}

.cc-btn:hover{ opacity:.94; }
.cc-btn:active{ transform:translateY(1px); }

.cc-btn-primary{
  background:#111;
  color:#fff;
}

#cc-modal{
  position:fixed;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  width:min(760px, calc(100% - 24px));
  max-height:min(88vh, 900px);
  overflow:auto;
  background:#fff;
  border:1px solid var(--cc-border);
  border-radius:var(--cc-radius);
  box-shadow:var(--cc-shadow);
  padding:24px;
  z-index:10000;
  display:none;
}

.cc-pref-group{
  border:1px solid var(--cc-border);
  border-radius:12px;
  padding:14px;
  margin-top:14px;
}

.cc-pref-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.cc-pref-title{
  margin:0 0 5px;
  font-size:16px;
}

.cc-switch{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.cc-switch input{
  width:18px;
  height:18px;
}

.cc-footer-link,
.cookie-manage-btn{
  background:none;
  border:none;
  padding:0;
  margin:0;
  color:#111;
  text-decoration:underline;
  cursor:pointer;
  font:inherit;
}

.cc-embed-placeholder{
  border:1px solid var(--cc-border);
  border-radius:14px;
  padding:20px;
  background:#fafbfc;
}

.cc-embed-placeholder p{
  margin-bottom:14px;
}

@media (max-width:640px){
  #cc-banner{
    left:12px;
    right:12px;
    bottom:12px;
    width:calc(100% - 24px);
    padding:16px;
  }

  #cc-modal{
    width:calc(100% - 16px);
    padding:18px;
  }

  .cc-actions{
    flex-direction:column;
  }

  .cc-btn{
    width:100%;
  }

  .cc-pref-head{
    flex-direction:column;
  }
}
