/* Homepage "Compare PC hardware" builder */
.gwch {
    --gwch-blue: #037cff;
    --gwch-blue2: #6a1bff;
    --gwch-ink:  #142033;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    /* no overflow:hidden — the search results must spill over content below */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* gradient banner header — rounds its own top now the widget doesn't clip */
.gwch-head {
    position: relative;
    text-align: center;
    padding: 26px 22px 34px;
    color: #fff;
    border-radius: 17px 17px 0 0;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 45%),
        linear-gradient(120deg, var(--gwch-blue) 0%, var(--gwch-blue2) 100%);
}
.gwch-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.4px);
    background-size: 18px 18px;
    opacity: 0.5;
    pointer-events: none;
}
/* force white text + tight spacing (beats theme h2/p colour + line-height) */
.gwch-head .gwch-title { position: relative; margin: 0; color: #fff !important; font-size: 1.55rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.gwch-head .gwch-intro { position: relative; margin: 5px 0 0; color: rgba(255, 255, 255, 0.94) !important; font-size: 0.95rem; line-height: 1.3; }

/* tabs */
.gwch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: -20px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 16px;
    max-width: 640px;
}
.gwch-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e6e9f2;
    border-radius: 999px;
    background: #fff;
    color: #44506a;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.gwch-tab-ic { display: inline-flex; width: 18px; height: 18px; }
.gwch-tab-ic svg { width: 18px; height: 18px; }
.gwch-tab:hover { transform: translateY(-1px); color: var(--gwch-blue) !important; border-color: var(--gwch-blue); background: #eef5ff; }
.gwch-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--gwch-blue) 0%, var(--gwch-blue2) 100%);
    box-shadow: 0 8px 18px rgba(3, 124, 255, 0.35);
}
/* Hovering the already-selected tab keeps white text on the gradient — the
   generic :hover above would otherwise flip it to blue text on pale blue. */
.gwch-tab.is-active:hover {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(120deg, var(--gwch-blue) 0%, var(--gwch-blue2) 100%);
}

/* picker */
.gwch-panel { max-width: 520px; margin: 18px auto 0; padding: 0 22px 26px; }
.gwch-pickwrap { position: relative; }
.gwch-search {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 2px solid #e6e9f2;
    border-radius: 999px;
    font-size: 0.98rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gwch-search:focus { border-color: var(--gwch-blue); box-shadow: 0 4px 16px rgba(3, 124, 255, 0.16); }
.gwch-results {
    list-style: none;
    margin: 8px 0 0;
    padding: 5px;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    background: #fff;
    max-height: 260px;
    overflow: auto;
    position: absolute;
    z-index: 60; /* sits above any homepage content below the widget */
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}
.gwch-results li { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 10px; cursor: pointer; font-size: 0.92rem; color: var(--gwch-ink); }
.gwch-results li:hover { background: #eef5ff; color: var(--gwch-blue) !important; }
/* brand / cooler-type icon beside a name */
.gwch-ic { width: 24px; height: 16px; object-fit: contain; flex: 0 0 auto; }

/* chips */
.gwch-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 16px 0; min-height: 8px; }
.gwch-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px 8px 15px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(3,124,255,0.10), rgba(106,27,255,0.10));
    border: 1px solid rgba(3, 124, 255, 0.25);
    color: var(--gwch-ink);
    font-size: 0.9rem;
    font-weight: 700;
}
.gwch-chip-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 21px; height: 21px; padding: 0;
    border: 0; border-radius: 50%;
    background: rgba(3, 124, 255, 0.18);
    color: var(--gwch-blue);
    font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.gwch-chip-x:hover { background: var(--gwch-blue); color: #fff; }

/* compare button */
.gwch-go {
    display: block;
    margin: 6px auto 0;
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--gwch-blue) 0%, var(--gwch-blue2) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(3, 124, 255, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.gwch-go:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(3, 124, 255, 0.4); }
.gwch-go:disabled { background: #c8cfdb; box-shadow: none; cursor: default; }

/* compare landing */
.gwcb-compare-landing { width: 100%; }
.gwcb-compare-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 0 0 18px;
    font-size: 1.5rem;
    line-height: 1.2;
}
.gwcb-vs-item { display: inline-flex; align-items: center; gap: 9px; }
.gwcb-vs-ic { width: 30px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.gwcb-vs-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #037cff;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: lowercase;
}
.gwcb-compare-more { margin-top: 34px; }

/* live pricing under the heading — one card per product, side by side */
.gwcb-compare-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0 0 26px;
}
.gwcb-price-card {
    border: 1px solid #e0e4ef;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.gwcb-price-card-name {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #142033;
}
.gwcb-price-card-body > :first-child { margin-top: 0; }
.gwcb-price-card-body > :last-child { margin-bottom: 0; }

/* /compare/ tool — client-built specs comparison table */
.gwcb-specs-wrap { margin: 0 0 26px; overflow-x: auto; }
.gwcb-specs-title { margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; color: #142033; }
.gwcb-specs-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.gwcb-specs-table th, .gwcb-specs-table td { padding: 9px 12px; border-bottom: 1px solid #eef1f6; text-align: left; vertical-align: top; }
.gwcb-specs-table thead th { font-weight: 800; color: #142033; border-bottom: 2px solid #e0e4ef; }
.gwcb-specs-table .gwcb-spec-label, .gwcb-specs-table .gwcb-spec-label-col { color: #6b7280; font-weight: 600; white-space: nowrap; }
.gwcb-specs-table .gwcb-muted { color: #c0c6d0; }

/* centred review buttons (pill style); extras hidden behind "+ X more" */
.gwcb-reviews { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 10px; margin: 4px 0 24px; }
.gwcb-review-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e0e4ef;
    border-radius: 999px;
    background: #fff;
    color: #142033;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.gwcb-review-btn:hover { border-color: #037cff; color: #037cff !important; }
.gwcb-review-hidden { display: none; }
.gwcb-review-more {
    padding: 8px 16px;
    border: 1px dashed #037cff;
    border-radius: 999px;
    background: rgba(3, 124, 255, 0.06);
    color: #037cff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.gwcb-review-more:hover { background: rgba(3, 124, 255, 0.12); }

@media (max-width: 600px) {
    .gwch-title { font-size: 1.3rem; }
    .gwch-panel { padding: 0 14px 20px; }
    .gwch-tab { padding: 9px 13px; font-size: 0.85rem; }
}
