/* StickDecor search panel 2027 (mu-plugins/sd-search27.php). Hebrew site only.
   Desktop: a panel under the search bar. Phone: the search takes the whole screen, with a full-width field. */

.sr27 { position: absolute; top: calc(100% + 8px); left: var(--sr27-x, 0); width: var(--sr27-w, 100%); z-index: 1200; box-sizing: border-box; background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; box-shadow: 0 18px 48px rgba(15, 15, 16, .16); color: #0F0F10; text-align: start; direction: rtl; font-size: 15px; line-height: 1.45; }
.sr27[hidden] { display: none; }
.sr27 *, .sr27 *::before, .sr27 *::after { box-sizing: border-box; }
.sr27__in { max-height: min(74vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 18px; }
.sr27 [hidden] { display: none !important; }
.sr27 a { text-decoration: none; color: inherit; }
.sr27 a:focus-visible, .sr27 button:focus-visible { outline: 2px solid #256E8E; outline-offset: 2px; }

.sr27__h { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #6B7280; letter-spacing: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sr27__clear { border: 0; background: none; padding: 2px 0; font: inherit; font-weight: 500; color: #256E8E; cursor: pointer; }
.sr27__default { display: flex; flex-direction: column; gap: 18px; }

/* chips: popular and recent searches */
.sr27__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr27__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #E5E7EB; border-radius: 999px; background: #F8FAFB; font-size: 14.5px; font-weight: 500; color: #0F0F10; cursor: pointer; transition: border-color .15s, background-color .15s; }
.sr27__chip:hover { border-color: #256E8E; background: #EDF5F8; }
.sr27__recent .sr27__chip::before { content: ""; width: 14px; height: 14px; margin-inline-end: 7px; flex: none; background: currentColor; opacity: .45; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* category tiles */
.sr27__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sr27__tile { display: flex; flex-direction: column; gap: 7px; border-radius: 12px; }
.sr27__tile-img { display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #EEF1F3; }
.sr27__tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.sr27__tile:hover .sr27__tile-img img { transform: scale(1.04); }
.sr27__tile-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.sr27__tile:hover .sr27__tile-name { color: #256E8E; }

/* live results */
.sr27__results { display: flex; flex-direction: column; gap: 14px; }
.sr27__note { margin: 0; padding: 9px 12px; border-radius: 10px; background: #EDF5F8; font-size: 14.5px; }
.sr27__note b { font-weight: 700; }
.sr27__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.sr27__cols.has-cats { grid-template-columns: 230px minmax(0, 1fr); }
.sr27__catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sr27__cat { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.sr27__cat:hover { background: #F3F6F8; }
.sr27__cat-img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #EEF1F3; }
.sr27__cat-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr27__cat-t { min-width: 0; display: flex; flex-direction: column; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.sr27__cat-t small { font-size: 12.5px; font-weight: 400; color: #6B7280; }
.sr27__prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.sr27__p { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; min-width: 0; }
.sr27__p:hover { background: #F3F6F8; }
.sr27__p-img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #EEF1F3; }
.sr27__p-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr27__p-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr27__p-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr27__p-name mark, .sr27__sku mark, .sr27__cat-t mark { background: none; color: #256E8E; font-weight: 800; padding: 0; }
.sr27__p-price { font-size: 13.5px; color: #4B5563; }
.sr27__sku { font-size: 12.5px; color: #6B7280; }
.sr27__sku bdi { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #0F0F10; }
.sr27__all { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; background: #256E8E; color: #fff !important; font-size: 15px; font-weight: 700; }
.sr27__all:hover { background: #1F5E7A; }

/* nothing found */
.sr27__empty { order: -1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid #E5E7EB; }
.sr27__empty-t { margin: 0; font-size: 17px; font-weight: 700; }
.sr27__empty-s { margin: 0; color: #4B5563; }
.sr27__wa { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin-top: 4px; border-radius: 999px; background: #1FAF54; color: #fff !important; font-weight: 700; }
.sr27__loading { margin: 0; color: #6B7280; }

/* the two links the discovery feature adds (picture search on phones, "not sure what to look for") */
/* (the site's own CSS gives .search-dropdown__container a grid with !important, hence the !important here) */
.sr27 .sr27__extras { display: flex !important; grid-template-columns: none !important; flex-direction: column; align-items: stretch; gap: 8px; order: 9; width: 100%; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.sr27 .sr27__extras:empty { display: none !important; }
.sr27 .sr27__extras .sdd-search-door { order: 2; display: flex !important; align-items: center; gap: 8px; width: 100% !important; max-width: none !important; height: auto !important; min-height: 44px; margin: 0 !important; padding: 9px 14px !important; box-sizing: border-box; border: 0 !important; border-radius: 12px !important; background: #F3F6F8 !important; color: #0F0F10 !important; font-size: 14.5px !important; font-weight: 500 !important; line-height: 1.4 !important; text-align: start !important; }
.sr27 .sr27__extras .sdd-search-door b { color: #256E8E; font-weight: 700; }
.sr27 .sr27__extras .sdd-cam-row { order: 1; display: none; }

/* phone: the search takes the whole screen */
.sr27-x { display: none; }
@media (max-width: 991.98px) {
	html.sr27-open, html.sr27-open body { overflow: hidden !important; }
	/* the header blurs what is behind it (backdrop-filter), and that traps position:fixed inside the header: switched off while the search is open */
	html.sr27-open #navWrap { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #fff !important; z-index: 100000 !important; transform: none !important; }
	html.sr27-open form.search { position: fixed !important; inset: 0 0 auto 0 !important; z-index: 100000 !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 10px 12px !important; background: #fff !important; display: flex !important; align-items: center; gap: 8px; border-bottom: 1px solid #E5E7EB; }
	html.sr27-open form.search .search__wrapper { flex: 1 1 auto; width: auto !important; max-width: none !important; min-width: 0; }
	html.sr27-open form.search .search__input { width: 100% !important; min-width: 0 !important; font-size: 16px !important; }
	html.sr27-open .sr27-x { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 44px; height: 44px; padding: 0 6px; border: 0; background: none; color: #256E8E; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
	html.sr27-open .sr27 { position: fixed; top: var(--sr27-top, 64px); right: 0; bottom: 0; left: 0; width: auto; border: 0; border-radius: 0; box-shadow: none; z-index: 99999; }
	html.sr27-open .sr27__in { max-height: none; height: 100%; padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px)); gap: 16px; }
	html.sr27-open .whatsapp-btn, html.sr27-open .back-to-top-btn { display: none !important; }
	.sr27__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sr27__cols, .sr27__cols.has-cats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.sr27__catlist { flex-direction: row; overflow-x: auto; gap: 8px; margin-inline: -14px; padding-inline: 14px; scrollbar-width: none; }
	.sr27__catlist::-webkit-scrollbar { display: none; }
	.sr27__cat { flex: 0 0 auto; padding: 5px 12px 5px 6px; border: 1px solid #E5E7EB; border-radius: 999px; background: #F8FAFB; }
	.sr27__cat-img { flex-basis: 34px; width: 34px; height: 34px; border-radius: 50%; }
	.sr27__cat-t { flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; }
	.sr27__col--cats .sr27__h { display: none; }
	.sr27__prods { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.sr27__p { padding: 8px 4px; }
	.sr27__all { position: sticky; bottom: 0; box-shadow: 0 -10px 16px 6px #fff; }
	.sr27 .sr27__extras .sdd-cam-row { display: flex !important; align-items: center; gap: 12px; width: 100% !important; margin: 0 !important; padding: 10px 14px !important; border: 1px solid #E5E7EB !important; border-radius: 12px !important; background: #fff !important; color: #0F0F10 !important; text-align: start !important; font: inherit; cursor: pointer; }
	.sr27 .sr27__extras .sdd-cam-row svg { flex: 0 0 24px; width: 24px; height: 24px; color: #256E8E; }
	.sr27 .sr27__extras .sdd-cam-row span { display: flex; flex-direction: column; min-width: 0; }
	.sr27 .sr27__extras .sdd-cam-row b { font-size: 14.5px; font-weight: 700; color: #0F0F10; }
	.sr27 .sr27__extras .sdd-cam-row small { font-size: 12.5px; color: #6B7280; }
	.sr27 .sr27__extras { order: 0; }
	/* while results show, the screen belongs to them: the two extra links come back with an empty field */
	.sr27[data-state="results"] .sr27__extras, .sr27[data-state="loading"] .sr27__extras { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .sr27__tile-img img, .sr27__chip { transition: none; } }
