.consent {
  font-family: Archivo, Arial, sans-serif;
  color: #221f1f;
}

.consent-open {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 12px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #221f1f;
  box-shadow: 0 10px 30px #221f1f26;
  color: #f5f5f1;
  font-size: 12px;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.consent-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 34px #221f1f40;
}

.consent-open svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.consent-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 1001;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100svh - 112px);
  overflow: auto;
  padding: 25px;
  border: 1px solid #ab303240;
  background: #f5f5f1;
  box-shadow: 0 20px 55px #221f1f26;
  color: #221f1f;
  animation: consent-panel-in 180ms ease-out;
}

@keyframes consent-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.consent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.consent-head h2 {
  margin: 0;
  color: #221f1f;
  font-family: Archivo, Arial, sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
}

.consent-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  margin: -8px -8px 0 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #221f1f;
}

.consent-close svg {
  width: 20px;
  height: 20px;
}

.consent-intro {
  margin: 14px 0 21px;
  color: #3b4a4a;
  font-size: 12px;
  line-height: 1.65;
}

.consent-cats {
  border-top: 1px solid #3b4a4a33;
}

.consent-cat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid #3b4a4a33;
}

.consent-cat-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #ab303255;
  color: #ab3032;
}

.consent-cat-icon svg {
  width: 19px;
  height: 19px;
}

.consent-cat-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.consent-cat-copy strong {
  color: #221f1f;
  font-size: 12px;
  font-weight: 600;
}

.consent-cat-copy span {
  color: #3b4a4a;
  font-size: 10px;
  line-height: 1.5;
}

.consent-switch {
  position: relative;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #727c7c;
  transition: background 160ms ease;
}

.consent-switch.is-on {
  background: #ab3032;
}

.consent-switch.is-locked {
  cursor: default;
  opacity: .72;
}

.consent-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f5f1;
  box-shadow: 0 1px 4px #221f1f40;
  transition: transform 160ms ease;
}

.consent-switch.is-on .consent-knob {
  transform: translateX(18px);
}

.consent-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.consent .consent-actions .button {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  background: #ab3032;
  color: #f5f5f1;
  font-size: 11px;
  font-weight: 600;
  transform: none;
}

.consent .consent-actions .button:hover {
  background: #902729;
  transform: none;
}

.consent .consent-actions .button.dark {
  border-color: #221f1f;
  background: #221f1f;
  color: #f5f5f1;
}

.consent .consent-actions .button.dark:hover {
  background: #3b4a4a;
}

.consent-necessary,
.consent-policy {
  justify-self: center;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #3b4a4a;
  font-size: 10px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-policy {
  display: block;
  margin: 8px auto 0;
  color: #221f1f;
}

.consent-status {
  min-height: 16px;
  margin: 3px 0 0;
  color: #3b4a4a;
  font-size: 10px;
  text-align: center;
}

.consent button:focus-visible {
  outline: 2px solid #221f1f;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #ab3032;
}

.consent-open:focus-visible {
  outline-color: #f5f5f1;
  box-shadow: 0 0 0 2px #ab3032, 0 10px 30px #221f1f26;
}

@media (max-width: 760px) {
  .consent-open {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    padding: 12px;
    font-size: 10px;
  }

  .consent-open svg {
    width: 18px;
    height: 18px;
  }

  .consent-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(100svh - 12px);
    padding: 23px 20px calc(20px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .consent-head h2 { font-size: 26px; }
  .consent-intro { margin-bottom: 17px; }
  .consent-cat { padding: 14px 0; }
  .consent-actions { margin-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-panel { animation: none; }
  .consent-open,
  .consent-switch,
  .consent-knob { transition: none; }
}

.consent-panel[hidden]{display:none}
.consent button{cursor:pointer;font-family:inherit}
.consent-panel{border-radius:18px}
.consent-head{align-items:center}
.consent .consent-actions .button{border-radius:25px}
.consent .consent-open{background:#3b4a4a}
.consent-cat-icon{border-radius:6px}
.cookie-settings{font:inherit;color:inherit;text-decoration:underline;text-underline-offset:4px;padding:0;background:none;border:0;cursor:pointer}
@media(max-width:760px){.consent-panel{border-radius:18px 18px 0 0}.consent.is-open .consent-open{visibility:hidden}}
