.gp-cookie-banner,
.gp-cookie-dialog {
  box-sizing: border-box;
  color: #173144;
  background: #fff;
  border: 1px solid #8eb0be;
  border-radius: 1rem;
  padding: clamp(.9rem, 3vw, 1.5rem);
  line-height: 1.55;
  overflow: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
}

.gp-cookie-banner {
  position: fixed;
  z-index: 1000;
  inset-inline: 0;
  bottom: max(.65rem, env(safe-area-inset-bottom));
  width: min(45rem, calc(100% - 1.3rem));
  max-height: 80vh;
  max-height: 80dvh;
  margin-inline: auto;
  box-shadow: 0 .75rem 3rem rgb(12 23 62 / .2);
}

.gp-cookie-dialog {
  width: min(34rem, calc(100% - 1.3rem));
  max-height: min(90vh, 38rem);
  max-height: min(90dvh, 38rem);
}

.gp-cookie-dialog::backdrop { background: rgb(12 23 62 / .68); }

.gp-cookie-banner h2,
.gp-cookie-dialog h2 {
  margin: 0 0 .5rem;
  color: #0c173e;
  font-size: 1.2rem;
  line-height: 1.3;
}

.gp-cookie-dialog h3 {
  margin: 1rem 0 .2rem;
  color: #0c173e;
  font-size: 1rem;
}

.gp-cookie-banner p,
.gp-cookie-dialog p { margin: 0 0 .7rem; }

.gp-cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  font-size: .92rem;
}

.gp-cookie-links a { color: #00576d; text-underline-offset: 3px; }

.gp-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.gp-cookie-button {
  box-sizing: border-box;
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #006580;
  border-radius: .6rem;
  padding: .5rem .65rem;
  background: #006580;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.gp-cookie-button:hover { background: #004f66; }
.gp-cookie-secondary { color: #00576d; background: #fff; }
.gp-cookie-secondary:hover { background: #edf6fa; }

.gp-cookie-toggle {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin-top: .5rem;
  font-weight: 650;
}

.gp-cookie-toggle input {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: #006580;
}

.gp-cookie-status:empty { display: none; }
.gp-cookie-status:not(:empty) { margin: .65rem 0 0; }

.gp-cookie-banner[hidden],
.gp-cookie-dialog:not([open]),
[data-cookie-settings][hidden] { display: none; }

[data-cookie-settings] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  border: 0;
  padding: .25rem 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gp-cookie-banner :focus-visible,
.gp-cookie-dialog :focus-visible {
  outline: 3px solid #087caa;
  outline-offset: 2px;
}

[data-cookie-settings]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .gp-cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-cookie-banner .gp-cookie-secondary { grid-column: 1 / -1; }
}
