/* Portal search box (4-Oct-2026): the look Semantic UI's search module gave the navbar search and the
   ECN product search, recreated so Semantic can go. Behaviour is in js/portal-search.js.
   .gm-search          the box (input.prompt + the results list the script adds)
   .gm-search-input    optional wrapper giving the input a magnifier on the left (ECN lines) */

.gm-search { position: relative; font-size: 1em; }
.gm-search .prompt { border-radius: var(--gm-radius-pill); }
.gm-search > .prompt { margin: 0; outline: none; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; text-shadow: none; font-style: normal; font-weight: normal; line-height: 1.21428571em; padding: 0.67857143em 1em; font-size: 1em; background: #FFFFFF; border: 1px solid rgba(34, 36, 38, 0.15); color: rgba(0, 0, 0, 0.87); box-shadow: none; transition: background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease; }
.gm-search > .prompt:focus { border-color: rgba(34, 36, 38, 0.35); background: #FFFFFF; color: rgba(0, 0, 0, 0.95); }

.gm-search-input { position: relative; display: inline-flex; font-size: 1em; font-weight: normal; font-style: normal; color: rgba(0, 0, 0, 0.87); }
.gm-search-input > input { margin: 0; max-width: 100%; flex: 1 0 auto; outline: none; -webkit-tap-highlight-color: transparent; text-align: left; line-height: 1.21428571em; font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif; padding: 0.67857143em 1em 0.67857143em 2.67142857em; background: #FFFFFF; border: 1px solid rgba(34, 36, 38, 0.15); color: rgba(0, 0, 0, 0.87); box-shadow: none; transition: box-shadow 0.1s ease, border-color 0.1s ease; }
.gm-search-input > input:active { border-color: rgba(0, 0, 0, 0.3); background: #FAFAFA; }
.gm-search-input > input:focus { border-color: #85B7D9; background: #FFFFFF; color: rgba(0, 0, 0, 0.8); }
.gm-search-input > input::placeholder { color: rgba(191, 191, 191, 0.87); }
.gm-search-input > input:focus::placeholder { color: rgba(115, 115, 115, 0.87); }
.gm-search-input > .gm-search-icon { position: absolute; top: 0; left: 1px; width: 2.67142857em; height: 100%; margin: 0; font-size: 1em; line-height: 1; text-align: center; opacity: 0.5; pointer-events: none; transition: opacity 0.3s ease; }
.gm-search-input > input:focus ~ .gm-search-icon { opacity: 1; }
.gm-search-input > .gm-search-icon:before, .gm-search-input > .gm-search-icon:after { position: absolute; left: 0; top: 50%; width: 100%; margin-top: -0.5em; text-align: center; }

/* while a search is running the magnifier becomes a spinner */
.gm-search.loading .gm-search-icon:before, .gm-search.loading .gm-search-icon:after { content: ''; left: 50%; width: 1.28571429em; height: 1.28571429em; margin: -0.64285714em 0 0 -0.64285714em; border-radius: 50%; border: 0.2em solid rgba(0, 0, 0, 0.1); }
.gm-search.loading .gm-search-icon:after { border-color: #767676 transparent transparent; animation: gm-search-spin 0.6s linear infinite; }
@keyframes gm-search-spin { to { transform: rotate(360deg); } }

.gm-search-results { position: absolute; top: 100%; left: 0; z-index: 998; width: 18em; margin-top: 0.5em; white-space: normal; text-align: left; text-transform: none; background: #FFFFFF; border: 1px solid #D4D4D5; border-radius: var(--gm-radius-md); overflow: hidden; box-shadow: 0 2px 4px 0 rgba(34, 36, 38, 0.12), 0 2px 10px 0 rgba(34, 36, 38, 0.15); }   /* a menu: clips its rows to its corners */
.gm-search-results .result { display: block; overflow: hidden; cursor: pointer; font-size: 1em; padding: 0.85714286em 1.14285714em; color: rgba(0, 0, 0, 0.87); line-height: 1.33; border-bottom: 1px solid rgba(34, 36, 38, 0.1); }
.gm-search-results .result:last-child { border-bottom: none; }
.gm-search-results .result:hover { background: #F9FAFB; }
.gm-search-results .result.active { position: relative; background: #F3F4F5; }
.gm-search-results .result .title { margin: -0.14285714em 0 0; font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-weight: bold; font-size: 1em; color: rgba(0, 0, 0, 0.85); }
.gm-search-results .result .description { margin-top: 0; font-size: 0.92857143em; color: rgba(0, 0, 0, 0.4); }
.gm-search-results .result.active .description { color: rgba(0, 0, 0, 0.85); }
.gm-search-results .message { padding: 1em; }
.gm-search-results .message .header { font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: bold; color: rgba(0, 0, 0, 0.87); }
.gm-search-results .message .description { margin-top: 0.25rem; font-size: 1em; color: rgba(0, 0, 0, 0.87); }
@media (max-width: 767px) { .gm-search-results { max-width: calc(100vw - 2rem); } }
