/* ============================================
   MOBILE POLISH: consent, category intro, buy bar
   ============================================ */
@media (max-width: 700px) {
    /* Cookie consent: keep it compliant but stop it dominating the viewport. */
    .pwcm-root[data-layout="box"] {
        --pwcm-pad: 12px;
        --pwcm-fs: 12px;
        --pwcm-fs-title: 15px;
        --pwcm-fs-btn: 12px;
        --pwcm-radius: 10px;
        --pwcm-margin: 8px;
    }
    .pwcm-root[data-layout="box"] .pwcm-banner {
        max-height: 58vh;
        overflow-y: auto;
        padding: 12px;
    }
    .pwcm-root[data-layout="box"] .pwcm-title { margin-bottom: .25em; }
    .pwcm-root[data-layout="box"] .pwcm-text { line-height: 1.4; }
    .pwcm-root[data-layout="box"] .pwcm-links { margin-top: .45em; font-size: .92em; }
    .pwcm-root[data-layout="box"] .pwcm-actions { margin-top: .7em; gap: 6px; }
    .pwcm-root[data-layout="box"] .pwcm-actions .pwcm-btn { flex: 1 1 0; min-height: 2.25em; padding: .5em .65em; }
    .pwcm-root[data-layout="box"] .pwcm-close { width: 28px; height: 28px; }

    /* The actual widget uses data-layout="bar"; override its large mobile sheet. */
    .pwcm-banner {
        max-height: 34vh !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }
    .pwcm-banner .pwcm-title {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin: 0 0 2px !important;
    }
    .pwcm-banner .pwcm-text {
        font-size: 11px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .pwcm-banner .pwcm-links {
        font-size: 10px !important;
        margin-top: 2px !important;
    }
    .pwcm-banner .pwcm-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
        margin-top: 6px !important;
    }
    .pwcm-banner .pwcm-actions .pwcm-btn {
        font-size: 11px !important;
        min-height: 34px !important;
        padding: 5px 7px !important;
        width: 100% !important;
    }
    .pwcm-banner .pwcm-btn-ghost {
        grid-column: 1 / -1 !important;
        min-height: 28px !important;
    }

    /* Breadcrumbs stay on one readable line instead of wrapping four times. */
    body .mrc-breadcrumbs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        padding-bottom: 3px !important;
    }
    body .mrc-breadcrumbs::-webkit-scrollbar { display: none; }
    body .mrc-breadcrumbs > * { flex: 0 0 auto; }

    /* Keep category hero compact; product grid closer to the first screen. */
    .mrc-category-header { min-height: 150px; margin-bottom: 18px; }
    .mrc-category-header-content { padding: 18px; }
    .mrc-category-header h1 { font-size: clamp(28px, 8vw, 34px); line-height: 1.1; }
    .mrc-category-intro-wrap { margin-bottom: 20px; }
    .mrc-category-intro-wrap:not(.is-open) .mrc-category-intro {
        max-height: 5.4em;
        overflow: hidden;
    }
    .mrc-category-intro-toggle {
        display: inline-flex !important;
        margin-top: 8px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--mrc-green, #007e00);
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        text-decoration: underline;
        cursor: pointer;
    }
    body.has-mobile-buy:not(.has-cart-bar), body.mrc-buybar-visible:not(.has-cart-bar) { padding-bottom: 76px; }
}
.mrc-category-intro-toggle { display: none; }

/* Do not let the floating question button cover the consent choices. */
body:has(.pwcm-banner.is-open) .mrc-question-fab { display: none !important; }
