/* Compact consent bar, styled to match Perth Switchboards. */
#ps-cookie-choice[hidden] { display: none !important; }
#ps-cookie-choice {
  position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0;
  box-sizing: border-box; width: 100%; max-height: 45vh; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 20px;
  padding: 12px max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
  color: #fff; background: #07172f; border-top: 1px solid #38506d;
  box-shadow: 0 -2px 12px #07172f22;
  font: 14px/1.45 Arial, sans-serif;
}
/* Keep a meaningful accessible region name without a large visible heading. */
#ps-cookie-choice h2 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
#ps-cookie-choice p { margin: 0; color: #e5edf6; font: 14px/1.45 Arial, sans-serif; }
#ps-cookie-choice a { color: #8dd4ff; text-decoration: underline; white-space: nowrap; }
.ps-cookie-actions { display: flex; gap: 10px; }
#ps-cookie-choice button {
  flex: 1; min-width: 90px; min-height: 44px;
  border: 2px solid #8dd4ff; border-radius: 5px; padding: 9px 16px;
  background: #fff; color: #07172f; font: 600 14px/1.3 Arial, sans-serif; cursor: pointer;
}
#ps-cookie-choice button:hover { background: #dff2ff; }
#ps-cookie-choice button:focus-visible, #ps-cookie-choice a:focus-visible, .ps-cookie-settings:focus-visible { outline: 3px solid #45a1d5; outline-offset: 3px; }
.ps-cookie-settings { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.ps-privacy-links { margin-top: 12px; }
.ps-privacy-links a { text-decoration: underline; }
.ps-form-privacy { font-size: 14px; line-height: 1.5; }
.ps-form-privacy a { color: #145b91; text-decoration: underline; }
@media (max-width: 640px) {
  #ps-cookie-choice {
    bottom: calc(80px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr; gap: 10px; padding: 12px 16px;
  }
  #ps-cookie-choice p { font-size: 13px; }
}
