/**
 * BW product sections — Features, Spec Grid, Spec Matrix.
 *
 * Scoped under each widget's .elementor-widget-{name} wrapper so the rules
 * outrank the Elementor global kit, which targets headings as
 * `.elementor-kit-N h4` and would otherwise win against a single class.
 */

.elementor-widget-bw-product-features,
.elementor-widget-bw-spec-grid,
.elementor-widget-bw-spec-matrix {
    --bw-blue: #005eb8;
    --bw-blue-dk: #00427f;
    --bw-blue-tint: #e8f0f9;
    --bw-orange: #f28120;
    --bw-ink: #101720;
    --bw-body: #5b6570;
    --bw-mute: #8a95a1;
    --bw-line: #e2e6ea;
    --bw-soft: #f7f9fb;
}

.elementor-widget-bw-product-features *,
.elementor-widget-bw-spec-grid *,
.elementor-widget-bw-spec-matrix * {
    box-sizing: border-box;
}

/* ==========================================================  FEATURES  ==== */
.elementor-widget-bw-product-features .bw-feat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 46px;
    align-items: start;
}

.elementor-widget-bw-product-features .bw-feat.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.elementor-widget-bw-product-features .bw-feat-main {
    display: flex;
    flex-direction: column;
    gap: 34px;
    min-width: 0;
}

/* The group heading is styled by class, not by tag, so the widget's HTML Tag
   control can change h4 -> h3/h5/div for document outline without the styling
   falling off. Three-class specificity (0,3,0) also clears the Elementor
   global kit's `.elementor-kit-N h4` (0,1,1). */
.elementor-widget-bw-product-features .bw-feat-grp .bw-feat-h {
    font: 800 12px/1.3 'Open Sans', Arial, sans-serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--bw-blue);
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 0 solid var(--bw-line);
}

.elementor-widget-bw-product-features .bw-feat-grp .bw-feat-h::before {
    content: "";
    flex: 0 0 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--bw-orange);
}

/* ---- accent variants (Group Heading > Accent) ---- */

.elementor-widget-bw-product-features .bw-feat.rule-none .bw-feat-h::before,
.elementor-widget-bw-product-features .bw-feat.rule-underline .bw-feat-h::before {
    display: none;
}

/* Deliberately (0,3,0) — the same weight as the control selectors Elementor
   generates, so the Rule Colour / Thickness / Offset controls still win on
   source order instead of being locked out by a heavier default. */
.elementor-widget-bw-product-features .rule-underline .bw-feat-h {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding-bottom: 12px;
    border-bottom-width: 1px;
    border-bottom-color: var(--bw-orange);
}

.elementor-widget-bw-product-features .rule-underline.rule-full .bw-feat-h {
    width: 100%;
}

.elementor-widget-bw-product-features .bw-feat-grp ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elementor-widget-bw-product-features .bw-feat-grp li {
    position: relative;
    padding: 0 0 11px 26px;
    font: 400 14.5px/1.65 'Open Sans', Arial, sans-serif;
    color: var(--bw-body);
}

.elementor-widget-bw-product-features .bw-feat-grp li:last-child {
    padding-bottom: 0;
}

.elementor-widget-bw-product-features .bw-feat-grp li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bw-blue);
}

.elementor-widget-bw-product-features .bw-feat-grp li a {
    color: var(--bw-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 94, 184, .3);
}

.elementor-widget-bw-product-features .bw-feat-grp li a:hover {
    border-bottom-color: var(--bw-blue);
}

/* nested sub-lists keep their nesting but read quieter */
.elementor-widget-bw-product-features .bw-feat-grp li ul {
    margin: 9px 0 0;
}

.elementor-widget-bw-product-features .bw-feat-grp li li {
    font-size: 13.5px;
    padding-bottom: 6px;
}

.elementor-widget-bw-product-features .bw-feat-grp li li::before {
    background: none;
    border: 1.5px solid var(--bw-mute);
    width: 5px;
    height: 5px;
}

