.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: rgba(20, 20, 31, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 1000;
  animation: slideInUp 0.4s ease-out;
}

.cookie-banner__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 300;
}

.cookie-banner__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.cookie-banner.hidden {
  display: none;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-light, #ffffff);
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-gray, #8f90a0);
  margin-bottom: 24px;
}

.cookie-banner__text a {
  color: var(--cyan-accent, #00e5ff);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.cookie-banner__text a:hover {
  border-bottom-color: var(--cyan-accent, #00e5ff);
}

.cookie-banner__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-banner__button {
  flex: 1;
  min-width: calc(50% - 4px);
  padding: 12px 12px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
  height: auto;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
}

.cookie-banner__button--accept {
  flex-basis: 100%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-banner__button--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.cookie-banner__button--reject {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.cookie-banner__button--reject:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: none;
}

.cookie-banner__button--customize {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-gray, #8f90a0);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.cookie-banner__button--customize:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: none;
}

.cookie-banner__preferences {
  margin-top: 20px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.cookie-banner__preferences.visible {
  display: block;
}

.cookie-banner__preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cookie-banner__preference-item:last-child {
  margin-bottom: 0;
}

.cookie-banner__preference-label {
  flex: 1;
}

.cookie-banner__preference-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light, #ffffff);
  margin-bottom: 4px;
}

.cookie-banner__preference-desc {
  font-size: 0.75rem;
  color: var(--text-gray, #8f90a0);
  line-height: 1.4;
}

.cookie-banner__toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  margin-left: 16px;
}

.cookie-banner__toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-banner__toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-banner__toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-banner__toggle-switch input:checked + .cookie-banner__toggle-slider {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.cookie-banner__toggle-switch
  input:checked
  + .cookie-banner__toggle-slider:before {
  transform: translateX(20px);
}

.cookie-banner__toggle-switch input:disabled + .cookie-banner__toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .cookie-banner {
    max-width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 550px) {
  .cookie-banner {
    padding: 20px;
  }
  .cookie-banner__buttons {
    flex-direction: column;
  }
  .cookie-banner__button {
    min-width: 100%;
  }
}

