/* Shared dialog geometry; dialogs with padded inner sections retain their structure. */
dialog{box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overscroll-behavior:contain}
dialog.modal:where(:not(:has(>.modal-body))):where(:not(.community-modal,.fitting-picker,.measurement-guide-rich,.design-library-dialog)){padding:28px;overflow-y:auto}
dialog.address-dialog{overflow-y:auto}
dialog>form+form{margin-top:12px}
dialog :where(input,textarea,select){max-width:100%;box-sizing:border-box}
dialog :where(.modal-head,.design-modal-heading,.experience-modal-head,.community-dialog-head,.retail-modal-head,.commerce-section-head,.shoulder-guide-heading){gap:16px}
dialog :where(.modal-head,.design-modal-heading,.experience-modal-head,.community-dialog-head,.retail-modal-head,.commerce-section-head,.shoulder-guide-heading)>:first-child{min-width:0}
dialog :where(.modal-head,.design-modal-heading,.experience-modal-head,.community-dialog-head,.retail-modal-head,.commerce-section-head,.shoulder-guide-heading)>button{flex-shrink:0;min-width:44px;min-height:44px}
dialog.modal>button.text-button[data-dismiss]{display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;margin-top:16px;padding:10px 16px;border:1px solid #77705c;border-radius:5px;background:#24251e;color:#eeeade}
@media(max-width:600px){dialog.modal:where(:not(:has(>.modal-body))):where(:not(.community-modal,.fitting-picker,.measurement-guide-rich,.design-library-dialog)){padding:22px 18px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}}

/* Complete photo notice: fixed heading/footer with an independently scrolling body. */
dialog.modal.photo-processing-dialog[open]{display:flex;flex-direction:column;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0!important;overflow:hidden;border-radius:12px}
.photo-processing-head{padding:24px 28px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.photo-processing-head h2{font-size:23px;line-height:1.4;margin:0;font-weight:600}.photo-processing-notice{padding:22px 28px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}.photo-processing-notice section+section{margin-top:23px}.photo-processing-notice h3{font-size:15px;margin:0 0 8px;font-weight:600;color:var(--text)}.photo-processing-notice p{font-size:13px;line-height:1.9;color:#c4c2b8;margin:0;overflow-wrap:anywhere}.photo-processing-notice .photo-retention-highlight{padding:14px 16px;margin:0 0 24px;border:1px solid #786345;border-radius:6px;background:#322b1e;color:#e8d3ad}.photo-processing-footer{padding:16px 28px;border-top:1px solid var(--line);flex-shrink:0;background:#1b1d17}.photo-processing-footer .button{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%}
@media(max-width:600px){dialog.modal.photo-processing-dialog[open]{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.photo-processing-head{padding:20px 18px 16px}.photo-processing-head h2{font-size:21px}.photo-processing-notice{padding:20px 18px}.photo-processing-footer{padding:14px 18px}}
