/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1f1f1f;
  color: #fefbf3;
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

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

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #dc2626;
  text-decoration: underline;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background-color: #dc2626;
  color: #fefbf3;
}

.cookie-btn-accept:hover {
  background-color: #b91c1c;
}

.cookie-btn-reject {
  background-color: transparent;
  color: #fefbf3;
  border: 1px solid #fefbf3;
}

.cookie-btn-reject:hover {
  background-color: #fefbf3;
  color: #1f1f1f;
}

.cookie-btn-customize {
  background-color: #1e3a8a;
  color: #fefbf3;
}

.cookie-btn-customize:hover {
  background-color: #1d4ed8;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.cookie-settings-content {
  background-color: #fefbf3;
  color: #1f1f1f;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1e3a8a;
}

.cookie-settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.cookie-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1f1f1f;
  padding: 0.5rem;
}

.cookie-close-btn:hover {
  color: #dc2626;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0;
}

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

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

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

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

input:checked + .cookie-slider {
  background-color: #dc2626;
}

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

.cookie-toggle.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.cookie-category-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.cookie-settings-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

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

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

  .cookie-settings-modal {
    padding: 1rem;
  }

  .cookie-settings-content {
    padding: 1.5rem;
  }

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

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

@media (max-width: 480px) {
  .cookie-banner {
    padding: 1rem;
  }

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

  .cookie-settings-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cookie-category-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}