.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 9, 10, 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

.cookie-copy strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.cookie-copy p {
  max-width: 55rem;
  margin: 0;
  color: #ddd6c8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-copy a {
  display: inline-block;
  margin-top: 0.45rem;
  color: #ffd642;
  font-size: 0.82rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

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

.cookie-actions button {
  min-height: 2.8rem;
  min-width: 10.5rem;
  border: 1px solid #ffd642;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
  background: #ffd642;
  color: #111;
  outline: none;
}

.cookie-settings {
  position: fixed;
  z-index: 990;
  right: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #111;
  color: #ffd642;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.cookie-settings span {
  position: relative;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cookie-settings span::before,
.cookie-settings span::after {
  content: "";
  position: absolute;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: currentColor;
}

.cookie-settings span::before { left: 0.25rem; top: 0.25rem; }
.cookie-settings span::after { right: 0.22rem; bottom: 0.24rem; }

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions button {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .cookie-actions {
    grid-template-columns: 1fr;
  }
}
