/* Catalogus 2.0 · own product search: suggestions under the header search bar and the notes on the results page.
 * House style (docs/site.md): magenta #c7017f and turquoise #00a3a6, turquoise text #00888a/#007f82, dark green #294338
 * for text, line #e3e9e1, field #f6f7f4. The catalogue cards' price flag (white on a magenta wedge, an earlier price
 * struck through on a turquoise wedge) and band colours (Op = op magenta, Direct leverbaar #007f82, Op bestelling dark).
 * The panel hangs from <body> with position:fixed, above the fixed header (#tgxHeader, z-index 999990). */

/* The search field without FiboSearch's stylesheet: as wide as its box, which that stylesheet did (the header sizes only
 * the wrapper), no native clear button, a small spinner while looking up. */
.dgwt-wcas-search-wrapp input[type=search].dgwt-wcas-search-input{width:100%;margin:0;-webkit-appearance:none;appearance:none}
.dgwt-wcas-search-wrapp input[type=search].dgwt-wcas-search-input::-webkit-search-cancel-button,
.dgwt-wcas-search-wrapp input[type=search].dgwt-wcas-search-input::-webkit-search-decoration{display:none;-webkit-appearance:none}
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp{position:relative}
/* The hint text in the field ("Zoek een tegel, stijl of merk…"). FiboSearch still prints the placeholder colour of its
   settings (turquoise at 30% opacity) after its stylesheet is gone, and that rule outranked the header's: 1.4:1 contrast,
   almost invisible (Kevin, 30-10-2026). A full, darker grey: #5c6b63 on the field's #f6f7f4 is 5.2:1, on white 5.6:1.
   Two rules: a browser that does not know one of the two pseudo-elements would drop a shared rule. */
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder{color:#5c6b63!important;opacity:1!important}
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::-webkit-input-placeholder{color:#5c6b63!important;opacity:1!important}
.dgwt-wcas-search-wrapp .dgwt-wcas-preloader{position:absolute;right:16px;top:50%;width:16px;height:16px;margin-top:-8px;border:2px solid transparent;border-radius:50%;pointer-events:none;box-sizing:border-box}
.dgwt-wcas-search-wrapp.to-sr-busy .dgwt-wcas-preloader{border-color:#dde4dd;border-top-color:#00a3a6;animation:to-sr-spin .7s linear infinite}
@keyframes to-sr-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.dgwt-wcas-search-wrapp.to-sr-busy .dgwt-wcas-preloader{animation-duration:2.4s}}

/* ---- The panel (phone first: a compact list) ---- */
.to-sr{position:fixed;z-index:1000000;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #e3e9e1;border-top:3px solid #00a3a6;border-radius:12px;box-shadow:0 20px 50px rgba(41,67,56,.22);padding:12px 12px 0;font:400 14px/1.35 Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;color:#294338;text-align:left}
.to-sr[hidden]{display:none}
.to-sr *{box-sizing:border-box}
.to-sr a{color:inherit;text-decoration:none}
.to-sr [role=option]{outline:none;border-radius:10px;transition:background-color .12s,box-shadow .12s}
.to-sr [role=option][aria-selected=true]{box-shadow:0 0 0 2px #00a3a6}
.to-sr__note{margin:0 0 8px;padding:8px 10px;border-left:3px solid #00a3a6;border-radius:4px;background:#f2f9f9;font-size:12.5px;color:#294338}
.to-sr__note b{font-weight:600}

/* Brands, styles, colours, categories: chips with a magenta word for what they are. */
.to-sr__terms{display:flex;gap:8px;margin:0 -12px 6px;padding:2px 12px 8px;overflow-x:auto;scrollbar-width:none}
.to-sr__terms::-webkit-scrollbar{display:none}
.to-sr__term{flex:none;display:inline-flex;align-items:baseline;gap:6px;min-height:38px;padding:9px 14px;border:1px solid #e3e9e1;border-radius:999px;background:#fff;line-height:1.2;white-space:nowrap}
.to-sr__term:hover{border-color:#c7017f;background:#fff4f9}
.to-sr__term small{font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#c7017f}
.to-sr__term b{font-weight:600;color:#294338}
.to-sr__term i{font-style:normal;font-size:12px;color:#66786f}

/* Heading with the house style's magenta slanted stripe (streep-kop). */
.to-sr__head{display:flex;align-items:center;gap:8px;margin:4px 0 8px;font-size:15px;font-weight:700;color:#00888a}
.to-sr__head::before{content:"";width:5px;height:18px;background:#c7017f;transform:skewX(-18deg);border-radius:1px}

/* A tile: photo, then name, brand and size, the band. */
.to-sr__grid{display:grid;gap:4px}
.to-sr__item{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:12px;align-items:center;padding:6px}
.to-sr__item:hover{background:#f6f7f4}
.to-sr__photo{display:contents}
.to-sr__photo img{grid-column:1;grid-row:1/4;width:72px;height:72px;object-fit:cover;border-radius:8px;background:#f6f7f4}
.to-sr__text{grid-column:2;grid-row:1/3;min-width:0;align-self:end}
.to-sr__name{display:block;font-size:14px;font-weight:600;line-height:1.3;color:#294338;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.to-sr__meta{display:block;margin-top:2px;font-size:12px;color:#66786f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.to-sr__kind{display:inline-flex;align-items:center;gap:5px;margin-top:4px;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#007f82}
.to-sr__kind::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.to-sr__kind--outlet{color:#c7017f}
.to-sr__kind--order{color:#294338}
.to-sr__kind--soldout{color:#66786f}
/* On the list the flag is a price line; on the cards it sits on the photo. */
.to-sr__flag{grid-column:2;grid-row:3;align-self:start;display:flex;align-items:baseline;gap:8px;margin-top:3px}
.to-sr__now{font-size:14px;font-weight:700;color:#c7017f;white-space:nowrap}
.to-sr__now small{margin-left:1px;font-size:11px;font-weight:600}
.to-sr__was{font-size:12px;color:#66786f;white-space:nowrap}

/* All results: a magenta button, as the site's other calls to action. */
.to-sr__foot{position:sticky;bottom:0;margin:8px -12px 0;padding:10px 12px 12px;background:linear-gradient(180deg,rgba(255,255,255,.88),#fff 30%)}
.to-sr__all{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:12px 18px;border-radius:8px;background:#c7017f;color:#fff!important;font-weight:600}
.to-sr__all:hover{background:#a90069}
.to-sr__all[aria-selected=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px #00a3a6}
.to-sr__all::after{content:"→";font-weight:600}
.to-sr__count{font-weight:500;opacity:.85}

/* Nothing found. */
.to-sr__empty{padding:4px 2px 14px}
.to-sr__empty p{margin:0 0 10px}
.to-sr__empty .to-sr__terms{margin-bottom:6px}
.to-sr__empty-title{font-size:16px;font-weight:700;color:#294338}
.to-sr__empty-title b{color:#c7017f}
.to-sr__help a{color:#00888a!important;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.to-sr-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* ---- Wide screens: a panel wider than the field, the tiles as cards with the price flag on the photo ---- */
.to-sr--wide{padding:18px 20px 0}
.to-sr--wide .to-sr__terms{flex-wrap:wrap;overflow:visible;margin:0 0 8px;padding:0}
.to-sr--wide .to-sr__foot{margin:12px -20px 0;padding:12px 20px 16px;border-top:1px solid #eef2ed;display:flex;justify-content:flex-end;background:#fff}
.to-sr--wide .to-sr__all{min-height:44px;padding:11px 22px}
.to-sr--wide .to-sr__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px}
.to-sr--wide .to-sr__item{display:flex;flex-direction:column;align-items:stretch;padding:0 0 6px}
.to-sr--wide .to-sr__item:hover{background:none}
.to-sr--wide .to-sr__photo{display:block;position:relative;overflow:hidden;border-radius:10px;background:#f6f7f4;aspect-ratio:4/3;box-shadow:0 0 0 1px #e3e9e1}
.to-sr--wide .to-sr__photo img{display:block;width:100%;height:100%;border-radius:0;transition:transform .25s ease}
.to-sr--wide .to-sr__item:hover .to-sr__photo img{transform:scale(1.04)}
.to-sr--wide .to-sr__item:hover .to-sr__name{color:#00888a}
.to-sr--wide .to-sr__text{align-self:stretch;padding:8px 2px 0}
.to-sr--wide .to-sr__name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13.5px}
.to-sr--wide .to-sr__flag{position:absolute;left:0;top:10px;flex-direction:column;align-items:flex-start;gap:0;margin:0}
.to-sr--wide .to-sr__now{padding:5px 16px 5px 9px;background:#c7017f;color:#fff;font-size:13.5px;clip-path:polygon(0 0,100% 0,calc(100% - 9px) 100%,0 100%)}
.to-sr--wide .to-sr__was{padding:2px 14px 2px 9px;background:#00a3a6;color:#294338;font-size:11px;font-weight:600;clip-path:polygon(0 0,100% 0,calc(100% - 7px) 100%,0 100%)}
@media (prefers-reduced-motion:reduce){.to-sr--wide .to-sr__photo img{transition:none}}
@media (max-width:1000px){.to-sr--wide .to-sr__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Results page: what the search did, and a way on when nothing was found. */
.to-sr-note{margin:0 0 16px;padding:10px 14px;border-left:3px solid #00a3a6;border-radius:4px;background:#f2f9f9;color:#294338;font-size:14px}
.to-sr-note p{margin:0}
.to-sr-note p+p{margin-top:4px}
.to-sr-empty{margin:8px 0 24px;padding:22px 24px;border:1px solid #e3e9e1;border-top:3px solid #00a3a6;border-radius:12px;background:#fff;color:#294338}
.to-sr-empty p{margin:0 0 12px}
.to-sr-empty__title{font-size:18px;font-weight:700}
.to-sr-empty__title b{color:#c7017f}
.to-sr-empty__links{display:flex;flex-wrap:wrap;gap:8px}
.to-sr-empty__links a{display:inline-flex;align-items:center;min-height:42px;padding:9px 16px;border:1px solid #e3e9e1;border-radius:999px;background:#fff;color:#294338;text-decoration:none;font-weight:600}
.to-sr-empty__links a:hover{border-color:#c7017f;background:#fff4f9}
.to-sr-empty a{color:#00888a}
