.cookie-consent {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 10000;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(8, 20, 42, 0.96);
  color: #ffffff;
  border: 1px solid rgba(71, 160, 255, 0.34);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__inner {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.cookie-consent__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.cookie-consent__actions,
.cookie-consent__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Adaptación de .ds-btn--ghost al fondo oscuro del banner: texto y borde claros. */
.cookie-consent .ds-btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.cookie-consent .ds-btn--ghost:hover,
.cookie-consent .ds-btn--ghost:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}
.cookie-consent .ds-btn--ghost .ds-ico {
  stroke: #ffffff;
}

.cookie-consent__toggle input:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.5);
  outline-offset: 3px;
}

.cookie-consent__panel {
  display: grid;
  gap: 12px;
}

.cookie-consent__panel[hidden],
.cookie-consent__actions[hidden] {
  display: none !important;
}

.cookie-consent__toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.cookie-consent__toggle input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #38bdf8;
}

.cookie-consent__toggle strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-consent__toggle span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .cookie-consent {
    inset: auto 10px 10px;
  }

  .cookie-consent__inner {
    padding: 16px;
  }

  .cookie-consent__actions,
  .cookie-consent__panel-actions {
    flex-direction: column;
  }
}
