/* Xtrme Price Finder: big, calm, friendly (SFM) */
.xpf { --xpf-red: #e32c22; --xpf-ink: #222; --xpf-soft: #f6f7f8; --xpf-line: #e3e5e8; max-width: 920px; margin: 0 auto; color: var(--xpf-ink); font-size: 16px; }
.xpf * { box-sizing: border-box; }
.xpf-search { background: #fff; border: 2px solid var(--xpf-line); border-radius: 14px; padding: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.xpf-search-row { display: flex; gap: 10px; }
.xpf-input { flex: 1; font-size: 18px; padding: 14px 16px; border: 2px solid #ccd; border-radius: 10px; min-width: 0; }
.xpf-input:focus { outline: none; border-color: var(--xpf-red); }
.xpf-go { background: var(--xpf-red); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; font-size: 17px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.xpf-go:hover { background: #c8231c; }
.xpf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xpf-chip { background: var(--xpf-soft); border: 1px solid var(--xpf-line); border-radius: 20px; padding: 7px 13px; font-size: 14px; cursor: pointer; color: #333; }
.xpf-chip:hover { border-color: var(--xpf-red); color: var(--xpf-red); }
.xpf-chip.small { padding: 4px 10px; font-size: 13px; margin: 2px 4px 2px 0; }
.xpf-msg:empty { display: none; }
.xpf-msg { margin-top: 12px; }
.xpf-info { background: #eef6fb; border: 1px solid #cfe5f3; color: #145a7a; border-radius: 10px; padding: 12px 14px; }
.xpf-also { font-size: 14px; color: #555; }
.xpf-divider { text-align: center; margin: 22px 0 12px; color: #888; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.xpf-step { margin-bottom: 18px; }
.xpf-step-title { font-weight: 700; font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.xpf-step-num { background: var(--xpf-red); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 28px; }
.xpf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.xpf-tiles.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.xpf-tile { background: #fff; border: 2px solid var(--xpf-line); border-radius: 12px; padding: 14px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 64px; font-size: 15px; color: #222; }
.xpf-tile:hover { border-color: #f0a9a5; }
.xpf-tile.on { border-color: var(--xpf-red); background: #fff6f5; box-shadow: 0 0 0 3px rgba(227,44,34,.12); }
.xpf-tile-name { font-weight: 700; }
.xpf-tile-from { font-size: 13px; color: #666; margin-top: auto; }
/* Category picture tiles: the image comes from the Command Center, the soft block
   is the fallback when a category has no picture set yet. */
.xpf-tile-img { display: block; width: 100%; height: 108px; object-fit: cover; border-radius: 8px; margin-bottom: 9px; background: var(--xpf-soft); }
.xpf-tile-img-none { background: linear-gradient(135deg, #f2f3f5, #e7e9ec); }
.xpf-tiles .xpf-tile { min-height: 92px; }
.xpf-tiles.small .xpf-tile { min-height: 76px; }
/* Give the finder some presence instead of white-on-white */
.xpf-search { background: linear-gradient(180deg, #fffaf9, #fff); border-color: #f0dbd9; box-shadow: 0 6px 22px rgba(227,44,34,.08); }
/* Empty containers were leaving a large gap before the price list */
.xpf-answer:empty, .xpf-compare:empty, .xpf-steps:empty { display: none; }
.xpf-intro { color: #555; margin: -6px 0 14px; }
.xpf-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; background: var(--xpf-soft); border-radius: 12px; padding: 16px; }
.xpf-field { display: flex; flex-direction: column; gap: 6px; }
.xpf-label { font-weight: 700; font-size: 14px; color: #444; }
.xpf-hint { font-size: 13px; color: #777; }
.xpf-opts select, .xpf-opts input[type=number] { font-size: 17px; padding: 11px 12px; border: 2px solid #ccd; border-radius: 9px; background: #fff; width: 100%; }
.xpf-wh { display: flex; align-items: center; gap: 8px; }
.xpf-wh input { width: 100% !important; }
.xpf-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.xpf-check input { width: 22px; height: 22px; }
.xpf-answer { scroll-margin-top: 110px; }
.xpf-card { background: #fff; border: 3px solid var(--xpf-red); border-radius: 16px; padding: 22px; margin: 6px 0 20px; box-shadow: 0 8px 26px rgba(227,44,34,.10); }
.xpf-card-cat { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #888; font-weight: 700; }
.xpf-card-title { margin: 4px 0 8px; font-size: 24px; }
.xpf-card-desc { color: #444; margin: 0 0 14px; }
.xpf-price { font-size: 40px; font-weight: 800; color: var(--xpf-red); line-height: 1.1; }
.xpf-from { font-size: 20px; font-weight: 700; color: #555; }
.xpf-each { color: #555; margin-top: 4px; }
.xpf-need { background: #fff8e1; border: 1px solid #ffe8a1; color: #7a5b00; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.xpf-lines { margin: 12px 0 0; padding-left: 20px; color: #444; }
.xpf-hint-box { margin-top: 12px; background: #eef9f0; border: 1px solid #cdebd4; color: #1d6b32; border-radius: 10px; padding: 10px 12px; }
.xpf-note { margin-top: 12px; background: var(--xpf-soft); border-radius: 10px; padding: 10px 12px; color: #444; }
.xpf-small { margin-top: 12px; font-size: 13px; color: #888; }
.xpf-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.xpf-btn { display: inline-block; border: 2px solid var(--xpf-red); color: var(--xpf-red); border-radius: 10px; padding: 11px 18px; font-weight: 700; text-decoration: none; }
.xpf-btn.primary { background: var(--xpf-red); color: #fff; }
.xpf-cmp-wrap h3 { font-size: 18px; margin: 0 0 10px; }
.xpf-cmp-list { display: flex; flex-direction: column; gap: 8px; }
.xpf-cmp { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "desc price"; gap: 2px 14px; text-align: left; background: #fff; border: 2px solid var(--xpf-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: #222; font-size: 15px; }
.xpf-cmp:hover { border-color: #f0a9a5; }
.xpf-cmp.on { border-color: var(--xpf-red); background: #fff6f5; cursor: default; }
.xpf-cmp-name { grid-area: name; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.xpf-cmp-cat { font-size: 12px; color: #888; }
.xpf-cmp-desc { grid-area: desc; font-size: 13px; color: #666; }
.xpf-cmp-price { grid-area: price; align-self: center; font-weight: 800; font-size: 18px; color: var(--xpf-red); }
.xpf-loading { color: #888; padding: 20px; text-align: center; }
/* plain price list (below the finder) */
/* Kept deliberately quiet and well below the finder, so the finder reads as the
   main way to get a price and this is clearly the browse-it-yourself fallback. */
.xpf-all { max-width: 920px; margin: 72px auto 0; padding-top: 34px; border-top: 1px solid var(--xpf-line, #e3e5e8); }
.xpf-all h2 { font-size: 21px; color: #555; margin: 0 0 6px; }
.xpf-all { max-width: 920px; margin: 52px auto 0; padding-top: 30px; border-top: 1px solid var(--xpf-line, #e3e5e8); }
/* The theme's paragraph size was making this louder than the heading above it */
.xpf-all p { font-size: 15px; line-height: 1.5; color: #666; margin: 0 0 12px; }.xpf-all-cat { border: 1px solid var(--xpf-line, #e3e5e8); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.xpf-all-cat summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 17px; }
.xpf-all-body { padding: 0 16px 14px; }
.xpf-all-body h3 { font-size: 16px; margin: 14px 0 4px; }
.xpf-all-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.xpf-all-table th, .xpf-all-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.xpf-all-table th { width: 40%; font-weight: 600; color: #444; }
.xpf-all-note { background: #f6f7f8; border-radius: 8px; padding: 8px 10px; }
@media (max-width: 600px) {
    .xpf-search-row { flex-direction: column; }
    .xpf-go { padding: 13px; }
    .xpf-price { font-size: 34px; }
    .xpf-card { padding: 18px; }
}
