/* Cookie consent — Data CFC shell */
.ds-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg-elevated, #0f172a);
  border: 1px solid var(--border-subtle, #334155);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text-primary, #e2e8f0);
}

.ds-cookie-banner[hidden],
.ds-cookie-modal[hidden] {
  display: none !important;
}

.ds-cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 14px;
  color: var(--text-muted, #94a3b8);
}

.ds-cookie-banner__text a {
  color: var(--accent-orange, #f97316);
  font-weight: 600;
  text-decoration: none;
}

.ds-cookie-banner__text a:hover {
  text-decoration: underline;
}

.ds-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ds-cookie-btn {
  border: 1px solid var(--border-subtle, #334155);
  background: transparent;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s ease;
}

.ds-cookie-btn:hover {
  border-color: var(--accent-orange, #f97316);
  color: var(--accent-orange, #f97316);
}

.ds-cookie-btn--primary {
  background: var(--app-orange, #f97316);
  border-color: var(--app-orange, #f97316);
  color: #0f172a;
}

.ds-cookie-btn--primary:hover {
  background: #e65c00;
  border-color: #e65c00;
  color: #0f172a;
}

.ds-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ds-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.ds-cookie-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  border-radius: 12px;
  background: var(--bg-elevated, #0f172a);
  border: 1px solid var(--border-subtle, #334155);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  padding: 22px 22px 18px;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text-primary, #e2e8f0);
}

.ds-cookie-modal__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.ds-cookie-modal__lead {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
  margin: 0 0 18px;
}

.ds-cookie-cat {
  border: 1px solid var(--border-subtle, #334155);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.ds-cookie-cat__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ds-cookie-cat__name {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.ds-cookie-cat__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.ds-cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
}

.ds-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ds-cookie-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #334155;
  cursor: pointer;
  transition: 0.15s ease;
}

.ds-cookie-switch__track::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: 0.15s ease;
}

.ds-cookie-switch input:checked + .ds-cookie-switch__track {
  background: var(--app-orange, #f97316);
}

.ds-cookie-switch input:checked + .ds-cookie-switch__track::after {
  transform: translateX(18px);
}

.ds-cookie-switch input:disabled + .ds-cookie-switch__track {
  opacity: 0.55;
  cursor: not-allowed;
}

.ds-cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 575.98px) {
  .ds-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px 14px;
  }

  .ds-cookie-banner__actions {
    flex-direction: column;
  }

  .ds-cookie-btn {
    width: 100%;
  }

  .ds-cookie-modal__actions .ds-cookie-btn {
    flex: 1 1 auto;
  }
}
