/* Floating consent bar — glass / pills aligned with marketing-site.css */

.cookie-consent-root {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  padding: 1rem 1rem 1.25rem;
  pointer-events: none;
}

.cookie-consent-panel {
  pointer-events: auto;
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  /* Solid surface so copy/buttons contrast is predictable (translucent + --text-inverse failed in light mode). */
  background-color: var(--card);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--foreground) 6%, transparent),
    0 28px 56px -28px oklch(0 0 0 / 0.65);
}

.cookie-consent-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-consent-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.cookie-consent-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--foreground);
}

.cookie-consent-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.cookie-consent-toggle-label {
  user-select: none;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease,
    opacity 140ms ease;
}

.cookie-consent-btn-primary {
  color: var(--primary-foreground);
  background-color: var(--primary);
  border-color: var(--primary);
}

.cookie-consent-btn-primary:hover {
  background-color: var(--brand-strong);
  border-color: var(--brand-strong);
}

.cookie-consent-btn-secondary {
  color: var(--foreground);
  background-color: var(--secondary);
  border-color: var(--border);
}

.cookie-consent-btn-secondary:hover {
  background-color: color-mix(in oklch, var(--secondary) 88%, var(--foreground));
  border-color: color-mix(in oklch, var(--border) 70%, var(--foreground));
}

.cookie-consent-btn-ghost {
  color: var(--muted-foreground);
  background-color: transparent;
  border-color: transparent;
}

.cookie-consent-btn-ghost:hover {
  color: var(--foreground);
  background-color: var(--muted);
}

@media (max-width: 640px) {
  .cookie-consent-root {
    padding: 0.75rem 0.75rem 1rem;
  }

  .cookie-consent-panel {
    padding: 1.1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}
/* Poruka nakon „Spremi odabir” u banneru kolačića */
.cookie-consent-feedback {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--success-solid);
}
