/* Cart search tools: product finder (adds to cart) and local item filter (see components/makro-cart-tools.js). */
.mk-find { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 18px; color: #222; }
.mk-find-label { font-weight: 600; }
.mk-find-box, .mk-flt-box { position: relative; display: flex; align-items: center; gap: 10px; box-sizing: border-box; padding: 0 12px; border: 1px solid #9aacc6; border-radius: 8px; background: #fff; color: #444; }
.mk-find-box { height: 44px; }
.mk-flt-box { height: 40px; }
.mk-find-box:focus-within, .mk-flt-box:focus-within { border-color: var(--mk-blue, #005ae0); box-shadow: 0 0 0 1px var(--mk-blue, #005ae0); }
.mk-find-box input, .mk-flt-box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; color: #222; }
.mk-find-box input::placeholder, .mk-flt-box input::placeholder { color: #757575; }
.mk-flt-box input::-webkit-search-cancel-button { display: none; }
.mk-find-x, .mk-flt-x { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 99px; background: none; color: #666; font-size: 12px; cursor: pointer; }
.mk-find-x:hover, .mk-flt-x:hover { background: #f0f0f0; color: #222; }
.mk-find-msg { min-height: 18px; margin: 0; color: #136941; }
.mk-find-msg.err { color: #d6283a; }
.mk-find-empty { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f6f6f6; color: #444; }

.mk-find-list { position: absolute; z-index: 35; top: calc(100% - 24px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e0e4ec; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 20, 48, .16); max-height: min(60vh, 440px); overflow: auto; }
.mk-find-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 28px; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.mk-find-list li.on { background: var(--mk-sel-bg, #ddeafd); }
.mk-find-list img { width: 40px; height: 40px; object-fit: contain; background: #f3f3f3; border-radius: 6px; mix-blend-mode: darken; }
.mk-find-txt { display: flex; flex-direction: column; min-width: 0; }
.mk-find-txt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-find-txt small, .mk-find-price small { color: #666; font-size: 12px; line-height: 16px; }
.mk-find-txt em { font-style: normal; color: #136941; font-weight: 600; }
.mk-find-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; white-space: nowrap; }
.mk-find-add { width: 28px; height: 28px; border-radius: 99px; background: var(--mk-blue, #005ae0); color: #fff; display: grid; place-items: center; font-size: 18px; line-height: 1; font-weight: 400; }

.mk-flt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mk-flt-box { flex: 1 1 280px; max-width: 520px; }
.mk-flt-info { margin: 0; min-height: 18px; color: #444; font-size: 13px; }
mark { padding: 0 1px; border-radius: 2px; background: #fff0a0; color: inherit; }

.mk-find :focus-visible, .mk-flt :focus-visible { outline: 2px solid var(--mk-blue, #005ae0); outline-offset: 2px; }
.mk-find-box input:focus-visible, .mk-flt-box input:focus-visible { outline: 0; }
@media (max-width: 576px) {
  .mk-find-list li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .mk-find-add { display: none; }
  .mk-find-txt b { white-space: normal; }
}

/* ---- placement on the two cart layouts ---- */
.mk-cb-find { margin-bottom: 20px; }
.mk-cb-filter { margin: -2px 0 12px; }
.mk-cb-nomatch, .mk-nomatch { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 8px; background: #fff; }
.mk-cb-nomatch p, .mk-nomatch p { margin: 0; }
.mk-lines-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.mk-lines-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: #444; }
.mk-lines-head .mk-flt { flex: 1 1 320px; }
.mk-cartpage .mk-find { margin-bottom: 0; }
