/* =========================================================================
 * SolomaxHub search boxes, one look everywhere (11.6.0-solomax.63.40.26)
 *
 * Linked after solomax.css (sx_brand_layer_link) so it has the last word.
 * Every box: soft warm border, gentle shadow, text starting right after the
 * icon (about 44px from the edge), vertically centred, 16px on phones (no
 * iOS zoom), muted placeholder, orange focus ring, icon muted -> orange on
 * focus. Plus the rotating "Search <suggestion>" layer (sx-search-rotate.js).
 * Logical properties only, so the Arabic (right-to-left) pages read it too.
 * ========================================================================= */

:root {
	--sx-sb-bg: #FFFFFF;
	--sx-sb-line: #EADBCD;
	--sx-sb-line-hover: #E2CBB6;
	--sx-sb-ink: #1C1410;
	--sx-sb-ph: #7C6F65;
	--sx-sb-word: #4A3E36;
	--sx-sb-icon: #9A8C80;
	--sx-sb-focus: #FD7702;
	--sx-sb-ring: rgba(253, 119, 2, 0.16);
	--sx-sb-shadow: 0 1px 2px rgba(28, 20, 16, 0.04), 0 6px 18px rgba(28, 20, 16, 0.06);
	--sx-sb-inset: inset 0 1px 2px rgba(28, 20, 16, 0.03);
}
html[data-sx-theme="dark"] {
	--sx-sb-bg: #1F1916;
	--sx-sb-line: rgba(255, 236, 220, 0.14);
	--sx-sb-line-hover: rgba(255, 236, 220, 0.22);
	--sx-sb-ink: #F3EDE6;
	--sx-sb-ph: #B3A69A;
	--sx-sb-word: #E4D9CF;
	--sx-sb-icon: #9C8F84;
	--sx-sb-focus: #FF9A4D;
	--sx-sb-ring: rgba(255, 154, 77, 0.22);
	--sx-sb-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 22px rgba(0, 0, 0, 0.22);
	--sx-sb-inset: inset 0 1px 0 rgba(255, 236, 220, 0.04);
}

/* ---------- Rotating suggestion layer ---------- */
.sx-rot {
	display: flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	color: var(--sx-rot-c, var(--sx-sb-ph));
	line-height: 1.25;
	pointer-events: none;
	text-align: start;
}
.sx-rot--over { position: absolute; z-index: 1; margin: 0; padding: 0; transition: opacity .15s ease; }
.sx-rot.is-hidden { opacity: 0; visibility: hidden; }
.sx-rot__pre { flex: 0 0 auto; margin-inline-end: 0.3em; }
.sx-rot__win { position: relative; display: inline-flex; flex: 0 1 auto; min-width: 0; overflow: hidden; padding-block: 0.12em; }
.sx-rot__w {
	display: inline-block;
	color: var(--sx-sb-word);
	font-weight: 600;
	white-space: nowrap;
	transform: translateY(0);
	opacity: 1;
	transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .34s ease;
	will-change: transform, opacity;
}
.sx-rot__w.is-out { transform: translateY(-100%); opacity: 0; transition-duration: .26s; }
.sx-rot__w.is-pre { transform: translateY(100%); opacity: 0; transition: none; }
/* Some containers style every span (labels, sheets): keep the layer's own spans inline and unstyled. */
.sx-rot .sx-rot__pre, .sx-rot .sx-rot__win, .sx-rot .sx-rot__w { position: relative; float: none; margin-block: 0; padding-inline: 0; background: none; border: 0; line-height: 1.25; }
.sx-rot .sx-rot__w { display: inline-block; position: static; }
input.sx-rot-on::placeholder { color: transparent !important; opacity: 0 !important; }
input.sx-rot-on::-webkit-input-placeholder { color: transparent !important; }
@media (prefers-reduced-motion: reduce) {
	.sx-rot__w { transition: none; }
}

/* Typed text and placeholders: one line, start-aligned, never centred. */
html body .bm-hero-search input[type="search"],
html body #globalSearchModal .nt-global-search-v6 input,
html body .sx-sr-form input[type="search"],
html body .sx-ps__field input,
html body .sx-brands__search input,
html body .nt-service-picker__search-wrap input {
	text-align: start !important;
	text-indent: 0 !important;
	text-overflow: ellipsis;
	white-space: nowrap;
	caret-color: var(--sx-sb-focus);
	color: var(--sx-sb-ink) !important;
	-webkit-text-fill-color: currentColor;
}
html body .bm-hero-search input[type="search"]::placeholder,
html body #globalSearchModal .nt-global-search-v6 input::placeholder,
html body .sx-sr-form input[type="search"]::placeholder,
html body .sx-ps__field input::placeholder,
html body .sx-brands__search input::placeholder,
html body .nt-service-picker__search-wrap input::placeholder {
	color: var(--sx-sb-ph);
	opacity: 1;
	text-overflow: ellipsis;
}

