/* Decorative copy sits over the empty input without changing the search box layout or its value. */
.global-search-hint {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: var(--global-search-hint-width, 0px);
    height: var(--global-search-hint-height, 0px);
    padding: .55rem .8rem;
    overflow: hidden;
    color: #757575;
    font-size: .9rem;
    line-height: 1.5;
    pointer-events: none;
    user-select: none;
}
.global-search-hint[hidden] { display: none; }
.global-search-hint-prefix { flex: none; margin-inline-end: .25em; }
.global-search-hint-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-hint.is-changing .global-search-hint-name { animation: global-search-hint-swap 420ms ease both; }
.search-box.is-hint-visible > .search-input::placeholder { color: transparent; }
.search-input:focus ~ .global-search-hint,
.search-input:not(:placeholder-shown) ~ .global-search-hint { display: none; }
@keyframes global-search-hint-swap {
    0%,100% { opacity: 1; transform: translateY(0); }
    45% { opacity: 0; transform: translateY(-4px); }
    55% { opacity: 0; transform: translateY(4px); }
}
@media(max-width:768px) {
    .global-search-hint { font-size: 16px; }
    .header-main .global-search-hint { padding: .4rem .8rem; }
}
@media(prefers-reduced-motion:reduce) { .global-search-hint.is-changing .global-search-hint-name { animation: none; } }
html[data-flash-motion="paused"] .global-search-hint.is-changing .global-search-hint-name { animation: none; }

/* Store input retains its own compact typography; the measured overlay never reaches the separate submit button. */
.store-page .store-search-box .global-search-hint { font-size: .86rem; padding: .7rem .8rem; }
@media(max-width:640px) { .store-page .store-search-box .global-search-hint { font-size: 16px; } }
