/* Namespaced consent UI; independent of the website's existing form styles. */
.trio-consent { color: #19324c; font: 400 15px/1.65 Arial, Tahoma, sans-serif; }
.trio-consent *, .trio-consent *::before, .trio-consent *::after { box-sizing: border-box; }
.trio-consent [hidden] { display: none !important; }
.trio-consent-banner {
  position: fixed; z-index: 10000; inset: auto 20px 20px;
  display: flex; align-items: center; gap: 28px; padding: 22px 26px;
  background: #fff; border: 1px solid #c9d8e8; border-top: 4px solid #003e8a;
  border-radius: 14px; box-shadow: 0 8px 42px #142f4d26;
}
.trio-consent-banner-copy { flex: 1 1 420px; }
.trio-consent-banner strong { font-size: 18px; color: #003e8a; }
.trio-consent p { margin: 8px 0 0; color: #425b71; font-size: 14px; line-height: 1.75; }
.trio-consent-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.trio-consent button {
  appearance: none; min-height: 44px; padding: 10px 16px; margin: 0;
  border: 1px solid #003e8a; border-radius: 8px; background: #fff; color: #003e8a;
  font: 600 14px/1.4 Arial, Tahoma, sans-serif; cursor: pointer; text-transform: none;
  box-shadow: none; letter-spacing: normal;
}
.trio-consent button:hover { background: #edf5ff; }
.trio-consent button:focus-visible, .trio-consent input:focus-visible,
.trio-consent summary:focus-visible, .trio-consent a:focus-visible,
.trio-consent-reopen:focus-visible { outline: 3px solid #e8a82e; outline-offset: 3px; }
.trio-consent-dialog {
  position: fixed; inset: 0; width: min(620px, calc(100% - 32px)); max-height: 90vh;
  max-height: 90dvh; margin: auto; padding: 26px; overflow-y: auto;
  border: 1px solid #c9d8e8; border-radius: 16px; background: #fff; color: #19324c;
  font: inherit; box-shadow: 0 14px 60px #061e3d40; z-index: 10002;
}
.trio-consent-dialog::backdrop { background: #061e3d99; }
.trio-consent-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.trio-consent h2 { margin: 0; color: #003e8a; font-size: 24px; line-height: 1.4; }
.trio-consent button.trio-consent-close { flex: 0 0 44px; width: 44px; padding: 0; font-size: 28px; }
.trio-consent-option { margin-top: 18px; padding: 16px; border: 1px solid #dbe4ef; border-radius: 10px; }
.trio-consent-option label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.trio-consent-option strong { color: #19324c; font-size: 16px; }
.trio-consent-option input[type="checkbox"] {
  appearance: auto; width: 21px; height: 21px; min-width: 21px; margin: 0;
  accent-color: #003e8a; padding: 0; position: static; opacity: 1;
}
.trio-consent-details { margin-top: 20px; padding: 14px 0; border-top: 1px solid #dbe4ef; }
.trio-consent-details summary { color: #003e8a; font-weight: 600; cursor: pointer; }
.trio-consent a { color: #003e8a; text-decoration: underline; }
.trio-consent-details a { display: inline-block; margin-top: 10px; }
.trio-consent-dialog-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #dbe4ef; }
.trio-consent-dialog-actions button { flex: 1 1 145px; }
.trio-consent-reopen {
  appearance: none; display: inline-block; min-height: 44px; margin: 4px 0 0 20px;
  padding: 10px 8px; border: 0; border-radius: 4px; background: transparent;
  color: inherit; text-decoration: underline; font: inherit; cursor: pointer;
}
.trio-consent-reopen-floating { position: fixed; z-index: 9999; left: 16px; bottom: 16px; margin: 0; background: #fff; color: #003e8a; box-shadow: 0 2px 14px #142f4d26; }
.trio-consent-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .trio-consent-banner { flex-direction: column; align-items: stretch; gap: 14px; }
  .trio-consent-banner-copy { flex-basis: auto; }
  .trio-consent-banner .trio-consent-actions button { flex: 1 1 150px; }
}
@media (max-width: 520px) {
  .trio-consent-banner { inset: auto 10px 10px; padding: 16px; gap: 12px; border-radius: 10px; }
  .trio-consent-banner strong { font-size: 17px; }
  .trio-consent-banner .trio-consent-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .trio-consent-banner p { font-size: 13px; }
  .trio-consent-dialog { padding: 20px; }
  .trio-consent-option { padding: 13px; }
  .trio-consent-reopen { margin-left: 0; }
}
