.beeking-search-block-hint{
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* Force-hide block overlay in editor canvas to avoid visual artifacts */
.block-editor-page .wp-block-beeking-search-block .beeking-search-block-content,
.gutenberg-editor-page .wp-block-beeking-search-block .beeking-search-block-content{
  display: block !important;
  position: static !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  transform: none !important;
  opacity: 1 !important;
  margin-top: 12px;
}

/* Remove any unwanted framing around the block in editor */
.block-editor-page .wp-block-beeking-search-block,
.gutenberg-editor-page .wp-block-beeking-search-block{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.block-editor-page [data-type="beeking/search-block"],
.gutenberg-editor-page [data-type="beeking/search-block"]{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.block-editor-page .block-editor-block-list__block.wp-block-beeking-search-block,
.block-editor-page .block-editor-block-list__block.wp-block-beeking-search-block.is-selected,
.block-editor-page .block-editor-block-list__block.wp-block-beeking-search-block.is-hovered,
.gutenberg-editor-page .block-editor-block-list__block.wp-block-beeking-search-block,
.gutenberg-editor-page .block-editor-block-list__block.wp-block-beeking-search-block.is-selected,
.gutenberg-editor-page .block-editor-block-list__block.wp-block-beeking-search-block.is-hovered{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.block-editor-page .block-editor-block-list__block[data-type="beeking/search-block"],
.block-editor-page .block-editor-block-list__block[data-type="beeking/search-block"]::before,
.block-editor-page .block-editor-block-list__block[data-type="beeking/search-block"]::after,
.gutenberg-editor-page .block-editor-block-list__block[data-type="beeking/search-block"],
.gutenberg-editor-page .block-editor-block-list__block[data-type="beeking/search-block"]::before,
.gutenberg-editor-page .block-editor-block-list__block[data-type="beeking/search-block"]::after{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.block-editor-page [id^="block-"][data-type="beeking/search-block"],
.block-editor-page [id^="block-"][data-type="beeking/search-block"]::before,
.block-editor-page [id^="block-"][data-type="beeking/search-block"]::after,
.gutenberg-editor-page [id^="block-"][data-type="beeking/search-block"],
.gutenberg-editor-page [id^="block-"][data-type="beeking/search-block"]::before,
.gutenberg-editor-page [id^="block-"][data-type="beeking/search-block"]::after{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Site Editor frame: remove focus ring for our block */
.edit-site-visual-editor [id^="block-"][data-type="beeking/search-block"],
.edit-site-visual-editor [id^="block-"][data-type="beeking/search-block"]::before,
.edit-site-visual-editor [id^="block-"][data-type="beeking/search-block"]::after{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.block-editor-page .wp-block-beeking-search-block .beeking-search-block-container,
.gutenberg-editor-page .wp-block-beeking-search-block .beeking-search-block-container{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.block-editor-page .wp-block-beeking-search-block .beeking-search-block-input-row,
.gutenberg-editor-page .wp-block-beeking-search-block .beeking-search-block-input-row{
  margin: 0 !important;
}

/* Preset previews in editor */
.beeking-preset-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px 0;
}
.beeking-preset-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
.beeking-preset-item.is-active{
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}
.beeking-preset-label{
  font-size: 11px;
  color: #111827;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.beeking-preset-swatches{ display:flex; align-items:center; gap:3px; flex: 0 0 auto; }
.beeking-preset-swatch{
  width: 10px; height: 10px; border-radius: 3px; display:inline-block; border: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 360px){
  .beeking-preset-grid{ grid-template-columns: 1fr; }
}
