/* ============================================================
   COOKIE CONSENT — slim single-row floating bar.
   Default: ~52px high, all on one line. Details-panel only
   expands the bar when the user clicks "Anpassen".
   ============================================================ */

.cc {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  /* High z-index because Leaflet maps (mock--planning) render their
     own layer stack up to 700+, and the mobile sticky CTA bar sits
     at 40. Consent banner must always be the topmost layer. */
  z-index: 99999;
  max-width: 1240px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, .04),
    0 10px 28px -8px rgba(15, 23, 42, .16);
  padding: 10px 14px;
  font-family: inherit;
}

.cc__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fef3e7;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.cc__main {
  flex: 1;
  min-width: 0;
}

.cc__title { display: none; }

.cc__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2, #475569);
}

.cc__desc strong {
  color: var(--text, #0b1220);
  font-weight: 700;
  margin-right: 4px;
}

.cc__desc a {
  color: var(--accent, #4f72e3);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.cc__desc a:hover { text-decoration: underline; }

.cc__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.cc__btn {
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border, #cbd5e1);
  background: #fff;
  color: var(--text, #0b1220);
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
  white-space: nowrap;
}

.cc__btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.cc__btn--primary {
  background: var(--accent, #4f72e3);
  color: #fff;
  border-color: var(--accent, #4f72e3);
}

.cc__btn--primary:hover {
  background: #3b5fd9;
  border-color: #3b5fd9;
}

/* Details panel — display:none by default. The HTML `hidden`
   attribute alone was being overridden by my own `display:flex`
   rule, which is why the panel was always visible. Fix by being
   explicit: default none, only flex when not hidden. */
.cc__details {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border, #e2e8f0);
  margin-top: 12px;
  width: 100%;
  order: 99;
}

.cc__details:not([hidden]) {
  display: flex;
}

.cc:has(.cc__details:not([hidden])) .cc__inner {
  flex-direction: column;
  align-items: stretch;
}

.cc:has(.cc__details:not([hidden])) .cc__actions {
  justify-content: flex-end;
}

.cc__opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2, #475569);
  cursor: pointer;
}

.cc__opt input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent, #4f72e3);
}

.cc__opt strong {
  color: var(--text, #0b1220);
  font-weight: 700;
  margin-right: 4px;
}

.cc__opt-text { flex: 1; }

/* Mobile: stack icon-text-actions vertically */
@media (max-width: 720px) {
  .cc {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 12px;
  }
  .cc__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cc__icon { align-self: flex-start; }
  .cc__actions { justify-content: flex-end; flex-wrap: wrap; }
  .cc__btn { flex: 1; min-width: 0; padding: 8px 10px; }
  .cc__btn--primary { flex: 1.4; }
}
