/* Basic reset / container */
.sb-dropdown-wrapper,
.sbld-instance {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

/* Toggle button */
.sbld-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  text-transform: uppercase;
  background: #0A0D12; /* default - override with theme if needed */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

/* Hover state */
.sbld-toggle:hover,
.sbld-toggle:focus {
  background: #222;
  outline: none;
}

/* Optional: if Kadence or other theme button classes exist, they can be combined */
.kadence-btn.sbld-toggle {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* Arrow rotate when open - wrapper gets .open */
.sbld-arrow {
  transition: transform 0.18s ease;
}
.sbld-instance.open .sbld-arrow {
  transform: rotate(180deg);
}

/* Menu hidden by default */
.sbld-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  min-width: 220px;
  z-index: 9999;
  padding: 6px 6px;
  border: 1px solid #e6e6e6;
}

/* Show menu when wrapper has .open */
.sbld-instance.open .sbld-menu {
  display: block;
}

/* Menu items */
.sbld-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: #181D27;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

/* Hover: user requested hover bg #535861 for toggle; for items use subtle bg */
.sbld-item:hover,
.sbld-item:focus {
  background: #f3f4f6;
  color: #000;
  outline: none;
}

/* Icon */
.sbld-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}

/* If you want the menu items to get dark hover like provided color (optional): */
.sbld-instance.open .sbld-item.hover-dark:hover {
  background: #535861;
  color: #fff;
}

/* Accessibility: ensure focus visible */
.sbld-toggle:focus,
.sbld-item:focus {
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}
