.topoai-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 5000;
  width: min(680px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #102238;
  color: #eef3f8;
  box-shadow: 0 18px 48px rgba(7, 20, 38, 0.28);
  font-family: "Segoe UI", system-ui, sans-serif;
  transform: translateX(-50%);
}

.topoai-cookie-banner[hidden] {
  display: none !important;
}

.topoai-cookie-banner__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.topoai-cookie-banner__text strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.92rem;
}

.topoai-cookie-banner__text a {
  color: #9acbff;
  text-underline-offset: 0.14em;
}

.topoai-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.topoai-cookie-banner__button {
  min-height: 36px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef3f8;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.topoai-cookie-banner__button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.topoai-cookie-banner__button--primary {
  border-color: transparent;
  background: #f5a623;
  color: #071426;
}

.topoai-cookie-banner__button--primary:hover {
  background: #ffb740;
}

@media (max-width: 680px) {
  .topoai-cookie-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .topoai-cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topoai-cookie-banner__button {
    width: 100%;
    white-space: normal;
  }
}
