.calendar-event-heading .calendar-patient-alert{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;min-width:20px;margin:0;padding:1px;border:1px solid #b52929;border-radius:4px;background:#fff0ee;color:#b11f24;cursor:pointer;touch-action:manipulation;align-self:center}
.calendar-patient-alert svg{width:16px;height:16px;fill:currentColor;pointer-events:none}
.calendar-event-heading .calendar-patient-alert:hover{background:#ffdbd7;color:#8e141b}
.calendar-patient-alert:focus-visible{outline:2px solid #9c2026;outline-offset:1px}
.calendar-event.compact .calendar-patient-alert{width:16px;height:16px;min-width:16px;flex-basis:16px}
.calendar-event.compact .calendar-patient-alert svg{width:13px;height:13px}
.patient-alerts-help{font-size:.8rem;margin-top:-.6rem}
.patient-alerts-popover{position:fixed;z-index:22;display:flex;flex-direction:column;width:350px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);background:#fffafa;border:1px solid #c76565;border-radius:10px;padding:12px;box-shadow:0 8px 30px #4c171730;color:#51262a}
.patient-alerts-popover:before{content:'';position:absolute;top:-6px;left:var(--alert-arrow,20px);width:10px;height:10px;transform:translateX(-50%) rotate(45deg);background:#fffafa;border-top:1px solid #c76565;border-left:1px solid #c76565}
.patient-alerts-popover.above:before{top:auto;bottom:-6px;transform:translateX(-50%) rotate(225deg)}
.patient-alerts-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;flex-shrink:0;font-size:.95rem;color:#98242b}
.patient-alerts-heading button{flex-shrink:0;padding:0 8px;font-size:1.4rem;line-height:1.2;color:#98242b}
.patient-alerts-name{font-size:.8rem;margin:.5rem 0;color:#6b5355;overflow-wrap:anywhere;max-height:15vh;overflow:auto;flex-shrink:0}
.patient-alerts-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:.9rem;max-height:min(45vh,340px);min-height:0;overflow:auto;padding-right:4px}
.patient-alerts-summary{border-left:4px solid #b52929;background:#fff7f5}
.patient-alerts-summary h2{color:#98242b}
.patient-alerts-summary p{white-space:pre-wrap;overflow-wrap:anywhere}
