/* ==========================================================================
   HEALING WITH DMSO - YUMMY BRANDS CART / SEARCH PARITY
   Final production geometry.
   ========================================================================== */

/*
 * Cart:
 * Keep the same 10px / 14px sister-store padding.
 * The 40px minimum height prevents an empty Cart from collapsing smaller
 * simply because the 22px count badge is not currently visible.
 */
.dmso-header .dmso-menu-cart > a,
.dmso-primary-nav .dmso-menu-cart > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    min-height: 40px !important;
    padding: 10px 14px !important;

    line-height: 1 !important;
    box-sizing: border-box !important;
}


/*
 * Search:
 * Approved HWD desktop geometry from the browser test.
 * This stylesheet loads after the shared commerce styles.
 *
 * !important also prevents the old runtime sizing helper from making
 * this control larger than the approved 40px square.
 */
@media (min-width: 1021px) {

    .dmso-header .dmso-search-link {
        flex: 0 0 40px !important;

        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;

        margin-left: -16px !important;
    }
}


/*
 * Native Woo cart-count badge.
 * Same 22px optical geometry as the sister stores.
 */
.dmso-header .dmso-menu-cart .ybn-cart-count-badge,
.dmso-primary-nav .dmso-menu-cart .ybn-cart-count-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;
    vertical-align: middle !important;

    position: relative !important;
    top: 0 !important;

    text-align: center !important;
    border-radius: 999px !important;

    background: #617260 !important;
    color: #fff !important;

    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: .66rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;

    text-decoration: none !important;
    box-shadow: none !important;
}


/* Empty cart = CART only. Never display a zero badge. */
.dmso-header .dmso-menu-cart .ybn-cart-count-badge[hidden],
.dmso-primary-nav .dmso-menu-cart .ybn-cart-count-badge[hidden] {
    display: none !important;
}
