/* Parent storefront (shopify-integration.css) + survey greeting via @import */
@import url("https://contourlab-app-static.s3.eu-central-1.amazonaws.com/web/shops/63c58e51-f92f-4755-89f8-e458fbbdcba9/assets/custom.css");
.a-hide {
    display: none !important;
}

.collection__sticky-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.5rem;
}

.collection__sticky-bar .breadcrumbs {
    order: 1;
}

.collection__sticky-bar .fmf-grid {
    order: 2;
    width: auto !important;
    flex: 0 0 auto;
    margin: 0 !important;
    gap: 0.5rem;
}

.collection__sticky-bar .collection__products-count {
    order: 3;
    margin-left: auto;
}

.collection__sticky-bar .collection__filters__toggle {
    order: 4;
}

.collection__sticky-bar .fmf-label-text {
    font-family: "Muli", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Hidden until JS fills .contourlab-find-my-fit-badge (FMF toggle on / reco PLP). */
.product-badge__item--contourlab {
    display: none !important;
}

.product-badge__item--contourlab:has(
        .contourlab-find-my-fit-badge:not(.a-hide):not(:empty)
    ) {
    display: block !important;
    font-family: var(--FONT-STACK-SUBHEADING);
    font-weight: var(--FONT-WEIGHT-SUBHEADING);
    text-transform: var(--SUBHEADING-TEXT-CAPS);
    letter-spacing: var(--LETTER-SPACING-SUBHEADING);
    background: var(--COLOR-ACCENT, #b8a066) !important;
    color: var(--COLOR-ACCENT-TEXT, #fff) !important;
    text-align: left;
    font-size: calc(0.6875rem * var(--adjust-badges));
    line-height: 1.2;
    transition: opacity 0.15s ease;
    padding: 8px 16px;
    height: auto;
    border-radius: var(--RADIUS-BADGE);
}

.product-badge__item--contourlab .contourlab-find-my-fit-badge {
    display: block;
    background: transparent !important;
    color: inherit !important;
    padding: 0;
    min-width: 0;
    border-radius: 0;
}

.product-badge__item--contourlab .contourlab-find-my-fit-badge.a-hide {
    display: none !important;
}

@media only screen and (max-width: 479px) {
    .product-badge__item--contourlab:has(
            .contourlab-find-my-fit-badge:not(.a-hide):not(:empty)
        ) {
        font-size: calc(0.825rem * var(--adjust-badges));
    }
}

/* FMF collection: passport iframe in filter sidebar — content height only */
[data-collection-filters-list] iframe.contourlab-find-my-fit-survey {
    min-height: 0 !important;
    height: auto;
}

[data-collection-filters-list]:has(iframe.contourlab-find-my-fit-survey) {
    height: auto;
    min-height: 0;
}
