.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--indigo);
  color: var(--white);
  padding: var(--spacing-lg);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.cookie-text h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--persimmon);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #F27B4A;
}

.cookie-banner-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.cookie-accept {
  background-color: var(--persimmon);
  color: var(--white);
  border-color: var(--persimmon);
}

.cookie-accept:hover {
  background-color: #C85A2E;
  border-color: #C85A2E;
}

.cookie-reject {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.cookie-customize {
  background-color: var(--white);
  color: var(--indigo);
  border-color: var(--white);
}

.cookie-customize:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

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

.cookie-modal-content {
  background-color: var(--white);
  padding: var(--spacing-xxl);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h3 {
  color: var(--indigo);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

.cookie-modal-intro {
  color: var(--text-gray);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  border: 1px solid var(--rice-paper-dark);
  border-radius: 6px;
  background-color: var(--rice-paper);
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.cookie-category-header input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-header label {
  flex: 1;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-dark);
}

.cookie-category-header label strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-required {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: normal;
}

.cookie-category-desc {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-left: 26px;
}

.cookie-modal-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.cookie-modal-buttons .cookie-btn {
  flex: 1;
  min-width: 120px;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }

  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-content {
    padding: var(--spacing-lg);
  }

  .cookie-modal-content h3 {
    font-size: 1.5rem;
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }

  .cookie-modal-buttons .cookie-btn {
    width: 100%;
  }
}
