.gv-cookie-panel {
  --gv-cookie-gutter: 16px;
  --gv-cookie-bottom: max(var(--gv-cookie-gutter), env(safe-area-inset-bottom), var(--gv-cookie-sticky-bottom, 0px));
  position: fixed;
  inset: auto max(var(--gv-cookie-gutter), env(safe-area-inset-right)) var(--gv-cookie-bottom) auto;
  box-sizing: border-box;
  width: min(392px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - var(--gv-cookie-bottom) - var(--gv-cookie-gutter));
  overflow: auto;
  margin: 0;
  padding: 20px;
  color: var(--neutral-950, #020202);
  background: var(--neutral-000, #fff);
  border: 2px solid var(--blue-200, #c5d2ee);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgb(15 15 15 / 12%);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.gv-cookie-banner { z-index: 90; }
.gv-cookie-banner[hidden],
.gv-cookie-dialog:not([open]),
html:not([data-cookie-ui]) .gv-cookie-settings { display: none; }

.gv-cookie-dialog::backdrop { background: rgb(23 34 60 / 24%); }

.gv-cookie-panel h2,
.gv-cookie-panel h3,
.gv-cookie-option-title {
  margin: 0;
  color: inherit;
  font-weight: 500;
  letter-spacing: normal;
}

.gv-cookie-panel h2 { font-size: 18px; line-height: 1.25; }
.gv-cookie-panel h3,
.gv-cookie-option-title { display: block; font-size: 14px; }

.gv-cookie-panel p,
.gv-cookie-option-description {
  margin: 7px 0 0;
  color: var(--neutral-700, #424242);
}

.gv-cookie-links,
.gv-cookie-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gv-cookie-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  gap: 10px;
  margin-top: 16px;
}

.gv-cookie-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--neutral-020, #f7f7f7);
  color: var(--neutral-950, #020202);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.gv-cookie-button:is(:hover, :focus-visible) { background: var(--blue-050, #eff1f8); }

.gv-cookie-button-primary {
  background: var(--neutral-800, #292929);
  color: var(--neutral-000, #fff);
  font-weight: 500;
}

.gv-cookie-button-primary:is(:hover, :focus-visible) { background: var(--neutral-900, #0f0f0f); }

.gv-cookie-links {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 8px;
}

.gv-cookie-link,
.govisit-navigation-footer .gv-cookie-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0;
  color: var(--neutral-800, #292929);
  border: 0;
  background: transparent;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gv-cookie-panel .gv-cookie-link {
  display: inline-block;
  box-sizing: border-box;
  padding-block: 5px;
  text-decoration: underline dotted var(--blue-200, #bfc8e4);
}

.govisit-navigation-footer .gv-cookie-settings {
  min-height: 0;
  color: var(--blue-700, #34457a);
  text-decoration: none;
}

.govisit-navigation-footer .gv-cookie-settings:hover { text-decoration: underline dotted; }

.gv-cookie-panel :focus-visible,
.gv-cookie-settings:focus-visible {
  outline: 2px solid var(--neutral-800, #292929);
  outline-offset: 3px;
}

.gv-cookie-heading { justify-content: space-between; }

.gv-cookie-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--blue-200, #bfc8e4);
  border-radius: 50%;
  background: var(--neutral-000, #fff);
  color: var(--neutral-900, #0f0f0f);
  cursor: pointer;
}

.gv-cookie-close:hover { background: var(--blue-050, #eff1f8); }

.gv-cookie-options {
  margin-top: 12px;
  border-block: 1px solid var(--blue-200, #c5d2ee);
}

.gv-cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.gv-cookie-option + .gv-cookie-option { border-top: 1px solid var(--blue-200, #c5d2ee); }
label.gv-cookie-option { cursor: pointer; }
.gv-cookie-option p,
.gv-cookie-option-description {
  display: block;
  margin-top: 3px;
}

.gv-cookie-always {
  flex: none;
  color: var(--neutral-700, #424242);
  font-size: 12px;
  font-weight: 500;
}

.gv-cookie-toggle {
  appearance: none;
  display: grid;
  place-items: center start;
  flex: none;
  box-sizing: border-box;
  width: 42px;
  height: 24px;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--blue-500, #5e75ba);
  border-radius: 99px;
  background: var(--neutral-000, #fff);
  cursor: pointer;
}

.gv-cookie-toggle::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-500, #5e75ba);
  content: "";
}

.gv-cookie-toggle:checked { background: var(--blue-500, #5e75ba); }
.gv-cookie-toggle:checked::before {
  justify-self: end;
  background: var(--neutral-000, #fff);
}

@media (max-width: 430px) {
  .gv-cookie-panel {
    --gv-cookie-gutter: 10px;
    inset-inline: max(var(--gv-cookie-gutter), env(safe-area-inset-left)) max(var(--gv-cookie-gutter), env(safe-area-inset-right));
    width: auto;
    padding: 16px;
  }
}

@media (forced-colors: active) {
  .gv-cookie-toggle { appearance: auto; }
  .gv-cookie-toggle::before { content: none; }
}
