/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~ Copyright 2021 Adobe
 ~
 ~ Licensed under the Apache License, Version 2.0 (the "License");
 ~ you may not use this file except in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~     http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing, software
 ~ distributed under the License is distributed on an "AS IS" BASIS,
 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ~ See the License for the specific language governing permissions and
 ~ limitations under the License.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.searchbar__trigger {
    display: none;
}

.searchbar__form {
    display: grid;
}

.searchbar__input-before,
.searchbar__input-after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
}

.searchbar__input-before {
    grid-area: before;
}

.searchbar__input-after {
    grid-area: after;
    justify-self: end;
}

.searchbar__fields {
    display: inline-grid;
    grid-template-areas: 'before input after';
}

.searchbar__search-icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 25px;
    width: 25px;
}

.searchbar__input-container {
    grid-column: before-start / after-end;
    grid-row: input-start / input-end;
}

.searchbar__input {
    padding-left: calc(1.875rem * var(--iconsBefore) - -0.375rem - 1px);
    padding-right: calc(1.875rem * var(--iconsAfter) - -2.1rem - 1px);
}
