.cookie-consent {
  position: fixed;
  z-index: 1100;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 32px);
  left: clamp(16px, 3vw, 36px);
  width: min(1120px, calc(100% - clamp(32px, 6vw, 72px)));
  margin-inline: auto;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: #fff;
  background: #0b3546;
  box-shadow: 0 22px 60px rgba(2, 24, 34, .32);
  font-family: Inter, "Segoe UI", sans-serif;
}

.cookie-consent[hidden] { display: none; }

.cookie-consent__icon {
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid #f5a623;
  border-radius: 50%;
}

.cookie-consent__icon::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 19px;
  height: 19px;
  border-radius: 0 100% 0 100%;
  background: #0b3546;
  transform: rotate(-12deg);
}

.cookie-consent__icon span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f5a623;
}

.cookie-consent__icon span:nth-child(1) { top: 11px; left: 11px; }
.cookie-consent__icon span:nth-child(2) { top: 25px; left: 15px; }
.cookie-consent__icon span:nth-child(3) { top: 19px; left: 29px; }

.cookie-consent__content h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.cookie-consent__content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-consent__content a {
  color: #ffd078;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.cookie-consent__button:hover { transform: translateY(-1px); }
.cookie-consent__button:focus-visible { outline: 3px solid rgba(255, 208, 120, .5); outline-offset: 2px; }
.cookie-consent__button--primary { color: #132d36; background: #f5a623; }
.cookie-consent__button--primary:hover { background: #ffb743; }
.cookie-consent__button--secondary { color: #fff; border-color: rgba(255, 255, 255, .42); background: transparent; }
.cookie-consent__button--secondary:hover { background: rgba(255, 255, 255, .1); }

.cookie-preferences-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.cookie-preferences-link:hover,
.cookie-preferences-link:focus-visible { color: #fff; text-decoration: underline; }

@media (max-width: 780px) {
  .cookie-consent {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 19px;
  }

  .cookie-consent__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .cookie-consent__icon { display: none; }
  .cookie-consent__actions { grid-column: auto; display: grid; }
  .cookie-consent__button { width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button { transition: none; }
}
