.smica-header-search-menu-item { display: flex; align-items: center; }
.smica-header-search-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.smica-header-search-trigger:hover,
.smica-header-search-trigger:focus-visible { background: rgba(0, 0, 0, .06); outline: none; }
.smica-header-search-trigger svg { width: 21px; height: 21px; }

.smica-header-search-panel {
  position: relative;
  z-index: 90;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid rgba(20, 41, 57, .12);
  box-shadow: 0 12px 30px rgba(20, 41, 57, 0);
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height .28s ease, opacity .2s ease, transform .28s ease, box-shadow .28s ease;
}
.smica-header-search-panel[hidden] { display: block; visibility: hidden; }
.smica-header-search-panel.is-open {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(20, 41, 57, .10);
}
.smica-header-search-panel__inner { max-width: 1280px; margin: 0 auto; padding: 18px 24px; }
.smica-header-search-panel__form {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  max-width: 900px;
  margin: 0 auto;
}
.smica-header-search-panel__icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  color: #526572;
  pointer-events: none;
}
.smica-header-search-panel input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 58px;
  margin: 0;
  padding: 0 145px 0 54px;
  border: 1px solid #b9c5ce;
  border-radius: 8px;
  background: #fff;
  color: #172c3a;
  font: inherit;
  font-size: 1rem;
  box-shadow: none;
}
.smica-header-search-panel input[type="search"]:focus {
  border-color: #005ea8;
  outline: 3px solid rgba(0, 94, 168, .16);
}
.smica-header-search-panel__form > button[type="submit"] {
  position: absolute;
  right: 52px;
  top: 7px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #005ea8;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.smica-header-search-panel__form > button[type="submit"]:hover { background: #004b86; }
.smica-header-search-panel__close {
  position: absolute;
  right: 7px;
  top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #425663;
  cursor: pointer;
}
.smica-header-search-panel__close svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .smica-header-search-panel__inner { padding: 12px 16px; }
  .smica-header-search-panel__form { min-height: 54px; }
  .smica-header-search-panel input[type="search"] { height: 54px; padding-right: 102px; }
  .smica-header-search-panel__form > button[type="submit"] { right: 46px; top: 6px; height: 42px; padding: 0 12px; font-size: .88rem; }
  .smica-header-search-panel__close { right: 4px; top: 6px; height: 42px; }
}

/* Keep accessible search labels visually hidden even when WordPress admin-bar/core
   screen-reader styles are not present for logged-out visitors. */
.smica-header-search-trigger .screen-reader-text,
.smica-header-search-panel .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.smica-header-search-trigger svg {
  display: block;
  flex: 0 0 auto;
}
