.wtm-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wtm-footer-consent-link {
  border: 0;
  background: transparent;
  color: var(--wtm-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.wtm-footer-consent-link:hover {
  color: var(--wtm-accent);
}

.wtm-footer-consent-reset {
  border: 0;
  background: transparent;
  color: var(--wtm-muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}

.wtm-footer-consent-reset:hover {
  color: var(--wtm-accent);
}

.wtm-consent-shell {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 9998;
  width: min(100% - 2rem, 520px);
}

.wtm-consent-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 22, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.wtm-consent-shell.is-first-visit {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(100% - 2rem, 640px);
}

.wtm-consent-shell.is-first-visit::before {
  opacity: 1;
}

.wtm-consent-card {
  background: color-mix(in srgb, var(--wtm-surface) 94%, white);
  border: 1px solid color-mix(in srgb, var(--wtm-border) 88%, transparent);
  border-radius: calc(var(--wtm-radius) + 2px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 1rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.wtm-consent-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--wtm-accent) 72%, var(--wtm-text));
}

.wtm-consent-card h2 {
  margin: 0.3rem 0 0;
  font-size: 1.35rem;
  line-height: 1.14;
}

.wtm-consent-card p {
  margin: 0.75rem 0 0;
  color: var(--wtm-muted);
}

.wtm-consent-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.wtm-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.wtm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wtm-accent) 28%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--wtm-accent) 82%, white), color-mix(in srgb, var(--wtm-accent) 64%, #7dc2ff));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.24);
}

.wtm-button:hover {
  transform: translateY(-1px);
}

.wtm-button-secondary {
  background: transparent;
  color: var(--wtm-text);
  border-color: var(--wtm-border);
  box-shadow: none;
}

.wtm-consent-link-button {
  border: 0;
  padding: 0.72rem 0.2rem;
  background: transparent;
  color: var(--wtm-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.wtm-consent-settings {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--wtm-border) 88%, transparent);
}

.wtm-consent-grid {
  display: grid;
  gap: 0.7rem;
}

.wtm-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: calc(var(--wtm-radius) - 4px);
  background: color-mix(in srgb, var(--wtm-surface) 72%, white);
  border: 1px solid color-mix(in srgb, var(--wtm-border) 78%, transparent);
}

.wtm-consent-option span {
  display: grid;
  gap: 0.16rem;
}

.wtm-consent-option small {
  color: var(--wtm-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.wtm-consent-option input[type="checkbox"] {
  inline-size: 20px;
  block-size: 20px;
  accent-color: var(--wtm-accent);
}

.wtm-consent-settings-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.wtm-consent-status {
  color: var(--wtm-muted);
  font-size: 0.92rem;
}

html.wtm-mode-dark .wtm-footer-consent-link {
  color: var(--wtm-text);
}

html.wtm-mode-dark .wtm-consent-card {
  background: color-mix(in srgb, var(--wtm-surface) 94%, #08101d);
}

@media (prefers-color-scheme: dark) {
  html:not(.wtm-mode-light) .wtm-consent-card {
    background: color-mix(in srgb, var(--wtm-surface) 94%, #08101d);
  }
}

@media (max-width: 720px) {
  .wtm-consent-shell {
    inset: auto 0.75rem 0.75rem 0.75rem;
    width: auto;
  }

  .wtm-consent-actions,
  .wtm-consent-settings-actions,
  .wtm-footer-meta {
    align-items: stretch;
  }

  .wtm-button,
  .wtm-button-secondary,
  .wtm-consent-link-button {
    width: 100%;
    justify-content: center;
  }

  .wtm-consent-option {
    align-items: flex-start;
  }

  .wtm-consent-shell.is-first-visit {
    inset: 0.75rem;
    transform: none;
    width: auto;
  }
}
