.av-form51-dialog {
  box-sizing: border-box;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 24px;
  border: 0;
  background: #fff;
  color: #252525;
}

.av-form51-dialog::backdrop { background: rgba(0, 0, 0, .56); }
.av-form51-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.av-form51-dialog-heading h2 { margin: 0; }
.av-form51-close { flex: none; min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.av-form51-fields { display: grid; gap: 6px; }
.av-form51-fields input, .av-form51-fields textarea { box-sizing: border-box; width: 100%; max-width: 100%; margin: 0 0 10px; }
.av-form51-consent { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 12px 0; }
.av-form51-consent input { flex: none; }
.av-form51-consent a { overflow-wrap: anywhere; }
.av-form51-status { margin: 12px 0; overflow-wrap: anywhere; }
.av-form51-status:empty { display: none; }
.av-form51-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.av-form51 [hidden] { display: none !important; }
.av-form51 [aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.av-form51 button:focus-visible, .av-form51-dialog button:focus-visible { outline: 2px solid #173b70; outline-offset: 2px; }
@media (max-width: 480px) {
  .av-form51-dialog { width: calc(100% - 24px); max-height: calc(100% - 24px); padding: 16px; }
}
