
/* Dojindo Cookie Consent Overlay
 * Scoped to #cookieConsent to avoid conflicts with products/manual styles.
 * Compatible with the existing overlay HTML and consent.js.
 */

#cookieConsent {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  text-align: left;
  direction: ltr;
}

#cookieConsent,
#cookieConsent *,
#cookieConsent *::before,
#cookieConsent *::after {
  box-sizing: border-box;
}

#cookieConsent .cookie-consent__overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 32, 52, 0.64);
}

#cookieConsent .cookie-consent__modal {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 1 760px;
  width: 100%;
  max-width: 760px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  margin: 0;
  padding: 38px 40px 30px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  color: #222;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
             "Yu Gothic", Meiryo, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  word-break: normal;
  overflow-wrap: anywhere;
}

#cookieConsent .cookie-consent__title {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #092e52;
  font-family: inherit;
  font-style: normal;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  background-image: none;
  box-shadow: none;
}

/* Prevent decorative h2 bars/lines added by the products site. */
#cookieConsent h2.cookie-consent__title::before,
#cookieConsent h2.cookie-consent__title::after {
  content: none !important;
  display: none !important;
}

#cookieConsent .cookie-consent__body {
  display: block;
  margin: 0;
  padding: 0;
  color: #222;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}

#cookieConsent .cookie-consent__body p {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  text-align: left;
}

#cookieConsent .cookie-consent__body p.cookie-consent__policy {
  margin: 22px 0 0;
}

#cookieConsent .cookie-consent__policy a {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0068b7;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cookieConsent .cookie-consent__policy a:hover {
  text-decoration: none;
}

#cookieConsent .cookie-consent__buttons {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 28px;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#cookieConsent .cookie-consent__button {
  appearance: none;
  -webkit-appearance: none;
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 245px;
  width: 245px;
  min-width: 0;
  min-height: 64px;
  height: auto;
  margin: 0;
  padding: 14px 24px;
  border: 2px solid #0068b7;
  border-radius: 6px;
  box-shadow: none;
  font-family: inherit;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  opacity: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#cookieConsent .cookie-consent__button--reject {
  color: #0068b7;
  background: #fff;
}

#cookieConsent .cookie-consent__button--reject:hover {
  color: #0068b7;
  background: #f2f8fc;
}

#cookieConsent .cookie-consent__button--accept {
  color: #fff;
  background: #0068b7;
}

#cookieConsent .cookie-consent__button--accept:hover {
  color: #fff;
  background: #005493;
  border-color: #005493;
}

#cookieConsent .cookie-consent__button:focus-visible,
#cookieConsent .cookie-consent__policy a:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  #cookieConsent {
    padding: 16px;
  }

  #cookieConsent .cookie-consent__modal {
    max-height: calc(100dvh - 32px);
    padding: 28px 22px 22px;
  }

  #cookieConsent .cookie-consent__title {
    margin-bottom: 20px;
    font-size: 23px;
  }

  #cookieConsent .cookie-consent__body {
    font-size: 14px;
    line-height: 1.75;
  }

  #cookieConsent .cookie-consent__body p {
    margin-bottom: 14px;
  }

  #cookieConsent .cookie-consent__buttons {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 24px;
  }

  #cookieConsent .cookie-consent__button {
    flex: 0 0 auto;
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }
}

#cookieConsent .cookie-consent__title,
#cookieConsent .cookie-consent__body,
#cookieConsent .cookie-consent__body p,
#cookieConsent .cookie-consent__policy a,
#cookieConsent .cookie-consent__button {
  font-family: inherit;
}
#cookieConsent.cookie-consent {
  visibility: visible;
}
