.cookie-open[hidden],
.cookie-banner[hidden] {
  display: none;
}

.cookie-open {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #395367;
  border-radius: 8px;
  background: #0b1930;
  box-shadow: 0 8px 24px rgba(3, 19, 30, .22);
  color: #e9fb77;
}

.cookie-open:hover {
  background: #263a52;
}

.cookie-banner {
  right: 18px;
  bottom: 18px;
  left: auto;
  width: min(430px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: 0;
  padding: 21px;
  overflow-y: auto;
  border: 1px solid #395367;
  border-top: 4px solid #e9fb77;
  border-radius: 8px;
  background: #0b1930;
  box-shadow: 0 22px 52px rgba(3, 19, 30, .32);
  color: #fff;
}

.cookie-inner {
  display: grid;
  gap: 18px;
}

.cookie-inner h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.cookie-inner h2 svg {
  flex: none;
  color: #e9fb77;
}

.cookie-inner p {
  max-width: none;
  color: #d5e1e8;
  font-size: .86rem;
  line-height: 1.5;
}

.cookie-inner p a {
  color: #e9fb77;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cookie-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border-radius: 6px;
  font-size: .78rem;
  line-height: 1.3;
  white-space: normal;
}

.cookie-actions .btn-secondary {
  border-color: #a4b5be;
  color: #fff;
}

.cookie-actions .btn-secondary:hover {
  background: #263a52;
}

@media (max-width: 600px) {
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: auto;
    width: calc(100vw - 20px);
    padding: 18px;
  }

  .cookie-inner {
    display: grid;
    gap: 17px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-actions .btn {
    flex: none;
  }

  .cookie-open {
    bottom: 10px;
    left: 10px;
  }
}
