﻿.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2500;
  display: none;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-consent-panel {
  max-width: 980px;
  margin: 0 auto;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .55);
  padding: 16px;
  color: #f4f4f5;
  font-family: 'Inter', sans-serif;
}

.cookie-consent-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cookie-consent-title {
  font-size: .96rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-consent-text {
  font-size: .83rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.cookie-consent-text a {
  color: #9bc4ff;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .15);
  background: transparent;
  color: #f4f4f5;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 500;
}

.cookie-btn:hover {
  border-color: rgba(255, 255, 255, .3);
}

.cookie-btn.primary {
  background: #1864ff;
  border-color: #1864ff;
  color: #fff;
}

.cookie-btn.primary:hover {
  background: #3a7fff;
  border-color: #3a7fff;
}

.cookie-preferences {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 10px;
  display: none;
}

.cookie-preferences.is-open {
  display: block;
}

.cookie-preferences-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cookie-pref-item {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 10px;
}

.cookie-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cookie-pref-title {
  font-size: .79rem;
  font-weight: 600;
}

.cookie-pref-text {
  font-size: .73rem;
  color: #a1a1aa;
  line-height: 1.5;
}

.cookie-switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #3f3f46;
  position: relative;
  flex-shrink: 0;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-switch .knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left .2s;
}

.cookie-switch input:checked + .knob {
  left: 19px;
}

.cookie-switch input:checked ~ .track {
  background: #1864ff;
}

.cookie-switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3f3f46;
  z-index: -1;
}

.cookie-pref-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent-top {
    flex-direction: column;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-preferences-grid {
    grid-template-columns: 1fr;
  }
}
