.cj-manager-alert { position:fixed;inset:0;z-index:3500;display:flex;align-items:center;justify-content:center;background:#0007;padding:20px; }
.cj-manager-alert section { width:440px;max-width:100%;background:var(--theme-panel-bg,#fff);color:var(--theme-body-fg,#17212f);border:3px solid #d18621;border-radius:14px;padding:24px;box-shadow:0 12px 50px #0005; }
.cj-manager-alert h2 { font-size:23px;margin:0 0 18px; }
.cj-manager-alert p { font-size:19px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere; }
.cj-manager-alert button { display:block;margin-left:auto;min-height:44px;min-width:100px;border:0;border-radius:7px;background:#2866a5;color:#fff;font-family:inherit;font-weight:700;font-size:18px;cursor:pointer; }
.cj-manager-alert.is-urgent { z-index:10000; }
.cj-manager-alert.is-urgent section { width:520px;border-color:#d34646; }
.cj-manager-alert.is-urgent h2 { font-size:28px;color:#d34646; }
.cj-manager-alert.is-urgent button { min-height:52px;min-width:120px; }

.cj-manager-alert.cj-manager-alert--payment
{
    --alert-danger: #ffb4bc;
    --alert-danger-bg: #402a31;
    --alert-danger-line: #80505a;
    box-sizing: border-box;
}

body.light .cj-manager-alert--payment
{
    --alert-danger: #a72e3a;
    --alert-danger-bg: #fff0ed;
    --alert-danger-line: #e4b4b9;
}

.cj-manager-alert--payment.is-contacting { z-index: 9990; }

.cj-manager-alert.cj-manager-alert--payment section
{
    box-sizing: border-box;
    width: 720px;
    max-width: 100%;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 0;
    border: 1px solid var(--console-line, #c3cfd9);
    border-top: 4px solid var(--alert-danger);
    border-radius: 14px;
    background: var(--console-surface, #edf1f4);
    color: var(--console-ink, #263b4d);
    box-shadow: 0 18px 64px #07121f59;
}

.cj-alert__header
{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--console-line, #c3cfd9);
}

.cj-alert__icon
{
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--alert-danger);
    background: var(--alert-danger-bg);
    font-size: 22px;
}

.cj-alert__heading { flex: 1; min-width: 0; }
.cj-manager-alert.cj-manager-alert--payment h2
{
    margin: 0;
    color: var(--console-ink, #263b4d);
    font-size: 24px;
    line-height: 1.4;
    font-weight: 750;
}

.cj-manager-alert--payment .cj-alert__heading p
{
    margin: 4px 0 0;
    color: var(--console-muted, #4d6275);
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

.cj-alert__badge
{
    flex: none;
    border: 1px solid var(--alert-danger-line);
    border-radius: 20px;
    padding: 5px 10px;
    color: var(--alert-danger);
    background: var(--alert-danger-bg);
    font-size: 13px;
    font-weight: 700;
}

.cj-alert__content { padding: 22px 24px 0; }
.cj-manager-alert--payment table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cj-manager-alert--payment :is(th, td) { border-color: var(--console-line, #c3cfd9); }
.cj-manager-alert--payment tr:hover { background: transparent; }
.cj-manager-alert--payment th { font-weight: 600; }
.cj-alert__amounts { border: 1px solid var(--console-line, #c3cfd9); }
.cj-alert__amounts th
{
    padding: 8px;
    color: var(--console-muted, #4d6275);
    background: var(--console-surface-soft, #e1e8ee);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
}
.cj-alert__amounts td
{
    padding: 12px 8px;
    color: var(--console-ink, #263b4d);
    background: var(--console-surface-soft, #e1e8ee);
    font-size: 24px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.cj-alert__amounts :is(th, td) + :is(th, td) { border-left: 1px solid var(--console-line, #c3cfd9); }
.cj-alert__amounts th:nth-child(2),
.cj-alert__amounts .cj-alert__requested { background: var(--alert-danger-bg); color: var(--alert-danger); }
.cj-alert__amounts .cj-alert__difference { font-size: 21px; }

.cj-alert__breakdown { margin: 17px 0; border: 1px solid var(--console-line, #c3cfd9); }
.cj-alert__breakdown caption { padding-bottom: 8px; text-align: left; font-size: 14px; font-weight: 700; }
.cj-alert__breakdown th { padding: 9px 8px; color: var(--console-muted, #4d6275); background: var(--console-surface-soft, #e1e8ee); font-size: 13px; text-align: center; }
.cj-alert__breakdown td { padding: 10px 8px; font-size: 16px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.cj-alert__breakdown :is(th, td) + :is(th, td) { border-left: 1px solid var(--console-line, #c3cfd9); }
.cj-alert__info { margin-top: 18px; border-top: 1px solid var(--console-line, #c3cfd9); }
.cj-alert__info :is(th, td) { padding: 12px 10px; border-bottom: 1px solid var(--console-line, #c3cfd9); text-align: left; font-size: 14px; overflow-wrap: anywhere; }
.cj-alert__info th { width: 76px; color: var(--console-muted, #4d6275); background: var(--console-surface-soft, #e1e8ee); }
.cj-alert__info td { font-variant-numeric: tabular-nums; }
.cj-manager-alert--payment .cj-alert__reason { margin: 15px 0 0; color: var(--alert-danger); font-size: 14px; line-height: 1.5; white-space: normal; }

.cj-alert__footer
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 106px;
    gap: 10px;
    padding: 22px 24px 0;
}
.cj-manager-alert--payment .cj-alert__footer button
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--console-line, #c3cfd9);
    border-radius: 8px;
    background: var(--theme-button-bg, #e3ebf1);
    color: var(--console-ink, #263b4d);
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
}
.cj-manager-alert--payment .cj-alert__footer button:hover { background: var(--theme-button-bg-hover, #d4e0e9); }
.cj-manager-alert--payment .cj-alert__footer button:active { background: var(--theme-button-bg-active, #c8d8e4); }
.cj-manager-alert--payment .cj-alert__footer .cj-alert__confirm { border-color: var(--console-primary, #456782); background: var(--console-primary, #456782); color: #fff; }
.cj-manager-alert--payment .cj-alert__footer .cj-alert__confirm:hover { background: var(--console-primary-hover, #375970); }
.cj-manager-alert--payment .cj-alert__footer .cj-alert__confirm:active { background: var(--console-primary-active, #2e5069); }
.cj-manager-alert--payment .cj-alert__footer button:focus-visible { outline: 2px solid var(--console-accent, #345e80); outline-offset: 3px; }
.cj-manager-alert--payment .cj-alert__footer button:disabled { background: var(--console-surface-soft, #e1e8ee); color: var(--console-muted, #4d6275); border-color: var(--console-line, #c3cfd9); cursor: default; opacity: 1; }
.cj-manager-alert--payment .cj-alert__status { margin: 10px 24px 18px; color: var(--console-muted, #4d6275); font-size: 12px; line-height: 1.5; white-space: normal; }

@media (max-width: 620px)
{
    .cj-alert__header { padding: 16px; gap: 10px; }
    .cj-alert__content { padding: 16px 16px 0; }
    .cj-alert__badge { display: none; }
    .cj-alert__footer { padding: 18px 16px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cj-manager-alert--payment .cj-alert__footer .cj-alert__confirm { grid-column: 1 / -1; }
    .cj-alert__amounts td { font-size: 19px; }
    .cj-alert__amounts .cj-alert__difference { font-size: 17px; }
    .cj-alert__info th { width: 58px; }
    .cj-alert__info :is(th, td) { padding: 10px 6px; font-size: 12px; }
    .cj-manager-alert--payment .cj-alert__status { margin-inline: 16px; }
}
