.cs-search { position: relative; width: 100%; min-width: 0; }
.cs-search .cs-search__panel { font-size: 14px; line-height: 1.4; }
.cs-search .cs-search__panel :is(a, span, small, strong, del, ins) { line-height: 1.4; }
.cs-search form input[type="search"] { padding-right: 48px; }
.cs-search__panel { position: absolute; z-index: 100; top: calc(100% + 6px); left: 0; width: 100%; max-height: min(560px, 70vh); overflow: auto; border: 1px solid var(--cs-border, var(--color-border, #ddd)); border-radius: 6px; color: var(--cs-text, var(--color-text, #1a1f22)); background: var(--cs-surface, var(--color-surface, #fff)); box-shadow: 0 8px 24px rgb(0 0 0 / 14%); text-align: left; }
.cs-search__panel[hidden], .cs-search .cs-search__all[hidden] { display: none; }
.cs-search__status { margin: 0; padding: 12px 16px; font-size: 13px; color: var(--cs-muted, var(--color-text-muted, #666)); }
.cs-search__group-title { padding: 8px 16px; border-top: 1px solid var(--cs-border, var(--color-border, #ddd)); background: var(--cs-muted-surface, var(--color-surface-muted, #f4f6f7)); font-size: 12px; font-weight: 600; color: var(--cs-muted, var(--color-text-muted, #666)); }
.cs-search .cs-search__item.cs-search__item--category { min-height: 44px; box-sizing: border-box; color: var(--cs-accent, var(--color-brand-blue, #0072c0)); }
.cs-search .cs-search__item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--cs-border, var(--color-border, #ddd)); color: inherit; text-decoration: none; }
.cs-search .cs-search__item[aria-selected="true"], .cs-search .cs-search__item:hover { background: var(--cs-muted-surface, var(--color-surface-muted, #f4f6f7)); color: var(--cs-accent, var(--color-brand-blue, #0072c0)); }
.cs-search__item img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 4px; }
.cs-search__copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.cs-search__copy strong { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.cs-search__copy small { color: var(--cs-muted, var(--color-text-muted, #666)); font-size: 12px; }
.cs-search__price { flex: 0 0 auto; max-width: 36%; font-size: 13px; font-weight: 600; text-align: right; }
.cs-search__price del { display: block; color: var(--cs-muted, var(--color-text-muted, #666)); font-size: 12px; }
.cs-search__price ins { background: transparent; text-decoration: none; color: var(--cs-sale, var(--color-brand-green-deep, #008331)); }
.cs-search .cs-search__all { display: block; padding: 14px 16px; border-top: 1px solid var(--cs-border, var(--color-border, #ddd)); color: var(--cs-accent, var(--color-brand-blue, #0072c0)); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.cs-search__all:focus-visible { outline: 2px solid var(--cs-accent, var(--color-brand-blue, #0072c0)); outline-offset: -3px; }
.catalog-search-form { display: flex; gap: 8px; }
.catalog-search-form input[type="search"] { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--cs-border, var(--color-border, #ddd)); border-radius: 4px; font: inherit; }
.catalog-search-form button { padding: 8px 16px; border: 0; border-radius: 4px; background: var(--cs-accent, var(--color-brand-blue, #0072c0)); color: var(--cs-button-text, #fff); font: inherit; }
.catalog-search-form input[type="search"] { color: var(--cs-text, var(--color-text, #1a1f22)); background: var(--cs-surface, var(--color-surface, #fff)); }
.catalog-search-form input[type="search"]::placeholder { color: var(--cs-muted, var(--color-text-muted, #666)); }
.catalog-search-form :is(input, button):focus-visible { outline: 2px solid var(--cs-accent, var(--color-brand-blue, #0072c0)); outline-offset: 2px; }
@media (max-width: 480px) {
 .cs-search__panel { max-height: 65vh; }
 .cs-search .cs-search__item { gap: 8px; padding: 10px; }
 .cs-search__item img { width: 42px; height: 42px; flex-basis: 42px; }
 .cs-search__copy strong { font-size: 13px; }
 .cs-search__price { font-size: 12px; max-width: 30%; }
}

/* Own shortcode controls: scoped sizing overrides ordinary theme form rules. */
form.catalog-search-widget__form {
 display: flex; align-items: stretch; gap: 8px; width: 100%; min-width: 0;
 margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
 box-sizing: border-box; float: none; position: relative;
}
form.catalog-search-widget__form > input.catalog-search-widget__input {
 appearance: none; box-sizing: border-box; display: block; position: static;
 flex: 1 1 0%; width: 0; min-width: 0; max-width: none;
 height: var(--catalog-search-height, 44px); min-height: 0;
 margin: 0; padding: 0 14px; border: 1px solid var(--cs-border, var(--color-border, #ddd));
 border-radius: 4px; box-shadow: none; font: inherit; line-height: normal;
 color: var(--cs-text, var(--color-text, #1a1f22)); background: var(--cs-surface, var(--color-surface, #fff));
}
form.catalog-search-widget__form > button.catalog-search-widget__submit {
 appearance: none; box-sizing: border-box; display: inline-flex;
 align-items: center; justify-content: center; position: static;
 flex: 0 0 auto; width: auto; min-width: 66px; max-width: none;
 height: var(--catalog-search-height, 44px); min-height: 0;
 margin: 0; padding: 0 16px; border: 0; border-radius: 4px;
 box-shadow: none; transform: none; font: inherit; line-height: normal;
 text-indent: 0; text-transform: none; letter-spacing: normal; cursor: pointer;
 color: var(--cs-button-text, #fff); background: var(--cs-accent, var(--color-brand-blue, #0072c0));
}
form.catalog-search-widget__form > button.catalog-search-widget__submit::before,
form.catalog-search-widget__form > button.catalog-search-widget__submit::after { content: none; }
