.cookie-consent {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100% - 32px));
  padding: 20px 22px;
  border: 1px solid rgba(19,55,168,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  color: #16304f;
  box-shadow: 0 22px 60px rgba(16,49,110,0.24);
  backdrop-filter: blur(12px);
}

.cookie-consent.is-visible {
  display: grid;
}

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

.cookie-consent__title {
  margin: 0 0 7px;
  color: #0f2d7e;
  font-size: 1.05rem;
  font-weight: 800;
}

.cookie-consent__desc {
  margin: 0;
  color: #425875;
  font-size: 0.96rem;
  line-height: 1.55;
}

.cookie-consent__desc a {
  color: #1337a8;
  font-weight: 700;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  justify-content: end;
  gap: 9px;
  white-space: nowrap;
}

.cookie-consent button {
  min-height: 46px;
  border: 1px solid rgba(19,55,168,0.22);
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cookie-consent button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(19,55,168,0.14);
}

.cookie-consent__primary {
  background: #1337a8;
  color: #fff;
  border-color: #1337a8;
  box-shadow: 0 12px 22px rgba(19,55,168,0.18);
}

.cookie-consent__secondary {
  background: #fff;
  color: #1337a8;
}

.cookie-consent__settings {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 10px;
  margin-top: 2px;
}

.cookie-consent.is-settings .cookie-consent__settings {
  display: grid;
}

.cookie-consent__choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid rgba(19,55,168,0.12);
  border-radius: 12px;
  background: rgba(19,55,168,0.04);
}

.cookie-consent__choice input {
  width: auto;
  margin-top: 3px;
}

.cookie-consent__choice strong {
  color: #16304f;
}

.cookie-consent__choice span {
  display: block;
  color: #5c708f;
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    bottom: 12px;
    padding: 16px;
    gap: 14px;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: stretch;
    white-space: normal;
  }

  .cookie-consent button {
    flex: 1 1 100%;
  }

  .cookie-consent__settings {
    grid-template-columns: 1fr;
  }
}
