/**
 * MeinAboWein – Warenkorb CSS
 * Version 1.6.0
 */
/* Grundlayout für den Warenkorb */
.mab-cart-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

/* Standard-H1 vom Theme ausblenden, eigene Überschrift nutzen */
.woocommerce-cart .entry-title {
    display: none;
}

/* Eigene H1-Überschrift */
.mab-cart-heading {
    max-width: 1200px;
    margin: 2.5rem auto 1.5rem;
    padding: 0 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Tabelle: sanfter, edler Look */
.woocommerce-cart table.shop_table {
    border-radius: 18px;
    overflow: hidden;
    border: none;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    padding: 1.1rem 1.25rem;
}

/* Produktname + Kurzbeschreibung */
.woocommerce-cart .product-name a {
    color: #222222 !important;
    text-decoration: none;
}

.woocommerce-cart .product-name a:hover {
    color: #c9a35b !important;
}

.mab-cart-short-description {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555555;
}

/* Buttons neutralisieren (kein knalliges Blau) */
body.woocommerce-cart .cart .button,
body.woocommerce-cart .cart input.button,
body.woocommerce-cart a.button,
body.woocommerce-cart button.button,
body.woocommerce-cart input.button {
    border-radius: 999px !important;
    background: #222222 !important;
    color: #f7f3e9 !important;
    border: none !important;
    font-weight: 500 !important;
    padding: 0.55rem 1.3rem !important;
    text-transform: none !important;
}

/* Gutschein + Warenkorb aktualisieren schmaler */
body.woocommerce-cart .cart .button[name="apply_coupon"],
body.woocommerce-cart .cart input.button[name="update_cart"] {
    padding: 0.45rem 1.1rem !important;
    font-size: 0.9rem !important;
}

body.woocommerce-cart .cart .button:hover,
body.woocommerce-cart .cart input.button:hover,
body.woocommerce-cart a.button:hover,
body.woocommerce-cart button.button:hover,
body.woocommerce-cart input.button:hover {
    background: #333333 !important;
}

/* Gutschein + Freundefeld */
.woocommerce-cart .coupon {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.woocommerce-cart .coupon .input-text {
    width: 40%;
    max-width: 260px;
    display: inline-block;
    box-sizing: border-box;
}

.woocommerce-cart .coupon .button {
    display: inline-block;
    margin-left: 0.5rem;
}

/* Freundeprogramm-Feld unter dem Gutschein */
.mab-cart-friend-field {
    display: block;
    clear: both;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4e4e4;
}

.mab-cart-friend-field label {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #222222;
    text-align: left;
}

/* Input + Button nebeneinander auf Desktop */
.mab-cart-friend-row {
    display: flex;
    width: 100%;
    max-width: none;
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box;
}

.mab-cart-friend-row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.mab-cart-friend-row .mab-cart-friend-check {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mab-cart-friend-field input[type="text"] {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    background: #faf9f6;
}

.mab-cart-friend-field input[type="text"]:focus {
    outline: none;
    border-color: #c6a35a;
    box-shadow: 0 0 0 1px rgba(198, 163, 90, 0.4);
    background: #ffffff;
}

.mab-cart-friend-field .description {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #666666;
    text-align: left;
}

/* Meldung nach Freund-Prüfung */
.mab-cart-friend-message {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.mab-cart-friend-ok {
    color: #1b7f4a;
}

.mab-cart-friend-error {
    color: #b3261e;
}

/* Zusammenfassungs-Box mit Avatar */
.mab-cart-summary {
    margin-top: 2.25rem;
}

.mab-cart-summary-inner {
    display: flex;
    gap: 1.8rem;
    align-items: stretch;
    padding: 1.9rem 1.8rem;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #524332 0, #302821 45%, #26201a 100%);
    color: #f7f3e9;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    position: relative;
}

/* Avatar */
.mab-cart-avatar {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 999px;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dein Avatar im Child-Theme */
.mab-cart-avatar {
}

.mab-cart-summary-content {
    flex: 1 1 auto;
}

/* Überschrift in Gold */
.mab-cart-summary-title {
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
    letter-spacing: 0.03em;
    color: #f5cd7a;
}

.mab-cart-summary-text {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #efe5d2;
}

/* Info-Zeile Paketgröße */
.mab-cart-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem 1rem;
    margin-bottom: 1rem;
}

.mab-cart-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

.mab-cart-label {
    font-weight: 600;
    min-width: 140px;
}

.mab-cart-value {
    font-weight: 500;
}

.mab-cart-value-warning {
    color: #ffcf7a;
    font-weight: 600;
    margin-left: 0.35rem;
}

.mab-cart-help {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* Formularbereich für Abo-Einstellungen */
.mab-cart-summary-form-wrapper {
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

/* Titel "Abo-Einstellungen anpassen" in Gold */
.mab-cart-summary-form-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f5cd7a;
}

.mab-cart-summary-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.75rem;
}

/* Labels (Abo-Art, Lieferintervall, ...) in Gold */
.mab-cart-summary-form-field label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #f5cd7a;
}

/* Grundstil der Select-Felder – besserer Kontrast */
.mab-cart-summary-form-field select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(245, 205, 122, 0.75);
    background: #3b3227;
    color: #f7f3e9;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
}

/* Optionen im Dropdown – dunkler Hintergrund, helle Schrift */
.mab-cart-summary-form-field select option {
    background: #26201a;
    color: #f7f3e9;
}

.mab-cart-summary-form-field select option:disabled {
    color: #9d8f7a;
}

/* Hinweistext unter den Selects */
.mab-cart-summary-note {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    opacity: 0.85;
}

/* Inline-Warnung im Abo-Block */
.mab-cart-abo-warning {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #facc15;
}

/* Checkout-Button gesperrt */
.mab-cart-button-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Warenkorb-Summe – dunkle edle Card, aber gut lesbar */
.mab-cart-layout .cart-collaterals .cart_totals {
    border-radius: 24px;
    border: none;
    padding: 1.6rem 1.8rem 1.8rem;
    background: #26201a;
    color: #f7f2e9;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.mab-cart-layout .cart-collaterals .cart_totals h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
}

/* Tabelleninhalte in der Summe-Box */
.mab-cart-layout .cart-collaterals .cart_totals table {
    border: none;
    background: transparent;
}

.mab-cart-layout .cart-collaterals .cart_totals table th,
.mab-cart-layout .cart-collaterals .cart_totals table td {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: #f7f2e9;
}

.mab-cart-layout .cart-collaterals .cart_totals table tr:first-child th,
.mab-cart-layout .cart-collaterals .cart_totals table tr:first-child td {
    border-top: none;
}

.mab-cart-layout .cart-collaterals .cart_totals table th {
    font-weight: 500;
    color: #e5ddc6;
}

.mab-cart-layout .cart-collaterals .cart_totals .order-total th,
.mab-cart-layout .cart-collaterals .cart_totals .order-total td {
    font-weight: 700;
}

/* Hinweis direkt unter dem Checkout-Button */
.mab-cart-checkout-warning {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #f5cd7a;
}

/* Links in der Summe-Box – kein dunkles Blau mehr */
.mab-cart-layout .cart-collaterals .cart_totals a {
    color: #f5cd7a;
    text-decoration: underline;
}

.mab-cart-layout .cart-collaterals .cart_totals a:hover {
    filter: brightness(1.08);
}

/* Versand-Zeile extra gut lesbar */
.woocommerce-cart .cart_totals .shipping td,
.woocommerce-cart .cart_totals .shipping label,
.woocommerce-cart .cart_totals .shipping .amount {
    color: #f7f2e9 !important;
}

/* Checkout-Button explizit Gold */
.mab-cart-layout .cart-collaterals .wc-proceed-to-checkout .mab-cart-checkout-button {
    border-radius: 999px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.85rem 1.4rem !important;
    background: linear-gradient(135deg, #c9a35b, #f5cd7a) !important;
    color: #1b1b1b !important;
    border: none !important;
    text-transform: none !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32) !important;
}

.mab-cart-layout .cart-collaterals .wc-proceed-to-checkout .mab-cart-checkout-button:hover {
    filter: brightness(1.06);
}

/* GLOBAL: mache WooCommerce-Buttons gold */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: linear-gradient(135deg, #c9a35b, #f5cd7a) !important;
    color: #1b1b1b !important;
    border-radius: 999px !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0.7rem 1.4rem !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25) !important;
    text-transform: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    filter: brightness(1.08);
}

/* Mobilansicht */
@media (max-width: 768px) {
    .mab-cart-layout {
        padding: 1.5rem 0.75rem 2rem;
    }

    .mab-cart-heading {
        margin-top: 1.5rem;
        padding: 0 0.75rem;
        font-size: 1.65rem;
    }

    /*
     * Gutscheinbereich:
     * Auf dem Handy immer untereinander und volle Breite.
     */
    .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions,
    .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions td {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions .coupon,
    .woocommerce-cart .coupon {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    .woocommerce-cart .coupon .input-text,
    .woocommerce-cart .coupon input#coupon_code,
    .woocommerce-cart .coupon input[type="text"] {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 0 0.7rem !important;
        padding: 0.75rem 0.9rem !important;
        box-sizing: border-box !important;
        font-size: 1rem !important;
    }

    .woocommerce-cart .coupon .button,
    .woocommerce-cart .coupon button.button,
    .woocommerce-cart .coupon input.button {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0.7rem 1rem !important;
        box-sizing: border-box !important;
        font-size: 1rem !important;
        text-align: center !important;
    }

    /*
     * Freundeprogramm:
     * Feld und Button untereinander, damit das Eingabefeld
     * immer groß und einfach nutzbar ist.
     */
    .mab-cart-friend-field {
        width: 100% !important;
        max-width: none !important;
        margin-top: 1rem;
        padding-top: 1rem;
        box-sizing: border-box !important;
    }

    .mab-cart-friend-field label {
        width: 100% !important;
        margin-bottom: 0.55rem;
        font-size: 0.95rem;
        text-align: left !important;
    }

    .mab-cart-friend-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: none !important;
        gap: 0.7rem !important;
        box-sizing: border-box !important;
    }

    .mab-cart-friend-row input[type="text"],
    .mab-cart-friend-field input[type="text"],
    .woocommerce-cart .coupon .mab-cart-friend-row input[type="text"] {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0.75rem 0.95rem !important;
        box-sizing: border-box !important;
        font-size: 1rem !important;
    }

    .mab-cart-friend-row .mab-cart-friend-check,
    .woocommerce-cart .coupon .mab-cart-friend-row .mab-cart-friend-check {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0.7rem 1rem !important;
        box-sizing: border-box !important;
        font-size: 1rem !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .mab-cart-friend-field .description,
    .mab-cart-friend-message {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        text-align: left !important;
        font-size: 0.84rem;
        line-height: 1.55;
    }

    /*
     * Der Button "Warenkorb aktualisieren" soll nach Gutschein
     * und Freundeprogramm ausreichend Abstand haben.
     */
    .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions input[name="update_cart"],
    .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions button[name="update_cart"] {
        display: block !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 1rem 0 0 !important;
        box-sizing: border-box !important;
    }

    .mab-cart-summary-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mab-cart-avatar {
        width: 100px;
        height: 100px;
    }

    .mab-cart-summary-title {
        font-size: 1.2rem;
    }

    .mab-cart-summary-form-grid {
        grid-template-columns: 1fr;
    }

    .mab-cart-layout .cart-collaterals .cart_totals {
        margin-top: 1.5rem;
        padding: 1.3rem 1.4rem 1.6rem;
    }
}

/* Select-Felder mit goldenem Pfeil im Kästchen */
.mab-cart-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.4rem;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 6 5-6H5z' fill='%23f5cd7a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 0.9rem 0.9rem;
}

/* =========================================================
   MeinAboWein Warenkorb 1.5.1 – kompakter Smartphone-Aufbau
   ========================================================= */

.woocommerce-cart .mab-cart-coupon-card,
.woocommerce-cart .mab-cart-friend-card{
    float:none !important;
    clear:both !important;
    width:100% !important;
    max-width:none !important;
    margin:0 0 14px !important;
    padding:16px !important;
    box-sizing:border-box !important;
    border:1px solid rgba(198,165,114,.48) !important;
    border-radius:16px !important;
    background:#fbf8f1 !important;
}

.woocommerce-cart .mab-cart-coupon-card::before{
    content:"Gutschein";
    display:block;
    margin:0 0 9px;
    color:#232f37;
    font-size:15px;
    font-weight:800;
}

.mab-cart-friend-card > label{
    margin:0 0 6px !important;
    font-size:16px !important;
    font-weight:800 !important;
    color:#232f37 !important;
}

.mab-cart-friend-intro{
    margin:0 0 11px;
    color:#4d565b;
    font-size:13px;
    line-height:1.45;
}

.mab-cart-friend-row input[type="text"]{
    min-height:50px;
    border-radius:12px !important;
    border:1px solid #cfc8b9 !important;
    padding:12px 14px !important;
    background:#fff !important;
    color:#232f37 !important;
}

.mab-cart-friend-row .mab-cart-friend-check{
    min-height:50px;
    border-radius:12px !important;
    padding:12px 18px !important;
    background:#232f37 !important;
    color:#fff !important;
    box-shadow:none !important;
}

.mab-cart-friend-field .description{
    margin:9px 0 0 !important;
    color:#5e6468 !important;
}

.mab-cart-friend-message{
    margin:11px 0 0 !important;
    padding:11px 12px;
    border-radius:10px;
    background:#fff;
}

.mab-cart-friend-ok{
    border:1px solid rgba(27,127,74,.25);
    background:#f1fbf5;
}

.mab-cart-friend-error{
    border:1px solid rgba(179,38,30,.22);
    background:#fff5f4;
}

.mab-cart-description-toggle{
    display:none;
    appearance:none;
    border:0;
    padding:0;
    margin:5px 0 0;
    background:transparent;
    color:#8a681f;
    font-size:12px;
    font-weight:800;
    text-decoration:underline;
    cursor:pointer;
}

@media (max-width: 768px){
    body.woocommerce-cart .ast-primary-header-bar,
    body.woocommerce-cart header.site-header,
    body.woocommerce-cart .site-header{
        min-height:84px !important;
    }

    body.woocommerce-cart .site-logo-img img,
    body.woocommerce-cart .custom-logo-link img,
    body.woocommerce-cart .custom-logo{
        max-height:72px !important;
        width:auto !important;
    }

    .mab-cart-layout{
        padding:1rem .6rem 1.6rem !important;
    }

    .mab-cart-heading{
        margin:1rem auto .85rem !important;
        padding:0 .6rem !important;
        font-size:1.55rem !important;
    }

    .woocommerce-cart table.shop_table{
        border-radius:16px !important;
        box-shadow:0 10px 28px rgba(0,0,0,.07) !important;
        overflow:visible !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item{
        position:relative !important;
        display:grid !important;
        grid-template-columns:84px minmax(0,1fr) !important;
        gap:0 12px !important;
        margin:0 0 12px !important;
        padding:14px !important;
        border:1px solid rgba(0,0,0,.07) !important;
        border-radius:15px !important;
        background:#fff !important;
        box-shadow:0 8px 22px rgba(0,0,0,.045) !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td{
        display:block !important;
        width:auto !important;
        padding:6px 0 !important;
        border:0 !important;
        text-align:left !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td::before{
        float:none !important;
        display:inline-block;
        min-width:92px;
        margin-right:8px;
        color:#666;
        font-size:12px;
        font-weight:700;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove{
        position:absolute !important;
        right:17px;
        width:28px !important;
        padding:0 !important;
        z-index:2;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail{
        grid-column:1;
        grid-row:1 / span 4;
        display:block !important;
        width:84px !important;
        padding:0 !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail::before{
        display:none !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail img{
        display:block !important;
        width:78px !important;
        height:106px !important;
        max-width:none !important;
        margin:0 auto !important;
        object-fit:contain !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-subtotal{
        grid-column:2;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name{
        padding:0 28px 7px 0 !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name::before{
        display:none !important;
    }

    .woocommerce-cart .product-name > a{
        display:block;
        color:#232f37 !important;
        font-size:15px !important;
        font-weight:800 !important;
        line-height:1.35 !important;
    }

    .mab-cart-short-description{
        display:-webkit-box;
        margin:5px 0 0 !important;
        overflow:hidden;
        color:#5d6266 !important;
        font-size:12.5px !important;
        line-height:1.42 !important;
        -webkit-box-orient:vertical;
    }

    .mab-cart-short-description.is-collapsed{
        -webkit-line-clamp:2;
        max-height:3.55em;
    }

    .mab-cart-short-description.is-expanded{
        display:block;
        max-height:none;
        overflow:visible;
    }

    .mab-cart-description-toggle{
        display:inline-block;
    }

    .woocommerce-cart .quantity .qty{
        width:66px !important;
        min-height:38px !important;
        padding:7px !important;
        text-align:center !important;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-subtotal{
        display:flex !important;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        min-height:37px;
        border-top:1px solid rgba(0,0,0,.06) !important;
    }

    .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions{
        padding:12px 0 0 !important;
        background:transparent !important;
    }

    .woocommerce-cart .mab-cart-coupon-card,
    .woocommerce-cart .mab-cart-friend-card{
        margin:0 0 12px !important;
        padding:14px !important;
    }

    .woocommerce-cart .coupon .input-text,
    .woocommerce-cart .coupon input#coupon_code,
    .woocommerce-cart .coupon input[type="text"]{
        min-height:50px !important;
        margin:0 0 9px !important;
        border-radius:12px !important;
        padding:12px 14px !important;
        background:#fff !important;
    }

    .woocommerce-cart .coupon .button,
    .woocommerce-cart .coupon button.button,
    .woocommerce-cart .coupon input.button{
        min-height:50px !important;
        border-radius:12px !important;
    }

    .mab-cart-friend-row{
        flex-direction:column !important;
        gap:9px !important;
    }

    .mab-cart-summary{
        margin-top:14px !important;
    }

    .mab-cart-summary-inner{
        gap:12px !important;
        padding:16px !important;
        border-radius:18px !important;
    }

    .mab-cart-avatar{
        width:72px !important;
        height:72px !important;
        flex-basis:72px !important;
    }

    .mab-cart-summary-title{
        margin-bottom:5px !important;
        font-size:1.08rem !important;
    }

    .mab-cart-summary-text{
        margin-bottom:10px !important;
        font-size:.82rem !important;
        line-height:1.45;
    }

    .mab-cart-summary-row{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:3px !important;
    }

    .mab-cart-label{
        min-width:0 !important;
    }

    .mab-cart-help{
        font-size:.72rem !important;
        line-height:1.45;
    }

    .mab-cart-summary-form-grid{
        gap:12px !important;
    }

    .mab-cart-summary-form-field select{
        min-height:48px;
        border-radius:12px !important;
        padding:10px 38px 10px 12px !important;
    }

    .mab-cart-layout .cart-collaterals .cart_totals{
        margin-top:14px !important;
        padding:16px !important;
        border-radius:18px !important;
    }

    .mab-cart-layout .cart-collaterals .cart_totals h2{
        margin-bottom:8px !important;
        font-size:1.08rem !important;
    }

    .mab-cart-layout .cart-collaterals .cart_totals table th,
    .mab-cart-layout .cart-collaterals .cart_totals table td{
        padding:8px 0 !important;
        font-size:.84rem !important;
    }

    .mab-cart-layout .cart-collaterals .wc-proceed-to-checkout .mab-cart-checkout-button{
        min-height:52px;
        margin:8px 0 0 !important;
        border-radius:13px !important;
        font-size:1rem !important;
    }
}


/* 2.5.2 – Bestellart deutlich lesbarer, kontraststark und Mobile First */
.mab-order-mode-cards{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:18px 0;
}
.mab-order-mode-card{
    display:flex;
    gap:12px;
    align-items:flex-start;
    min-width:0;
    border:2px solid rgba(198,165,114,.72);
    border-radius:14px;
    padding:15px 16px;
    cursor:pointer;
    background:#F6F4EF;
    color:#232F37 !important;
    box-shadow:0 2px 8px rgba(0,0,0,.10);
    transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.mab-order-mode-card:hover{
    border-color:#C6A572;
    background:#FFFDF8;
    box-shadow:0 4px 14px rgba(0,0,0,.14);
}
.mab-order-mode-card.is-active{
    border-color:#C6A572;
    background:#FFF8E8;
    color:#182129 !important;
    box-shadow:0 0 0 3px rgba(198,165,114,.24),0 4px 16px rgba(0,0,0,.15);
}
.mab-order-mode-card:focus-within{
    outline:3px solid rgba(198,165,114,.38);
    outline-offset:2px;
}
.mab-order-mode-card input{
    margin-top:3px;
    min-width:19px;
    min-height:19px;
    accent-color:#C6A572;
    flex:0 0 auto;
}
.mab-order-mode-card span{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-width:0;
    color:#232F37 !important;
}
.mab-order-mode-card b{
    display:block;
    font-size:16px;
    line-height:1.25;
    color:#16232C !important;
}
.mab-order-mode-card small{
    display:block;
    font-size:13px;
    line-height:1.45;
    color:#4A5660 !important;
    opacity:1 !important;
}
.mab-order-mode-card.is-active b{color:#151B20 !important;}
.mab-order-mode-card.is-active small{color:#36434C !important;}
.mab-abo-options[hidden]{display:none!important}
.mab-cart-abo-note{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:rgba(198,165,114,.10);line-height:1.5}
.mab-cart-summary-form-field small{display:block;margin-top:6px;line-height:1.4;opacity:.82}
@media(max-width:680px){
    .mab-order-mode-cards{grid-template-columns:1fr;gap:10px}
    .mab-cart-summary-form-grid{grid-template-columns:1fr!important}
    .mab-order-mode-card{min-height:78px;padding:14px}
    .mab-order-mode-card b{font-size:16px}
    .mab-order-mode-card small{font-size:13px}
    .mab-cart-select{min-height:48px;width:100%}
}


/* 2.5.3 – Abo-Einstellungen eindeutig als veränderbare Auswahlfelder kennzeichnen */
.mab-cart-field-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:6px;
}
.mab-cart-summary-form-field .mab-cart-field-head label{
    margin:0 !important;
}
.mab-cart-change-hint{
    display:inline-flex;
    align-items:center;
    gap:4px;
    flex:0 0 auto;
    padding:3px 8px;
    border:1px solid rgba(245,205,122,.58);
    border-radius:999px;
    color:#F5CD7A;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:.02em;
    text-transform:none;
    background:rgba(198,165,114,.10);
}
.mab-cart-change-hint span{
    font-size:15px;
    line-height:.8;
    transform:translateY(-1px);
}
.mab-cart-select-wrap{
    position:relative;
}
.mab-cart-select-wrap::after{
    content:'⌄';
    position:absolute;
    right:6px;
    top:50%;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    transform:translateY(-50%);
    border-radius:50%;
    background:#C6A572;
    color:#232F37;
    font-size:20px;
    font-weight:900;
    line-height:1;
    pointer-events:none;
    box-shadow:0 2px 7px rgba(0,0,0,.16);
}
.mab-cart-select-wrap .mab-cart-select{
    cursor:pointer;
    padding-right:48px !important;
    background-image:none !important;
    transition:border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.mab-cart-select-wrap:hover .mab-cart-select{
    border-color:#F5CD7A !important;
    background-color:#463B2D !important;
    box-shadow:0 0 0 2px rgba(198,165,114,.16);
}
.mab-cart-select-wrap:focus-within .mab-cart-select{
    outline:none;
    border-color:#F5CD7A !important;
    box-shadow:0 0 0 3px rgba(198,165,114,.28);
}
.mab-cart-select-wrap:focus-within::after{
    background:#F5CD7A;
}
@media(max-width:680px){
    .mab-cart-field-head{align-items:flex-end;}
    .mab-cart-change-hint{font-size:11px;padding:4px 8px;}
    .mab-cart-select-wrap::after{width:32px;height:32px;right:7px;}
}


/* 2.5.4 – Abo-Art direkt im Warenkorb kurz und verständlich erklären */
.mab-cart-subscription-type-help{
    margin-top:8px;
}
.mab-cart-type-help{
    display:block;
    padding:10px 12px;
    border:1px solid rgba(198,165,114,.34);
    border-radius:10px;
    background:rgba(246,244,239,.07);
    color:#F7F3EA;
    font-size:12px;
    line-height:1.45;
}
.mab-cart-type-help[hidden]{display:none!important;}
.mab-cart-type-help strong{
    display:block;
    margin-bottom:2px;
    color:#F5CD7A;
    font-size:12px;
}
.mab-cart-type-help span{
    color:#F7F3EA;
    opacity:.94;
}
@media(max-width:680px){
    .mab-cart-type-help{font-size:13px;padding:11px 12px;}
    .mab-cart-type-help strong{font-size:13px;}
}

/* ============================================================
 * 2.5.11 – Warenkorb Mobile First: kompaktere Produktkarten
 * ============================================================ */
@media(max-width:768px){
  .woocommerce-cart .mab-cart-layout{
    width:100%!important;
    max-width:100%!important;
    padding:14px 12px 24px!important;
  }
  .woocommerce-cart .mab-cart-heading{
    margin:14px auto 12px!important;
    padding:0 14px!important;
    color:#232f37!important;
    font-size:1.75rem!important;
    line-height:1.15!important;
  }
  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart form.woocommerce-cart-form table.shop_table,
  .woocommerce-cart form.woocommerce-cart-form tbody{
    width:100%!important;
    max-width:100%!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item{
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:0 13px!important;
    width:100%!important;
    margin:0 0 13px!important;
    padding:14px!important;
    border:1px solid rgba(35,47,55,.10)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(35,47,55,.075)!important;
    overflow:hidden!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item td{
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail{
    grid-column:1!important;
    grid-row:1!important;
    width:72px!important;
    min-width:72px!important;
    padding:0!important;
    align-self:start!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail img{
    width:68px!important;
    height:92px!important;
    max-width:68px!important;
    margin:0!important;
    object-fit:contain!important;
    border-radius:6px!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    padding:0 30px 8px 0!important;
  }
  .woocommerce-cart .product-name>a{
    max-width:100%!important;
    color:#232f37!important;
    font-size:16px!important;
    font-weight:800!important;
    line-height:1.28!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:auto!important;
  }
  .woocommerce-cart .mab-cart-short-description{
    display:-webkit-box!important;
    margin:6px 0 0!important;
    max-height:3.1em!important;
    overflow:hidden!important;
    color:#657078!important;
    font-size:12.5px!important;
    line-height:1.48!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:auto!important;
  }
  .woocommerce-cart .mab-cart-short-description.is-expanded{
    display:block!important;
    max-height:none!important;
    -webkit-line-clamp:unset!important;
    overflow:visible!important;
  }
  .woocommerce-cart .mab-cart-description-toggle{
    margin-top:5px!important;
    color:#8a681f!important;
    font-size:12px!important;
    font-weight:800!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove{
    top:11px!important;
    right:11px!important;
    width:30px!important;
    height:30px!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove a.remove{
    width:30px!important;
    height:30px!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid rgba(35,47,55,.18)!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#6f787e!important;
    font-size:20px!important;
    line-height:1!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price,
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity,
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-subtotal{
    grid-column:1/-1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    min-height:48px!important;
    margin:0!important;
    padding:9px 0!important;
    border-top:1px solid rgba(35,47,55,.08)!important;
    color:#232f37!important;
    text-align:right!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price{
    margin-top:5px!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price::before,
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity::before,
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-subtotal::before{
    min-width:0!important;
    margin:0!important;
    color:#697278!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.25!important;
    text-align:left!important;
  }
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price .amount,
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-subtotal .amount{
    color:#232f37!important;
    font-size:1.05rem!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }
  .woocommerce-cart .mab-cart-qty-stepper{
    display:inline-grid!important;
    grid-template-columns:42px 54px 42px!important;
    align-items:center!important;
    width:auto!important;
    min-width:138px!important;
    height:42px!important;
    border:1px solid rgba(35,47,55,.18)!important;
    border-radius:999px!important;
    background:#f8f7f3!important;
    overflow:hidden!important;
  }
  .woocommerce-cart .mab-cart-qty-stepper .qty{
    grid-column:2!important;
    width:54px!important;
    min-width:54px!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0 4px!important;
    border:0!important;
    border-left:1px solid rgba(35,47,55,.10)!important;
    border-right:1px solid rgba(35,47,55,.10)!important;
    border-radius:0!important;
    background:#fff!important;
    color:#232f37!important;
    font-size:16px!important;
    font-weight:800!important;
    text-align:center!important;
    box-shadow:none!important;
    -moz-appearance:textfield;
  }
  .woocommerce-cart .mab-cart-qty-stepper .qty::-webkit-outer-spin-button,
  .woocommerce-cart .mab-cart-qty-stepper .qty::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}
  .woocommerce-cart .mab-cart-qty-button{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#232f37!important;
    box-shadow:none!important;
    font-size:22px!important;
    font-weight:850!important;
    line-height:1!important;
    cursor:pointer!important;
  }
  .woocommerce-cart .mab-cart-qty-button:active{background:rgba(198,165,114,.20)!important}
  .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions{
    margin-top:4px!important;
    padding:0!important;
    border:0!important;
  }
  .woocommerce-cart form.woocommerce-cart-form table.shop_table .actions [name="update_cart"]{
    min-height:50px!important;
    margin:10px 0 0!important;
    border-radius:12px!important;
    font-weight:800!important;
  }
  .woocommerce-cart .cart-collaterals,
  .woocommerce-cart .cart-collaterals .cart_totals{
    width:100%!important;
    max-width:100%!important;
    float:none!important;
  }
  .woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals{
    padding:17px!important;
    border-radius:18px!important;
    box-shadow:0 10px 28px rgba(35,47,55,.08)!important;
  }
}

@media(max-width:380px){
  .woocommerce-cart table.shop_table_responsive tr.cart_item{grid-template-columns:62px minmax(0,1fr)!important;padding:12px!important;gap:0 10px!important}
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail{width:62px!important;min-width:62px!important}
  .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail img{width:58px!important;max-width:58px!important;height:82px!important}
  .woocommerce-cart .product-name>a{font-size:15px!important}
}

/* V2.6.9: Tatsächlich bedienbares Mengenmenü statt dekorativem Pfeil. */
.mab-cart-pack-size-picker{position:relative;min-width:0}
.mab-cart-number-wrap::after{display:none!important;content:none!important}
.mab-cart-number-wrap .mab-cart-select{cursor:text!important;padding-right:55px!important}
.mab-cart-number-wrap .mab-cart-select:focus{background-color:#fffaf0!important;color:#232F37!important}
.mab-cart-pack-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#C6A572!important;color:#232F37!important;box-shadow:0 2px 7px rgba(0,0,0,.16);font-size:23px;font-weight:800;line-height:1;cursor:pointer;z-index:3}
.mab-cart-pack-toggle:hover,.mab-cart-pack-toggle:focus-visible{background:#F5CD7A!important;outline:2px solid #232F37;outline-offset:2px}
.mab-cart-pack-toggle[aria-expanded="true"] span{transform:rotate(180deg)}
.mab-cart-pack-recommendations{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:80;padding:14px;max-height:330px;overflow:auto;background:#fffaf0!important;color:#232F37!important;border:1px solid #C6A572;border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.30)}
.mab-cart-pack-recommendations[hidden]{display:none!important}
.mab-cart-pack-recommendations strong{display:block;margin-bottom:10px;color:#232F37!important;font-size:14px}
.mab-cart-pack-recommendations small{color:#39434a!important;opacity:1!important;margin-top:10px;font-size:12px}
.mab-cart-pack-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mab-cart-pack-choice{border:1px solid #bfa36f!important;border-radius:9px;background:#fff!important;color:#232F37!important;min-width:0;min-height:42px;padding:8px 4px!important;cursor:pointer;font-size:12px!important;font-weight:700!important;line-height:1.2}
.mab-cart-pack-choice:hover,.mab-cart-pack-choice:focus-visible{border-color:#232F37!important;background:#f0e0bb!important;outline:2px solid #C6A572;outline-offset:1px}
.mab-cart-subscription-price-notice{margin:14px 0 0;padding:15px 16px;border:1px solid rgba(198,165,114,.65);border-left:4px solid #C6A572;border-radius:12px;background:#fffaf0!important;color:#232F37!important;font-size:13px;line-height:1.55}
.mab-cart-subscription-price-notice strong{display:block;color:#232F37!important;font-size:15px;margin-bottom:6px}
.mab-cart-subscription-price-notice p{margin:6px 0 0!important;color:#232F37!important}
.mab-cart-subscription-price-notice .mab-cart-subscription-price-tip{font-weight:600}
@media(max-width:680px){.mab-cart-pack-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.mab-cart-pack-toggle{width:42px;height:42px}.mab-cart-pack-recommendations{max-height:320px}.mab-cart-subscription-price-notice{font-size:13px;padding:14px}}
.mab-cart-number-wrap .mab-cart-select,
.mab-cart-number-wrap:hover .mab-cart-select,
.mab-cart-number-wrap:focus-within .mab-cart-select{background:#fffaf0!important;color:#232F37!important;opacity:1!important}
.mab-cart-number-wrap .mab-cart-select::-webkit-inner-spin-button{opacity:.65}
/* Kein Überlaufen der manuellen Zahleneingabe auf kleinen Geräten. */
.mab-cart-pack-size-picker,.mab-cart-number-wrap{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.mab-cart-number-wrap .mab-cart-select{display:block;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}


/* ================================================================
   Child 2.6.17 – Smartphone: Produktpreis + verbindliche Gesamtsumme
   Nur Darstellung; Rabattbeträge und WooCommerce-Gebühren unverändert.
   ================================================================ */
@media (max-width: 768px) {
  /* Die alte WooCommerce-Pseudospalte wurde auf dem Handy so schmal,
     dass "Preis:" buchstabenweise untereinander stand. */
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-price {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
    padding: 12px 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-price::before {
    content: attr(data-title) !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 7px !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    color: #647079 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
  }
  body.woocommerce-cart tr.cart_item .product-price > .woocommerce-Price-amount,
  body.woocommerce-cart tr.cart_item .product-price > span.amount {
    display: inline-block !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
  body.woocommerce-cart tr.cart_item .product-price .mab-personal-cart-price {
    display: block !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #48545c !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
  }
  body.woocommerce-cart tr.cart_item .product-price .mab-personal-cart-price strong,
  body.woocommerce-cart tr.cart_item .product-price .mab-personal-cart-price .woocommerce-Price-amount {
    color: #285d43 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-quantity::before,
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-subtotal::before {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-subtotal .woocommerce-Price-amount {
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
  }
  /* Rechnungsaufstellung: linker Text darf umbrechen, rechter
     Eurobetrag niemals. Insbesondere bei "Dauerrabatt – bester Rabatt". */
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals {
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 18px 16px !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table,
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tbody {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-collapse: collapse !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: start !important;
    column-gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.13) !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) th,
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) td {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.38 !important;
    font-size: 14px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) th {
    grid-column: 1 !important;
    text-align: left !important;
    color: #f7f2e9 !important;
    font-weight: 650 !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) td {
    grid-column: 2 !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr:not(.shipping) td::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals .woocommerce-Price-amount,
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals .woocommerce-Price-currencySymbol {
    display: inline !important;
    white-space: nowrap !important;
  }
  /* Steuerhinweise dürfen zweizeilig stehen, der eigentliche Preis nicht. */
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table .order-total td .includes_tax {
    display: block !important;
    max-width: 140px !important;
    margin-top: 4px !important;
    margin-left: auto !important;
    font-size: 11px !important;
    font-weight: 450 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-align: right !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.order-total {
    padding-top: 16px !important;
    border-top: 1px solid rgba(198,165,114,.65) !important;
    border-bottom: 0 !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.order-total th,
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.order-total td {
    font-size: 16px !important;
    font-weight: 850 !important;
  }
  /* Versandsumme + Lieferadresse sind mehrzeilig – anders als ein Rabattbetrag. */
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping {
    display: block !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.13) !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping > th,
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping > td {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping > td::before {
    display: none !important;
    content: none !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping > td {
    margin-top: 7px !important;
    line-height: 1.45 !important;
    font-size: 14px !important;
    overflow-wrap: break-word !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping .woocommerce-shipping-methods,
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping ul {
    margin: 0 0 9px !important;
    padding: 0 !important;
    list-style: none !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.shipping .amount {
    white-space: nowrap !important;
  }
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals h2 {
    padding: 11px 12px !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #232f37 !important;
    font-size: 18px !important;
    letter-spacing: normal !important;
  }
}


/* ============================================================
 * 2.6.18 – Warenkorb: Mengensteuerung + Hinweise im Markendesign
 * Gilt bewusst für Desktop UND Smartphone. Nur Darstellung,
 * keine Änderung an Mengenlogik, Rabatten, Bestellungen oder AJAX.
 * ============================================================ */

/* Die Mengen-Buttons hatten vorher nur im Mobile-Media-Query ein
   eigenes Aussehen; Desktop zeigte die blauen Theme-Standardbuttons. */
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper {
    display: inline-grid !important;
    grid-template-columns: 38px 48px 38px !important;
    grid-template-rows: 38px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    width: 124px !important;
    min-width: 124px !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(198,165,114,.62) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper input.qty {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 3px !important;
    margin: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(198,165,114,.3) !important;
    border-right: 1px solid rgba(198,165,114,.3) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #232f37 !important;
    box-shadow: none !important;
    outline-offset: -3px !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    box-sizing: border-box !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper input.qty::-webkit-inner-spin-button,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f6f4ef !important;
    background-image: none !important;
    color: #232f37 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 19px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-minus {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-plus {
    grid-column: 3 !important;
    grid-row: 1 !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-button:hover {
    background: #e9dcc7 !important;
    color: #232f37 !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-button:active {
    background: #c6a572 !important;
    color: #232f37 !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-button:focus-visible,
body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper input.qty:focus-visible {
    outline: 2px solid #87652f !important;
    outline-offset: -3px !important;
    position: relative;
    z-index: 1;
}
/* Mobil mit echten Touchflächen, aber weiterhin ein einziges Element. */
@media (max-width: 768px) {
    body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper {
        grid-template-columns: 44px 48px 44px !important;
        grid-template-rows: 44px !important;
        width: 136px !important;
        min-width: 136px !important;
        height: 44px !important;
        min-height: 44px !important;
    }
    body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper input.qty,
    body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-button {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }
    body.woocommerce-cart form.woocommerce-cart-form table.shop_table .product-quantity .quantity.mab-cart-qty-stepper button.mab-cart-qty-button {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }
}

/* Meldungen oberhalb und innerhalb des Warenkorbs: alle Grundtypen,
   inkl. individuell eingefügter WANDERN-Information. */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .mab-wandern-cart-notice {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 52px;
    margin: 0 0 16px !important;
    padding: 15px 18px 15px 55px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(198,165,114,.53) !important;
    border-left: 4px solid #c6a572 !important;
    border-radius: 12px !important;
    background: #fbf8f1 !important;
    background-image: none !important;
    color: #232f37 !important;
    box-shadow: 0 6px 20px rgba(35,47,55,.045) !important;
    font-size: 14px !important;
    font-weight: 450 !important;
    line-height: 1.55 !important;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    list-style: none !important;
}
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before,
body.woocommerce-cart .mab-wandern-cart-notice::before {
    content: 'i' !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 14px !important;
    left: 16px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(134,100,51,.22) !important;
    border-radius: 50% !important;
    background: #eaddc7 !important;
    color: #654e2c !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transform: none !important;
    box-sizing: border-box !important;
}
body.woocommerce-cart .woocommerce-message {
    border-left-color: #577462 !important;
    border-color: rgba(87,116,98,.32) !important;
    border-left: 4px solid #577462 !important;
    background: #f2f7f3 !important;
}
body.woocommerce-cart .woocommerce-message::before {
    content: '✓' !important;
    background: #dcebdd !important;
    border-color: rgba(54,103,68,.2) !important;
    color: #28553c !important;
    font-size: 15px !important;
}
body.woocommerce-cart .woocommerce-error {
    border-color: rgba(151,71,65,.28) !important;
    border-left: 4px solid #a3554c !important;
    background: #fff5f2 !important;
}
body.woocommerce-cart .woocommerce-error::before {
    content: '!' !important;
    background: #f7deda !important;
    border-color: rgba(151,71,65,.22) !important;
    color: #863a33 !important;
}
body.woocommerce-cart .woocommerce-message a,
body.woocommerce-cart .woocommerce-info a,
body.woocommerce-cart .woocommerce-error a,
body.woocommerce-cart .mab-wandern-cart-notice a {
    color: #775929 !important;
    text-decoration-color: #c6a572 !important;
    text-underline-offset: 3px;
}
body.woocommerce-cart .woocommerce-message strong,
body.woocommerce-cart .woocommerce-info strong,
body.woocommerce-cart .woocommerce-error strong,
body.woocommerce-cart .mab-wandern-cart-notice strong {
    color: #232f37 !important;
    font-weight: 750 !important;
}
body.woocommerce-cart .woocommerce-message::after,
body.woocommerce-cart .woocommerce-info::after,
body.woocommerce-cart .woocommerce-error::after { content: '' !important; display: table !important; clear: both !important; }
body.woocommerce-cart .woocommerce-error li { margin: 0 0 4px !important; padding: 0 !important; }
body.woocommerce-cart .woocommerce-error li:last-child { margin-bottom: 0 !important; }
/* WooCommerce platziert Aktionsbuttons teils rechts im Hinweis. */
body.woocommerce-cart .woocommerce-message a.button,
body.woocommerce-cart .woocommerce-info a.button {
    float: right !important;
    margin: -4px 0 4px 16px !important;
    padding: 8px 15px !important;
    min-height: 36px !important;
    border: 1px solid rgba(198,165,114,.65) !important;
    border-radius: 9px !important;
    background: #232f37 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
@media (max-width: 600px) {
    body.woocommerce-cart .woocommerce-message,
    body.woocommerce-cart .woocommerce-info,
    body.woocommerce-cart .woocommerce-error,
    body.woocommerce-cart .mab-wandern-cart-notice {
        margin-bottom: 13px !important;
        padding: 13px 13px 13px 47px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    body.woocommerce-cart .woocommerce-message::before,
    body.woocommerce-cart .woocommerce-info::before,
    body.woocommerce-cart .woocommerce-error::before,
    body.woocommerce-cart .mab-wandern-cart-notice::before {
        top: 12px !important;
        left: 11px !important;
        width: 22px !important;
        height: 22px !important;
    }
    body.woocommerce-cart .woocommerce-message a.button,
    body.woocommerce-cart .woocommerce-info a.button {
        display: block !important;
        float: none !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 10px 0 0 !important;
    }
}


/* 2.6.20 – Gutscheine im mobilen Warenkorb: kein Überlappen von Label und Aktion.
   WooCommerce setzt den Gutschein-Namen ins TH und den Status inkl. Entfernen-Link
   ins TD. Bei langen Aktionsnamen benötigt die Zeile auf kleinen Displays
   zwei Zeilen, statt eines zu schmalen Zwei-Spalten-Grids. */
@media (max-width: 768px) {
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.cart-discount {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    align-items: start !important;
  }

  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.cart-discount > th,
  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.cart-discount > td {
    grid-column: 1 / -1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.cart-discount > th {
    font-weight: 650 !important;
  }

  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.cart-discount > td {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    gap: 5px 10px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
  }

  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.cart-discount > td::before {
    display: none !important;
    content: none !important;
  }

  body.woocommerce-cart .mab-cart-layout .cart-collaterals .cart_totals table.shop_table tr.cart-discount > td .woocommerce-remove-coupon {
    display: inline-block !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    color: #f5cd7a !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
  }
}

/* 2.6.23: Ruhige automatische Warenkorb-Aktualisierung; der Standardbutton
   bleibt als manuelle Rückfallebene bestehen. */
body.woocommerce-cart .mab-cart-auto-update-status{
  display:inline-block; padding:4px 8px; margin:5px 8px 5px 0;
  color:#594b36; font-size:12px; line-height:1.5;
}
body.woocommerce-cart.mab-cart-auto-update-pending .mab-cart-layout .cart-collaterals .checkout-button,
body.woocommerce-cart.mab-cart-auto-update-pending .mab-cart-checkout-button{
  opacity:.7; cursor:wait;
}

/* 2.6.24 – Bereits zugeordnete Werber nur noch lesend anzeigen. */
.woocommerce-cart .mab-cart-friend-field.mab-cart-friend-linked{
  padding:13px 16px;margin-top:12px;
  background:#f6f4ef;border:1px solid rgba(198,165,114,.65);
  border-left:4px solid #c6a572;border-radius:12px;
  color:#232f37;line-height:1.5;
}
.woocommerce-cart .mab-cart-friend-linked-title{
  font-size:14px;font-weight:750;color:#232f37;
}
.woocommerce-cart .mab-cart-friend-linked-description{
  margin:5px 0 0;font-size:13px;line-height:1.55;color:#3a444a;
}


/* 2.6.25 – Weinpaket im Warenkorb: echter Original- und Endpreis.
   Die neue Preisanzeige ist rein lesend und greift nicht in die Berechnung ein. */
body.woocommerce-cart .mab-cart-layout .product-price .mab-cart-package-price,
body.woocommerce-cart .mab-cart-layout .product-subtotal .mab-cart-package-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  max-width: 100%;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
body.woocommerce-cart .mab-cart-layout .mab-cart-package-price del {
  color: #727980 !important;
  font-size: .9em;
  font-weight: 450;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
body.woocommerce-cart .mab-cart-layout .mab-cart-package-price ins {
  background: transparent !important;
  color: #233039 !important;
  font-size: 1.05em;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}
body.woocommerce-cart .mab-cart-layout .mab-cart-package-note {
  display: block;
  margin-top: 4px;
  color: #52616b;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}
@media(max-width: 768px) {
  body.woocommerce-cart .mab-cart-layout .product-price .mab-cart-package-price,
  body.woocommerce-cart .mab-cart-layout .product-subtotal .mab-cart-package-price {
    justify-content: flex-start;
    gap: 2px 7px;
  }
}
