/* CLS Fix for Cookie Consent Banner */
.cookie-banner-placeholder {
  display: block;
  height: 0;
  transition: height 0.3s ease;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
}

.cookie-consent-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  color: white !important;
  padding: 15px !important;
  text-align: center !important;
  z-index: 99999 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
  display: none !important;
}

.cookie-consent-banner.visible,
.cookie-consent-banner.force-show {
  display: flex !important;
}

.consent-button-ja,
.consent-button-nee {
  display: inline-block;
  margin: 10px 5px 0;
  padding: 10px 15px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
  max-width: 300px;
}

.consent-button-ja {
  /* background-color: #ff7100; */
  background-color: #009600;;
}

.consent-button-nee {
  background-color: transparent;
  border: 1px solid white;
}

.consent-button-ja:hover {
  background-color: #e56500;
}

.consent-button-nee:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .cookie-consent-banner {
    padding: 12px 10px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    bottom: 0 !important;
  }
  
  .consent-button-ja,
  .consent-button-nee {
    margin: 8px auto 0; /* Center horizontally with auto margins */
    padding: 8px 12px;
    font-size: 12px;
    width: 80%;
    display: block;
  }
}

@media (min-width: 768px) {
  .cookie-consent-banner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  
  .consent-button-ja,
  .consent-button-nee {
    width: auto;
    margin: 0 10px;
  }
}