/* Keep the approved header controls; only own the Search interaction. */
html body form.an-store-search-ready .wp-block-search__input,
html body form.an-store-search-ready .wp-block-search__label {display:none!important;}
html body form.an-store-search-ready .wp-block-search__inside-wrapper {
  border:0!important;background:transparent!important;padding:0!important;gap:0!important;
}
html body form.an-store-search-ready .wp-block-search__button {
  background:transparent!important;color:#c99a32!important;border:0!important;box-shadow:none!important;
}
html body form.an-store-search-ready .wp-block-search__button:focus:not(:focus-visible) {outline:none!important;}
html body form.an-store-search-ready .wp-block-search__button:focus-visible {outline:1px solid #c99a32!important;outline-offset:4px!important;}
@media(min-width:783px) {
  html body form.an-store-search-ready {translate:0 var(--an-search-align-y,0px)!important;}
  html body form.an-store-search-ready,
  html body form.an-store-search-ready .wp-block-search__inside-wrapper,
  html body form.an-store-search-ready .wp-block-search__button {
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:28px!important;height:28px!important;min-width:0!important;min-height:0!important;
    max-width:28px!important;max-height:28px!important;flex:0 0 28px!important;
    margin:0!important;padding:0!important;box-sizing:border-box!important;line-height:1!important;
  }
  html body form.an-store-search-ready .wp-block-search__button svg {display:block!important;width:22px!important;height:22px!important;margin:0!important;}
}
html body #an-desktop-search-panel.an-store-search[hidden] {display:none!important;}
html body #an-desktop-search-panel.an-store-search {
  z-index:99991!important;box-sizing:border-box;position:fixed;left:0;right:0;
  top:var(--an-catalog-panel-top,140px);background:#100a16;color:#e8e0d6;
}
/* Native GET fallback when the Reference Search plugin is not active. */
html body #an-desktop-search-panel.an-store-search:not(.an-catalog-panel):not([hidden]) {
  display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px!important;
  width:100%!important;height:auto!important;min-height:96px!important;
  padding:24px max(24px,calc((100% - 680px)/2))!important;border:0!important;
}
html body #an-desktop-search-panel.an-store-search .an-search-field {
  appearance:none;background:transparent!important;color:#e8e0d6!important;box-shadow:none!important;
  width:100%;min-width:0;border:0;border-bottom:1px solid #c99a3260;border-radius:0;
  height:52px;font:inherit;font-size:16px;outline-offset:3px;
}
html body #an-desktop-search-panel.an-store-search .an-search-field::placeholder {color:#bdb0c1;opacity:1;}
html body #an-desktop-search-panel.an-store-search > button {
  display:flex;align-items:center;justify-content:center;gap:6px;
  min-width:44px;min-height:44px;margin:0;padding:0 8px;background:transparent!important;
  color:#c99a32!important;border:0;font:inherit;font-size:14px;cursor:pointer;
}
html body #an-desktop-search-panel.an-store-search svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;pointer-events:none;}
html body #an-desktop-search-panel.an-store-search .an-search-close svg {width:16px;height:16px;}
html body #an-desktop-search-panel.an-store-search :is(input,button,a):focus-visible {outline:1px solid #c99a32;outline-offset:3px;}
html.an-catalog-search-open {overflow:hidden!important;}

/* Successful store notices retain the native text and View Bag link. */
body.woocommerce .woocommerce-message,
body.woocommerce-page .woocommerce-message,
body.woocommerce .wc-block-components-notice-banner.is-success,
body.woocommerce-page .wc-block-components-notice-banner.is-success {
  box-sizing:border-box;color:#e8e0d6!important;background:#160c1d!important;
  border:1px solid #c99a3266!important;border-radius:2px!important;box-shadow:none!important;
  font-size:14px;line-height:1.6;padding:16px 20px 16px 44px!important;
}
body.woocommerce .woocommerce-message::before,
body.woocommerce-page .woocommerce-message::before {color:#c99a32!important;top:18px;left:18px;}
body.woocommerce .woocommerce-message a,
body.woocommerce-page .woocommerce-message a,
body.woocommerce .wc-block-components-notice-banner.is-success a,
body.woocommerce-page .wc-block-components-notice-banner.is-success a {
  color:#c99a32!important;-webkit-text-fill-color:#c99a32!important;background:transparent!important;
  border:0!important;font:inherit;text-underline-offset:4px;opacity:1!important;
}
body.woocommerce .wc-block-components-notice-banner.is-success a:focus-visible,
body.woocommerce-page .wc-block-components-notice-banner.is-success a:focus-visible {outline:1px solid #c99a32;outline-offset:3px;}
