/* Deliberately plain CSS: this must work when the Tailwind stylesheet cannot. */
#hmp-browser-notice {
  position: fixed;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2147483647;
  box-sizing: border-box;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #8a5a12;
  border-radius: 12px;
  background: #fff8e7;
  color: #35270f;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

#hmp-browser-notice summary {
  display: list-item;
  margin: 0 0 8px;
  cursor: pointer;
}

/* App dialogs hide their siblings for assistive technology. Match that visual
   state too, so this advisory cannot cover a modal that owns keyboard focus. */
#hmp-browser-notice[aria-hidden="true"] {
  display: none;
}

#hmp-browser-notice-toggle {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  text-decoration: underline;
}

#hmp-browser-notice h2 {
  display: inline;
  margin: 0;
  color: #35270f;
  font-size: 21px;
  font-weight: bold;
  line-height: 1.3;
}

#hmp-browser-notice p {
  margin: 0 0 12px;
}

#hmp-browser-notice strong {
  font-weight: bold;
}

#hmp-browser-notice-limits {
  font-size: 14px;
}

#hmp-browser-notice-dismiss {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid #35270f;
  border-radius: 6px;
  background: #35270f;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  cursor: pointer;
}

#hmp-browser-notice-dismiss:focus,
#hmp-browser-notice summary:focus {
  outline: 3px solid #1554ad;
  outline-offset: 3px;
}