/* ---------- 1. Homepage hero (pill) ---------- */
html body .bm-hero-search {
	padding-block: 0 !important;
	padding-inline: 14px 6px !important;
	background: var(--sx-sb-bg) !important;
	border: 1.5px solid var(--sx-sb-line) !important;
	box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset) !important;
}
html body .bm-hero-search:hover { border-color: var(--sx-sb-line-hover) !important; box-shadow: 0 2px 4px rgba(28, 20, 16, 0.04), 0 10px 26px rgba(28, 20, 16, 0.08) !important; }
html body .bm-hero-search:focus-within { border-color: var(--sx-sb-focus) !important; box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow) !important; }
html body .bm-hero-search__icon { width: 20px !important; height: 20px !important; margin: 0 !important; margin-inline-end: 10px !important; color: var(--sx-sb-icon) !important; transition: color .15s ease; }
html body .bm-hero-search:focus-within .bm-hero-search__icon { color: var(--sx-sb-focus) !important; }
html body .bm-hero-search input[type="search"] { font-size: 1rem !important; font-weight: 500; padding-inline-end: 8px !important; }
html[data-sx-theme="dark"] body .bm-hero-search { background: var(--sx-sb-bg) !important; border: 1.5px solid var(--sx-sb-line) !important; box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset) !important; }
html[data-sx-theme="dark"] body .bm-hero-search:focus-within { border-color: var(--sx-sb-focus) !important; box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow) !important; }
@media (max-width: 480px) {
	html body .bm-hero-search { padding-inline: 14px 6px !important; }
	html body .bm-hero-search input[type="search"] { font-size: 16px !important; }
}

/* ---------- 2. Phone side menu: the search launcher (a button that opens the search) ---------- */
html body .sx-drawer__search {
	justify-content: flex-start !important;
	gap: 10px !important;
	height: 48px !important;
	padding-block: 0 !important;
	padding-inline: 14px 16px !important;
	background: var(--sx-sb-bg) !important;
	border: 1.5px solid var(--sx-sb-line) !important;
	box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset) !important;
	color: var(--sx-sb-ph) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-align: start !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
html body .sx-drawer__search svg { width: 20px; height: 20px; color: var(--sx-sb-icon) !important; transition: color .15s ease; }
html body .sx-drawer__search:hover,
html body .sx-drawer__search:focus-visible { border-color: var(--sx-sb-focus) !important; outline: none !important; box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow) !important; }
html body .sx-drawer__search:hover svg,
html body .sx-drawer__search:focus-visible svg { color: var(--sx-sb-focus) !important; }
html body .sx-drawer__search > span { flex: 1 1 auto; min-width: 0; text-align: start; }
html[data-sx-theme="dark"] .sx-drawer__search { background: var(--sx-sb-bg) !important; border: 1.5px solid var(--sx-sb-line) !important; }

/* ---------- 3. Global search window (every page) ---------- */
html body #globalSearchModal .nt-global-search-v6 {
	gap: 10px !important;
	padding-inline: 14px 8px !important;
	border: 1.5px solid var(--sx-sb-line) !important;
	border-radius: 16px !important;
	background: var(--sx-sb-bg) !important;
	box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset) !important;
}
html body #globalSearchModal .nt-global-search-v6:focus-within { border-color: var(--sx-sb-focus) !important; box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow) !important; }
html body #globalSearchModal .nt-global-search-v6 > .nt-icon-svg { width: 20px; height: 20px; color: var(--sx-sb-icon) !important; }
html body #globalSearchModal .nt-global-search-v6:focus-within > .nt-icon-svg { color: var(--sx-sb-focus) !important; }
html body #globalSearchModal .nt-global-search-v6 input,
html body #globalSearchModal .nt-global-search-v6 input:focus,
html body #globalSearchModal .nt-global-search-v6 input:focus-visible { padding: 0 !important; font-size: 1rem !important; font-weight: 500; }
@media (max-width: 760px) {
	/* Phones: icon + field on one row, the Search button full width under it (the field keeps all the width). */
	html body #globalSearchModal .nt-global-search-v6 { grid-template-columns: 20px minmax(0, 1fr) !important; column-gap: 10px !important; row-gap: 8px !important; padding: 6px 8px 8px 14px !important; padding-inline: 14px 8px !important; }
	html body #globalSearchModal .nt-global-search-v6 input,
	html body #globalSearchModal .nt-global-search-v6 input:focus { font-size: 16px !important; height: 46px !important; }
}

/* ---------- 4. Search results page ---------- */
html body .sx-sr-form {
	gap: 10px;
	padding-inline: 14px 6px;
	border: 1.5px solid var(--sx-sb-line);
	border-radius: 16px;
	background: var(--sx-sb-bg);
	box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset);
}
html body .sx-sr-form:focus-within { border-color: var(--sx-sb-focus); box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow); }
html body .sx-sr-form > .sx-ico-search { width: 20px; height: 20px; color: var(--sx-sb-icon); transition: color .15s ease; }
html body .sx-sr-form:focus-within > .sx-ico-search { color: var(--sx-sb-focus); }
html body .sx-sr-form input[type="search"] { font-size: 1rem; font-weight: 500; }
@media (max-width: 760px) { html body .sx-sr-form input[type="search"] { font-size: 16px; } }

