/**
 * bnsizefinder - finder page and product page block.
 * Uses the theme tokens (--bn-*) from birdnet.css; fallbacks keep it readable without them.
 * All text >= 1rem, controls >= 56px, nothing hover-only.
 */

/* ---------- finder page ---------- */
.bn-sf { font-size: 1rem; color: var(--bn-ink, #1B1B18); }
.bn-sf p { margin: 0 0 0.6em; }
.bn-sf-lead { font-size: 1.1rem; color: var(--bn-muted, #46443D); max-width: 40em; margin-bottom: 1.4rem !important; }
.bn-sf-h2 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 0.6em; }
.bn-sf-muted { color: var(--bn-muted, #46443D); font-size: 1rem; }
.bn-sf-top { align-items: start; margin-bottom: 2rem; }

.bn-sf-form { display: flex; flex-direction: column; gap: 1.3rem; }
.bn-sf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.bn-sf-label { font-weight: 700; font-size: 1.15rem; }
.bn-sf-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.bn-sf-input.bn-num { width: 5em; min-height: 56px; font-size: 1.3rem; }
.bn-sf-step {
  min-width: 56px; min-height: 56px; padding: 0 0.4em;
  font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1;
  border: 2px solid var(--bn-green, #1F5F3A); border-radius: var(--bn-radius, 10px);
  background: #fff; color: var(--bn-green, #1F5F3A); cursor: pointer;
}
.bn-sf-step:active { background: var(--bn-green-tint, #E6F0E8); }
.bn-sf-step[hidden] { display: none; }
.bn-sf-unit { font-size: 1.1rem; }
.bn-sf-submit { align-self: flex-start; font-size: 1.1rem; }
.bn-sf-error {
  border: 2px solid var(--bn-help, #8F360A); background: var(--bn-help-tint, #FFF2E3);
  border-radius: var(--bn-radius, 10px); padding: 0.8rem 1rem; font-weight: 700;
}
.bn-sf-error p:last-child { margin-bottom: 0; }

.bn-sf-measure { background: var(--bn-paper, #F5F3EC); border-radius: 14px; padding: 1.1rem 1.3rem; }
.bn-sf-figure { margin: 0.6rem 0 0; }
.bn-sf-figure svg { display: block; width: 100%; max-width: 320px; height: auto; }
.bn-sf-figure figcaption { margin-top: 0.4rem; }

.bn-sf-results { margin-bottom: 2rem; }
.bn-sf-results:focus { outline: none; }
.bn-sf-count { font-size: 1.05rem; }
.bn-sf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.bn-sf-result {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem;
  border: 2px solid var(--bn-edge, #6F6C63); border-radius: 14px; padding: 1rem 1.2rem; background: #fff;
}
.bn-sf-result--best { border: 3px solid var(--bn-green, #1F5F3A); background: var(--bn-green-tint, #E6F0E8); }
.bn-sf-result__info { flex: 1 1 18em; min-width: 0; }
.bn-sf-result__info p { margin: 0 0 0.25em; }
.bn-sf-best { color: var(--bn-green, #1F5F3A); font-weight: 700; font-size: 1.05rem; }
.bn-sf-result__size { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.2em; }
.bn-sf-result__details { font-weight: 700; }
.bn-sf-result__covers { color: var(--bn-muted, #46443D); }
.bn-sf-oos {
  display: inline-block; font-weight: 700; color: var(--bn-help, #8F360A);
  border: 2px solid var(--bn-help, #8F360A); background: var(--bn-help-tint, #FFF2E3);
  border-radius: 8px; padding: 0.1em 0.5em; font-size: 1rem;
}
.bn-sf-result__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.bn-sf-price { font-size: 1.5rem; font-weight: 700; margin: 0 !important; white-space: nowrap; }
.bn-sf-price__tax { font-size: 1rem; font-weight: 400; color: var(--bn-muted, #46443D); }
.bn-sf-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bn-sf-add { margin: 0; }
.bn-sf-add__btn { min-width: 9em; }
.bn-sf-none p:last-child { margin-bottom: 0; }

.bn-sf-help { margin-top: 1rem; }
.bn-sf-help__title { font-size: 1.1rem; }
.bn-sf-help__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.bn-sf [hidden] { display: none !important; }

/* ---------- product page block ---------- */
.bn-sf-product { display: flex; flex-direction: column; gap: 1.2rem; margin: 1.2rem 0; font-size: 1rem; color: var(--bn-ink, #1B1B18); }
.bn-sf-product p { margin: 0 0 0.5em; }
.bn-sf-covers {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--bn-green-tint, #E6F0E8); border: 2px solid var(--bn-green, #1F5F3A);
  border-radius: 12px; padding: 0.8rem 1rem;
}
.bn-sf-covers p { margin: 0; }
.bn-sf-covers__icon { flex: none; color: var(--bn-green, #1F5F3A); margin-top: 0.1em; }

.bn-sf-delivery {
  border: 2px solid var(--bn-soft, #D9D5CA); border-radius: 14px; padding: 1rem 1.1rem; margin: 0; min-width: 0;
}
.bn-sf-delivery__title { font-size: 1.25rem; font-weight: 700; padding: 0 0.3em; margin: 0; width: auto; border: 0; }
.bn-sf-delivery__intro { color: var(--bn-muted, #46443D); }
.bn-sf-regions { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.8rem; }
.bn-sf-region {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; min-height: 56px; margin: 0;
  padding: 0.5rem 0.9rem; border: 2px solid var(--bn-edge, #6F6C63); border-radius: var(--bn-radius, 10px);
  background: #fff; cursor: pointer; font-weight: 400; text-align: left;
}
.bn-sf-region__radio { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--bn-green, #1F5F3A); }
.bn-sf-region__text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.bn-sf-region__name { font-weight: 700; }
.bn-sf-region__delay { color: var(--bn-muted, #46443D); font-size: 1rem; }
.bn-sf-region__cost { flex: none; font-weight: 700; text-align: right; }
.bn-sf-region.is-checked,
.bn-sf-region:has(input:checked) { border: 3px solid var(--bn-green, #1F5F3A); background: var(--bn-green-tint, #E6F0E8); }
.bn-sf-region:focus-within { outline: 3px solid var(--bn-ink, #1B1B18); outline-offset: 2px; }
.bn-sf-ship-summary { font-size: 1.1rem; font-weight: 700; margin: 0 !important; }

.bn-sf-others__title { font-size: 1.25rem; margin: 0 0 0.4em; }
.bn-sf-table-wrap { overflow-x: auto; margin-bottom: 0.8rem; }
.bn-sf-table { font-size: 1rem; }
.bn-sf-table td a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.bn-sf-oos--small { margin-left: 0.3em; }
.bn-sf-others__finder { margin: 0 !important; }

@media (max-width: 575px) {
  .bn-sf-result__buy, .bn-sf-actions { width: 100%; }
  .bn-sf-actions .bn-btn, .bn-sf-add, .bn-sf-add__btn { flex: 1 1 auto; width: 100%; }
  .bn-sf-region { flex-wrap: wrap; }
  .bn-sf-region__cost { margin-left: 2.3rem; text-align: left; }
}

@media print {
  .bn-sf-form, .bn-sf-step, .bn-sf-actions, .bn-sf-help__actions { display: none !important; }
  .bn-sf-result { break-inside: avoid; }
}

/* long result lists: first 6 shown, the rest behind "Show all N nets" (JS adds .is-short) */
.bn-sf-list.is-short .bn-sf-result--more { display: none; }
.bn-sf-more { margin: 1.5rem 0 0; text-align: center; }
.bn-sf-more__btn { min-width: 16rem; }
@media print {
  .bn-sf-list.is-short .bn-sf-result--more { display: flex; }
  .bn-sf-more { display: none; }
}

/* compact delivery picker: two columns, area + price on one line; the delivery time stays for screen readers */
.bn-sf-regions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
.bn-sf-region { flex-wrap: nowrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; min-height: 0; }
.bn-sf-region__text { flex-direction: row; }
.bn-sf-region__name { font-size: 0.95rem; line-height: 1.25; }
.bn-sf-region__delay { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bn-sf-region__cost { margin-left: auto; text-align: right; font-size: 0.95rem; }
.bn-sf-region__radio { width: 1.25rem; height: 1.25rem; }
@media (max-width: 380px) { .bn-sf-regions { grid-template-columns: minmax(0, 1fr); } }
html[data-bn-scale="150"] .bn-sf-regions { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 767px) { .bn-sf-region__cost { margin-left: auto; text-align: right; } }
.bn-sf-region__cost { white-space: nowrap; }
.bn-sf-region { padding: 0.45rem 0.8rem; }

/* ---------- print: one A4 page with only the useful list ---------- */
.bn-print-sheet { display: none; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { background: #fff !important; font-size: 10.5pt !important; }
  #header, #footer, .breadcrumb, .page-header, #notifications, #left-column, #right-column,
  .bn-topbar, .bn-phone-mobile, iframe, .egcr-badge, [class*="egcr"], #_desktop_top_menu { display: none !important; }
  #wrapper, #content-wrapper, #main, .container { padding: 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; }
  .bn-sf > *:not(.bn-print-sheet) { display: none !important; }
  .bn-print-sheet { display: block !important; color: #000; }
  .bn-print-sheet p { margin: 0; }
  .bn-print-sheet__head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2pt solid #000; padding-bottom: 3mm; margin-bottom: 4mm; }
  .bn-print-sheet__shop { font-size: 16pt; font-weight: 700; }
  .bn-print-sheet__site { font-size: 10pt; }
  .bn-print-sheet__call { font-size: 13pt; }
  .bn-print-sheet__title { font-size: 15pt; margin: 0 0 1.5mm; }
  .bn-print-sheet__sub { font-size: 9.5pt; margin-bottom: 3mm !important; }
  .bn-print-sheet__table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .bn-print-sheet__table th { text-align: left; border-bottom: 1.5pt solid #000; padding: 1.5mm 2mm; }
  .bn-print-sheet__table td { border-bottom: 0.5pt solid #999; padding: 1.6mm 2mm; vertical-align: top; }
  .bn-print-sheet__table td:nth-child(2), .bn-print-sheet__table td:nth-child(3), .bn-print-sheet__table td:nth-child(4) { white-space: nowrap; }
  .bn-print-sheet__table tr.is-best td { font-weight: 700; }
  .bn-print-sheet__table tr { break-inside: avoid; }
  .bn-print-sheet__foot { margin-top: 4mm !important; font-size: 9.5pt; }
}
/* phones: other-sizes table fits the screen */
@media (max-width: 575px) {
  .bn-sf-table-wrap { overflow-x: auto; max-width: 100%; }
  .bn-sf-table { font-size: 0.9rem; width: 100%; }
  .bn-sf-table th, .bn-sf-table td { padding: 0.4rem 0.35rem; }
  .bn-sf-table .bn-sf-oos--small { display: block; padding: 0.1rem 0.3rem; font-size: 0.75rem; }
}
@media (max-width: 420px) { .bn-sf-table th:nth-child(2), .bn-sf-table td:nth-child(2) { display: none; } }
.bn-sf-fits { margin: 0 0 1.5rem; padding: 1rem 1.2rem; background: var(--bn-green-tint, #E6F0E8); border-radius: 14px; }
.bn-sf-fits ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.bn-sf-fits li { margin: 0 0 0.3rem; }
