/* Shared responsive controls; loaded after each page's existing styles. */
/* Keep the 73px public header reachable on short screens. The consent panel
   scrolls independently so its heading, choices and actions remain available. */
body .sherm-privacy {
  display: flex;
  flex-direction: column;
  /* Percentages follow the fixed containing block even under CSS zoom. */
  max-width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 112px);
}
.sherm-privacy > #sherm-privacy-options {
  box-sizing: border-box;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body:has(#mobile-menu:not([hidden])) .sherm-privacy,
body:has(.sherman-chat[open]) .sherm-privacy {
  display: none;
}

#insight-search,
#site-search-input,
#sherman-question {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.sherman-chat .sherman-close,
.sherman-chat .sherman-composer [type="submit"] {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.sherman-chat .sherman-info,
.sherman-chat .sherman-session-actions button,
.search-dialog .discovery-filters button,
.sherm-privacy > button[data-open],
.sherm-privacy .sherm-privacy-actions button {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
}

.sherman-chat .sherman-modes button {
  min-height: 44px;
}

.privacy-shortcut {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.site-header .mobile-menu > .privacy-shortcut {
  align-self: stretch;
  padding: 11px 4px;
  font-size: 13px;
}

.sherman-alternatives .privacy-shortcut {
  padding: 8px 0;
  color: #27634e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-shortcut:focus-visible {
  outline: 3px solid #84ad60;
  outline-offset: 3px;
}

/* Preserve the desktop CTA width while allowing contact-form zoom reflow. */
.contact-form-panel form > .button {
  min-width: min(210px, 100%);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Let the logo shrink within a zoom-constrained header without hiding navigation. */
.site-header .brand { min-width: 0; }
.site-header .brand-mark { max-width: 100%; }

/* Larger touch targets must remain reachable when the keyboard reduces height. */
@media (max-height: 360px) {
  .sherman-chat {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
