/* MODAMIX search rescue (README §5.114). Scoped to #product-search.mmx-sr-on and .mmx-sr. */
.mmx-sr { --sr-line: rgba(128,128,128,.35); --sr-soft: rgba(128,128,128,.12); margin: 8px 0 24px; }

/* compact search form: one row (field + button), no category list, no checkboxes */
#product-search.mmx-sr-on .search-criteria-title,
#product-search.mmx-sr-on .search-form select,
#product-search.mmx-sr-on .search-form .checkbox,
#product-search.mmx-sr-on > .row > #content > .buttons,
#product-search.mmx-sr-on #content > .buttons { display: none !important; }
#product-search.mmx-sr-on .search-form { margin: 0 0 16px; }
#product-search.mmx-sr-on .search-form .inputs { display: flex !important; gap: 8px; align-items: stretch; flex-wrap: nowrap; }
#product-search.mmx-sr-on .search-form .inputs input[name=search] { flex: 1 1 auto; min-width: 0; height: 46px; font-size: 16px; margin: 0 !important; border-radius: 10px; }
#product-search.mmx-sr-on .search-form .inputs #button-search { flex: 0 0 auto; height: 46px; margin: 0 !important; padding: 0 20px; border-radius: 10px; }
#product-search.mmx-sr-empty .search-products-title { display: none; }

.mmx-sr-none { font-size: 17px; font-weight: 600; margin: 4px 0 14px; }
.mmx-sr-sec { margin: 0 0 26px; }
.mmx-sr-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
.mmx-sr-sub { margin: 0 0 12px; opacity: .75; }
.mmx-sr-more { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the sold-out model: dimmed card (the theme's own «out of stock» ribbon stays) */
.mmx-sr-soldout .mmx-sr-grid .product-thumb .image { opacity: .6; }

/* waiting for the AI line */
.mmx-sr-ai { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--sr-soft); margin: 0 0 18px; font-size: 14px; }
.mmx-sr-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: mmx-sr-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes mmx-sr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mmx-sr-spin { animation: none; } }

/* categories */
.mmx-sr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mmx-sr-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 22px; border: 1px solid var(--sr-line); background: var(--sr-soft); text-decoration: none !important; }
.mmx-sr-chip small { opacity: .65; font-size: 12px; }

/* WhatsApp */
.mmx-sr-wa { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--sr-line); text-decoration: none !important; font-weight: 600; line-height: 1.5; }
.mmx-sr-wa-ico { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #25d366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.8 0-1.3.7-2 1-2.3.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.3.5-.4.4c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* product page block */
.mmx-sr-pp { margin: 28px 0; }
.mmx-sr-pp .mmx-sr-title { font-size: 18px; }

/* the theme's infinite scroll attaches to the first .main-products: its messages make no sense inside the rescue */
.mmx-sr .ias-noneleft, .mmx-sr .ias-trigger, .mmx-sr .ias-spinner { display: none !important; }
