/* =================== */
/* sware Preisanzeige
/* =================== */

.summary .price .sware_price_grid { /* Wrapper für das Preisgrid */
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 12px;
    row-gap: 2px;
    align-items: baseline;
    justify-items: start;
    justify-content: start;
}

.summary .price .sware_price_grid_row1_col2,
.summary .price .sware_price_grid_row2_col2 { /* Grid Spalte 2: Rabatt & Gesamtbetrag */
    justify-self: start;
    text-align: left !important;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
}

.summary .price .sware_price_grid_line { /* Generische Linie innerhalb des Grids */
    display: block;
    line-height: 1.25;
}

.summary .price .sware_price_grid_row2_col2 { /* Zeile2 Spalte2 Wrapper */
    font-size: 0.74em;
}


.summary .price .sware_price_grid_rabatttext { /* Row1 col2 content: Rabatttext */
    font-size: 0.74em;
    color: green;
    font-weight: normal;
}

.summary .price .sware_price_grid_discount_rabattklammern { /* Klammern um den Rabatt */
    color: #000;
    font-weight: normal;
}

.summary .price .sware_price_grid_mengentext { /* Zeile2: Mengentext */
    font-size: 0.74em;
    font-weight: normal;
    color: #555;
    margin-top: 2px;
    margin-left: 54px;
}

.summary .price .sware_price_grid_gesamtpreis { /* Zeile2 Spalte2: Gesamtpreis */
    color: green;
    font-weight: normal;
}



/* =================== */
/* sware Rabattbox
/* =================== */

.buymofe-fields {
    margin-top: -5px;
    padding: 15px; /* Optional: etwas Innenabstand für bessere Lesbarkeit */
    border: 1px solid #eee; /* Optional: leichter Rahmen */
    background-color: #f9f9f9; /* Optional: leichter Hintergrund */
    border-radius: 5px; /* Optional: abgerundete Ecken */
}

.buymofe-fields h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

/* Neuer Tabellen-Container für die Rabattstufen-Daten */
.buymofe-tier-table {
    width: auto; /* Breite passt sich dem Inhalt an */
    border-collapse: collapse; /* Entfernt Abstände zwischen den Zellen */
    margin-left: 0; /* Ausrichtung des gesamten Tabellenblocks unter dem H3 */
}

/* Kopfzeile ausblenden, falls nicht gewünscht */
.buymofe-tier-table thead {
     display: none;
}

/* Standard-Padding für alle Zellen */
.buymofe-tier-table th,
.buymofe-tier-table td {
    padding: 2px 10px; /* Vertikaler und horizontaler Abstand für alle Zellen */
    vertical-align: baseline; /* Text auf der Grundlinie ausrichten */
    border: none; /* Entfernt Tabellenränder, falls vorhanden */
}

/* Spaltenstile nach neuer Reihenfolge und Ausrichtung */
.buymofe-qty {
    text-align: right;
    white-space: nowrap;
}

.buymofe-price-total {
    text-align: right;
    font-weight: bold;
    white-space: nowrap;
}

.buymofe-discount {
    text-align: right;
    font-weight: normal;
    white-space: nowrap;
}

.buymofe-discount.buymofe-discount-percent {
    color: green;
}

.buymofe-discount.buymofe-discount-price {
    color: green;
}

.buymofe-price-piece {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
}

/* Klasse zum Ausblenden */
.buymofe-hidden {
    display: none !important;
}

/* Zusätzliche Anpassungen für WooCommerce-Preise */
.buymofe-tier-table .woocommerce-Price-amount {
    display: inline-block;
}
