/* ===== CookieWarden — Banner CSS ===== */

#cw-banner * { box-sizing: border-box; }

#cw-banner {
  position: fixed;
  z-index: 999999;
  inset: 0;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* ─── Posities ─── */
.cw-banner__inner {
  pointer-events: all;
  background: #ffffff;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  animation: cw-slide-up 0.35s cubic-bezier(.16,1,.3,1) forwards;
}

.cw-pos-bottom { position: absolute; bottom: 0; left: 0; right: 0; border-top: 1px solid #e8e8e8; }
.cw-pos-top    { position: absolute; top: 0;    left: 0; right: 0; border-bottom: 1px solid #e8e8e8; animation-name: cw-slide-down; }
.cw-pos-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 560px; width: 90%;
  border-radius: 12px;
  flex-direction: column;
  animation-name: cw-fade-in;
}

@keyframes cw-slide-up   { from { transform: translateY(100%); opacity:0 } to { transform: translateY(0); opacity:1 } }
@keyframes cw-slide-down { from { transform: translateY(-100%);opacity:0 } to { transform: translateY(0); opacity:1 } }
@keyframes cw-fade-in    { from { opacity:0; transform: translate(-50%,-48%) scale(.96) } to { opacity:1; transform: translate(-50%,-50%) scale(1) } }

.cw-banner--hiding .cw-banner__inner { animation: cw-slide-up .35s reverse ease-in forwards; }

/* ─── Content ─── */
.cw-banner__main  { flex: 1; min-width: 200px; }
.cw-banner__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #111; }
.cw-banner__text  { margin: 0; color: #444; font-size: 14px; }
.cw-banner__privacy { font-size: 13px; color: #1a73e8; text-decoration: none; }
.cw-banner__privacy:hover { text-decoration: underline; }

/* ─── Knoppen ─── */
.cw-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  text-decoration: none;
}
.cw-btn:hover   { opacity: .85; }
.cw-btn:active  { transform: scale(.97); }

.cw-btn--primary { color: #fff; border-color: transparent; }
.cw-btn--outline { color: #333; background: transparent; border-color: #ccc; }
.cw-btn--outline:hover { border-color: #999; }

/* ─── Panel (instellingen) ─── */
.cw-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: all;
  animation: cw-fade-in-bg .2s ease forwards;
}
.cw-panel[hidden] { display: none; }

@keyframes cw-fade-in-bg { from { opacity:0 } to { opacity:1 } }

.cw-panel__inner {
  background: #fff;
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.cw-panel__inner h2 { margin: 0 0 18px; font-size: 20px; }

/* ─── Categorie rijen ─── */
.cw-cat-row {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.cw-cat-header { display: flex; align-items: center; justify-content: space-between; }
.cw-cat-label  { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.cw-cat-label input[type=checkbox] { width: 18px; height: 18px; accent-color: #1a73e8; cursor: pointer; }
.cw-cat-label input:disabled { cursor: not-allowed; }
.cw-cat-desc   { margin: 8px 0 0; font-size: 13px; color: #666; }

.cw-panel__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

/* ─── iFrame placeholder ─── */
.cw-iframe-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border: 2px dashed #ddd;
  border-radius: 8px;
  min-height: 200px;
}
.cw-iframe-placeholder iframe { display: none !important; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .cw-banner__inner { flex-direction: column; align-items: flex-start; }
  .cw-banner__actions { width: 100%; }
  .cw-btn { flex: 1; text-align: center; }
  .cw-pos-center { width: 95%; }
}
