.cookie-consent {
  position: fixed;
  z-index: 120;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 12px;
  width: min(390px, calc(100vw - 32px));
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(117, 184, 255, .34);
  border-radius: 22px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 140, 255, .22), transparent 42%),
    linear-gradient(150deg, rgba(7, 31, 68, .985), rgba(2, 13, 34, .995));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 30px 90px rgba(0, 7, 28, .64);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.97);
  transition: opacity .28s ease, transform .4s cubic-bezier(.16, 1, .3, 1);
  backdrop-filter: blur(24px) saturate(135%);
}

.cookie-consent::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1769ff, #62b7ff 68%, #ffcc00);
  content: "";
}

.cookie-consent[hidden] { display: none; }
.cookie-consent.is-visible { opacity: 1; transform: none; }

.cookie-consent-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-brand {
  display: block;
  flex: 0 0 auto;
  width: 54px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: #073b9a;
  box-shadow: 0 9px 24px rgba(0, 41, 121, .45);
}

.cookie-brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cookie-consent-head > span:last-child { display: grid; gap: 2px; }
.cookie-consent-head small { color: #9ed2ff; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.cookie-consent-head strong { color: #fff; font-size: 18px; line-height: 1.2; }

.cookie-consent-content { display: grid; gap: 10px; min-width: 0; }
.cookie-consent-content > p { margin: 0; color: #c2d5eb; font-family: Questrial, Poppins, sans-serif; font-size: 13px; line-height: 1.62; }

.cookie-essential-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(117, 184, 255, .15);
  border-radius: 13px;
  background: rgba(2, 13, 34, .58);
}

.cookie-essential-status > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #47da9a;
  box-shadow: 0 0 12px rgba(71, 218, 154, .8);
}

.cookie-essential-status > span { display: grid; gap: 1px; }
.cookie-essential-status strong { color: #f8fbff; font-size: 11px; }
.cookie-essential-status small { color: #95aec9; font-size: 10px; }

.cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-consent-actions button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  cursor: pointer;
  font: 700 11px Poppins, sans-serif;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cookie-accept-all {
  color: #fff;
  border: 1px solid #4da3ff;
  background: linear-gradient(135deg, #2f8cff, #1455d9);
  box-shadow: 0 4px 0 #073b9a, 0 12px 28px rgba(23, 105, 255, .22);
}

.cookie-essential {
  color: #eaf5ff;
  border: 1px solid rgba(117, 184, 255, .24);
  background: rgba(7, 35, 76, .75);
}

.cookie-policy {
  width: max-content;
  color: #9ed2ff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

@media (hover: hover) {
  .cookie-consent-actions button:hover { transform: translateY(-2px); }
  .cookie-accept-all:hover { background: linear-gradient(135deg, #55adff, #1769ff); }
  .cookie-essential:hover { border-color: rgba(117, 184, 255, .48); background: rgba(47, 140, 255, .13); }
  .cookie-policy:hover { color: #fff; }
}

.cookie-consent-actions button:active { transform: translateY(1px) scale(.985); }

@media (max-width: 520px) {
  .cookie-consent {
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    gap: 13px;
    padding: 17px;
    border-radius: 18px;
  }

  .cookie-brand { width: 48px; height: 32px; }
  .cookie-consent-head strong { font-size: 16px; }
  .cookie-consent-content > p { font-size: 12px; }
  .cookie-consent-actions { grid-template-columns: 1fr; }
  .cookie-consent-actions button { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent-actions button { transition: none !important; }
}
