#jb-cookie-notice,
#jb-cookie-dialog,
.jb-cookie-footer {
  --jb-cookie-ink: #221f1c;
  --jb-cookie-muted: #58524c;
  --jb-cookie-rule: #dcd6cd;
  --jb-cookie-paper: #fffcf8;
  font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  color: var(--jb-cookie-ink);
  text-transform: none;
}

#jb-cookie-notice,
#jb-cookie-dialog {
  box-sizing: border-box;
  background: var(--jb-cookie-paper);
  border: 1px solid #cfc7bb;
  border-radius: 7px;
  box-shadow: 0 12px 48px rgb(28 23 18 / 17%), 0 2px 9px rgb(28 23 18 / 7%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#jb-cookie-notice[hidden],
#jb-cookie-settings[hidden],
#jb-cookie-dialog:not([open]),
#jb-cookie-checkout-hint[hidden] {
  display: none !important;
}

#jb-cookie-notice {
  position: fixed;
  z-index: 10000;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(408px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: 0;
  padding: 0;
  text-align: left;
}

#jb-cookie-notice .jb-cookie-inner { padding: 24px 26px 12px; }

#jb-cookie-notice h2,
#jb-cookie-dialog h2 {
  margin: 0;
  padding: 0;
  font: 400 30px/1.13 Baskerville, "Iowan Old Style", Georgia, serif;
  letter-spacing: -.035em;
  color: var(--jb-cookie-ink);
  text-align: left;
  text-transform: none;
}

#jb-cookie-notice p,
#jb-cookie-dialog p {
  margin: 9px 0 17px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--jb-cookie-muted);
}

#jb-cookie-notice .jb-cookie-actions,
#jb-cookie-dialog .jb-cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#jb-cookie-notice button,
#jb-cookie-dialog button,
.jb-cookie-footer button {
  appearance: none;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  box-shadow: none;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

#jb-cookie-notice .jb-cookie-actions button,
#jb-cookie-dialog .jb-cookie-actions button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: transparent;
  color: var(--jb-cookie-ink);
  border: 1px solid #989084;
  border-radius: 3px;
  text-align: center;
}

#jb-cookie-notice .jb-cookie-actions .jb-cookie-primary,
#jb-cookie-dialog .jb-cookie-actions .jb-cookie-primary {
  color: #fff;
  border-color: var(--jb-cookie-ink);
  background: var(--jb-cookie-ink);
}

#jb-cookie-notice .jb-cookie-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

#jb-cookie-notice .jb-cookie-links :is(a, button),
.jb-cookie-footer :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 0;
  color: #443d36;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.jb-cookie-footer {
  padding: 4px 16px;
  background: #faf9f7;
  text-align: center;
}
.jb-cookie-footer button { min-height: 44px; }

#jb-cookie-dialog {
  position: fixed;
  inset: 0;
  width: min(432px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 26px;
  text-align: left;
}
#jb-cookie-dialog::backdrop { background: rgb(26 22 19 / 38%); }
#jb-cookie-dialog h2:focus { outline: none; }
#jb-cookie-dialog .jb-cookie-categories { margin: 0 0 20px; }

#jb-cookie-dialog .jb-cookie-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 14px;
  align-items: center;
  position: static;
  width: auto;
  margin: 0;
  padding: 12px 0;
  color: inherit;
  border-top: 1px solid var(--jb-cookie-rule);
  font: inherit;
  text-transform: none;
}
#jb-cookie-dialog .jb-cookie-row:last-child { border-bottom: 1px solid var(--jb-cookie-rule); }
#jb-cookie-dialog label.jb-cookie-row { cursor: pointer; }
#jb-cookie-dialog .jb-cookie-row strong { display: block; font-size: 14px; font-weight: 650; }
#jb-cookie-dialog .jb-cookie-description {
  display: block;
  margin: 2px 0 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  color: var(--jb-cookie-muted);
}
#jb-cookie-dialog .jb-cookie-lock {
  display: flex;
  justify-content: center;
  color: #655d52;
}
#jb-cookie-dialog .jb-cookie-lock svg { stroke: currentColor; stroke-width: 1.5; }
#jb-cookie-dialog input[type="checkbox"] {
  appearance: none;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  inset: auto;
  float: none;
  opacity: 1;
  width: 38px;
  min-width: 38px;
  height: 23px;
  margin: 0;
  padding: 0;
  border: 1px solid #8d867c;
  border-radius: 16px;
  background: #ede9e2;
  box-shadow: none;
  cursor: pointer;
}
#jb-cookie-dialog input[type="checkbox"]::before {
  content: "";
  position: absolute;
  display: block;
  inset: 3px auto auto 3px;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 0;
  border-radius: 100%;
  background: #686056;
  transform: none;
}
#jb-cookie-dialog input[type="checkbox"]::after { content: none; }
#jb-cookie-dialog input[type="checkbox"]:checked { background: var(--jb-cookie-ink); border-color: var(--jb-cookie-ink); }
#jb-cookie-dialog input[type="checkbox"]:checked::before { left: 18px; background: #fff; }
#jb-cookie-dialog #jb-cookie-checkout-hint { margin: 0 0 14px; }

#jb-cookie-notice :is(a, button):focus-visible,
#jb-cookie-dialog :is(input, button):focus-visible,
.jb-cookie-footer :is(a, button):focus-visible {
  outline: 2px solid #614c35;
  outline-offset: 3px;
}

@media (hover: hover) {
  #jb-cookie-notice .jb-cookie-actions button:hover,
  #jb-cookie-dialog .jb-cookie-actions button:hover { border-color: var(--jb-cookie-ink); background: #f1ebe2; }
  #jb-cookie-notice .jb-cookie-actions .jb-cookie-primary:hover,
  #jb-cookie-dialog .jb-cookie-actions .jb-cookie-primary:hover { background: #443d36; color: #fff; }
  #jb-cookie-notice .jb-cookie-links :is(a, button):hover,
  .jb-cookie-footer :is(a, button):hover { text-decoration-thickness: 2px; }
}

@media (max-width: 480px) {
  #jb-cookie-notice .jb-cookie-inner { padding: 20px 19px 8px; }
  #jb-cookie-dialog { padding: 20px; }
  #jb-cookie-notice h2, #jb-cookie-dialog h2 { font-size: 28px; }
  #jb-cookie-notice .jb-cookie-links :is(a, button) { min-height: 44px; }
}

@media (forced-colors: active) {
  #jb-cookie-dialog input[type="checkbox"] { appearance: auto; }
  #jb-cookie-dialog input[type="checkbox"]::before { content: none; }
  #jb-cookie-notice .jb-cookie-actions button, #jb-cookie-dialog .jb-cookie-actions button { border-color: ButtonText; }
}
