/* Keep the submit button clear of the theme's search close control. */
.top-search-form.search-with-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 56px;
}
.top-search-form.search-with-submit input {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    padding-right: 0;
    font-size: 24px;
    letter-spacing: normal;
}
.top-search-form .header-search-submit {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 20px;
    min-height: 44px;
    line-height: 44px;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}
.top-search-form .header-search-submit:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}
@media (max-width: 575.98px) {
    .top-search-form.search-with-submit { gap: 8px; padding-right: 40px; }
    .top-search-form.search-with-submit input { font-size: 16px; padding-left: 0; }
    .top-search-form .header-search-submit { padding: 0 14px; }
}

/* Use the configured theme color instead of legacy generic button overrides. */
.top-search-form .header-search-submit {
    color: #fff !important;
    background-color: var(--header-search-color) !important;
}
.top-search-form .header-search-submit:hover { filter: brightness(0.85); }

/* Mobile headers place menu controls before the right edge; keep close in its reserved space. */
.top-search-open .top-search-parent #top-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 11;
}
