:host {
  --placeholder-color: currentColor;
  --placeholder-weight: inherit;
  --placeholder-opacity: .5;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  box-sizing: border-box; }

:host(.ion-color) {
  --background: var(--ion-color-base);
  --color-button-clear: inherit;
  --color-button-cancel: inherit;
  --color-icon: inherit;
  color: var(--ion-color-contrast); }

.searchbar-search-icon {
  color: var(--color-icon);
  pointer-events: none; }

.searchbar-input-container {
  display: block;
  position: relative;
  flex-shrink: 1;
  width: 100%; }

.searchbar-input {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-overflow: inherit;
  text-transform: inherit;
  text-align: inherit;
  white-space: inherit;
  color: inherit;
  box-sizing: border-box;
  display: block;
  width: 100%;
  border: 0;
  outline: none;
  background: var(--background);
  font-family: inherit;
  appearance: none; }
  .searchbar-input::placeholder {
    color: var(--placeholder-color);
    font-family: inherit;
    font-weight: var(--placeholder-weight);
    opacity: var(--placeholder-opacity); }
  .searchbar-input::-webkit-search-cancel-button {
    display: none; }

.searchbar-cancel-button {
  color: var(--color-button-cancel); }

.searchbar-clear-button {
  margin: 0;
  padding: 0;
  display: none;
  min-height: 0;
  outline: none;
  color: var(--button-color-clear);
  appearance: none; }

:host(.searchbar-has-value.searchbar-has-focus) .searchbar-clear-button {
  display: block; }

:host {
  --color-button-clear: currentColor;
  --color-button-cancel: var(--ion-text-color-step-100, #1a1a1a);
  --color-icon: var(--ion-text-color-step-400, #666666);
  --background: var(--ion-background-color, #fff);
  padding: 8px;
  background: inherit;
  color: var(--ion-text-color-step-150, #262626);
  font-family: var(--ion-font-family, inherit); }

.searchbar-search-icon {
  left: 16px;
  top: 11px;
  width: 21px;
  height: 21px; }

.searchbar-cancel-button {
  left: 10px;
  top: 0;
  margin: 0;
  display: none;
  height: 100%;
  border: 0;
  background-color: transparent;
  font-size: 1.8em; }

.searchbar-search-icon,
.searchbar-cancel-button {
  position: absolute; }

.searchbar-search-icon.activated,
.searchbar-cancel-button.activated {
  background-color: transparent; }

.searchbar-input {
  padding: 6px 55px;
  border-radius: 2px;
  background-position: left 8px center;
  height: auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12); }

.searchbar-clear-button {
  right: 13px;
  top: 0;
  padding: 0;
  position: absolute;
  height: 100%;
  border: 0;
  background-color: transparent; }

.searchbar-clear-button.activated {
  background-color: transparent; }

.searchbar-clear-icon {
  width: 22px;
  height: 100%; }

:host(.searchbar-has-focus.searchbar-show-cancel) .searchbar-search-icon {
  display: none; }

:host(.searchbar-has-focus.searchbar-show-cancel) .searchbar-cancel-button {
  display: inline-flex; }

:host-context(ion-toolbar) {
  padding: 3px; }
