.cookie-banner {
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  max-width: 560px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(44,62,107,0.18), 0 2px 8px rgba(44,62,107,0.1);
  border: 1px solid var(--clr-border-light);
  padding: var(--space-6);
  z-index: 9999;
  animation: bannerSlide 0.4s ease;
}

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

.cookie-banner__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cookie-banner__title i {
  color: var(--clr-accent);
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.cookie-banner__text a {
  color: var(--clr-accent);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  min-height: 44px;
  font-family: var(--font-base);
}

.cookie-btn--accept {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.cookie-btn--accept:hover {
  background: var(--clr-primary);
  transform: translateY(-1px);
}

.cookie-btn--reject {
  background: var(--clr-surface-2);
  color: var(--clr-text-secondary);
  border-color: var(--clr-border);
}

.cookie-btn--reject:hover {
  background: var(--clr-border);
  color: var(--clr-text);
}

.cookie-btn--customize {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.cookie-btn--customize:hover {
  background: var(--clr-accent-soft);
}


.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(28,35,64,0.5);
  backdrop-filter: blur(4px);
}

.cookie-modal__box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: bannerSlide 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: var(--space-5);
}

.cookie-modal__category {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.cookie-modal__cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--clr-surface-2);
}

.cookie-modal__cat-label {
  font-weight: 700;
  color: var(--clr-primary);
  font-size: var(--text-base);
}

.cookie-modal__cat-desc {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--clr-border);
  border-radius: var(--radius-full);
  transition: 0.3s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: 0.3s;
  box-shadow: var(--shadow-xs);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--clr-accent);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cookie-banner {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    padding: var(--space-4);
  }

  .cookie-banner__buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}