/* Scoped selectors only: do not restyle WHMCS cards, forms or Bootstrap modals. */
.sh-widget, .sh-overlay, .sh-widget *, .sh-overlay * { box-sizing: border-box; }
.sh-widget { display: block; margin: 14px 0; text-align: left; font-weight: 400; font-size: 14px; line-height: 1.55; color: inherit; }
.sh-widget .sh-description { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }
.sh-widget .sh-status { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 9px; border-radius: 5px; font-size: 12px; line-height: 1.6; font-weight: 600; vertical-align: middle; }
.sh-widget .sh-status::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.sh-widget .sh-open { color: #187345; background: #eaf6ef; }
.sh-widget .sh-closed { color: #946014; background: #fff3db; }
.sh-widget .sh-schedule { display: block; margin-top: 10px; font-size: 12px; line-height: 1.5; }
.sh-widget .sh-schedule-row { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(68%); align-items: start; gap: 8px; padding: 3px 0; }
.sh-widget .sh-schedule-row > span { display: block; overflow-wrap: anywhere; }
.sh-widget .sh-schedule-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.sh-widget .sh-day-off { opacity: .7; }
.sh-widget .sh-always { display: block; font-weight: 600; font-size: 13px; }
.sh-widget .sh-exception { display: block; margin-top: 6px; color: #946014; }
.sh-widget .sh-stale, .sh-overlay .sh-stale { display: block; margin: 10px 0 0; color: #946014; font-size: 12px; }
#supporthours-selected { clear: both; width: 100%; margin: 18px 0 4px; }
.sh-form-widget .sh-schedule { max-width: 440px; }
.sh-form-widget .sh-inline-notice { border: 1px solid #f0d6a5; background: #fff9ee; border-radius: 8px; padding: 15px 18px; }
.sh-form-widget .sh-inline-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.sh-form-widget .sh-inline-hint { margin: 9px 0 6px; font-size: 13px; color: #70521e; }
.sh-widget .sh-text-button { appearance: none; padding: 0; border: 0; background: transparent; color: #82570e; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sh-widget .sh-about { display: block; margin-top: 12px; }
.sh-widget .sh-about summary { cursor: pointer; font-size: 13px; color: #5b6470; width: fit-content; padding: 3px 0; }
.sh-widget .sh-about-body { margin-top: 12px; padding-left: 12px; border-left: 2px solid #e5e9ed; }
.sh-widget .sh-about-body .sh-description { font-size: 13px; }
.sh-widget .sh-warning { white-space: pre-wrap; padding: 16px; border: 1px solid #f0d6a5; background: #fff9ee; border-radius: 8px; }
.sh-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(16, 26, 35, .5); backdrop-filter: blur(3px); font-family: inherit; text-align: left; color: #273039; }
.sh-overlay .sh-dialog { display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .2); }
.sh-overlay .sh-modal-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px 26px 19px; border-bottom: 1px solid #edf0f2; }
.sh-overlay .sh-modal-title { font: inherit; font-size: 22px; line-height: 1.3; font-weight: 600; margin: 0; color: #273039; overflow-wrap: anywhere; }
.sh-overlay .sh-modal-close { appearance: none; flex: 0 0 30px; border: none; padding: 0; width: 30px; height: 30px; background: #f4f6f7; border-radius: 6px; font-size: 24px; line-height: 28px; color: #707983; cursor: pointer; }
.sh-overlay .sh-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 21px 26px; font-size: 14px; line-height: 1.65; }
.sh-overlay .sh-modal-paragraph { white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 15px; }
.sh-overlay .sh-modal-paragraph:last-child { margin-bottom: 0; }
.sh-overlay .sh-modal-footer { flex: 0 0 auto; padding: 17px 26px 23px; background: #fafbfc; border-top: 1px solid #edf0f2; }
.sh-overlay .sh-modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.sh-overlay .sh-button { appearance: none; border: 1px solid transparent; border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 13px; line-height: 1.5; font-weight: 600; text-align: center; white-space: normal; cursor: pointer; }
.sh-overlay .sh-button-primary { background: #238d53; color: #fff; border-color: #238d53; }
.sh-overlay .sh-button-primary:hover { background: #1b7343; }
.sh-overlay .sh-button-secondary { background: #fff; border-color: #dce1e6; color: #505b66; }
.sh-overlay .sh-button-secondary:hover { background: #f1f4f6; }
.sh-overlay button:focus-visible, .sh-widget button:focus-visible, .sh-widget summary:focus-visible { outline: 2px solid #257dbe; outline-offset: 3px; }
#supporthours-selected[hidden], .sh-widget[hidden], .sh-overlay[hidden] { display: none !important; }
@media (max-width: 540px) {
    .sh-overlay { padding: 12px; }
    .sh-overlay .sh-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
    .sh-overlay .sh-modal-header { padding: 17px 17px 14px; gap: 12px; }
    .sh-overlay .sh-modal-title { font-size: 19px; }
    .sh-overlay .sh-modal-body { padding: 16px 17px; font-size: 13px; }
    .sh-overlay .sh-modal-footer { padding: 13px 17px 17px; }
    .sh-overlay .sh-modal-actions { flex-direction: column; }
    .sh-overlay .sh-button { width: 100%; }
    .sh-form-widget .sh-inline-notice { padding: 13px; }
}
@media print { .sh-overlay { display: none !important; } }
