.marketing-consent {
  position: relative;
  z-index: 2147483000;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.marketing-consent__gtm-frame {
  display: none;
  visibility: hidden;
  width: 0;
  height: 0;
  border: 0;
}

.marketing-consent__panel,
.marketing-consent__settings,
.marketing-consent__no-script {
  box-sizing: border-box;
  color: #f8fafc;
  background: #0f172a;
  border: 1px solid #475569;
  box-shadow: 0 16px 40px rgb(15 23 42 / 35%);
}

.marketing-consent__panel {
  position: fixed;
  right: max(0.5rem, env(safe-area-inset-right));
  bottom: max(0.5rem, env(safe-area-inset-bottom));
  left: max(0.5rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100vh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-width: 44rem;
  margin-inline: auto;
  padding: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  font-size: 0.875rem;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.marketing-consent__content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  padding: 3px;
}

.marketing-consent__panel[hidden],
.marketing-consent__settings[hidden] {
  display: none;
}

.marketing-consent__panel strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.marketing-consent__panel p {
  margin: 0.4rem 0;
  color: #e2e8f0;
  line-height: 1.5;
}

.marketing-consent__status {
  font-size: 0.8125rem;
}

.marketing-consent__details summary {
  min-height: 44px;
  max-width: 35%;
  align-content: center;
  padding-block: 0.65rem;
  color: #7dd3fc;
  cursor: pointer;
}

.marketing-consent__details > p {
  clear: both;
}

.marketing-consent__details summary:focus-visible,
.marketing-consent__policy:focus-visible,
.marketing-consent__content:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.marketing-consent__policy {
  float: right;
  display: flex;
  max-width: 65%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.marketing-consent__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr));
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.marketing-consent__actions button,
.marketing-consent__settings {
  min-height: 44px;
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  color: #f8fafc;
  background: #1e293b;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  min-width: 0;
  cursor: pointer;
}

.marketing-consent__actions button:hover,
.marketing-consent__actions button:focus-visible,
.marketing-consent__settings:hover,
.marketing-consent__settings:focus-visible {
  color: #0f172a;
  background: #f8fafc;
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.marketing-consent__actions button[aria-pressed='true'] {
  border-color: #38bdf8;
  box-shadow: inset 0 0 0 2px #38bdf8;
}

.marketing-consent__panel a,
.marketing-consent__no-script a {
  color: #7dd3fc;
  font-weight: 700;
}

.marketing-consent__settings {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  box-shadow: 0 8px 24px rgb(15 23 42 / 30%);
}

.marketing-consent__no-script {
  position: relative;
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .marketing-consent__panel {
    transition: none;
  }
}
