/* ══════════════════════════════════════════════════════════════════════════
   confirmPaid() modal — see confirm_paid.js.
   The amount is the largest thing on screen on purpose: it's the fact the
   employee is being asked to verify, so it should be unmissable.
   ══════════════════════════════════════════════════════════════════════════ */
.cpaid-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cpaid-overlay.open { display: flex; }

.cpaid-box {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 18px;
    padding: 26px 24px 20px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(13, 42, 82, 0.28);
    font-family: var(--font-ui);
}

.cpaid-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94A3B8;
}

.cpaid-amount {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin: 6px 0 2px;
    color: #0d2a52;
}

.cpaid-sub {
    font-size: 14px;
    color: #475569;
    line-height: 1.45;
}
.cpaid-sub strong { color: #0d2a52; }

/* Payment method — picked here, not beforehand, so the method and the
   assertion are one act. "Yes" stays locked until one of these is on. */
.cpaid-methods {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
/* Every rule in this modal that paints a <button> carries !important, because
   embossed.css has a catch-all
   `body.embossed-mode button:not(.dark-toggle-label):not(.emb-seg-btn)`
   at specificity (0,2,2) that repaints every button on the page with the
   neumorphic surface. Without it the selected method looks unselected and the
   whole confirmation reads as broken. */
.cpaid-method {
    flex: 1;
    padding: 14px 10px;
    border-radius: 12px;
    border: 2px solid transparent !important;
    background: #F1F5F9 !important;
    color: #475569 !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
    transition: background .15s ease, color .15s ease;
}
.cpaid-method:hover { background: #E2E8F0 !important; }
.cpaid-method.on {
    background: linear-gradient(135deg, var(--accent2, #2980d4), var(--accent, #F97316)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(26, 95, 168, 0.30) !important;
}

.cpaid-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.cpaid-btn {
    flex: 1;
    padding: 12px 14px;
    border-radius: 11px;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease, background .15s ease;
}

/* Cancel is the visually calmer of the two AND the focused one, so the
   reflex action — hit Enter, hit the nearest button — backs out safely. */
.cpaid-cancel {
    background: #F1F5F9 !important;
    color: #475569 !important;
    box-shadow: none !important;
}
.cpaid-cancel:hover { background: #E2E8F0 !important; }

.cpaid-ok {
    background: linear-gradient(135deg, var(--accent2, #2980d4), var(--accent, #F97316)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(26, 95, 168, 0.30) !important;
}
.cpaid-ok:hover:not(:disabled) { filter: brightness(1.06); }
/* Locked until a payment method is chosen — that choice is what arms this.
   Must win over .cpaid-ok above as well as the embossed catch-all, so the
   armed/unarmed difference stays visible. */
.cpaid-ok:disabled {
    background: #E2E8F0 !important;
    color: #94A3B8 !important;
    box-shadow: none !important;
    cursor: default;
}

body.dark-mode .cpaid-box { background: #16233a; }
body.dark-mode .cpaid-amount { color: #e2e8f0; }
body.dark-mode .cpaid-sub { color: #94a3b8; }
body.dark-mode .cpaid-sub strong { color: #e2e8f0; }
body.dark-mode .cpaid-cancel { background: #24344f !important; color: #cbd5e1 !important; }
body.dark-mode .cpaid-method { background: #24344f !important; color: #cbd5e1 !important; }
