/* Johnston's Glass cookie bar. Isolated from the site template. */
#jgconsent-root {
  --jg-navy: #123252;
  --jg-steel: #4e86a8;
  --jg-paper: #ffffff;
  --jg-ink: #123252;
  box-sizing: border-box;
  font-family: inherit;
  position: fixed;
  z-index: 99990;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  color: var(--jg-ink);
}

#jgconsent-root.is-hidden,
#jgconsent-root .is-hidden {
  display: none !important;
}

#jgconsent-root * {
  box-sizing: border-box;
}

#jgconsent-root .jgconsent-card {
  pointer-events: auto;
  width: min(100%, 34rem);
  background: var(--jg-paper);
  color: var(--jg-ink);
  border: 1px solid #d3dee6;
  border-top: 3px solid var(--jg-navy);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(18, 50, 82, 0.14);
  padding: 14px 16px 12px;
}

#jgconsent-root .jgconsent-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#jgconsent-root .jgconsent-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
  display: block;
}

#jgconsent-root .jgconsent-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #3d5160;
}

#jgconsent-root .jgconsent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#jgconsent-root button {
  appearance: none;
  margin: 0;
  float: none;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}

#jgconsent-root .jgconsent-optin,
#jgconsent-root .jgconsent-optout {
  flex: 1 1 7rem;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

#jgconsent-root .jgconsent-optout {
  background: var(--jg-paper) !important;
  color: var(--jg-navy) !important;
  border: 1.5px solid var(--jg-navy) !important;
}

#jgconsent-root .jgconsent-optin {
  background: var(--jg-navy) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--jg-navy) !important;
}

#jgconsent-root .jgconsent-optin:hover,
#jgconsent-root .jgconsent-optout:hover {
  filter: brightness(1.08);
}

#jgconsent-root button:focus-visible {
  outline: 2px solid var(--jg-steel);
  outline-offset: 2px;
}

#jgconsent-root.jgconsent-contained {
  position: absolute;
  bottom: 10px;
  z-index: 30;
  padding: 0 10px;
}

@media (max-width: 640px) {
  #jgconsent-root {
    bottom: 10px;
    padding: 0 10px;
  }

  #jgconsent-root .jgconsent-card {
    padding: 12px 12px 10px;
  }
}
