/* Banner de cookies: reutiliza .modal-* del theme sin el JS de Bootstrap */
#cookie-compliant {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: var(--space-2, 1rem);
  background: var(--bg-overlay, rgba(0, 0, 0, .5));
  z-index: 1060;
}

#cookie-compliant:focus {
  outline: 0;
}

#cookie-compliant .modal-dialog {
  width: 100%;
  max-width: 620px;
  max-height: 100%;
  margin: 0;
}

#cookie-compliant .modal-content {
  max-height: calc(100vh - 2 * var(--space-2, 1rem));
  max-height: calc(100dvh - 2 * var(--space-2, 1rem));
}

#cookie-compliant .modal-header {
  padding-bottom: 0;
}

#cookie-compliant .modal-title {
  font-family: var(--font-family-title, inherit);
  font-size: var(--font-size-md, 1.25rem);
}

#cookie-compliant .modal-body {
  overflow-y: auto;
}

#cookie-compliant .modal-footer {
  border: 0;
  padding-top: 0;
}

.tcb-text {
  font-size: var(--font-size-sm, .9rem);
}

.tcb-text p:last-child {
  margin-bottom: 0;
}

.tcb-subtitle {
  margin-bottom: .5rem;
  font-weight: 600;
}

.tcb-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tcb-list li {
  padding: .75rem 0;
  border-top: 1px solid var(--border-color, #d9d9d9);
}

.tcb-list .form-check {
  margin-bottom: .25rem;
}

.tcb-list .form-check-label {
  font-weight: 600;
}

.tcb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
  margin: 0;
}

.tcb-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

@media (max-width: 575.98px) {
  .tcb-actions .btn {
    flex-basis: 100%;
  }
}

html.tcb-open,
html.tcb-open body {
  overflow: hidden;
}
