/* kodza-guard 8da2578c017b — generated by Kodza, do not edit.
   Theme guard: keeps a site's own CSS (WordPress themes, Bootstrap, CSS resets…) off this
   component. :not(#_) is always true and weighs as much as an id, so these lines win over
   theme rules made of classes and tags. Customise the component through its --kz-* variables. */

/* What the browser gives, where the component sets it only in some states: at the lowest weight, so its own rules below put it back */

:where(.kodza-search__clear):not(#_) {
  outline: revert;
  outline-offset: revert;
}

/* What the browser gives, on everything the component leaves to it */

.kodza-search:not(#_),
.kodza-search__options:not(#_),
.kodza-search__panel:not(#_),
.kodza-search__live:not(#_) {
  box-sizing: revert;
}

.kodza-search__box:not(#_) {
  border: revert;
  margin: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-search__icon:not(#_),
.kodza-search__clear svg:where(:not([class*="kodza-"])):not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-search__input:not(#_) {
  margin: revert;
  border-radius: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  box-shadow: revert;
  outline-offset: revert;
  max-width: revert;
  max-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  white-space: revert;
  min-height: revert;
}

.kodza-search__key:not(#_) {
  border: revert;
  margin: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-search__clear:not(#_) {
  margin: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  white-space: revert;
  min-height: revert;
}

.kodza-search__list:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-search__options option:where(:not([class*="kodza-"])):not(#_) {
  box-sizing: revert;
  color: revert;
}

.kodza-search__icon:not(#_):where(:not([hidden])),
.kodza-search__input:not(#_):where(:not([hidden])),
.kodza-search__list:not(#_):where(:not([hidden])),
.kodza-search__clear svg:where(:not([class*="kodza-"])):not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-search__icon:not(#_):where([hidden]),
.kodza-search__input:not(#_):where([hidden]),
.kodza-search__list:not(#_):where([hidden]),
.kodza-search__clear svg:where(:not([class*="kodza-"])):not(#_):where([hidden]) {
  display: none;
}

/* The component's own rules, one step stronger: real buttons and fields, what it sets on tags themes style (links, lists, headings, images…), and the root width (a theme may narrow it, never widen it) */

.kodza-search:not(#_) {
  width: min(100%, 440px);
}

.kodza-search__box:not(#_) {
  position: relative;
  display: flex;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: var(--kz-search-bg);
  box-shadow: inset 0 0 0 1px var(--kz-search-line);
  transition: box-shadow 0.25s ease;
}

.kodza-search__box:hover:not(#_) {
  box-shadow: inset 0 0 0 1px var(--kz-search-line-hover);
}

.kodza-search__box:focus-within:not(#_) {
  box-shadow: inset 0 0 0 1.5px var(--kz-search-fg), 0 0 0 4px var(--kz-search-soft);
}

.kodza-search__input:not(#_) {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  outline: none;
  appearance: none;
}

.kodza-search__input:not(#_)::placeholder {
  color: var(--kz-search-muted);
}

.kodza-search__input:not(#_)::-webkit-search-cancel-button {
  display: none;
}

.kodza-search__key:not(#_) {
  display: grid;
  border-radius: 7px;
  transition: opacity 0.2s ease, transform 0.3s var(--kz-search-ease);
}

.kodza-search__clear:not(#_) {
  flex: none;
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 7px;
  transition: opacity 0.2s ease, transform 0.3s var(--kz-search-ease);
}

.kodza-search__key:not(#_) {
  padding: 0 6px;
  background: var(--kz-search-soft);
  color: var(--kz-search-muted);
  font-family: var(--kz-search-mono);
  font-size: 12px;
}

.kodza-search__clear:not(#_) {
  position: absolute;
  right: 10px;
  width: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--kz-search-soft);
  color: var(--kz-search-muted);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  visibility: hidden;
}

.kodza-search.has-value .kodza-search__clear:not(#_) {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.kodza-search__clear:focus-visible:not(#_) {
  outline: 2px solid var(--kz-search-fg);
  outline-offset: 1px;
}

.kodza-search__list:not(#_) {
  position: relative;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-search__box:not(#_),
  .kodza-search__key:not(#_) {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodza-search__clear:not(#_) {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
