.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: #1f1f1f;
  border: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__content {
  display: grid;
  gap: 0.75rem;
}

.cookie-banner__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4a4a4a;
}

.cookie-banner__text a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-banner__button {
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-banner__button:hover {
  transform: translateY(-1px);
}

.cookie-banner__button--accept {
  background: #1f1f1f;
  color: #ffffff;
}

.cookie-banner__button--reject {
  background: #ffffff;
  color: #1f1f1f;
  border-color: rgba(31, 31, 31, 0.28);
}

.cookie-banner__button--secondary {
  background: #fff7ea;
  color: #8a5900;
  border-color: rgba(245, 166, 35, 0.35);
}

.cookie-banner__button--ghost {
  background: #ffffff;
  color: #444444;
  border-color: rgba(31, 31, 31, 0.18);
}

.cookie-banner__prefs {
  margin-top: 16px;
  padding: 16px;
  border-top: 1px solid #ededed;
  border-radius: 14px;
  background: #fafaf7;
}

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

.cookie-banner__prefs-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #5b5b5b;
}

.cookie-banner__option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #222222;
}

.cookie-banner__option:last-of-type {
  margin-bottom: 0;
}

.cookie-banner__option input {
  margin-top: 3px;
  accent-color: #1f1f1f;
  flex: 0 0 auto;
}

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

.cookie-banner__prefs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 16px;
    right: auto;
    bottom: 16px;
    width: calc(100vw - 32px);
    max-width: 358px;
    padding: 18px;
  }

  .cookie-banner__actions,
  .cookie-banner__prefs-actions {
    flex-direction: column;
  }

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