/* Keep the header and actions visible; only policy/preferences content scrolls. */
dialog[aria-labelledby="cookie-dialog-title"][open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog[aria-labelledby="cookie-dialog-title"] > div:first-child,
dialog[aria-labelledby="cookie-dialog-title"] > div:last-child {
  flex: 0 0 auto;
}
dialog[aria-labelledby="cookie-dialog-title"] > div:nth-child(2) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
dialog[aria-labelledby="cookie-dialog-title"] > div:last-child {
  position: static;
  background: #fff;
}

/* Compact consent notice with clear contrast against the mint and white pages. */
.oceanicfirst-cookie-banner {
  position: fixed;
  z-index: 60;
  inset-inline: 12px;
  bottom: 12px;
  max-width: 640px;
  margin-inline: auto;
  padding: 16px;
  border: 1px solid #64748b;
  border-top: 4px solid #34d399;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 16px 48px rgb(2 6 23 / 35%), 0 0 0 1px rgb(255 255 255 / 12%);
}
@media (min-width: 768px) {
  .oceanicfirst-cookie-banner {
    inset-inline-start: auto;
    inset-inline-end: 20px;
    bottom: 20px;
    width: 640px;
    margin-inline: 0;
  }
}

/* Scope text sizing so the legacy global button font rule cannot enlarge the notice. */
.oceanicfirst-cookie-banner .oceanicfirst-cookie-action {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}
.oceanicfirst-cookie-banner p button {
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}
@media (min-width: 640px) {
  .oceanicfirst-cookie-banner .oceanicfirst-cookie-action {
    font-size: 14px;
    line-height: 20px;
  }
}
