/********************************************************************************
 * Copyright (C) 2024-2025 EclipseSource and others.
 *
 * This program and the accompanying materials are made available under the
 * terms of the MIT License as outlined in the LICENSE File
 ********************************************************************************/

.search-overlay {
    position: fixed;
    top: -33px;
    opacity: 0;
    right: 20px;
    background-color: var(--vscode-editorWidget-background);
    box-shadow: 0 0 4px 1px var(--vscode-widget-shadow);
    color: var(--vscode-editorWidget-foreground);
    border-bottom: 1px solid var(--vscode-widget-border);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: 1px solid var(--vscode-widget-border);
    border-right: 1px solid var(--vscode-widget-border);
    box-sizing: border-box;
    height: 33px;
    line-height: 19px;
    overflow: hidden;
    padding: 4px;
    z-index: 35;
    display: flex;
    flex-direction: row;
    gap: 5px;

    -webkit-transition:
        top 0.2s ease,
        opacity 0.2s ease;
    -moz-transition:
        top 0.2s ease,
        opacity 0.2s ease;
    -ms-transition:
        top 0.2s ease,
        opacity 0.2s ease;
    -o-transition:
        top 0.2s ease,
        opacity 0.2s ease;
    transition:
        top 0.2s ease,
        opacity 0.2s ease;
}

.search-overlay.visible {
    top: 5px;
    opacity: 1;
}

body.has-scrollbar .search-overlay {
    right: 5px;
}

.search-overlay .search-input {
    color: var(--vscode-input-foreground);
    background-color: var(--vscode-input-background);
    outline: none;
    scrollbar-width: none;
    border: none;
    box-sizing: border-box;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    height: 100%;
    line-height: inherit;
    resize: none;
    width: 100%;
    padding: 4px 6px;
    margin: 0;
}

.search-overlay input.search-input:focus {
    outline: 1px solid var(--vscode-focusBorder);
}

.search-input::placeholder {
    color: var(--vscode-input-placeholderForeground);
}

.search-input::-moz-placeholder {
    color: var(--vscode-input-placeholderForeground);
}

.search-input:-ms-input-placeholder {
    color: var(--vscode-input-placeholderForeground);
}

.search-input:-webkit-input-placeholder {
    color: var(--vscode-input-placeholderForeground);
}
