.cookie-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 24px;
  width: min(560px, calc(100% - 32px));
  padding: 22px 24px;
  border: 1px solid #d9e6f7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(11, 55, 113, .18);
  box-sizing: border-box;
  opacity: 0;
  transform: translate(-50%, calc(100% + 48px));
  transition: opacity .24s ease, transform .24s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-consent__text {
  margin: 0;
  color: #173662;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cookie-consent__link {
  color: #0878f9;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__link:hover {
  color: #005fc9;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.cookie-consent__button {
  min-height: 46px;
  flex: 1 1 0;
  padding: 11px 18px;
  border: 1px solid #0878f9;
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.cookie-consent__button:focus-visible,
.cookie-consent__link:focus-visible {
  outline: 3px solid rgba(8, 120, 249, .3);
  outline-offset: 3px;
}

.cookie-consent__button--accept {
  background: #0878f9;
  color: #fff;
}

.cookie-consent__button--accept:hover {
  border-color: #0068dc;
  background: #0068dc;
}

.cookie-consent__button--decline {
  background: #fff;
  color: #0878f9;
}

.cookie-consent__button--decline:hover {
  background: #eef6ff;
}

@media (max-width: 560px) {
  .cookie-consent {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  .cookie-consent__text {
    font-size: 15px;
  }

  .cookie-consent__actions {
    flex-direction: column;
    gap: 9px;
    margin-top: 16px;
  }

  .cookie-consent__button {
    width: 100%;
    min-height: 48px;
    flex-basis: auto;
  }
}

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