.marketing-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px clamp(16px, 4vw, 56px);
  border: 0;
  border-top: 1px solid rgba(15, 30, 58, 0.14);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -12px 36px rgba(15, 30, 58, 0.18);
  color: #0f172a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.marketing-consent[hidden],
.marketing-preferences[hidden] {
  display: none;
}

.marketing-consent__title,
.marketing-preferences__title {
  margin: 0 0 8px;
  color: #0f1e3a;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.marketing-consent__text,
.marketing-preferences__text {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}

.marketing-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.marketing-consent__button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f1e3a;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
}

.marketing-consent__button:hover {
  border-color: #4a90d9;
  color: #2563a8;
}

.marketing-consent__button:focus-visible,
.marketing-preferences__close:focus-visible {
  outline: 3px solid rgba(74, 144, 217, 0.35);
  outline-offset: 2px;
}

.marketing-consent__button--primary {
  border-color: #f07823;
  background: #f07823;
  color: #fff;
}

.marketing-consent__button--primary:hover {
  border-color: #d4661a;
  background: #d4661a;
  color: #fff;
}

.marketing-consent__button--choice {
  min-width: 172px;
  justify-content: center;
}

.marketing-consent__button--secondary-strong {
  border-color: #2563a8;
  background: #2563a8;
  color: #fff;
}

.marketing-consent__button--secondary-strong:hover {
  border-color: #1e518a;
  background: #1e518a;
  color: #fff;
}

.marketing-consent__button--tertiary {
  padding-inline: 4px;
  border-color: transparent;
  background: transparent;
  color: #2563a8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.marketing-consent__button--tertiary:hover {
  border-color: transparent;
  background: #f8fafc;
}

.marketing-preferences {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 30, 58, 0.6);
}

.marketing-preferences__panel {
  width: min(100%, 560px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 30, 58, 0.32);
}

.marketing-preferences__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.marketing-preferences__close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f1e3a;
  cursor: pointer;
  font-size: 1.35rem;
}

.marketing-preferences__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.marketing-preferences__option strong {
  display: block;
  margin-bottom: 4px;
  color: #0f1e3a;
}

.marketing-preferences__option small {
  display: block;
  color: #64748b;
  line-height: 1.45;
}

.marketing-preferences__option input {
  width: 22px;
  height: 22px;
  accent-color: #4a90d9;
}

@media (max-width: 960px) {
  .marketing-consent {
    grid-template-columns: 1fr;
  }

  .marketing-consent__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .marketing-consent {
    padding: 16px;
  }

  .marketing-consent__actions {
    display: grid;
    justify-content: stretch;
  }

  .marketing-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-consent *,
  .marketing-preferences * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
