.hbc-builder-top-tools-target {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.hbc-builder-top-tools-target .elementor-widget-wpr-search {
  flex: 0 1 auto;
}

.hbc-builder-top-tools-target .wpr-search-form {
  margin: 0;
}

.hbc-builder-top-tools-target .wpr-search-form-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 4px 0 12px;
  border: none !important;
  border-radius: 999px;
  /* background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); */
  transition: width .22s ease, padding .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
  box-shadow: inset 0 0 0 1.5px #cbd5e1;
}

.hbc-builder-top-tools-target .wpr-search-form-input-wrap:hover {
  box-shadow: inset 0 0 0 1.5px #94a3b8;
}

.hbc-builder-top-tools-target .wpr-search-form-input-wrap:focus-within {
  border-color: #0d2d8b;
  box-shadow: inset 0 0 0 1.5px #0d2d8b, 0 0 0 3px rgba(13, 45, 139, 0.1);
}

.hbc-builder-top-tools-target .wpr-search-form-input {
  width: 190px;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  padding: 0 6px 0 0;
  margin: 0;
  background: transparent !important;
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  font-family: inherit;
  caret-color: #0d2d8b;
  -webkit-appearance: none;
  appearance: none;
  transition: width .22s ease, opacity .18s ease;
}

.hbc-builder-top-tools-target .wpr-search-form-input::placeholder {
  color: #64748b;
  opacity: 1;
  transition: opacity .16s ease, transform .16s ease;
}

.hbc-builder-top-tools-target .wpr-search-form-input:focus::placeholder {
  opacity: .72;
  transform: translateX(1px);
}

.hbc-builder-top-tools-target .wpr-search-form-input:focus {
  outline: none;
  box-shadow: none !important;
}

.hbc-builder-top-tools-target .wpr-search-form-input::selection {
  background: rgba(13, 45, 139, .16);
}

.hbc-builder-top-tools-target .wpr-search-form-input:-webkit-autofill,
.hbc-builder-top-tools-target .wpr-search-form-input:-webkit-autofill:hover,
.hbc-builder-top-tools-target .wpr-search-form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0 1000px #f8fbff inset;
  transition: background-color 9999s ease-out 0s;
}

.hbc-builder-top-tools-target .wpr-search-form-submit {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #0d2d8b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hbc-builder-top-tools-target .wpr-search-form.is-collapsed .wpr-search-form-input-wrap {
  width: 38px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px #cbd5e1;
}

.hbc-builder-top-tools-target .wpr-search-form.is-collapsed .wpr-search-form-input {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.hbc-builder-top-tools-target .wpr-search-form.is-collapsed .wpr-search-form-submit {
  width: 38px;
  height: 38px;
  background: transparent;
  color: #0d2d8b;
}

.hbc-builder-top-tools-target .wpr-search-form.is-collapsed .wpr-search-form-submit i {
  font-size: 15px;
}

.hbc-builder-top-tools-target .elementor-widget-image {
  flex: 0 0 auto;
}

.hbc-header-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.hbc-header-language {
  position: relative;
}

.hbc-header-language summary {
  list-style: none;
  cursor: pointer;
}

.hbc-header-language summary::-webkit-details-marker {
  display: none;
}

.hbc-header-language-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hbc-header-language-flag {
  width: 28px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}

.hbc-header-language-flag svg {
  display: block;
}

.hbc-header-language-caret {
  font-size: 10px;
  line-height: 1;
  color: #0d2d8b;
}

.hbc-header-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  padding: 6px;
  z-index: 100;
}

.hbc-header-language-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hbc-header-language-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
}

.hbc-header-language-link:hover {
  background: rgba(13, 45, 139, .06);
}

.hbc-header-language-link.is-current {
  background: rgba(13, 45, 139, .08);
  font-weight: 600;
}

/* Dedicated styling for the unique header search widget */
.hbc-search-all .wpr-search-form {
  margin: 0;
}

.hbc-search-all .wpr-search-form-input-wrap {
  display: flex;
  align-items: center;
  gap: 0px;
  height: 30px;
  padding: 0 0px 0 13px;
  border-radius: 999px;
  /* background: #f8fbff !important; */
  /* box-shadow: inset 0 0 0 1.5px #bfccde !important; */
  transition: box-shadow .2s ease, background-color .2s ease, transform .2s ease !important;
  overflow: hidden;
}

