/* GDPR Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 3px solid #1E3A8A;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 10000;
  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: 20px;
  flex-wrap: wrap;
}

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

.cookie-banner-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1E3A8A;
  margin-bottom: 8px;
}

.cookie-banner-description {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 8px;
}

.cookie-policy-link {
  color: #1E3A8A;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-policy-link:hover {
  color: #8BC34A;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: #8BC34A;
  color: white;
  border-color: #8BC34A;
}

.cookie-btn-accept:hover {
  background-color: #7CB342;
  border-color: #7CB342;
}

.cookie-btn-reject {
  background-color: transparent;
  color: #64748b;
  border-color: #d1d5db;
}

.cookie-btn-reject:hover {
  background-color: #f8fafc;
  color: #374151;
  border-color: #9ca3af;
}

.cookie-btn-customize {
  background-color: #1E3A8A;
  color: white;
  border-color: #1E3A8A;
}

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

/* Cookie Settings Modal */
.cookie-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-settings-modal {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cookie-settings-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1E3A8A;
  margin: 0;
}

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cookie-settings-close:hover {
  color: #1E3A8A;
  background-color: #f8fafc;
}

.cookie-settings-content {
  padding: 24px;
}

.cookie-settings-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

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

.cookie-category-title {
  font-family: 'Noto Serif JP', serif;
  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-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  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: #8BC34A;
}

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

.cookie-toggle.disabled .cookie-toggle-slider {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.cookie-toggle.disabled .cookie-toggle-slider:before {
  background-color: #f3f4f6;
}

.cookie-category-description {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.cookie-category.essential {
  background-color: #f8fafc;
  border-color: #8BC34A;
}

.cookie-settings-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background-color: #f8fafc;
}

.cookie-settings-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cookie-settings-btn-save {
  background-color: #8BC34A;
  color: white;
  border-color: #8BC34A;
}

.cookie-settings-btn-save:hover {
  background-color: #7CB342;
  border-color: #7CB342;
}

.cookie-settings-btn-cancel {
  background-color: transparent;
  color: #64748b;
  border-color: #d1d5db;
}

.cookie-settings-btn-cancel:hover {
  background-color: #f8fafc;
  color: #374151;
  border-color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .cookie-banner-text {
    min-width: auto;
  }
  
  .cookie-banner-buttons {
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    text-align: center;
    min-width: 80px;
  }
  
  .cookie-settings-modal {
    margin: 10px;
    max-height: 90vh;
  }
  
  .cookie-settings-header {
    padding: 20px 20px 12px;
  }
  
  .cookie-settings-content {
    padding: 20px;
  }
  
  .cookie-settings-buttons {
    flex-direction: column;
    padding: 16px 20px;
  }
  
  .cookie-settings-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
  
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}