/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: calc(var(--spacing-unit) * 3);
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: calc(var(--spacing-unit) * 3);
  align-items: center;
}

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-text a {
  color: var(--primary-color);
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 1.5);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.cookie-btn-accept:hover {
  background-color: #00b8e6;
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cookie-btn-customize {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.cookie-btn-customize:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

/* Cookie Preferences Modal */
.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 2);
}

.cookie-preferences.show {
  display: flex;
}

.cookie-preferences-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 4);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-preferences-header {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.cookie-preferences-header h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.cookie-preferences-header p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 3);
  border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.cookie-category h4 {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

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

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #999;
  cursor: not-allowed;
}

.cookie-category-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-preferences-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  justify-content: flex-end;
  margin-top: calc(var(--spacing-unit) * 4);
  padding-top: calc(var(--spacing-unit) * 3);
  border-top: 1px solid var(--border-color);
}

.cookie-preferences-btn {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-preferences-btn-save {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.cookie-preferences-btn-save:hover {
  background-color: #00b8e6;
}

.cookie-preferences-btn-cancel {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cookie-preferences-btn-cancel:hover {
  background-color: var(--light-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
  }

  .cookie-banner-actions {
    justify-content: center;
  }

  .cookie-preferences-modal {
    margin: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 3);
  }

  .cookie-preferences-actions {
    flex-direction: column;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1);
  }
}

@media (max-width: 480px) {
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }

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