.hbc-search-all .wpr-search-form-input-wrap:hover {
  box-shadow: inset 0 0 0 1.5px #9aabc2 !important;
}

.hbc-search-all .wpr-search-form-input-wrap:focus-within {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1.5px #0d2d8b !important;
}

.hbc-search-all .wpr-search-form-input {
  width: 220px;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  padding: 0 8px 0 0;
  margin: 0;
  background: transparent !important;
  color: #0b1f5d !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2;
  letter-spacing: .01em;
  caret-color: #0d2d8b;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity .16s ease, color .2s ease !important;
}

.hbc-search-all .wpr-search-form-input::placeholder {
  color: #6b7b93 !important;
  opacity: 1;
}

.hbc-search-all .wpr-search-form-input:focus {
  outline: none;
  box-shadow: none !important;
}

.hbc-search-all .wpr-search-form-submit {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #0d2d8b;
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}

.hbc-search-all .wpr-search-form-submit:hover {
  background: #0b246f;
  transform: scale(1.04);
}

.hbc-search-all .wpr-search-form.is-collapsed .wpr-search-form-input-wrap {
  width: 40px;
  height: 40px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  /* box-shadow: inset 0 0 0 1.5px #bfccde !important; */
}

.hbc-search-all .wpr-search-form.is-collapsed .wpr-search-form-input {
  width: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.hbc-search-all .wpr-search-form.is-collapsed .wpr-search-form-submit {
  width: 40px;
  height: 40px;
  background: transparent;
  color: #0d2d8b;
}

/* Native search + language cluster (no Royal Addons dependency) */
.hbc-header-tools--native {
  gap: 12px;
}

.hbc-header-tools--native .hbc-header-search-form {
  margin: 0;
}

.hbc-header-tools--native .hbc-header-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  width: 230px;
  height: 40px;
  padding: 0 0 0 13px;
  /* border: 1.5px solid #bfccde; */
  border-radius: 999px;
  /* background: #f8fbff; */
  /* box-shadow: inset 0 0 0 1.5px #bfccde; */
  transition: width .22s ease, padding .22s ease, box-shadow .2s ease, background-color .2s ease;
  overflow: hidden;
}
.hbc-header-tools--native .hbc-header-search-wrap:focus-within {
  border: 1.5px solid #bfccde;
}
.hbc-header-tools--native .hbc-header-search-wrap:hover {
  /* border-color: #9aabc2; */
  border: 1.5px solid #bfccde;
}

.hbc-header-tools--native .hbc-header-search-wrap:focus-within {
  border-color: #0d2d8b;
  background: #fff;
  /* box-shadow: inset 0 0 0 1.5px #0d2d8b; */
}

.hbc-header-tools--native .hbc-header-search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 8px 0 0;
  margin: 0;
  background: transparent;
  color: #0b1f5d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  caret-color: #0d2d8b;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity .16s ease, color .2s ease;
}

.hbc-header-tools--native .hbc-header-search-input::placeholder {
  color: #6b7b93;
  opacity: 1;
}

.hbc-header-tools--native .hbc-header-search-input:focus {
  outline: none;
  box-shadow: none;
}

.hbc-header-tools--native .hbc-header-search-submit {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0d2d8b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, color .18s ease;
}

.hbc-header-tools--native .hbc-header-search-submit:hover {
  transform: scale(1.04);
}

.hbc-header-tools--native .hbc-header-search-submit svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hbc-header-tools--native .hbc-header-search-form.is-collapsed .hbc-header-search-wrap {
  width: 40px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  /* border-color: #bfccde; */
    
}

.hbc-header-tools--native .hbc-header-search-form.is-collapsed .hbc-header-search-input {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hbc-builder-top-tools-target .wpr-search-form-input {
    width: 145px;
  }

  .hbc-search-all .wpr-search-form-input {
    width: 165px;
  }

  .hbc-header-tools--native .hbc-header-search-wrap {
    width: 180px;
  }
}

@media (max-width: 767px) {
  .hbc-header-tools {
    display: none;
  }
}