#walletAlertsDialog { width:min(1060px,calc(100% - 24px)); height:min(880px,calc(100dvh - 24px)); max-height:calc(100dvh - 24px); }
#walletAlertsForm { height:100%; display:flex; flex-direction:column; min-height:0; }
#walletAlertsDialog .dialog-heading, #walletAlertsDialog .dialog-footer { flex-shrink:0; }
.wallet-alert-body { padding:18px 20px; overflow:auto; flex:1; min-height:0; }
.wallet-alert-mail { display:grid; grid-template-columns:2fr 1fr; gap:16px; margin:14px 0; }
.wallet-alert-body label { display:grid; gap:6px; font-size:12px; min-width:0; }
.wallet-alert-body input:not([type=checkbox]), .wallet-alert-body select { width:100%; min-width:0; height:36px; padding:6px 9px; }
#walletAlertService { color:var(--muted); font-size:12px; }
.wallet-alert-mail-settings > summary { cursor:pointer; font-size:13px; color:var(--blue); }
.wallet-alert-mail-settings[open] > summary { margin-bottom:12px; }
.wallet-alert-address { overflow-wrap:anywhere; }
.wallet-alert-template summary { cursor:pointer; font-size:12px; color:var(--blue); }
.wallet-alert-template textarea { margin:10px 0; width:100%; font-size:12px; line-height:1.7; }
.wallet-alert-section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:20px 0 10px; }
.wallet-alert-section-title h3 { margin:0; font-size:14px; }
.wallet-alert-section-title .subtle { font-size:12px; }
.wallet-alert-rule { display:grid; grid-template-columns:minmax(180px,1fr) 130px 85px minmax(160px,.8fr); gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.wallet-alert-rule .wallet-alert-switch { display:flex; align-items:center; gap:9px; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.wallet-alert-switch input { flex-shrink:0; width:16px; height:16px; }
.wallet-alert-rule small, .wallet-alert-delivery small { display:block; font-size:11px; color:var(--muted); font-weight:400; margin-top:5px; }
.wallet-alert-observation { min-width:0; overflow-wrap:anywhere; font-size:12px; }
.wallet-alert-delivery { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; border-bottom:1px solid var(--line); padding:10px 0; font-size:12px; overflow-wrap:anywhere; }
#walletAlertsDialog .dialog-footer { align-items:center; flex-wrap:wrap; }
#walletAlertMessage { margin:0 auto 0 0; font-size:12px; flex:1 1 200px; overflow-wrap:anywhere; }
#walletAlertsDialog button { display:inline-flex; align-items:center; gap:6px; }
#walletAlertsDialog button svg, #walletAlertSettings svg { width:16px; height:16px; }
@media(max-width:700px) {
  .wallet-alert-mail { grid-template-columns:minmax(0,1fr); gap:10px; }
  .wallet-alert-rule { grid-template-columns:minmax(0,1fr) 80px; gap:10px; }
  .wallet-alert-rule .wallet-alert-switch, .wallet-alert-observation { grid-column:1/-1; }
  .wallet-alert-body { padding:14px 12px; }
  #walletAlertsDialog .dialog-heading { padding:14px 12px; }
  .wallet-alert-section-title { flex-wrap:wrap; }
}
