.ca-brand-sidebar-sections--featured .ca-catalog-sidebar-trigger {
    padding-top: 12px;
}

.codingants_brand-brand-view .breadcrumbs,
.codingants_brand-index-index .breadcrumbs {
    box-shadow: none !important;
}

.codingants-brand-widget-hyva,
.codingants-brand-widget-hyva__promotion,
.codingants-brand-widget-hyva__content,
.codingants-brand-widget-hyva__promotion-content {
    box-sizing: border-box;
    min-width: 0;
}

.codingants-brand-widget-hyva__promotion {
    background-image: var(--codingants-brand-background-image);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.codingants-brand-widget-hyva__promotion-content {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.codingants-brand-widget-hyva__content {
    min-width: 0;
    width: 100%;
}

/* Match the Brand List layout in classic themes: the aggregate link follows the grid. */
.codingants-brand-widget-hyva__view-all {
    justify-content: center;
    margin: 24px 0 0;
}

/* Brand directory cards keep their existing understated border treatment. */
.codingants-brand-widget-card {
    border-color: var(--ca-widget-card-border, #f0f0f0);
    box-shadow: none;
    transition: box-shadow 180ms ease-out;
}

.codingants-brand-widget-card:is(:hover, :focus-within) {
    box-shadow: var(--shadow-md);
}

/* Featured Brand carousel cards use the shared, borderless two-level elevation. */
.codingants-brand-carousel__link {
    border: 0 !important;
    box-shadow: var(--ca-card-shadow, 0 1px 2px rgba(15, 23, 42, .08));
    position: relative;
    transition: box-shadow 200ms ease;
}

.codingants-brand-carousel__link:is(:hover, :focus-within) {
    box-shadow: var(--ca-card-shadow-hover, 0 8px 18px rgba(15, 23, 42, .14));
    z-index: 1;
}

/* Product cards share the storefront's two-level, borderless elevation contract. */
.codingants-brand-product-card {
    border: 0 !important;
    box-shadow: var(--ca-card-shadow, 0 1px 2px rgba(15, 23, 42, .08));
    overflow: hidden;
    transition: box-shadow 200ms ease;
}

.codingants-brand-product-card > .ca-quickview-media {
    margin-bottom: 0;
}

.codingants-brand-product-card:is(:hover, :focus-within) {
    box-shadow: var(--ca-card-shadow-hover, 0 8px 18px rgba(15, 23, 42, .14));
}

.codingants-brand-product-card__price {
    text-align: center;
}

.codingants-brand-view__banner {
    border-radius: var(--ca-card-radius, 0);
}

@media (max-width: 767px) {
    .codingants-brand-widget-hyva__promotion {
        background-image: var(
            --codingants-brand-mobile-background-image,
            var(--codingants-brand-background-image)
        );
    }

    /* Mirror the compact mobile density of the classic Brand widget. */
    .codingants-brand-widget-hyva .codingants-brand-widget-hyva__link {
        gap: .5rem;
    }

    .codingants-brand-widget-hyva__name {
        font-size: .875rem;
        line-height: 1.35;
    }
}

.codingants-brand-widget-hyva__items--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .codingants-brand-widget-hyva__items--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .codingants-brand-widget-hyva__items--grid {
        grid-template-columns: repeat(var(--codingants-brand-widget-columns, 4), minmax(0, 1fr));
    }

    .codingants-brand-widget-hyva--with-promotion {
        display: flex;
    }

    .codingants-brand-widget-hyva--image-right {
        flex-direction: row-reverse;
    }

    .codingants-brand-widget-hyva__promotion {
        flex: 0 1 40%;
        max-width: 40%;
        width: 40%;
    }

    .codingants-brand-widget-hyva__content {
        flex: 1 1 60%;
        min-width: 0;
        width: 60%;
    }
}
