/*
 * Copyright 2014 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.search-drawer-header {
    flex: none;
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
}

.search-drawer-header input.search-config-search {
    padding: 0 28px;
    margin: 1px 0px 1px 1px;
    height: 28px;
    border-radius: 2px;
    color: #303030;
    border: none;
    min-width: 95px;
}

.search-drawer-header .search-icon {
    background-image: url(Images/toolbarButtonGlyphs.png);
    background-size: 352px 168px;
    background-position: -234px 138px;
    left: 10px;
    top: 10px;
    width: 12px;
    height: 12px;
    position: absolute;
}

.search-config-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-drawer-header .search-cancel-button {
    position: relative;
    left: -22px;
    top: 9px;
}

.search-drawer-header .search-cancel-button::before {
    content: '';
    background-image: url(Images/toolbarButtonGlyphs.png);
    background-size: 352px 168px;
    left: 0;
    top: 0;
    width: 13px;
    height: 13px;
    background-position: -143px -96px;
    position: absolute;
}

:host-context(.platform-mac) .search-drawer-header input.search-config-search {
    top: 1px;
}

.search-drawer-header label.search-config-label:first-of-type {
    border-left: 1px solid #dadada;
    margin: 0px 0px 0px 1px;
    padding-left: 10px;
}

.search-drawer-header label.search-config-label {
    margin: 2px 4px;
    margin-left: 8px;
    color: #303030;
    display: flex;
}

.search-toolbar-summary {
    background-color: #eee;
    border-top: 1px solid #ccc;
    padding-left: 5px;
    flex: 0 0 19px;
    display: flex;
    padding-right: 5px;
}

.search-toolbar-summary .search-message {
    padding-top: 2px;
    padding-left: 1ex;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

@media (-webkit-min-device-pixel-ratio: 1.1) {
.search-drawer-header .search-icon {
    background-image: url(Images/toolbarButtonGlyphs_2x.png);
}

.search-drawer-header .search-cancel-button::before {
    background-image: url(Images/toolbarButtonGlyphs_2x.png);
}
} /* media */

.search-view .search-results {
    overflow-y: auto;
    display: flex;
    flex: auto;
}

.search-view .search-results > div {
    flex: auto;
}

.search-results .empty-view {
    pointer-events: none;
}

.empty-view {
    font-size: 24px;
    color: rgb(75%, 75%, 75%);
    font-weight: bold;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
