.restock-dialog {
    box-sizing: border-box;
    width: min(27rem, calc(100% - 2rem));
    max-height: 85vh;
    padding: 1.5rem;
    color: #172b36;
    background: white;
    border: 0;
    border-radius: .75rem;
}
.restock-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.restock-dialog h2 { margin: 0 2rem 1rem 0; }
.restock-close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; font-size: 1.5rem; }
.restock-dialog fieldset { display: grid; gap: .75rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.restock-dialog select, .restock-dialog input[type=email] { width: 100%; padding: .6rem; border: 1px solid #abb8bd; }
.restock-dialog small:empty, .restock-dialog p:empty, .restock-dialog [hidden] { display: none; }
.restock-dialog a { text-decoration: underline; }


.restock-account, .restock-dialog details {
    padding: .85rem 1rem;
    background: #f3f6f6;
    border-radius: .5rem;
}
.restock-account div { margin-top: .35rem; }
.restock-dialog summary { cursor: pointer; }
.restock-invite:not([hidden]) {
    position: fixed;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    right: 1rem;
    z-index: 100;
    display: grid;
    gap: .35rem;
    max-width: calc(100vw - 2rem);
    padding: 1rem 3rem 1rem 1rem;
    background: white;
    color: #172b36;
    border: 1px solid #d6dfe0;
    border-radius: .75rem;
    box-shadow: 0 .25rem 1rem #0002;
}
.restock-invite [data-restock-dismiss] { position: absolute; right: 0; top: 0; width: 44px; height: 44px; }
