.cookie-consent,
.cookie-settings {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 40px, 980px);
  margin-inline: auto;
  padding: 20px;
  color: #172033;
  background: #fff;
  border: 1px solid #dce4f1;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(20, 41, 82, 0.22);
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent h2 {
  margin: 0 0 7px;
  color: inherit;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cookie-consent p {
  max-width: 680px;
  margin: 0;
  color: #536179;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.cookie-consent__links a {
  color: #0759ff;
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

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

.cookie-consent__button,
.cookie-settings {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
}

.cookie-consent__button--primary {
  color: #fff;
  background: #0759ff;
  box-shadow: 0 9px 20px rgba(7, 89, 255, 0.22);
}

.cookie-consent__button--secondary {
  color: #25324a;
  background: #eef3fb;
}

.cookie-consent__button:hover,
.cookie-settings:hover {
  transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-settings:focus-visible {
  outline: 3px solid rgba(7, 89, 255, 0.28);
  outline-offset: 2px;
}

.cookie-settings {
  position: fixed;
  z-index: 999;
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  padding: 0 14px;
  color: #25324a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce4f1;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(20, 41, 82, 0.16);
  font-size: 12px;
}

@media (max-width: 720px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-consent__actions {
    margin-top: 16px;
  }

  .cookie-consent__button {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button,
  .cookie-settings {
    transition: none;
  }
}
