/* CAVE 2026 — bundles page: finder entry, the finder dialog and the one-page recommendation (print layout included).
 * Loaded on the bundles page only. */

/* sub-section inside a bundle card (e.g. the site-office text under its own heading) */
.ucb-sub { font-size: 20px; font-weight: 700; color: var(--accent-2, #0B7666); margin: 22px 0 6px; line-height: 1.3; }

/* ---------- entry ---------- */
.cf-entry { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; max-width: 760px; margin: 28px auto 8px; padding: 18px 26px; border-radius: 22px; background: #E3F5F1; text-align: left; }
.cf-entry b { display: block; font-size: 20px; color: #16201C; }
.cf-entry span { display: block; font-size: 16px; color: #4B5752; margin-top: 2px; }
.cf-badge { position: absolute; top: -12px; left: 18px; background: #16201C; color: #fff !important; font-size: 13px !important; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin: 0 !important; }
.cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; padding: 12px 26px; border-radius: 999px; background: #0B7666; color: #fff; text-decoration: none; }
.cf-btn:hover { background: #086153; text-decoration: none; }
.cf-btn.ghost { background: #fff; color: #0B7666; box-shadow: inset 0 0 0 2px #0B7666; }
.cf-btn.ghost:hover { background: #E3F5F1; }

/* ---------- dialog ---------- */
html.cf-lock { overflow: hidden; }
.cf-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(22, 32, 28, .55); overflow-y: auto; padding: 4vh 16px; }
.cf-modal { position: relative; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.cf-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 10px; }
.cf-prog { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #0B7666; }
.cf-x { border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: #4B5752; padding: 0 6px; }
.cf-bar { height: 6px; background: #E3F5F1; }
.cf-bar i { display: block; height: 100%; background: #14AC94; transition: width .25s; }
.cf-form { padding: 22px 24px 26px; }
.cf-form h2 { font-size: 26px; line-height: 1.3; margin: 0 0 6px; color: #16201C; }
.cf-hint { color: #4B5752; font-size: 16px; margin: 0 0 18px; }
.cf-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 8px 0; border: 2px solid #DCE4E0; border-radius: 16px; cursor: pointer; }
.cf-opt:hover { border-color: #14AC94; }
.cf-opt input { margin-top: 5px; accent-color: #0B7666; width: 18px; height: 18px; flex: none; }
.cf-opt b { display: block; font-size: 17px; }
.cf-opt small, .cf-sub small { display: block; font-size: 14px; color: #6B7C76; margin-top: 2px; font-weight: 500; }
.cf-opt:has(input:checked) { border-color: #0B7666; background: #F1FAF7; }
.cf-sub { margin: 4px 0 10px 30px; padding: 10px 14px; background: #F3F6F5; border-radius: 14px; }
.cf-sub[hidden] { display: none; }
.cf-sub label { display: inline-flex; align-items: center; gap: 8px; margin: 4px 14px 4px 0; font-size: 16px; }
.cf-sub input[type=number] { width: 92px; font: inherit; padding: 8px 10px; border: 2px solid #DCE4E0; border-radius: 10px; }
.cf-sub .cf-opt { background: #fff; }
.cf-gap { height: 12px; }
.cf-q { font-weight: 700; margin: 8px 0 0; }
.cf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; border: 2px solid #DCE4E0; border-radius: 18px; cursor: pointer; }
.cf-card:has(input:checked) { border-color: #0B7666; background: #F1FAF7; }
.cf-card input { position: absolute; opacity: 0; pointer-events: none; }
.cf-card small { color: #6B7C76; font-size: 13px; }
.cf-err { color: #B3261E; font-weight: 700; margin: 12px 0 0; }
.cf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }

/* ---------- recommendation ---------- */
.cf-name { display: block; margin-top: 6px; }
.cf-name b { display: block; font-size: 16px; margin-bottom: 6px; }
.cf-name input { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid #DCE4E0; border-radius: 12px; }
.cf-name small { display: block; font-size: 13px; color: #6B7C76; margin-top: 4px; }
.cf-report-wrap { max-width: 880px; background: transparent; box-shadow: none; overflow: visible; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 0 0 14px; position: relative; }
.cf-actions .cf-x { position: absolute; right: -4px; top: -8px; color: #fff; }
.cf-report { position: relative; background: #fff; border-radius: 20px; padding: 26px 34px 22px; color: #16201C; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.cf-report > *:not(.cf-wm) { position: relative; z-index: 1; }
.cf-wm { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cf-wm img { width: 70%; opacity: .045; transform: rotate(-12deg); }
.cf-rh { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 4px solid #14AC94; flex-wrap: wrap; }
.cf-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: #0B7666; }
.cf-brand img { height: 24px; width: auto; }
.cf-rtitle { font-size: 17px; font-weight: 700; margin-left: auto; }
.cf-rmeta { font-size: 12px; color: #6B7C76; letter-spacing: .04em; }
.cf-concl { font-size: 26px; line-height: 1.25; margin: 6px 0 4px; color: #0B7666; }
.cf-spec { margin: 0 0 8px; font-size: 14px; color: #4B5752; }
.cf-grid { display: block; }
.cf-report h3 { font-size: 15px; margin: 14px 0 6px; padding-left: 10px; border-left: 5px solid #14AC94; line-height: 1.2; }
.cf-report h4 { font-size: 14px; margin: 0 0 4px; color: #0B7666; }
.cf-report ul { margin: 0; padding: 0; list-style: none; }
.cf-hero { display: block; max-width: 300px; width: 70%; margin: 4px auto 0; border-radius: 12px; }
.cf-sku, .cf-sum { width: 100%; border-collapse: collapse; font-size: 13px; }
.cf-sku th, .cf-sku td, .cf-sum th, .cf-sum td { text-align: left; padding: 5px 7px; border-bottom: 1px solid #DCE4E0; vertical-align: top; line-height: 1.4; }
.cf-sku thead th { background: #E3F5F1; color: #0B7666; font-size: 12px; }
.cf-sku .n { text-align: center; width: 44px; font-weight: 900; color: #0B7666; }
.cf-sku td b { font-size: 14px; }
.cf-sum th { width: 27%; color: #4B5752; font-weight: 700; }
.cf-alt { margin: 6px 0 0; font-size: 13px; color: #4B5752; }
.cf-notes li { font-size: 13px; line-height: 1.5; margin: 3px 0; padding-left: 15px; position: relative; }
.cf-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #14AC94; }
.cf-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
.cf-card2 { background: #F3F6F5; border-radius: 12px; padding: 10px 12px; }
.cf-card2 li { font-size: 12.5px; line-height: 1.5; margin: 3px 0; }
.cf-p { font-size: 13px; line-height: 1.6; margin: 3px 0; }
.cf-more { color: #4B5752; font-size: 12.5px; }
.cf-rf { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 10px 14px; background: #F3F6F5; border-top: 3px solid #14AC94; border-radius: 0 0 12px 12px; }
.cf-rf-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cf-url { font-weight: 700; font-size: 14px; color: #16201C; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-chips i { font-style: normal; font-size: 12px; color: #0B7666; background: #fff; border: 1px solid #BFE3DB; border-radius: 999px; padding: 2px 10px; }
.cf-qrbox { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.cf-qrbox small { font-size: 11px; color: #4B5752; white-space: nowrap; }
.cf-qr { width: 62px; height: 62px; background: #fff; padding: 3px; border-radius: 6px; flex: none; }
.cf-qr svg { display: block; width: 100%; height: 100%; }
.cf-fine { margin: 6px 2px 0; font-size: 11.5px; color: #6B7C76; }
@media (min-width: 720px) {
  .cf-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4px 26px; }
  .cf-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cf-entry { text-align: center; }
  .cf-two { grid-template-columns: 1fr; }
  .cf-report { padding: 20px 16px; }
  .cf-rtitle { margin-left: 0; }
  .cf-rf { flex-direction: column; align-items: flex-start; }
}

/* ---------- print: only the recommendation, one A4 page, light on ink ---------- */
@page { size: A4; margin: 8mm; }
@media print {
  body > *:not(.cf-overlay) { display: none !important; }
  html, body { background: #fff !important; }
  .cf-overlay { position: static !important; inset: auto !important; background: #fff !important; overflow: visible !important; padding: 0 !important; }
  .cf-report-wrap { max-width: none; margin: 0; }
  .cf-noprint { display: none !important; }
  .cf-report { box-shadow: none; border-radius: 0; padding: 0; font-size: 11.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cf-grid { display: grid !important; grid-template-columns: 1.05fr 1fr; gap: 0 20px; }
  .cf-cards { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .cf-card2 { background: #fff; border: 1px solid #C9DAD4; padding: 8px 10px; }
  .cf-card2 li, .cf-notes li, .cf-sku, .cf-sum, .cf-p, .cf-alt { font-size: 11.5px !important; line-height: 1.45; }
  .cf-sku td b { font-size: 12.5px; }
  .cf-concl { font-size: 23px; margin: 4px 0 2px; }
  .cf-spec { font-size: 12.5px; margin-bottom: 4px; }
  .cf-for { margin-top: 8px; }
  .cf-report h3 { font-size: 13.5px; margin: 11px 0 4px; }
  .cf-hero { max-width: 220px; margin: 2px auto 0; }
  .cf-rf { background: #fff; border: 1px solid #C9DAD4; border-top: 3px solid #14AC94; margin-top: 12px; padding: 8px 12px; }
  .cf-chips i { background: #fff; font-size: 10.5px; }
  .cf-qr { width: 58px; height: 58px; padding: 0; }
  .cf-fine { font-size: 10px; }
  .cf-brand { font-size: 21px; }
  .cf-brand img { height: 26px; }
  .cf-report > * { break-inside: avoid; }
}

/* keep the model names on one line in the SKU table */
.cf-sku td:first-child, .cf-sku th:first-child { white-space: nowrap; }
.cf-sku td:last-child { min-width: 7.5em; }

/* v3: more room sizes in two columns, links under the special-needs options, further reading */
.cf-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.cf-picks .cf-opt { margin: 5px 0; padding: 9px 11px; }
.cf-picks .cf-opt b { font-size: 15px; }
.cf-link { margin: -2px 0 8px 44px; font-size: 14px; }
.cf-link a { color: #0B7666; font-weight: 700; }
.cf-u { color: #6B7C76; font-size: 12px; margin-left: 4px; word-break: break-all; }
.cf-links a { color: #0B7666; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .cf-picks { grid-template-columns: 1fr; } }
@media print { .cf-u { color: #4B5752; } .cf-links a { color: #16201C; } }

/* print: a little tighter, so even the longest sheet (every extra, two languages) stays on one page */
@media print {
  .cf-report { font-size: 11px; }
  .cf-card2 li, .cf-notes li, .cf-sku, .cf-sum, .cf-p, .cf-alt { font-size: 11px !important; line-height: 1.4; }
  .cf-sku td b { font-size: 12px; }
  .cf-concl { font-size: 22px; }
  .cf-report h3 { margin: 9px 0 3px; }
  .cf-hero { max-width: 190px; }
  .cf-card2 { padding: 6px 9px; }
  .cf-rf { margin-top: 9px; padding: 6px 12px; }
  .cf-fine { margin-top: 4px; }
}

/* print, English: the text is longer than the Chinese, so it is set a little smaller */
@media print {
  html[lang^="en"] .cf-report { font-size: 10.2px; }
  html[lang^="en"] .cf-card2 li, html[lang^="en"] .cf-notes li, html[lang^="en"] .cf-sku, html[lang^="en"] .cf-sum, html[lang^="en"] .cf-p, html[lang^="en"] .cf-alt { font-size: 10.2px !important; line-height: 1.35; }
  html[lang^="en"] .cf-sell li, html[lang^="en"] .cf-chips i { font-size: 10px; }
  html[lang^="en"] .cf-hero { max-width: 150px; }
  html[lang^="en"] .cf-concl { font-size: 20px; }
  html[lang^="en"] .cf-report h3 { font-size: 12.5px; margin: 7px 0 3px; }
  html[lang^="en"] .cf-card2 { padding: 5px 8px; }
}

/* v4: the sheet's top is the customer's own title; the company information lives in the footer */
.cf-rh { align-items: flex-end; justify-content: space-between; }
.cf-rh-main { min-width: 0; }
.cf-rlabel { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #0B7666; }
.cf-rtitle2 { font-size: 24px; line-height: 1.25; margin: 2px 0 0; color: #16201C; word-break: break-word; }
.cf-rmeta { text-align: right; line-height: 1.5; margin-left: auto; }
@media print { .cf-rtitle2 { font-size: 20px; } }

/* ---- v6: project wizard, handover box, slim sheet ---- */
.cf-grp { border: 0; padding: 0; margin: 0 0 14px; }
.cf-grp legend { font-weight: 700; font-size: 16px; margin: 0 0 6px; padding: 0; color: #16201C; }
.cf-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: 0; }
.cf-inline input[type=number] { width: 92px; font: inherit; padding: 8px 10px; border: 2px solid #DCE4E0; border-radius: 10px; }
.cf-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.cf-form-grid .cf-name input, .cf-form-grid .cf-name select { width: 100%; }
.cf-name select, .cf-name textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid #DCE4E0; border-radius: 12px; background: #fff; box-sizing: border-box; }
.cf-name textarea { resize: vertical; }
@media (max-width: 560px) { .cf-form-grid { grid-template-columns: 1fr; } }
.cf-proj { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0; padding: 12px 16px; border: 2px solid #0B7666; border-radius: 14px; background: #F0F8F6; }
.cf-proj b { flex: 1 1 100%; color: #0B7666; }
.cf-proj span { flex: 1 1 260px; font-size: 14px; color: #3B4A44; }
.cf-slim .cf-hero { display: none; }
/* long unbroken text (a pasted note, a case number) must wrap, never stretch the columns */
.cf-sum td, .cf-sum th, .cf-sku td, .cf-notes li, .cf-rtitle2, .cf-p { overflow-wrap: anywhere; }
@media print { .cf-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important; } }

/* ---- v7: product cards with thumbnails ---- */
.cf-pcards { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.cf-pcard { display: flex; align-items: center; gap: 12px; flex: 1 1 250px; min-width: 0; padding: 8px 12px; border: 1px solid #C9DAD4; border-radius: 12px; background: #fff; }
.cf-pcard img { width: 96px; height: 72px; object-fit: contain; flex: none; }
.cf-pcard b { font-size: 19px; color: #16201C; }
.cf-pcard .q { font-size: 17px; font-weight: 700; color: #0B7666; }
.cf-pcard small { display: block; font-size: 12px; color: #0B7666; font-weight: 700; letter-spacing: .04em; margin-top: 1px; }
.cf-pcard p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: #4B5752; overflow-wrap: anywhere; }
.cf-pcards.cf-small .cf-pcard { padding: 6px 10px; }
.cf-pcards.cf-small .cf-pcard img { width: 72px; height: 54px; }
.cf-pcards.cf-small .cf-pcard b { font-size: 16px; }
@media print {
  .cf-pcards { gap: 8px; margin: 4px 0 2px; }
  .cf-pcard { padding: 5px 9px; gap: 9px; border-radius: 8px; }
  .cf-pcard img { width: 70px; height: 52px; }
  .cf-pcard b { font-size: 15px; }
  .cf-pcard p { font-size: 10.5px; margin-top: 1px; }
  .cf-pcards.cf-small .cf-pcard img { width: 56px; height: 42px; }
  .cf-pcard { break-inside: avoid; }
}

/* ---- the alternative bundle, as prominent as the main one ---- */
.cf-alt-card .cf-pcard { flex: 1 1 100%; }
.cf-alt-card .cf-pcard img { width: 120px; height: 90px; }
.cf-alt-card .cf-pcard b { font-size: 18px; }
.cf-alt-card .cf-pcard p { font-size: 14px; }
@media print { .cf-alt-card .cf-pcard img { width: 86px; height: 64px; } .cf-alt-card .cf-pcard b { font-size: 14px; } .cf-alt-card .cf-pcard p { font-size: 10.5px; } }

.cf-bigger { margin: 6px 4px 12px; font-size: 15px; color: #4B5752; }
.cf-bigger a { color: #0B7666; font-weight: 700; }

.cf-modal:focus { outline: none; }
