/* ===================== Mini Cart (Standalone) ===================== */
/* Self-contained CSS — loaded by [bpco_mini_cart] shortcode only.   */
/* CSS vars fallback included so this works without full bpco.css.   */

:root {
    --bpco-border: #e6e6e6;
    --bpco-text: #222;
    --bpco-accent: #111;
}

.bpco-mini-cart {
    margin: 0;
}

.bpco-mc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.bpco-mc-item {
    display: flex;
    gap: 6px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--bpco-border);
    border-radius: 14px;
    padding: 2px;
    margin-left: 2px;
    margin-right: 2px;
}

.bpco-mc-item.is-busy {
    opacity: .7;
    pointer-events: none;
}

.bpco-mc-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 64px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpco-mc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bpco-mc-main {
    flex: 1;
    min-width: 0;
}

.bpco-mc-title {
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--bpco-text);
}

.bpco-mc-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.bpco-mc-save {
    border: 0;
    background: transparent;
    color: var(--bpco-accent);
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
}

.bpco-mc-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 92px;
}

.bpco-mc-qty {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--bpco-border);
    border-radius: 10px;
    padding: 1px 1px;
}

.bpco-mc-qty button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--bpco-border);
    background: #f9f9f9;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.bpco-mc-qty-val {
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.bpco-mc-line-total {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

@media (max-width:480px) {
    .bpco-mc-actions {
        min-width: 80px;
    }

    .bpco-mc-thumb {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }
}

/* Mini-cart price flicker smooth */
.bpco-mini-cart .bpco-mc-line-total {
    display: inline-block;
    min-width: 6.5ch;
    transition: opacity .12s ease;
}

.bpco-mini-cart .is-busy .bpco-mc-line-total {
    opacity: .65;
}

.bpco-mc-empty {
    text-align: center;
    color: #888;
    padding: 16px;
    font-size: 14px;
}