:root {
  --moove-consent-ink: #2d2c3b;
  --moove-consent-orange: #ff7415;
  --moove-consent-paper: #f7f6f2;
  --moove-consent-line: rgba(45, 44, 59, 0.15);
}

.moove-consent {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 18px;
  width: min(calc(100% - 32px), 1160px);
  transform: translateX(-50%);
  color: var(--moove-consent-ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--moove-consent-line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(28, 27, 37, 0.22);
  font-family: inherit;
  animation: mooveConsentIn 0.45s ease both;
  backdrop-filter: blur(18px);
}

.moove-consent__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px;
}

.moove-consent__summary strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.moove-consent__summary p {
  max-width: 720px;
  margin: 0 0 8px;
  color: #65636f;
  font-size: 13px;
  line-height: 1.55;
}

.moove-consent__summary a {
  color: var(--moove-consent-ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.moove-consent__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.moove-consent button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 17px;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.moove-consent button:hover,
.moove-consent button:focus-visible {
  transform: translateY(-2px);
}

.moove-consent button:focus-visible,
.moove-cookie-link:focus-visible {
  outline: 3px solid rgba(255, 116, 21, 0.35);
  outline-offset: 3px;
}

.moove-consent .is-primary,
.moove-consent__save {
  color: #fff;
  background: var(--moove-consent-orange);
  border: 1px solid var(--moove-consent-orange);
}

.moove-consent .is-secondary {
  color: var(--moove-consent-ink);
  background: #fff;
  border: 1px solid var(--moove-consent-line);
}

.moove-consent__settings {
  padding: 0 22px 22px;
  border-top: 1px solid transparent;
}

.moove-consent.is-expanded .moove-consent__settings {
  padding-top: 17px;
  border-top-color: var(--moove-consent-line);
}

.moove-consent__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(45, 44, 59, 0.09);
}

.moove-consent__option div {
  display: grid;
  gap: 3px;
}

.moove-consent__option strong {
  font-size: 13px;
}

.moove-consent__option span,
.moove-consent__option b {
  color: #777580;
  font-size: 11px;
  font-weight: 500;
}

.moove-consent__option input {
  appearance: none;
  width: 46px;
  height: 26px;
  margin: 0;
  background: #d8d6dc;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.moove-consent__option input::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(45, 44, 59, 0.2);
  transition: transform 0.2s ease;
}

.moove-consent__option input:checked {
  background: var(--moove-consent-orange);
}

.moove-consent__option input:checked::after {
  transform: translateX(20px);
}

.moove-consent__save {
  margin-top: 16px;
}

.moove-cookie-link {
  appearance: none;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-analytics-disclosure] {
  display: contents;
}

@keyframes mooveConsentIn {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 840px) {
  .moove-consent {
    bottom: 10px;
    width: min(calc(100% - 20px), 640px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .moove-consent__summary {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .moove-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .moove-consent__actions .is-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .moove-consent__actions button {
    width: 100%;
  }

  .moove-consent__settings {
    padding: 0 18px 18px;
  }
}

@media (max-width: 430px) {
  .moove-consent__summary strong { font-size: 15px; }
  .moove-consent__summary p { font-size: 12px; }
  .moove-consent__actions { grid-template-columns: 1fr; }
  .moove-consent__actions .is-primary { grid-column: auto; grid-row: auto; }
  .moove-consent__option { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .moove-consent { animation: none; }
  .moove-consent button,
  .moove-consent__option input,
  .moove-consent__option input::after { transition: none; }
}
