/* Native Search: internal geometry is independent of appearance controls.
   Search supports margin (not internal padding/gap). Full :where appearance
   defaults remain below native Global Styles and saved inline styles. */
:where(.wp-block-search:not(.alkamy-header-search):not(.wp-block-search__button-only):not(.wp-block-search__searchfield-hidden)) > .wp-block-search__inside-wrapper{
 display:flex;align-items:stretch;box-sizing:border-box;min-width:0;max-width:100%;
 gap:var(--family-search-gap,6px);padding:var(--family-search-inset,6px);
}
:where(.wp-block-search:not(.alkamy-header-search):not(.wp-block-search__button-only):not(.wp-block-search__searchfield-hidden) > .wp-block-search__inside-wrapper){
 border-width:1px;border-style:solid;border-radius:var(--family-search-radius,14px);
}
:where(.wp-block-search:not(.alkamy-header-search):not(.wp-block-search__button-only):not(.wp-block-search__searchfield-hidden)) .wp-block-search__input{
 box-sizing:border-box;flex:1 1 0;min-width:0;max-width:100%;width:100%;min-height:var(--family-search-control-min,48px);
 margin:0;
}
:where(.wp-block-search:not(.alkamy-header-search):not(.wp-block-search__button-only):not(.wp-block-search__searchfield-hidden) .wp-block-search__input){
 border:0;border-radius:var(--family-search-inner-radius,10px);background:transparent;padding:var(--family-search-input-padding,12px);
}
/* Core resets inside-input radius at specificity 1. Native Search border
   controls target the outside wrapper in this variant, so inner geometry can
   match it without competing with the user-controlled receiving target. */
:where(.wp-block-search.wp-block-search__button-inside:not(.alkamy-header-search):not(.wp-block-search__searchfield-hidden)) .wp-block-search__input{
 border-radius:var(--family-search-inner-radius,10px);
}
:where(.wp-block-search:not(.alkamy-header-search):not(.wp-block-search__button-only):not(.wp-block-search__searchfield-hidden)) .wp-block-search__button{
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;
 min-width:var(--family-search-control-min,48px);min-height:var(--family-search-control-min,48px);
 margin:0;white-space:nowrap;
}
:where(.wp-block-search:not(.alkamy-header-search):not(.wp-block-search__button-only):not(.wp-block-search__searchfield-hidden) .wp-block-search__button){
 border-radius:var(--family-search-inner-radius,10px);padding:var(--family-search-button-padding,12px 20px);
}
@media(max-width:600px){
 :where(.wp-block-search:not(.alkamy-header-search)) {--family-search-radius:12px;}
}
/* Existing compact header searches retain their 44px source geometry. */
/* Finder adapter only: no filter/select/submit/layout changes. */
:where(.fm-finder) input[type=search]{box-sizing:border-box;min-width:0;max-width:100%;min-height:48px;padding:12px;border-radius:10px;font-size:16px}

/* Core Search editor pads/mutates its wrapper radius. Its public block-list
   wrapper carries native authored radii so the inner controls match PHP.
   Only this inside variant needs the bridge; native wrapper/GS borders remain. */
.editor-styles-wrapper :where(.wp-block-search.wp-block-search__button-inside:not(.alkamy-header-search):not(.wp-block-search__searchfield-hidden)[data-family-search-radius-top-left]) :is(.wp-block-search__input,.wp-block-search__button){
 border-top-left-radius:var(--family-search-author-top-left);
}
.editor-styles-wrapper :where(.wp-block-search.wp-block-search__button-inside:not(.alkamy-header-search):not(.wp-block-search__searchfield-hidden)[data-family-search-radius-top-right]) :is(.wp-block-search__input,.wp-block-search__button){
 border-top-right-radius:var(--family-search-author-top-right);
}
.editor-styles-wrapper :where(.wp-block-search.wp-block-search__button-inside:not(.alkamy-header-search):not(.wp-block-search__searchfield-hidden)[data-family-search-radius-bottom-left]) :is(.wp-block-search__input,.wp-block-search__button){
 border-bottom-left-radius:var(--family-search-author-bottom-left);
}
.editor-styles-wrapper :where(.wp-block-search.wp-block-search__button-inside:not(.alkamy-header-search):not(.wp-block-search__searchfield-hidden)[data-family-search-radius-bottom-right]) :is(.wp-block-search__input,.wp-block-search__button){
 border-bottom-right-radius:var(--family-search-author-bottom-right);
}
/* Core's editor-only resize-handle container is not a visual flex item.
   Keep its absolute handle interactive without adding another search gap. */
.editor-styles-wrapper :where(.wp-block-search:not(.alkamy-header-search):not(.wp-block-search__button-only):not(.wp-block-search__searchfield-hidden)) .wp-block-search__inside-wrapper > div:has(> .components-resizable-box__handle){display:contents}
