/* ── BudgetOne Calculator Widget ───────────────────────────────────────────── */

.bc-calc {
    background: #0D1A22;
    border: 1px solid #1A3A50;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    min-width: 210px;
    font-family: 'DM Mono', monospace;
    user-select: none;
}

.bc-calc-display {
    background: #060F14;
    border: 1px solid #1A3A50;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
    text-align: right;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bc-calc-expr {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    min-height: 1rem;
    word-break: break-all;
}

.bc-calc-val {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
    line-height: 1.2;
}

.bc-calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.bc-key {
    background: #152330;
    border: 1px solid #1A3A50;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.1s;
    text-align: center;
    line-height: 1;
}
.bc-key:hover  { background: #1E3545; }
.bc-key:active { background: #243F55; }

.bc-key-fn {
    color: #5CE8C0;
    background: #0A2025;
}
.bc-key-fn:hover  { background: #0F2D35; }
.bc-key-fn:active { background: #143540; }

.bc-key-eq {
    background: #2EA882;
    border-color: #2EA882;
    color: #060F14;
    font-weight: 700;
}
.bc-key-eq:hover  { background: #5CE8C0; border-color: #5CE8C0; }
.bc-key-eq:active { background: #3BC49A; }

.bc-key-use {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 3px;
}
.bc-key-use:hover  { background: #0b5ed7; border-color: #0b5ed7; }
.bc-key-use:active { background: #0952c6; }

/* ── Trigger button placed next to amount inputs ────────────────────────────── */

.bc-calc-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.bc-calc-btn:hover {
    border-color: #2EA882;
    color: #2EA882;
    background: rgba(46, 168, 130, 0.08);
}
