.cookie-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 220;
  width: min(560px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(102, 179, 255, 0.18);
  background:
    radial-gradient(circle at 18% 18%, rgba(102, 179, 255, 0.12), transparent 52%),
    radial-gradient(circle at 82% 20%, rgba(139, 124, 255, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(13, 17, 29, 0.94), rgba(8, 11, 20, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(102, 179, 255, 0.05),
    0 24px 60px rgba(2, 6, 18, 0.38);
  color: #f7f9fc;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.cookie-consent-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f7f9fc;
}

.cookie-consent-text {
  margin: 0;
  color: #9aa6b2;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-consent-text a {
  color: #f7f9fc;
  text-decoration: underline;
  text-decoration-color: rgba(127, 185, 255, 0.6);
  text-underline-offset: 2px;
}

.cookie-consent-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(102, 179, 255, 0.12);
}

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

.cookie-consent-option {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(102, 179, 255, 0.14);
  background: rgba(102, 179, 255, 0.05);
}

.cookie-consent-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-consent-option-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f7f9fc;
}

.cookie-consent-option-text {
  margin: 0;
  color: #9aa6b2;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-consent-option-note {
  color: #7fb9ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(102, 179, 255, 0.2);
  background: rgba(102, 179, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f7f9fc;
  transition: transform 0.2s ease;
}

.cookie-toggle:checked {
  background: rgba(102, 179, 255, 0.34);
  border-color: rgba(102, 179, 255, 0.36);
}

.cookie-toggle:checked::after {
  transform: translateX(18px);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.cookie-consent-btn,
.cookie-consent-link {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(102, 179, 255, 0.18);
  background: rgba(102, 179, 255, 0.08);
  color: #f7f9fc;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent-btn:hover,
.cookie-consent-link:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 179, 255, 0.32);
  background: rgba(102, 179, 255, 0.13);
}

.cookie-consent-btn-primary {
  color: #08111e;
  border-color: rgba(214, 222, 233, 0.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow:
    0 12px 24px rgba(2, 8, 18, 0.14),
    0 2px 6px rgba(2, 8, 18, 0.06);
}

.cookie-consent-btn-primary:hover {
  border-color: rgba(206, 216, 228, 0.98);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.cookie-consent-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 210;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(102, 179, 255, 0.18);
  background:
    radial-gradient(circle at 30% 30%, rgba(102, 179, 255, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(13, 17, 29, 0.94), rgba(8, 11, 20, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(102, 179, 255, 0.05),
    0 14px 28px rgba(2, 6, 18, 0.28);
  color: #f7f9fc;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 179, 255, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(102, 179, 255, 0.08),
    0 18px 34px rgba(2, 6, 18, 0.34);
}

.cookie-consent-fab svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 16px;
  }

  .cookie-consent-fab {
    left: 12px;
    bottom: 12px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
