/* Banner público de consentimento de cookies. Tokens-only. */

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1100;
  width: min(960px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--auth-accent) 24%, transparent);
  border-radius: var(--ui-radius-lg);
  background:
    linear-gradient(135deg, var(--auth-surface-card), color-mix(in srgb, var(--auth-accent) 7%, var(--auth-surface-card)));
  box-shadow:
    0 24px 70px color-mix(in srgb, var(--auth-text) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--auth-surface-card) 60%, transparent) inset;
  color: var(--auth-text);
  transform: translateX(-50%);
}

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

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 7px;
  padding: 4px 9px;
  border-radius: var(--ui-radius-pill);
  background: color-mix(in srgb, var(--auth-accent) 10%, transparent);
  color: var(--auth-eyebrow-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cookie-consent__title {
  margin: 0 0 6px;
  color: var(--auth-text-strong);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.cookie-consent__text {
  max-width: 680px;
  margin: 0;
  color: var(--auth-text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-consent__link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--auth-accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.cookie-consent__link:hover {
  text-decoration: underline;
}

.cookie-consent__settings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.cookie-consent__option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--auth-accent) 18%, transparent);
  border-radius: var(--ui-radius-md);
  background: color-mix(in srgb, var(--auth-surface-card) 76%, transparent);
}

.cookie-consent__option input {
  margin-top: 3px;
  accent-color: var(--auth-accent);
}

.cookie-consent__option strong,
.cookie-consent__option small {
  display: block;
}

.cookie-consent__option strong {
  color: var(--auth-text-strong);
  font-size: 0.88rem;
}

.cookie-consent__option small {
  margin-top: 2px;
  color: var(--auth-text-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.cookie-consent__btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-pill);
  padding: 0 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.cookie-consent__btn:focus-visible {
  outline: none;
  box-shadow: var(--ui-shadow-focus);
}

.cookie-consent__btn--primary {
  background: linear-gradient(135deg, var(--auth-accent-strong), var(--auth-accent-light));
  color: var(--auth-surface-card);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--auth-accent-strong) 26%, transparent);
}

.cookie-consent__btn--muted,
.cookie-consent__btn--ghost {
  background: var(--auth-surface-card);
  color: var(--auth-text-label);
  border-color: color-mix(in srgb, var(--auth-accent-deep) 16%, transparent);
}

.cookie-consent__btn--ghost {
  color: var(--auth-accent-strong);
}

@media (max-width: 720px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
    bottom: 12px;
  }

  .cookie-consent__settings {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__btn {
    flex: 1 1 100%;
  }
}
