/* Fallback: visible by default (important if JS is delayed by WP Rocket) */
#cmp410.cmp410-wrap, .cmp410-wrap {
  position: relative;
  z-index: 999999;
  display: block;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* JS will set aria-hidden="true" when it should be hidden */
.cmp410-wrap[aria-hidden="true"] { display: none !important; }

.cmp410-overlay {
  content: "";
  position: fixed;
  inset: 0;
  display: var(--cmp410-overlay-display, block);
  background: var(--cmp410-overlay-bg, rgba(0,0,0,.35));
  pointer-events: var(--cmp410-overlay-pe, auto);
  z-index: 0;
}

.cmp410-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 980px;
  background: var(--cmp410-surface, #fff);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--cmp410-text, #111);
  z-index: 1;
}

.cmp410-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.cmp410-desc { font-size: 14px; line-height: 1.35; color: var(--cmp410-text, #333); opacity: .82; }
.cmp410-link { color: #0b57d0; text-decoration: none; }
.cmp410-link:hover { text-decoration: underline; }
.cmp410-sep { margin: 0 6px; color: #888; }

.cmp410-actions { display: flex; gap: 10px; flex-wrap: nowrap; justify-content: flex-end; align-items: center; }

.cmp410-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.cmp410-btn-primary {
  background: var(--cmp410-accept-bg, #00ceff);
  color: var(--cmp410-accept-fg, #001018);
}

.cmp410-btn-outline { background: #fff; color: #111; border: 1px solid #ddd; }
.cmp410-btn-ghost { background: var(--cmp410-customize-bg, #f5f5f5); color: var(--cmp410-customize-fg, #111); }

.cmp410-modal {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  max-width: 660px;
  background: var(--cmp410-surface, #fff);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  display: none;
  overflow: hidden;
  color: var(--cmp410-text, #0b1621);
  z-index: 1;
}

.cmp410-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.cmp410-modal-title { font-weight: 800; font-size: 16px; }
.cmp410-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
}

.cmp410-modal-body { padding: 10px 16px; }
.cmp410-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.cmp410-row:last-child { border-bottom: 0; }

.cmp410-row-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.cmp410-row-desc { font-size: 13px; color: var(--cmp410-text, #555); opacity: .78; }

.cmp410-toggle input[type="checkbox"] {
  width: 44px;
  height: 24px;
  accent-color: #111;
}

.cmp410-modal-actions {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 640px) {
  .cmp410-banner { flex-direction: column; align-items: stretch; }
  .cmp410-actions { justify-content: center; flex-wrap: wrap; }
  .cmp410-btn {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    text-align: center;
  }
}
