/* Shared scoped controller: same existing form in a card or the menu dialog. */
#tip-ons-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;color:#29383f;background:#fff;font:400 14px/1.6 MGHPoppins,Poppins,Arial,sans-serif}
#tip-ons-dialog h2{font:600 24px/1.25 MGHPoppins,Poppins,Arial,sans-serif}
.tip-form-controller [hidden]{display:none!important}
.tip-form-controller{min-width:0;width:100%}
.tip-form-controller label{display:block;margin:12px 0 5px;font-weight:600}
.tip-form-controller input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #bdcdd0;border-radius:8px;color:inherit;background:#fff;font:inherit}
.tip-form-controller .tip-email-note,.mgh-discovery-card .tip-form-controller .tip-email-note{font-size:12px;margin:6px 0 16px}
.tip-form-controller .tip-add-name{min-height:44px;padding:8px 0;border:0;background:none;color:inherit;text-decoration:underline;font:inherit;cursor:pointer}
.tip-form-controller [data-tip-submit]{width:100%}
.tip-form-controller button:disabled{opacity:.6;cursor:wait}
.tip-form-controller :focus-visible{outline:3px solid #29383f;outline-offset:3px}

.tip-form-controller .tip-optional-email{margin:4px 0 12px}
.tip-form-controller .tip-optional-email summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600}
.tip-form-controller .tip-optional-email summary::before{content:'+';font-size:20px;font-weight:400}
.tip-form-controller .tip-optional-email[open] summary::before{content:'−'}
.tip-form-controller .tip-optional-email label{margin-top:0}
.tip-form-controller [data-tip-status]:empty{margin:0}
