/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: Patrick Grimmenstein
Author URI: https://giniware-life.com
Template: astra
Version: 1.0.0
*/

/* In: /astra-child/style.css */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding-left: 20px !important;
}


/* =============================================
   Mobile Ansicht - Bestellübersicht Komplett Fix
   ============================================= */

@media ( max-width: 768px ) {

    /* Tabelle zurücksetzen und neu aufbauen */
    .woocommerce-checkout-review-order-table {
        width: 100% !important;
        table-layout: auto !important;      /* ← NICHT mehr fixed */
        border-collapse: collapse !important;
        word-wrap: break-word !important;
    }

    /* Kein horizontales Scrollen */
    #order_review,
    .woocommerce-checkout-review-order {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Produktspalte - nimmt so viel Platz wie möglich */
    .woocommerce-checkout-review-order-table td.product-name,
    .woocommerce-checkout-review-order-table th:first-child {
        width: auto !important;
        max-width: unset !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    /* Preisspalte - nur so breit wie nötig */
    .woocommerce-checkout-review-order-table td.product-total,
    .woocommerce-checkout-review-order-table th:last-child {
        width: auto !important;
        white-space: nowrap !important;
        text-align: right !important;
        padding-right: 10px !important;
    }

    /* Produktbild kleiner */
    .woocommerce-checkout-review-order-table .product-thumbnail img {
        width: 50px !important;
        height: auto !important;
    }

    /* =============================================
       Pinke Trennlinie - volle Breite erzwingen
       ============================================= */

    /* Linie auf TR-Ebene statt TD-Ebene */
    .woocommerce-checkout-review-order-table tbody tr,
    .woocommerce-checkout-review-order-table tfoot tr {
        border-bottom: 1px solid #ff69b4 !important;
        display: table-row !important;
        width: 100% !important;
    }

    /* TD-Borders entfernen damit keine Dopplung */
    .woocommerce-checkout-review-order-table td,
    .woocommerce-checkout-review-order-table th {
        border-bottom: none !important;
        border-top: none !important;
    }
}

/* =============================================
   Desktop - Pinke Linie ebenfalls korrigieren
   ============================================= */

.woocommerce-checkout-review-order-table {
    border-collapse: collapse !important;
}

.woocommerce-checkout-review-order-table tbody tr,
.woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid #ff69b4 !important;
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    border-bottom: none !important;
}