/* ---- aside ---- */
.elementor-widget-bw-product-features .bw-feat-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.elementor-widget-bw-product-features .bw-feat-aside.is-sticky {
    position: sticky;
    top: 96px;
}

/* "Match the main column": the aside holds .bw-feat-grp blocks, exactly like
   .bw-feat-main, so it only needs the same vertical rhythm. Everything else
   is already covered by the shared group rules above. */
.elementor-widget-bw-product-features .bw-feat-aside.is-plain {
    display: flex;
    flex-direction: column;
    gap: 34px;
    min-width: 0;
}

.elementor-widget-bw-product-features .bw-aside-card {
    background: var(--bw-soft);
    border: 1px solid var(--bw-line);
    border-radius: 16px;
    padding: 24px 24px 26px;
}

/* styled by class, not tag — see .bw-feat-h above */
.elementor-widget-bw-product-features .bw-aside-card .bw-aside-h {
    font: 800 11px/1.3 'Open Sans', Arial, sans-serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--bw-ink);
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--bw-line);
}

.elementor-widget-bw-product-features .bw-aside-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elementor-widget-bw-product-features .bw-aside-card li {
    position: relative;
    padding: 0 0 10px 20px;
    font: 400 13.5px/1.6 'Open Sans', Arial, sans-serif;
    color: var(--bw-body);
}

.elementor-widget-bw-product-features .bw-aside-card li:last-child {
    padding-bottom: 0;
}

.elementor-widget-bw-product-features .bw-aside-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bw-orange);
}

.elementor-widget-bw-product-features .bw-aside-card li a {
    color: var(--bw-blue);
    text-decoration: none;
}

.elementor-widget-bw-product-features .bw-aside-card li ul {
    margin: 8px 0 0;
}

.elementor-widget-bw-product-features .bw-aside-card li li {
    font-size: 12.5px;
}

.elementor-widget-bw-product-features .bw-aside-card li li::before {
    background: var(--bw-mute);
    width: 4px;
    height: 4px;
}

/* ========================================================= SPEC GRID  ==== */
.elementor-widget-bw-spec-grid .bw-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--bw-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.elementor-widget-bw-spec-grid .bw-spec {
    padding: 18px 22px;
    border-right: 1px solid var(--bw-line);
    border-bottom: 1px solid var(--bw-line);
}

.elementor-widget-bw-spec-grid .bw-spec-k {
    font: 800 10px/1.35 'Open Sans', Arial, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bw-mute);
    margin-bottom: 7px;
}

.elementor-widget-bw-spec-grid .bw-spec-v {
    font: 700 14.5px/1.45 'Open Sans', Arial, sans-serif;
    color: var(--bw-ink);
}

/* Secondary lines and bullet lists carry the SAME weight, size and colour as
   the primary value. Previously these were 400/12.5px body against the
   value's 700/14.5px ink, which made a spec with a metric conversion look
   less important than one without — the emphasis tracked the data's shape,
   not its meaning. The Style Secondary Separately switch restores a
   distinction for anyone who wants one. */
.elementor-widget-bw-spec-grid .bw-spec-sub {
    font: 700 14.5px/1.45 'Open Sans', Arial, sans-serif;
    color: var(--bw-ink);
    margin-top: 2px;
}

.elementor-widget-bw-spec-grid .bw-spec-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.elementor-widget-bw-spec-grid .bw-spec-list li {
    position: relative;
    padding: 3px 0 3px 14px;
    font: 700 14.5px/1.45 'Open Sans', Arial, sans-serif;
    color: var(--bw-ink);
}

/* currentColor so the bullet tracks whatever colour the value text is,
   without needing its own control to be set */
.elementor-widget-bw-spec-grid .bw-spec-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}

