/* Produktside på mobil (site#55): titel, pris og bestilling før beskrivelsen,
   vandrette thumbnails, tilvalg i én kolonne og en fast bestil-bjælke. */

.pp-sticky-bestil {
    display: none;
}

@media (max-width: 576px) {
    .single-product .woocommerce-product-gallery .flex-viewport {
        width: 100%;
        float: none;
        margin-bottom: 10px;
    }

    .single-product div.product div.images .flex-control-thumbs {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        justify-content: flex-start;
    }

    .single-product div.product div.images .flex-control-thumbs li {
        flex: 0 0 60px;
        width: 60px;
        margin: 0;
    }

    .single-product div.product .summary.entry-summary {
        display: flex;
        flex-direction: column;
    }

    .single-product .summary .product_title { order: 1; }
    .single-product .summary .price { order: 2; }
    .single-product .summary form.cart { order: 3; }
    .single-product .summary .pp-info-bar { order: 4; }
    .single-product .summary .woocommerce-product-details__short-description { order: 5; margin-top: 24px; }
    .single-product .summary > :not(.product_title):not(.price):not(form):not(.pp-info-bar):not(.woocommerce-product-details__short-description) { order: 6; }

    .single-product .pewc-checkboxes-images-wrapper.child-product-wrapper {
        grid-template-columns: 1fr !important;
    }

    .single-product .pewc-checkbox-image-wrapper {
        max-width: 100%;
    }

    .pp-sticky-bestil {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 999;
        padding: 10px 10px 10px 18px;
        border-radius: 999px;
        background: #004932;
        color: #fff !important;
        text-decoration: none !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .pp-sticky-bestil.is-hidden {
        transform: translateY(140%);
        opacity: 0;
        pointer-events: none;
    }

    .pp-sticky-bestil__price,
    .pp-sticky-bestil__price .tax-suffix {
        color: #fff;
        font-weight: 600;
        font-size: 15px;
    }

    .pp-sticky-bestil__price .tax-suffix {
        font-weight: 400;
        font-size: 12px;
        opacity: 0.85;
    }

    .pp-sticky-bestil__btn {
        background: #fff;
        color: #004932;
        font-weight: 600;
        border-radius: 999px;
        padding: 10px 22px;
    }
}
