/* Cookie consent banner, shared by every page: a full-width green bar over the bottom of the screen. */
.jr-consent {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px 40px;
  padding: 30px max(24px, 3.75vw);
  background: #05472a;
  color: #fff;
  font-family: 'Kanit', Arial, Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* Dims the page behind without blocking it. */
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / .4);
  animation: jr-consent-in .3s ease-out;
}
.jr-consent[hidden] { display: none; }
.jr-consent p { margin: 0; color: rgb(255 255 255 / .92); }
.jr-consent .ck-title { margin-bottom: 6px; font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.3; color: #fff; }
.jr-consent a { margin-left: 4px; color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.jr-consent .ck-en { display: none; }
html[lang="en"] .jr-consent .ck-th { display: none; }
html[lang="en"] .jr-consent .ck-en { display: inline; }
.jr-consent button { font: inherit; cursor: pointer; }
.jr-consent .ck-yes {
  min-height: 56px;
  padding: 0 52px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #05472a;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s;
}
.jr-consent .ck-yes:hover { background: #e6efe9; }
.jr-consent .ck-x {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  transition: background-color .2s;
}
.jr-consent .ck-x:hover { background: rgb(255 255 255 / .12); }
.jr-consent button:focus-visible, .jr-consent a:focus-visible { outline: 2px solid #e3b58c; outline-offset: 3px; }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes jr-consent-in { from { transform: translateY(100%); } }
@media (max-width: 800px) {
  .jr-consent {
    grid-template-columns: 1fr auto;
    gap: 16px 8px;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    font-size: 15px;
    line-height: 1.6;
  }
  .jr-consent .ck-x { grid-column: 2; grid-row: 1; align-self: start; margin: -8px -8px 0 0; }
  .jr-consent .ck-yes { grid-column: 1 / -1; grid-row: 2; min-height: 50px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-consent { animation: none; }
}
