.cookie-consent,
.cookie-settings {
  font-family: "Manrope", Arial, sans-serif;
}

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

.cookie-consent {
  position: fixed;
  z-index: 2147483000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(720px, calc(100% - 2rem));
  margin: 0;
  padding: 0.85rem 0.9rem;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
}

.cookie-consent__copy {
  max-width: 490px;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  line-height: 1.3;
}

.cookie-consent__copy p {
  margin: 0;
  color: #4b5563;
  font-size: 0.78rem;
  line-height: 1.4;
}

.cookie-consent__copy a {
  color: #075fe4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.1rem;
  min-width: 178px;
}

.cookie-consent__button,
.cookie-settings {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
}

.cookie-consent__button--primary {
  color: #ffffff;
  background: #0f62e9;
}

.cookie-consent__button--secondary {
  color: #667085;
  background: transparent;
  font-weight: 500;
}

.cookie-consent__button--secondary:hover {
  color: #344054;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__button:focus-visible,
.cookie-settings:focus-visible {
  outline: 3px solid rgba(15, 98, 233, 0.35);
  outline-offset: 2px;
}

.cookie-settings {
  position: fixed;
  z-index: 2147482999;
  right: 22px;
  bottom: 8px;
  min-height: 20px;
  padding: 0 0.55rem;
  color: #273449;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d7dee8;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
  font-size: 0.78rem;
}

.cookie-settings-visible .scroll-top {
  bottom: 44px;
}

@media (max-width: 760px) {
  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .cookie-consent__actions {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .cookie-consent *,
  .cookie-settings {
    scroll-behavior: auto !important;
  }
}
