: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: var(--ion-text-color-step-400, #666666);
  --color-button-cancel: var(--ion-color-primary, #3880ff);
  --color-icon: var(--ion-text-color-step-400, #666666);
  --background: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);
  padding: 12px;
  height: 60px;
  color: var(--ion-text-color, #000);
  font-family: var(--ion-font-family, inherit);
  contain: strict; }

.searchbar-input-container {
  height: 36px;
  contain: strict; }

.searchbar-search-icon {
  margin-left: calc(50% - 60px);
  left: 8px;
  top: 0;
  position: absolute;
  width: 16px;
  height: 100%;
  contain: strict; }

.searchbar-input {
  padding: 0 28px;
  border-radius: 10px;
  height: 100%;
  font-size: 14px;
  font-weight: 400;
  contain: strict; }

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

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

.searchbar-cancel-button {
  padding: 0 0 0 8px;
  display: none;
  flex-shrink: 0;
  border: 0;
  outline: none;
  background-color: transparent;
  font-size: 16px;
  cursor: pointer;
  appearance: none; }

:host(.searchbar-left-aligned) .searchbar-search-icon {
  margin-left: 0; }

:host(.searchbar-left-aligned) .searchbar-input {
  padding-left: 30px; }

:host(.searchbar-show-cancel.searchbar-has-focus) .searchbar-cancel-button,
:host(.searchbar-show-cancel.searchbar-animated) .searchbar-cancel-button {
  display: block; }

:host(.searchbar-animated) .searchbar-search-icon,
:host(.searchbar-animated) .searchbar-input {
  transition: all 300ms ease; }

:host(.searchbar-animated.searchbar-has-focus) .searchbar-cancel-button {
  opacity: 1;
  pointer-events: auto; }

:host(.searchbar-animated) .searchbar-cancel-button {
  margin-right: -100%;
  transform: translate3d(0,  0,  0);
  transition: all 300ms ease;
  opacity: 0;
  pointer-events: none; }

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

:host(.ion-color) .searchbar-cancel-button:hover {
  color: var(--ion-color-tint); }

:host-context(ion-toolbar.ion-color) .searchbar-cancel-button {
  color: currentColor; }

:host-context(ion-toolbar.ion-color) .searchbar-search-icon {
  color: currentColor;
  opacity: 0.5; }

:host-context(ion-toolbar.ion-color) .searchbar-input {
  background: rgba(var(--ion-color-contrast-rgb), 0.07);
  color: currentColor; }

:host-context(ion-toolbar.ion-color) .searchbar-clear-button {
  color: currentColor;
  opacity: 0.5; }
