.cookie-consent {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent__banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(100%, 58rem);
  padding: 1rem 1.15rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgb(50 21 59 / 97%), rgb(112 36 101 / 97%));
  box-shadow: 0 1.25rem 3rem rgb(38 13 45 / 30%);
  color: #fff;
  font-family: "Poppins", sans-serif;
  pointer-events: auto;
  animation: cookie-banner-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent__banner[hidden],
.cookie-consent__reopen[hidden] {
  display: none;
}

.cookie-consent__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.8rem;
  background: rgb(247 185 47 / 18%);
  color: #f7b92f;
}

.cookie-consent__icon svg { width: 1.35rem; }

.cookie-consent__content strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

.cookie-consent__content p {
  margin: 0;
  color: rgb(255 255 255 / 80%);
  font-size: 0.74rem;
  line-height: 1.55;
}

.cookie-consent__link {
  display: inline-block;
  margin-top: 0.35rem;
  color: #f7c541;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.cookie-consent__link:hover { text-decoration: underline; }

.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent__button {
  min-height: 2.4rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.cookie-consent__button:hover { transform: translateY(-2px); }

.cookie-consent__button--secondary {
  border-color: rgb(255 255 255 / 32%);
  background: transparent;
  color: #fff;
}

.cookie-consent__button--primary {
  background: #f7b92f;
  color: #3a173f;
}

.cookie-consent__reopen {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgb(117 38 102 / 16%);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.5rem 1.5rem rgb(57 23 67 / 14%);
  color: #742566;
  font: 700 0.7rem "Poppins", sans-serif;
  cursor: pointer;
  pointer-events: auto;
}

.cookie-consent__reopen svg { width: 1rem; height: 1rem; fill: currentColor; }

@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .cookie-consent { right: 0.75rem; bottom: 0.75rem; left: 0.75rem; }
  .cookie-consent__banner { grid-template-columns: auto 1fr; }
  .cookie-consent__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 430px) {
  .cookie-consent__banner { gap: 0.75rem; padding: 0.9rem; }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent__button { white-space: normal; }
}
