/* ── B2B Loop Filter ─────────────────────────────────────────── */
.b2blf-wrap { font-family: inherit; }

/* ── Panel ── */
.b2blf-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 15px;
}

/* Sidebar layout: panel stacks vertically */
.b2blf-layout-sidebar .b2blf-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Horizontal layout: groups in a row */
.b2blf-layout-horizontal .b2blf-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 20px;
}
.b2blf-layout-horizontal .b2blf-group { margin-bottom: 0; }
.b2blf-layout-horizontal .b2blf-footer { margin-left: auto; }

/* ── Group ── */
.b2blf-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.b2blf-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.b2blf-group-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 8px;
}

/* ── Pills ── */
.b2blf-pills { display: flex; flex-wrap: wrap; gap: 5px; }

.b2blf-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f6f6f6;
    color: #555;
    transition: all .15s;
    line-height: 1.6;
}
.b2blf-pill:hover { background: #eee; }
.b2blf-pill.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* ── Checkboxes / Radios ── */
.b2blf-check {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    cursor: pointer;
    font-size: 12px;
    color: #444;
}
.b2blf-check input { accent-color: #1a1a2e; width: 13px; height: 13px; cursor: pointer; flex-shrink: 0; }

/* ── Price row ── */
.b2blf-price-row { display: flex; align-items: center; gap: 6px; }
.b2blf-price-input {
    width: 72px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: #fafafa;
    color: #333;
}
.b2blf-dash { font-size: 12px; color: #aaa; }

/* ── Select / Dropdown ── */
.b2blf-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 12px;
    background: #fafafa;
    color: #333;
    cursor: pointer;
}

/* ── Footer: count + clear ── */
.b2blf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}
.b2blf-count { font-size: 11px; color: #888; }
.b2blf-clear-btn {
    font-size: 11px;
    color: #c0392b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.b2blf-clear-btn:hover { color: #922b21; }

/* ── Loading state on Loop Grid ── */
.b2blf-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .2s;
}

/* ── Fallback card styles (only used when Elementor Loop template not set) ── */
.b2blf-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.b2blf-card-thumb {
    background: #f5f5f5;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.b2blf-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.b2blf-badge {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.b2blf-badge.out { background: #fff0f0; color: #c0392b; }
.b2blf-card-body { padding: 11px 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.b2blf-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.b2blf-tag { font-size: 10px; padding: 2px 7px; border-radius: 12px; background: #f2f2f2; color: #666; border: 1px solid #e8e8e8; }
.b2blf-tag.brand { background: #eef4ff; color: #3a6dbf; border-color: #c5d9f7; }
.b2blf-card-title { font-size: 12px; font-weight: 600; color: #1a1a2e; margin: 0; line-height: 1.4; }
.b2blf-card-title a { color: inherit; text-decoration: none; }
.b2blf-price { font-size: 11px; font-weight: 600; color: #222; }
.b2blf-moq { font-size: 10px; color: #999; }
.b2blf-card-footer { padding: 9px 12px; border-top: 1px solid #f0f0f0; display: flex; gap: 7px; align-items: center; }
.b2blf-qty { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 7px; overflow: hidden; }
.b2blf-qty button { background: none; border: none; padding: 4px 8px; font-size: 15px; cursor: pointer; color: #666; }
.b2blf-qty input { width: 34px; border: none; text-align: center; font-size: 12px; -moz-appearance: textfield; }
.b2blf-qty input::-webkit-inner-spin-button, .b2blf-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.b2blf-add {
    flex: 1;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.b2blf-add:hover { opacity: .85; }
.b2blf-add.added { background: #27ae60; }

/* No results */
.b2blf-empty { font-size: 13px; color: #888; padding: 30px 0; text-align: center; }

@media (max-width: 640px) {
    .b2blf-layout-horizontal .b2blf-panel { flex-direction: column; }
}
