.cookie-consent {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  color: #f3f8fd;
  background: #061426;
  border: 1px solid rgba(180, 207, 236, 0.28);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(2, 5, 11, 0.3);
  font-family: Onest, Arial, sans-serif;
}

.cookie-settings-link {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 0;
}
.cookie-settings-link:focus-visible { outline: 2px solid #45b8cc; outline-offset: 4px; }

.cookie-consent__title {
  margin: 0 0 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.cookie-consent__text {
  margin: 0;
  color: #c3d0de;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-consent__text a {
  color: #e2efff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.cookie-consent__button {
  min-width: 112px;
  min-height: 42px;
  padding: 9px 16px;
  color: #fff;
  background: transparent;
  border: 1px solid #c5d8ec;
  border-radius: 999px;
  font: 600 14px/1 Onest, Arial, sans-serif;
  cursor: pointer;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

.cookie-consent__button--accept {
  color: #061426;
  background: #f3f8fd;
}

.cookie-consent__button--accept:hover,
.cookie-consent__button--accept:focus-visible {
  background: #dceafb;
}

body.cookie-consent-visible {
  padding-bottom: calc(var(--cookie-consent-height, 120px) + 32px);
}

@media (max-width: 680px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    padding: 16px;
    border-radius: 14px;
  }

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

  .cookie-consent__text {
    font-size: 16px;
    line-height: 1.4;
  }

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

  .cookie-consent__button {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    font-size: 17px;
  }

  body.cookie-consent-visible {
    padding-bottom: calc(var(--cookie-consent-height, 190px) + 20px);
  }
}
