.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.search-form__opener {
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--header-icon-width);
  height: var(--header-icon-height);
}

.search-form__opener svg {
  pointer-events: none;
  width: 25px;
}

.search-form__opener g {
  stroke: var(--color-primary);
  transition: all var(--animation-duration) var(--transition-function-ease-in-out);
}

.search-form__label {
  display: none;
}

.search-form__submit {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 42px;
  height: 100%;
  transform: translateY(-50%);
  z-index: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.search-form__submit g {
  transition: all var(--animation-duration) var(--transition-function-ease-in-out);
  stroke: var(--color-primary);
}

.search-form__icon {
  font-size: 20px;
  width: 25px;
  height: 25px;
}

.search-form__icon g {
  stroke: var(--color-primary);
}

.search-form__input {
  min-width: 230px;
  width: 100%;
  height: 48px;
  padding: 11px 50px;
  font-size: 16px;
  line-height: var(--font-height-sm);
  border-radius: var(--border-radius-button);
  border: 1px solid var(--color-border);
  background: var(--background-primary);
  color: var(--color-primary);
}

.search-form__input::placeholder {
  color: var(--color-secondary);
}

.search-form__input:focus {
  outline: none;
  border-color: var(--color-outline);
}

.search-form__input::-webkit-search-cancel-button {
  display: none !important;
}

.search-form__input::-webkit-search-decoration {
  display: none;
}

.search-form__reset {
  position: absolute;
  right: 0;
  top: 50%;
  height: 100%;
  width: 40px;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.search-form__reset:after,
.search-form__reset:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 45%;
  height: 2px;
  width: 18px;
  background: var(--color-primary);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background var(--animation-duration) var(--transition-function-ease-in-out);
}

.search-form__reset:before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.search-form__wrapper {
  position: fixed;
  top: calc(var(--header-height) + var(--header-transform, 0px));
  right: calc(50% - 100vw / 2 + var(--horizontal-padding) / 2);
	min-width: calc(100vw - var(--horizontal-padding-mobile) * 2);
  padding: 0;
  margin: 0;
  pointer-events: none;
  visibility: hidden;
	opacity: 0;
	transition-duration: var(--animation-duration);
	transition-timing-function: var(--transition-function-ease-in-out);
	transition-property: visibility, opacity, top;
  display: block !important;
}

.search-form__input-wrapper.filled .search-form__reset,
.search-form #search-opener:checked ~ .search-form__wrapper {
  visibility: visible;
  pointer-events: all;
  opacity: 1;
}

.search-form #search-opener:checked ~ .search-form__opener g {
  stroke: var(--color-outline);
}

.loaded .search-form__wrapper {
  display: block !important;
}

.preview-bar__container ~ .header-sticky .search-form__wrapper {
  top: calc((var(--header-height) - var(--preview-height) - var(--top-bar-height, 0px)) / 2 + var(--padding-bottom-mobile) + 8px);
}

.iphone[data-orientation="landscape"] .search-form__wrapper,
.iphone[data-orientation="landscape"] .header__mobile-menu-opener-left .search-form__wrapper,
.android-phone[data-orientation="landscape"] .search-form__wrapper,
.android-phone[data-orientation="landscape"] .header__mobile-menu-opener-left .search-form__wrapper,
.windows-phone[data-orientation="landscape"] .search-form__wrapper,
.windows-phone[data-orientation="landscape"] .header__mobile-menu-opener-left .search-form__wrapper,
.other-mobile[data-orientation="landscape"] .search-form__wrapper,
.other-mobile[data-orientation="landscape"] .header__mobile-menu-opener-left .search-form__wrapper {
  right: 0;
  min-width: 500px;
}

.android-phone[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .search-form__wrapper,
.android-phone[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .header__mobile-menu-opener-left .search-form__wrapper,
.windows-phone[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .search-form__wrapper,
.windows-phone[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .header__mobile-menu-opener-left .search-form__wrapper,
.other-mobile[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .search-form__wrapper,
.other-mobile[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .header__mobile-menu-opener-left .search-form__wrapper {
  right: var(--horizontal-padding-mobile);
}

.iphone.notch.safari[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .search-form__wrapper,
.iphone.notch.safari[data-orientation="landscape"]:has(.header__menu-secondary, .header__menu-third, .header__quick-menu) .header__mobile-menu-opener-left .search-form__wrapper {
  right: calc(var(--horizontal-padding-mobile) + var(--padding-x-landscape));
}

@media (min-width: 768px) {
  .search-form__wrapper {
    min-width: 600px;
  }
}

@media (min-width: 1100px) {
  .search-form {
    justify-content: flex-end;
    grid-column: 2;
    grid-row: 1;
    container: search / inline-size;
  }

  .search-form__wrapper {
    min-width: 350px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    top: calc((var(--header-height) - var(--top-bar-height, 0px) + var(--header-icon-height)) / 2);
  }

  .search-form__wrapper,
  .search-form:last-child .search-form__wrapper,
  .search-form:nth-last-child(2) .search-form__wrapper,
  .search-form:nth-last-child(2):has(+ .header__menu) .search-form__wrapper,
  .header__mobile-menu-opener-left .search-form__wrapper,
  .header__mobile-menu-opener-left .search-form:nth-last-child(2) .search-form__wrapper {
    right: 0;
  }

  .search-form__submit:has(.search-form__label) {
    width: auto;
    height: calc(100% - 8px);
  }

  .search-form__submit:has(.search-form__label) .search-form__icon {
    display: none;
  }

  .search-form__submit:has(.search-form__label) .search-form__label {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 100%;
    padding: 5px 20px;
    margin: 0;
    line-height: var(--font-height-xs);
  }
}

@media (min-width: 1300px) {
  .header__content-inner .search-form:last-child,
  .header__content-inner.header__mobile-menu-opener-left .search-form:nth-last-child(2),
  .header__content-inner.header__mobile-menu-opener-right .search-form:nth-last-child(2) {
    margin-right: 0;
  }
}

@container (min-width: 350px) {
  .search-form__opener {
    display: none;
  }

  .search-form__wrapper {
    transition: none;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    position: relative;
    top: 0;
  }

  .preview-bar__container ~ .header-sticky .search-form__wrapper {
    top: 0;
  }

  .search-form__input {
    padding-left: 20px;
  }

  .search-form__input-wrapper.filled .search-form__input {
    padding-right: 85px;
  }

  .search-form__input-wrapper.filled:has(.search-form__label) .search-form__input {
    padding-right: 150px;
  }

  .search-form__submit {
    left: auto;
    right: 2px;
  }

  .search-form__submit:has(.search-form__label) {
    right: 4px;
  }

  .search-form__reset {
    right: 50px;
    width: 20px;
  }

  .search-form__input-wrapper.filled:has(.search-form__label) .search-form__reset {
    right: 124px;
  }
}

@media (hover: hover) {
  .search-form__opener:hover g,
  .search-form__submit:hover g,
  .search-form__icon:hover g {
    stroke: var(--color-outline);
  }

  .search-form__reset:hover:after,
  .search-form__reset:hover:before {
    background: var(--color-outline);
  }
}
