/* Office privacy controls use the site's navy and white and stay usable at high zoom. */
#cto-privacy-banner,
#cto-privacy-settings {
  box-sizing: border-box;
  color: #172541;
  background: #fff;
  border: 1px solid #69788b;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 6px 24px rgb(17 33 54 / 22%);
  font: 400 16px/1.45 system-ui, sans-serif;
  text-align: left;
  overflow: auto;
  overscroll-behavior: contain;
}
#cto-privacy-banner {
  position: fixed;
  inset: auto auto max(12px, env(safe-area-inset-bottom)) 12px;
  z-index: 100001;
  width: min(660px, calc(100% - 24px));
  max-height: 55vh;
  max-height: 55dvh;
}
#cto-privacy-settings {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(520px, calc(100% - 24px));
  height: fit-content;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}
#cto-privacy-settings::backdrop { background: rgb(19 32 49 / 64%); }
#cto-privacy-banner[hidden], #cto-privacy-settings:not([open]), #cto-privacy-settings [hidden] { display: none !important; }
:is(#cto-privacy-banner, #cto-privacy-settings) h2 {
  margin: 0 0 7px;
  color: #172541;
  font: 700 20px/1.25 system-ui, sans-serif;
}
#cto-privacy-banner h2 { padding-right: 36px; }
:is(#cto-privacy-banner, #cto-privacy-settings) p { color: #283951; font: inherit; margin: 0 0 12px; }
#cto-privacy-banner p a { color: #07549a; text-decoration: underline; }
:is(#cto-privacy-banner, #cto-privacy-settings) .cto-privacy-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
:is(#cto-privacy-banner, #cto-privacy-settings) button {
  appearance: none; cursor: pointer; min-height: 42px;
  padding: 7px 12px; margin: 0; background: #fff; color: #16375b; border: 1px solid #486482; border-radius: 6px;
  font: 600 15px/1.3 system-ui,sans-serif; text-transform: none; letter-spacing: normal; box-shadow: none;
}
:is(#cto-privacy-banner, #cto-privacy-settings) button:is(:hover,:focus-visible) { color: #132b4a; background: #e8f1fa; }
#cto-privacy-banner .cto-privacy-close {
  position: absolute; top: 5px; right: 6px; width: 36px; height: 36px; min-height: 36px;
  padding: 0; border-color: transparent; font-size: 24px;
}
#cto-privacy-settings label {
  display: flex; align-items: center; gap: 9px; margin: 10px 0 3px; padding: 3px 0; color: #172541; font-weight: 650;
}
#cto-privacy-settings input[type="checkbox"] {
  appearance: auto; width: 19px; height: 19px; margin: 0; opacity: 1; accent-color: #164c7f;
}
/* The existing Office theme resets outlines with !important. */
:is(#cto-privacy-banner, #cto-privacy-settings) :is(a,button,input):focus-visible,
[data-cto-privacy-open]:focus-visible {
  outline: 3px solid #164c7f !important; outline-offset: 2px; box-shadow: 0 0 0 2px #fff;
}
#site-footer [data-cto-privacy-open] { text-decoration: underline; }
@media (max-width: 480px) {
  #cto-privacy-banner, #cto-privacy-settings { padding: 12px 14px; }
  :is(#cto-privacy-banner, #cto-privacy-settings) .cto-privacy-actions { gap: 6px; }
}