/* ======================================================= SPEC MATRIX  ==== */
.elementor-widget-bw-spec-matrix .bw-matrix-card {
    border: 1px solid var(--bw-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.elementor-widget-bw-spec-matrix .bw-matrix-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.elementor-widget-bw-spec-matrix table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* Astra ships `table, td, th { border: 1px solid var(--ast-border-color) }`,
   which draws a full grid over the matrix and an outline that doubles up with
   .bw-matrix-card's own border. This widget only wants horizontal hairlines,
   so the border is cleared here and the rules below draw back the one side
   that is wanted.
   Deliberately kept at (0,1,1) — lower than the `thead th` / `tbody td` rules
   that follow — so those win on specificity and this reset cannot undo them
   regardless of source order. */
.elementor-widget-bw-spec-matrix table,
.elementor-widget-bw-spec-matrix th,
.elementor-widget-bw-spec-matrix td {
    border: 0;
}

.elementor-widget-bw-spec-matrix thead th {
    background: #fff;
    color: var(--bw-ink);
    font: 800 10.5px/1.35 'Open Sans', Arial, sans-serif;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 15px 16px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--bw-line);
}

/* the shared unit band ("GPH (mL/min)") reads as a caption, not a heading */
.elementor-widget-bw-spec-matrix thead tr + tr th {
    background: var(--bw-soft);
    color: var(--bw-mute);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    padding: 9px 16px;
}

.elementor-widget-bw-spec-matrix tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bw-line);
    font: 400 13px/1.5 'Open Sans', Arial, sans-serif;
    white-space: nowrap;
    text-align: center;
    color: var(--bw-body);
}

.elementor-widget-bw-spec-matrix tbody tr:last-child td {
    border-bottom: none;
}

.elementor-widget-bw-spec-matrix tbody tr:nth-child(even) td {
    background: #fcfdfe;
}

.elementor-widget-bw-spec-matrix tbody tr:hover td {
    background: var(--bw-blue-tint);
}

/* first column pinned while the pressure columns scroll */
.elementor-widget-bw-spec-matrix .is-sticky thead th:first-child,
.elementor-widget-bw-spec-matrix .is-sticky tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    background: #fff;
    box-shadow: 1px 0 0 var(--bw-line);
}

.elementor-widget-bw-spec-matrix .is-sticky thead th:first-child {
    background: var(--bw-soft);
    z-index: 3;
}

.elementor-widget-bw-spec-matrix .is-sticky tbody tr:nth-child(even) td:first-child {
    background: #fcfdfe;
}

.elementor-widget-bw-spec-matrix .is-sticky tbody tr:hover td:first-child {
    background: var(--bw-blue-tint);
}

.elementor-widget-bw-spec-matrix tbody td:first-child {
    font-weight: 700;
    color: var(--bw-ink);
    font-size: 12.5px;
    letter-spacing: .3px;
}

/* ========================================================== responsive ==== */
@media (max-width: 1024px) {
    /* Fallback only. The Columns control stacks tablet and mobile by default
       and its CSS outranks this (Elementor writes .elementor-element-{id}
       .bw-feat, which beats this on source order at equal specificity). This
       rule covers a widget saved before that control existed. */
    .elementor-widget-bw-product-features .bw-feat {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    /* A sticky column is meaningless once it is full width and stacked below
       the content it was pinned beside. */
    .elementor-widget-bw-product-features .bw-feat-aside.is-sticky {
        position: static;
    }
    .elementor-widget-bw-spec-grid .bw-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .elementor-widget-bw-spec-grid .bw-specs {
        grid-template-columns: 1fr;
    }
    .elementor-widget-bw-spec-grid .bw-spec {
        border-right: none;
    }
}

/* NOTE: there is deliberately no mobile font-size override for
   .bw-feat-grp li any more. A media-query rule at the same specificity beats
   Elementor's non-media desktop control, so setting a size in Typography
   would silently have no effect on phones. Mobile sizing now belongs to the
   widget's own responsive Typography control. */
