#cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
  display: none;
}

#cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,.98);
  color: #2d2d2d;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  z-index: 9999;
  display: none;
  font-family: Arial, sans-serif;
}

#cookie-consent.is-visible,
#cookie-consent-backdrop.is-visible {
  display: block;
}

.cookie-consent__inner {
  padding: 22px 24px 18px;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font: 700 22px/1.2 Georgia, serif;
  color: #7f7b45;
}

.cookie-consent__text {
  margin: 0 0 14px;
  line-height: 1.5;
  font-size: 14px;
}

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

.cookie-btn {
  border: 1px solid #d6d3c7;
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: 700 14px/1 Arial, sans-serif;
}

.cookie-btn--primary {
  background: #7f7b45;
  border-color: #7f7b45;
  color: #fff;
}

.cookie-btn--ghost {
  background: #f6f5ef;
}

.cookie-consent__prefs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ece8db;
  display: none;
}

.cookie-consent__prefs.is-open {
  display: block;
}

.cookie-switch {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0eee6;
}

.cookie-switch:last-child {
  border-bottom: none;
}

.cookie-switch__label {
  font-weight: 700;
}

.cookie-switch__help {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.cookie-consent__links {
  margin-top: 10px;
  font-size: 13px;
}

.cookie-consent__links a {
  color: #7f7b45;
  text-decoration: underline;
}

.cookie-manage-link {
  white-space: nowrap;
}

@media (max-width: 700px) {
  #cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

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

  .cookie-consent__title {
    font-size: 20px;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #cookie-consent {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 16px;
  }

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

  .cookie-consent__title {
    font-size: 18px;
  }

  .cookie-consent__text,
  .cookie-consent__links {
    font-size: 13px;
  }
}
