/* "Alert me" box (alert_me.js) and the unsubscribe page. Colors and fonts come from theme.css (load it first). */
.am-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font: 15px/1.45 var(--font);
}
.am-dialog::backdrop { background: var(--overlay); }
.am-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 6px; }
.am-title { flex: 1; margin: 0; font-family: var(--font-head); font-size: 18px; line-height: 1.3; }
.am-close { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 4px; }
.am-content { padding: 6px 20px 20px; }
.am-form { display: grid; gap: 12px; }
.am-choices { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.am-legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.am-choice { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.am-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.am-sub { display: grid; gap: 6px; padding-left: 26px; }
.am-input { box-sizing: border-box; width: 100%; padding: 9px 11px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: inherit; }
.am-amount { width: 120px; }
.am-consent { align-items: flex-start; font-size: 13px; color: var(--text-muted); }
.am-consent input { margin-top: 3px; }
.am-button { padding: 11px 16px; border: 0; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-color); font: inherit; font-weight: 650; cursor: pointer; box-shadow: var(--shadow-print); }
.am-button:hover { background: var(--primary-hover); }
.am-button:disabled { opacity: 0.6; cursor: default; }
.am-error { margin: 0; color: var(--danger); font-size: 14px; }
.am-note { margin: 0; color: var(--text-muted); font-size: 13px; }
.am-done-text { margin: 0 0 8px; font-weight: 600; }
.am-trigger { cursor: pointer; }

/* The unsubscribe page: the person's product alerts, each with Stop */
.sl-alerts-title { margin: 18px 0 8px; font-size: 16px; }
.sl-alerts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sl-alerts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.sl-notice { margin: 12px 0 0; font-weight: 600; }
.am-promise { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
