#craft-consent-root {
  --craft-consent-background: #fff;
  --craft-consent-text: #17312c;
  --craft-consent-accent: #174f45;
  --craft-consent-border: #385d55;
  color: var(--craft-consent-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
#craft-consent-root *,
#craft-consent-root *::before,
#craft-consent-root *::after { box-sizing: border-box; }
#craft-consent-root [hidden] { display: none !important; }
#craft-consent-root button,
.craft-consent-floating {
  min-height: 44px;
  padding: .62rem .9rem;
  border: 2px solid var(--craft-consent-border, #385d55);
  border-radius: 4px;
  background: var(--craft-consent-background, #fff);
  color: var(--craft-consent-text, #17312c);
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}
#craft-consent-root button:hover,
.craft-consent-floating:hover { background: #eaf1ef; }
#craft-consent-root button:focus-visible,
.craft-consent-floating:focus-visible,
#craft-consent-root input:focus-visible {
  outline: 3px solid #0b65c2;
  outline-offset: 3px;
}
#craft-consent-root .craft-consent-banner {
  position: fixed;
  z-index: 100000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  width: min(1120px, calc(100vw - 32px));
  max-height: min(82vh, 720px);
  margin-inline: auto;
  overflow: auto;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid var(--craft-consent-border);
  border-top: 5px solid var(--craft-consent-accent);
  border-radius: 8px;
  background: var(--craft-consent-background);
  color: var(--craft-consent-text);
  box-shadow: 0 8px 32px rgba(7, 25, 22, .24);
}
#craft-consent-root .craft-consent-banner-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
#craft-consent-root .craft-consent-copy { max-width: 760px; }
#craft-consent-root .craft-consent-banner h2,
#craft-consent-root .craft-consent-dialog h2 {
  margin: 0 0 .45rem;
  color: var(--craft-consent-text);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}
#craft-consent-root .craft-consent-banner p,
#craft-consent-root .craft-consent-dialog p { margin: 0 0 1rem; }
#craft-consent-root .craft-consent-language {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}
#craft-consent-root .craft-consent-language-button {
  min-width: 48px;
  min-height: 40px;
  padding: .4rem .55rem;
}
#craft-consent-root .craft-consent-language-button[aria-pressed="true"] {
  background: var(--craft-consent-accent);
  color: #fff;
}
#craft-consent-root .craft-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
#craft-consent-root .craft-consent-action {
  width: 100%;
  min-height: 48px;
  text-align: center;
}
#craft-consent-root .craft-consent-modal {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(10, 28, 24, .76);
}
#craft-consent-root .craft-consent-dialog {
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: clamp(18px, 4vw, 32px);
  border: 2px solid var(--craft-consent-border);
  border-radius: 8px;
  background: var(--craft-consent-background);
  color: var(--craft-consent-text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .32);
}
#craft-consent-root .craft-consent-dialog-heading,
#craft-consent-root .craft-consent-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#craft-consent-root .craft-consent-close { flex: 0 0 auto; }
#craft-consent-root .craft-consent-dialog-intro { margin-top: 12px; }
#craft-consent-root .craft-consent-category-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
#craft-consent-root .craft-consent-category {
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--craft-consent-border);
  border-radius: 5px;
}
#craft-consent-root .craft-consent-category legend {
  padding: 0 5px;
  font-weight: 700;
}
#craft-consent-root .craft-consent-category p { margin: 0 0 10px; }
#craft-consent-root .craft-consent-toggle-label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  cursor: pointer;
}
#craft-consent-root .craft-consent-toggle-label input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--craft-consent-accent);
}
#craft-consent-root .craft-consent-toggle-label input:disabled { opacity: 1; }
#craft-consent-root .craft-consent-save {
  min-width: 180px;
  background: var(--craft-consent-accent);
  color: #fff;
}
#craft-consent-root .craft-consent-save:hover { background: #103e36; }
#craft-consent-root .craft-consent-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.craft-consent-floating {
  position: fixed;
  z-index: 99998;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 24px);
  box-shadow: 0 2px 12px rgba(7, 25, 22, .2);
}
.craft-consent-embed {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  margin: 1rem 0;
  padding: 22px;
  border: 1px solid #536d67;
  border-radius: 5px;
  background: #eef3f1;
  color: #17312c;
  text-align: center;
}
.craft-consent-embed p { max-width: 42rem; margin: 0; }
.craft-consent-embed button {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 2px solid #385d55;
  border-radius: 4px;
  background: #fff;
  color: #17312c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.craft-consent-embed button:focus-visible { outline: 3px solid #0b65c2; outline-offset: 3px; }
.craft-consent-frame { display: block; width: 100%; min-height: 220px; border: 0; aspect-ratio: 16 / 9; }
.craft-consent-cookie-table-wrap { max-width: 100%; overflow-x: auto; }
.craft-consent-cookie-table { width: 100%; border-collapse: collapse; }
.craft-consent-cookie-table th,
.craft-consent-cookie-table td { padding: .65rem; border: 1px solid #6b817b; text-align: left; vertical-align: top; }
.craft-consent-cookie-table th { background: #eef3f1; color: #17312c; }
.craft-consent-cookie-table code { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  #craft-consent-root .craft-consent-banner {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: calc(100vw - 16px);
    max-height: 76vh;
    padding: 15px;
  }
  #craft-consent-root .craft-consent-banner-top { gap: 8px; }
  #craft-consent-root .craft-consent-language { gap: 4px; }
  #craft-consent-root .craft-consent-language-button { min-width: 42px; }
  #craft-consent-root .craft-consent-actions { grid-template-columns: 1fr; gap: 7px; }
  #craft-consent-root .craft-consent-dialog-heading,
  #craft-consent-root .craft-consent-dialog-footer { align-items: stretch; flex-direction: column; }
  #craft-consent-root .craft-consent-dialog-footer .craft-consent-language { align-self: flex-end; }
  #craft-consent-root .craft-consent-save { width: 100%; }
  #craft-consent-root .craft-consent-dialog { max-height: 92vh; padding: 18px; }
}
@media (max-width: 360px) {
  #craft-consent-root .craft-consent-banner-top { flex-direction: column; }
  #craft-consent-root .craft-consent-language { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  #craft-consent-root *, .craft-consent-floating { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (forced-colors: active) {
  #craft-consent-root button, #craft-consent-root .craft-consent-category,
  #craft-consent-root .craft-consent-dialog, #craft-consent-root .craft-consent-banner,
  .craft-consent-floating { border: 2px solid ButtonText; }
}
/* [craft_consent_settings] is a button that takes the text colour and font of its surroundings, so it stays readable
   on the dark site footer and on light pages. (1.0.6 forced an orange colour for white pages; it must not apply on dark.) */
.craft-consent-settings-link {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.craft-consent-settings-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* The main landmark takes focus after a consent choice (CRAFT Consent restoreFocus). It needs no ring of its own. */
[data-craft-focus-main]:focus { outline: none; }
