/* TRDG Commercial - Cookie Consent Banner styles
 * Matches dusk/dawn palette, minimalist, bottom-anchored
 */

#trdg-consent-banner {
  position: fixed;
  left: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 9999;
  max-width: 640px;
  margin-left: auto;
  margin-right: 0;
  background: var(--dusk);
  color: var(--dawn);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(31, 22, 48, 0.35), 0 4px 12px rgba(31, 22, 48, 0.2);
  padding: clamp(1.25rem, 1rem + 0.75vw, 1.75rem);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 280ms ease, transform 280ms ease;
  font-family: inherit;
  border: 1px solid rgba(214, 186, 250, 0.15);
}

#trdg-consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trdg-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.trdg-consent__title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--orchid);
  letter-spacing: -0.01em;
}

.trdg-consent__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(250, 250, 242, 0.85);
}

.trdg-consent__body a {
  color: var(--orchid);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.trdg-consent__body a:hover {
  color: var(--orchid-2);
}

.trdg-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trdg-consent__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease, transform 120ms ease;
  min-width: 110px;
  letter-spacing: -0.005em;
}

.trdg-consent__btn:active {
  transform: translateY(1px);
}

.trdg-consent__btn--primary {
  background: var(--orchid);
  color: var(--dusk);
}

.trdg-consent__btn--primary:hover {
  background: var(--orchid-2);
}

.trdg-consent__btn--ghost {
  background: transparent;
  color: var(--dawn);
  border: 1px solid rgba(250, 250, 242, 0.25);
}

.trdg-consent__btn--ghost:hover {
  background: rgba(250, 250, 242, 0.08);
  border-color: rgba(250, 250, 242, 0.4);
}

@media (min-width: 640px) {
  .trdg-consent__inner {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
  .trdg-consent__copy {
    flex: 1;
  }
  .trdg-consent__actions {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #trdg-consent-banner {
    transition: opacity 0.01ms;
    transform: none;
  }
}
