.uff-cookie {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 9998;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  color: var(--ink, #1e1e1b);
}

.uff-cookie[hidden] {
  display: none !important;
}

.uff-cookie__box {
  position: relative;
  padding: 22px;
  max-height: calc(100svh - 28px);
  overflow-y: auto;
  border: 1px solid var(--ink, #1e1e1b);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink, #1e1e1b);
}

.uff-cookie__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink, #1e1e1b);
  border-radius: 50%;
  background: var(--yellow, #f1cc3c);
  color: var(--ink, #1e1e1b);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.uff-cookie h2 {
  margin: 0 42px 12px 0;
  font-family: Azo, Arial Black, sans-serif;
  font-size: 1.55rem;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.uff-cookie p {
  margin: 0 0 14px;
  font-size: .94rem;
  line-height: 1.45;
}

.uff-cookie__actions,
.uff-cookie__preference-actions {
  display: grid;
  gap: 8px;
}

.uff-cookie__button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink, #1e1e1b);
  border-radius: 100px;
  background: var(--yellow, #f1cc3c);
  color: var(--ink, #1e1e1b);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}

.uff-cookie__button--secondary {
  background: #fff;
}

.uff-cookie__button--plain {
  background: #f5f5f2;
}

.uff-cookie__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 900;
}

.uff-cookie__links a,
.uff-cookie-link {
  color: inherit;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

.site-footer .uff-cookie-link {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 900;
  margin: 8px 0;
  text-align: left;
  line-height: inherit;
}

.uff-cookie__preferences {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e2dc;
}

.uff-cookie__preferences[hidden] {
  display: none !important;
}

.uff-cookie__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e2dc;
  background: #fafafa;
}

.uff-cookie__row strong {
  display: block;
  margin-bottom: 4px;
  font-size: .92rem;
  text-transform: uppercase;
}

.uff-cookie__row span {
  display: block;
  color: #534840;
  font-size: .84rem;
  line-height: 1.35;
}

.uff-cookie__always {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.uff-cookie__switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 32px;
}

.uff-cookie__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.uff-cookie__slider {
  width: 100%;
  height: 100%;
  border: 1px solid var(--ink, #1e1e1b);
  border-radius: 999px;
  background: #d7c8b9;
  cursor: pointer;
}

.uff-cookie__slider::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink, #1e1e1b);
  transition: transform .18s ease;
}

.uff-cookie__switch input:checked + .uff-cookie__slider {
  background: var(--yellow, #f1cc3c);
}

.uff-cookie__switch input:checked + .uff-cookie__slider::after {
  transform: translateX(22px);
}

@media (max-width: 640px) {
  .uff-cookie {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }
}

@media (min-width: 641px) {
  .uff-cookie__actions,
  .uff-cookie__preference-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uff-cookie__actions .uff-cookie__button:last-child,
  .uff-cookie__preference-actions .uff-cookie__button:last-child {
    grid-column: 1 / -1;
  }
}
