/* ================================================================
   WC Product Specifications — specs-facets.css
   Bubble / pill filter panel — works inside any theme sidebar widget
   ================================================================ */

/* ── Panel wrapper ───────────────────────────────────────────── */
.wc-specs-panel {
    font-family: inherit;
    font-size: 13px;
    color: #1a1a2e;
    width: 100%;
}

/* ── Header row ──────────────────────────────────────────────── */
.wc-specs-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a2e;
}

.wc-specs-panel-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #1a1a2e;
}

.wc-specs-clear-all {
    font-size: 11px;
    font-weight: 700;
    color: #c0392b;
    text-decoration: none;
    padding: 2px 8px;
    border: 1.5px solid #c0392b;
    border-radius: 20px;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.wc-specs-clear-all:hover {
    background: #c0392b;
    color: #fff;
}

/* ── Active filter chips ─────────────────────────────────────── */
.wc-specs-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #c0c0d0;
}

.wc-specs-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px 3px 11px;
    background: #1a1a2e;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none !important;
    line-height: 1.5;
    transition: background 0.12s;
    max-width: 100%;
    word-break: break-word;
}

.wc-specs-active-chip span {
    opacity: 0.65;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.wc-specs-active-chip:hover {
    background: #c0392b !important;
    color: #fff !important;
}

/* ── Notices ─────────────────────────────────────────────────── */
.wc-specs-threshold-note,
.wc-specs-no-facets {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    padding: 6px 0;
    font-style: italic;
}

/* ── Attribute group ─────────────────────────────────────────── */
.wc-specs-group {
    margin-bottom: 16px;
}

/* Toggle button */
.wc-specs-group-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1.5px solid #d0d0dc;
    padding: 0 0 7px 0;
    margin-bottom: 10px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    gap: 6px;
}

.wc-specs-group-name {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1a1a2e;
    flex: 1;
}

.wc-specs-chevron {
    flex-shrink: 0;
    color: #888;
    transition: transform 0.18s ease;
}

/* Collapsed state */
.wc-specs-group-btn[aria-expanded="false"] .wc-specs-chevron {
    transform: rotate(-90deg);
}

.wc-specs-group-btn:hover .wc-specs-group-name {
    color: #c0392b;
}

/* ── Bubble container ────────────────────────────────────────── */
.wc-specs-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    list-style: none;
}

/* Hidden when collapsed */
.wc-specs-bubbles[hidden] {
    display: none;
}

/* ── Individual bubble / pill ────────────────────────────────── */
.wc-specs-bubble {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1.5px solid #c0c0d4;
    background: #f5f5fb;
    color: #2e2e50 !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s, transform 0.1s;
    white-space: nowrap;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
}

.wc-specs-bubble:hover {
    border-color: #1a1a2e;
    background: #e8e8f5;
    color: #1a1a2e !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Active / selected */
.wc-specs-bubble.is-active {
    background: #1a1a2e !important;
    border-color: #1a1a2e;
    color: #ffffff !important;
    font-weight: 700;
}

.wc-specs-bubble.is-active:hover {
    background: #c0392b !important;
    border-color: #c0392b;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Count badge */
.wc-specs-bubble-count {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.5;
    flex-shrink: 0;
}

.wc-specs-bubble.is-active .wc-specs-bubble-count {
    opacity: 0.7;
}
