/* CCDSS / SCSMC — brand + search + language on one row (phone only)
 *
 * Notes:
 * - GCWeb `#wb-srch .submit` is position:absolute; must be static here.
 * - FIP SVG is width/height 100%; without an explicit img box it collapses to 0×0 in flex.
 */

@media (max-width: 767px) {
    #wb-bnr {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        box-sizing: border-box;
        /* One-row FIP: 2.75rem controls + vertical padding — hold height before fonts/flex settle. */
        min-height: 4.05rem;
    }

    #wb-bnr > .row {
        order: 1;
        display: flex;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }

    #wb-bnr .brand {
        float: none !important;
        width: auto !important;
        flex: 0 0 auto;
        margin: 0 0.65rem 0 -5px;
        padding: 0;
    }

    #wb-bnr .brand a {
        display: block;
        line-height: 0;
    }

    /* Explicit box — SVG asset uses width/height="100%" (≈300×28 intrinsic) */
    #wb-bnr .brand img,
    #wb-bnr .brand object {
        display: block;
        width: 214px;
        height: 20px;
        max-width: 40vw;
        max-height: none;
        margin: 0;
    }

    #wb-bnr #wb-srch {
        float: none !important;
        width: auto !important;
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        padding: 0 !important;
        text-align: right;
        position: relative;
    }

    #wb-bnr #wb-srch > h2 {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        border: 0 !important;
    }

    #wb-bnr #wb-srch form {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-end;
        margin: 0;
        width: 100%;
        max-width: none;
    }

    #wb-bnr #wb-srch .form-group {
        margin: 0;
        position: static;
    }

    #wb-bnr #wb-srch .form-group:not(.submit) {
        flex: 1 1 auto;
        min-width: 0;
    }

    #wb-bnr #wb-srch .submit,
    #wb-bnr #wb-srch .form-group.submit {
        position: static !important;
        top: auto !important;
        right: auto !important;
        flex: 0 0 auto;
    }

    #wb-bnr #wb-srch-q,
    #wb-bnr input.wb-srch-q {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        height: 2.75rem;
        box-sizing: border-box;
        margin: 0;
        padding: 0 7px;
        font-size: 13px;
        line-height: 1.2;
    }

    #wb-bnr #wb-srch-sub,
    #wb-bnr #wb-srch button {
        position: static !important;
        width: 2.75rem !important;
        min-width: 2.75rem;
        height: 2.75rem !important;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #wb-bnr #wb-lng {
        order: 2;
        float: none;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 0;
        text-align: right;
        align-self: center;
    }

    #wb-bnr #wb-lng ul {
        margin: 0;
    }

    #wb-bnr #wb-lng li {
        margin: 0;
    }

    #wb-bnr #wb-lng a {
        white-space: nowrap;
        display: inline-block;
        padding: 0.35rem 0.15rem;
        line-height: 1.25;
    }
}
