.logobar .mgt-header-search {
    display: flex;
    align-items: stretch;
    min-width: 0;
    width: min(520px, calc(100vw - var(--g) - var(--g)));
    margin: 16px auto 0;
    border-radius: 999px;
}

.mgt-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mgt-header-search input,
.mgt-header-search button {
    min-height: 46px;
    font: inherit;
    letter-spacing: inherit;
    font-size: .9rem;
}

.mgt-header-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #9783af;
    border-inline-end: 0;
    border-radius: 999px 0 0 999px;
    background: #f7f3fb;
    color: var(--ink);
}

.mgt-header-search input::placeholder {
    color: var(--ink-2);
    opacity: 1;
}

.mgt-header-search button {
    position: relative;
    flex: 0 0 auto;
    padding: 8px 18px 8px 38px;
    border: 1px solid var(--purple);
    border-radius: 0 999px 999px 0;
    background: var(--purple);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
}

/* Decorative magnifier. The button text provides its accessible name. */
.mgt-header-search button::before,
.mgt-header-search button::after {
    content: "";
    position: absolute;
    color: inherit;
}

.mgt-header-search button::before {
    top: calc(50% - 8px);
    left: 15px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.mgt-header-search button::after {
    top: calc(50% + 4px);
    left: 25px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.mgt-header-search button:hover {
    border-color: var(--nav);
    background: var(--nav);
}

.logobar .mgt-header-search:focus-within {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

.mgt-header-search input:focus {
    outline: none;
}

.mgt-header-search button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
}

@media (max-width: 480px) {
    .logobar .mgt-header-search {
        margin-top: 12px;
    }

    .mgt-header-search button {
        padding-inline-end: 12px;
    }
}