/* search.php (no-results / site search): the same field with its icon inside. */
html body .sx-ps { display: flex; flex-wrap: wrap; gap: 10px; max-width: 600px; margin-top: 24px; }
html body .sx-ps__field {
	position: relative; display: flex; align-items: center; flex: 1 1 240px; min-width: 0; height: 52px;
	padding-inline: 14px 12px; gap: 10px; box-sizing: border-box;
	border: 1.5px solid var(--sx-sb-line); border-radius: 16px; background: var(--sx-sb-bg);
	box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset); transition: border-color .15s ease, box-shadow .15s ease;
}
html body .sx-ps__field:focus-within { border-color: var(--sx-sb-focus); box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow); }
html body .sx-ps__field > svg { flex: 0 0 auto; color: var(--sx-sb-icon); transition: color .15s ease; }
html body .sx-ps__field:focus-within > svg { color: var(--sx-sb-focus); }
html body .sx-ps__field input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 1rem; font-weight: 500; }
html body .sx-ps .bm-btn { min-height: 52px; }
@media (max-width: 760px) { html body .sx-ps__field input { font-size: 16px; } }

/* ---------- 5. Shop "All brands" sheet ---------- */
html body .sx-brands__search svg { inset-inline-start: 14px; width: 20px; height: 20px; color: var(--sx-sb-icon) !important; transition: color .15s ease; z-index: 2; }
html body .sx-brands__search:focus-within svg { color: var(--sx-sb-focus) !important; }
html body .sx-brands__search input,
html[data-sx-theme="dark"] body .sx-brands__search input {
	height: 50px; padding-inline: 44px 14px; border: 1.5px solid var(--sx-sb-line); border-radius: 14px;
	background: var(--sx-sb-bg); font-size: 16px; font-weight: 500;
	box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset); transition: border-color .15s ease, box-shadow .15s ease;
}
html body .sx-brands__search input:focus,
html[data-sx-theme="dark"] body .sx-brands__search input:focus { outline: none; border-color: var(--sx-sb-focus); box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow); }
html[data-sx-theme="dark"] body .sx-brands__search input::placeholder { color: var(--sx-sb-ph); }

/* ---------- 6. "All services" picker: icon inside the field ---------- */
html body .nt-service-picker__search-wrap { position: sticky; gap: 0 !important; }
html body .nt-service-picker__search-wrap .sx-ico-search {
	position: absolute; inset-inline-start: 26px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
	color: var(--sx-sb-icon) !important; pointer-events: none; z-index: 2; transition: color .15s ease;
}
html body .nt-service-picker__search-wrap:focus-within .sx-ico-search { color: var(--sx-sb-focus) !important; }
html body .nt-service-picker__search-wrap input,
html[data-sx-theme="dark"] body .nt-service-picker__search-wrap input {
	height: 48px; padding-block: 0; padding-inline: 44px 14px; border: 1.5px solid var(--sx-sb-line); border-radius: 14px;
	background: var(--sx-sb-bg); font-size: 15px; font-weight: 500;
	box-shadow: var(--sx-sb-shadow), var(--sx-sb-inset); transition: border-color .15s ease, box-shadow .15s ease;
}
html body .nt-service-picker__search-wrap input:focus,
html[data-sx-theme="dark"] body .nt-service-picker__search-wrap input:focus { outline: none; border-color: var(--sx-sb-focus); box-shadow: 0 0 0 4px var(--sx-sb-ring), var(--sx-sb-shadow); }
@media (max-width: 760px) {
	html body .nt-service-picker__search-wrap input,
	html[data-sx-theme="dark"] body .nt-service-picker__search-wrap input { font-size: 16px; }
}

/* .63.40.48 (owner, 16 Oct 2026: "that X is too small"): a big round clear button in every search box. */
html body input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none !important; appearance: none !important;
	width: 30px; height: 30px; margin: 0 2px 0 8px; flex-shrink: 0; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23EDE6DF'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%232B211B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
	opacity: 1; pointer-events: auto;
}
html[data-sx-theme="dark"] body input[type="search"]::-webkit-search-cancel-button { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%233A322C'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23F4EEE8' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
html body.acp-ux .ux-top .ux-topsearch input::-webkit-search-cancel-button { display: none; }

/* .63.40.68 (owner, 18 Oct 2026): the rotating suggestion must read as a hint, not typed text: lighter, not bold. */
.sx-rot__w { color: var(--sx-sb-ph) !important; font-weight: 400 !important; opacity: .72; }
.sx-rot__pre { opacity: .72; }
