.cookie-consent {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 4000;
  width: min(520px, calc(100vw - 32px));
  border: 1px solid #dfd2c0;
  border-radius: 8px;
  background: #fffdf8;
  color: #15130f;
  box-shadow: 0 28px 80px rgba(28, 22, 14, 0.22), 0 8px 24px rgba(28, 22, 14, 0.12);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__inner {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.cookie-consent__header {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #15130f;
  line-height: 1;
}

.cookie-consent__header img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.cookie-consent h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.04;
}

.cookie-consent p {
  margin: 0;
  color: #5f594f;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent a {
  color: #00491c;
  font-weight: 800;
  text-underline-offset: 3px;
}

.cookie-consent__choices {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

.cookie-consent__choice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.cookie-consent__choice + .cookie-consent__choice {
  border-top: 1px solid #f0e7da;
}

.cookie-consent__choice strong,
.cookie-consent__choice span {
  display: block;
}

.cookie-consent__choice strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.cookie-consent__choice span {
  color: #6f6a61;
  font-size: 13px;
  line-height: 1.4;
}

.cookie-consent__switch {
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  position: relative;
}

.cookie-consent__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.cookie-consent__switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8cec0;
  transition: background 160ms ease;
}

.cookie-consent__switch i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.cookie-consent__switch input:checked + i {
  background: #00491c;
}

.cookie-consent__switch input:checked + i::before {
  transform: translateX(20px);
}

.cookie-consent__switch input:disabled + i {
  opacity: 0.72;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-consent__actions button,
.cookie-preferences-button {
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent__actions button {
  flex: 1 1 140px;
  padding: 0 14px;
}

.cookie-consent__primary {
  border: 1px solid #00491c;
  background: #00491c;
  color: #fff;
}

.cookie-consent__secondary {
  border: 1px solid #dfd2c0;
  background: #fff;
  color: #15130f;
}

.cookie-preferences-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid #00491c;
  background: #fff;
  color: #00491c;
}

@media (max-width: 620px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .cookie-consent__inner {
    padding: 16px;
  }
}
