/* Campo de busca do header do site publico (UI; resultado ligado ao marketplace no futuro). */
.app-site-header-search {
    position: relative;
    width: min(100%, 32rem);
    max-width: 32rem;
}

.app-site-header-search-wrap {
    width: min(100%, 38.4rem);
    max-width: 38.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.app-site-header-search__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 2.5rem 0.45rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--cs-text);
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--cs-text) 6%, transparent);
}

.app-site-header-search__input::placeholder {
    color: var(--cs-text-muted);
}

.app-site-header-search__input:focus {
    outline: none;
    border-color: var(--cs-btn-primary-bg);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cs-btn-primary-bg) 32%, transparent);
}

.app-site-header-search__btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    margin: 0;
    color: var(--cs-text-muted);
    background: color-mix(in srgb, var(--cs-surface) 88%, var(--cs-border));
    border: 1px solid var(--cs-border);
    border-left: 0;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: default;
    transition: background 0.15s ease;
}

.app-site-header-search__btn:hover,
.app-site-header-search__btn:focus {
    color: var(--cs-text);
    background: color-mix(in srgb, var(--cs-surface) 75%, var(--cs-border));
}

.app-site-header-search__btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cs-btn-primary-bg) 32%, transparent);
    z-index: 1;
}

.app-site-header-search__icon {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
}

.app-site-header-search__advanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 0.38rem 0.62rem;
    text-decoration: none;
}

@media (max-width: 639px) {
    .app-site-header-search-wrap {
        width: 100%;
        gap: 0.3rem;
    }

    .app-site-header-search {
        width: 100%;
        max-width: none;
    }

    .app-site-header-search__input {
        font-size: 0.8125rem;
        padding: 0.4rem 2.25rem 0.4rem 0.6rem;
    }

    .app-site-header-search__icon {
        width: 1rem;
        height: 1rem;
    }

}
