/*!
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you 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 REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

.spectrum-SearchWithin{
  --spectrum-searchwithin-width:250px;
  --spectrum-searchwithin-border-radius:0;
}

.spectrum-SearchWithin{
  inline-size:var(--spectrum-searchwithin-width);
  display:inline-flex;
  position:relative;
}

.spectrum-SearchWithin-picker{
  inline-size:auto;
  min-inline-size:0;
  flex-shrink:0;
  border-start-end-radius:var(--spectrum-searchwithin-border-radius);
  border-end-end-radius:var(--spectrum-searchwithin-border-radius);
  border-inline-end:0;
}

.spectrum-SearchWithin-input{
  flex:1;
  box-sizing:border-box;
  min-inline-size:inherit;
  margin-inline-start:calc(var(--spectrum-textfield-m-texticon-border-size, var(--spectrum-alias-input-border-size))*-1);
  border-start-start-radius:var(--spectrum-searchwithin-border-radius);
  border-end-start-radius:var(--spectrum-searchwithin-border-radius);
}

.spectrum-SearchWithin-input:focus{
    position:relative;
  }

@media (hover: hover){

.spectrum-SearchWithin-input:hover,
.spectrum-SearchWithin-input.is-hover{
    position:relative;
  }
}

.spectrum-SearchWithin-clearButton{
  position:absolute;
  inset-block-start:0;
  inset-inline-end:0;
}

.spectrum-SearchWithin > .spectrum-Textfield{
  flex-grow:1;
}
