.bsd-search {
  display: flex;
  width: 100%;
  min-height: 72px;
  border: 1px solid #e3e3e3;
  background: #fff;
  position: relative;
  font-family: inherit;
  box-sizing: border-box;
}

.bsd-search *, .bsd-search *::before, .bsd-search *::after { box-sizing: border-box; }

.bsd-dropdown {
  position: relative;
  width: 262px;
  flex: 0 0 262px;
  border-right: 1px solid #dedede;
}

.bsd-dropdown-toggle,
.bsd-menu-parent,
.bsd-submenu-item { font: inherit; }

.bsd-dropdown-toggle {
  width: 100%;
  height: 100%;
  min-height: 70px;
  border: 0;
  background: #f7f7f7;
  padding: 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: #333;
  line-height: 1.2;
}

.bsd-selected-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bsd-caret,
.bsd-parent-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  flex: 0 0 auto;
}

.bsd-caret { transform: rotate(45deg) translateY(-2px); margin-right: 2px; }
.bsd-dropdown-toggle[aria-expanded="true"] .bsd-caret { transform: rotate(225deg) translate(-2px, -2px); }
.bsd-parent-arrow { transform: rotate(-45deg); margin-right: 3px; }

.bsd-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 100%;
  min-width: 262px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  z-index: 99999;
}

.bsd-menu-group { position: relative; }

.bsd-menu-parent,
.bsd-submenu-item {
  width: 100%;
  min-height: 56px;
  border: 0;
  background: #fff;
  padding: 14px 20px;
  text-align: left;
  cursor: pointer;
  color: #222;
}

.bsd-menu-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.bsd-menu-group:hover > .bsd-menu-parent,
.bsd-menu-parent:focus,
.bsd-submenu-item:hover,
.bsd-submenu-item:focus {
  background: #f4f4f4;
  outline: none;
}

.bsd-submenu {
  position: absolute;
  left: calc(100% - 1px);
  top: -1px;
  width: 290px;
  max-height: 410px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* Desktop: open submenus on hover without requiring a click. */
@media (hover: hover) and (pointer: fine) {
  .bsd-menu-group:hover > .bsd-submenu { display: block !important; }
  .bsd-menu-group:hover > .bsd-submenu[hidden] { display: block !important; }
}

.bsd-submenu-item { padding-left: calc(20px + (var(--bsd-depth, 0) * 14px)); }
.bsd-empty { display: block; padding: 16px 20px; color: #888; }

.bsd-search-input {
  flex: 1;
  min-width: 0;
  height: auto !important;
  min-height: 70px;
  border: 0 !important;
  outline: 0;
  padding: 0 30px !important;
  font-size: 17px;
  line-height: 1.4;
  box-shadow: none !important;
  background: #fff;
}

.bsd-search-button {
  width: 155px;
  flex: 0 0 155px;
  border: 0;
  background: #ff542e;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bsd-search-button:hover { filter: brightness(.96); }
.bsd-search-icon { width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; position: relative; }
.bsd-search-icon::after { content: ""; position: absolute; width: 8px; height: 2px; background: #fff; right: -6px; bottom: -3px; transform: rotate(-48deg); transform-origin: left center; }
.bsd-button-text { display: none; }

@media (max-width: 768px) {
  .bsd-search { flex-wrap: wrap; min-height: 0; }
  .bsd-dropdown { width: 100%; flex-basis: 100%; min-height: 54px; border-right: 0; border-bottom: 1px solid #dedede; }
  .bsd-dropdown-toggle { min-height: 54px; }
  .bsd-menu, .bsd-submenu { position: static; width: 100%; max-height: 300px; box-shadow: none; border-left: 0; border-right: 0; }
  .bsd-search-input { min-height: 54px; padding: 0 18px !important; }
  .bsd-search-button { width: 68px; flex-basis: 68px; }
}
