/**
 * RM24 Shop UltraClean - Komplettes Karten-Design System
 * (Warenkorb & Kasse temporär bereinigt zur Fehler-Isolation)
 */

/* -------------------------------------------------------------------------
 * 1. Grund-Reset & 1500px Hauptrahmen
 * ------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #f8fafc;
    color: #0f2733;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    -webkit-overflow-scrolling: touch;
}

.rm24-main-wrapper {
    max-width: 1500px;
    margin: 0 auto 40px auto;
    padding: 15px 20px 30px 20px;
    background: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 39, 51, 0.04);
}

/* -------------------------------------------------------------------------
 * 2. Header-Rahmen (Basis)
 * ------------------------------------------------------------------------- */
.rm24-site-header {
    margin-bottom: 25px;
    padding-top: 10px;
}

/* -------------------------------------------------------------------------
 * 3. SEO-Texte & Trennlinien
 * ------------------------------------------------------------------------- */
.rm24-category-top-text {
    background: #f8fafc;
    border-left: 4px solid #2b2e34;
    padding: 16px 20px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    border-radius: 0 4px 4px 0;
}

.rm24-section-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 40px 0;
    width: 100%;
}

/* -------------------------------------------------------------------------
 * 4. Unterkategorien
 * ------------------------------------------------------------------------- */
.rm24-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rm24-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: #0f2733;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rm24-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.rm24-cat-img-box {
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.rm24-cat-img-box img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

.rm24-cat-card-title {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 10px;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

/* -------------------------------------------------------------------------
 * 5. Toolbar & Filterleiste
 * ------------------------------------------------------------------------- */
.rm24-toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 25px;
}

.rm24-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rm24-select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #0f2733;
    background: #fff;
    cursor: pointer;
}

.rm24-view-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rm24-view-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 14px;
}

.rm24-view-btn.rm24-active {
    background: #2b2e34;
    color: #ffffff;
    border-color: #2b2e34;
}

/* -------------------------------------------------------------------------
 * 6. Produktraster, Upsells & Tabellarische Listenansicht
 * ------------------------------------------------------------------------- */
ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
}

.related ul.products,
.up-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

/* Produktraster auf kleineren Bildschirmen */
@media (max-width: 1100px) {
    ul.products:not(.rm24-list-view),
    .related ul.products,
    .up-sells ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    ul.products:not(.rm24-list-view),
    .related ul.products,
    .up-sells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    ul.products:not(.rm24-list-view),
    .related ul.products,
    .up-sells ul.products,
    .cross-sells ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

li.product {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rm24-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.rm24-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Symbolleiste über dem Produktbild – feste Plätze:
   1 Staffelpreise | 2 Varianten | 3 Lagerbestand (Mitte) | 4 Aktion % | 5 Merkliste */
.rm24-card-icons {
    display: grid;
    grid-template-columns: 32px 32px minmax(0, 1fr) 32px 32px;
    align-items: center;
    column-gap: 8px;
    min-height: 32px;
    margin-bottom: 8px;
}

.rm24-card-icons:empty {
    display: none;
}

.rm24-card-icons > * {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
    grid-row: 1;
}

.rm24-card-icons .rm24-loop-tier-icon-btn { grid-column: 1; }
.rm24-card-icons .rm24-loop-serie-icon-btn,
.rm24-card-icons .rm24-loop-variant-icon-btn { grid-column: 2; }
.rm24-card-icons .rm24-card-stock { grid-column: 3; justify-self: center; }
.rm24-card-icons .rm24-card-sale { grid-column: 4; }
.rm24-card-icons .alg-wc-wl-btn,
.rm24-card-icons .rm24-loop-wishlist-btn,
.rm24-card-icons .yith-wcwl-add-to-wishlist,
.rm24-card-icons .tinv-wraper { grid-column: 5; justify-self: end; }

.rm24-card-icons .alg-wc-wl-btn,
.rm24-card-icons .rm24-loop-wishlist-btn,
.rm24-card-icons .rm24-loop-tier-icon-btn,
.rm24-card-icons .rm24-loop-serie-icon-btn,
.rm24-card-icons .rm24-card-icon {
    box-sizing: border-box !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.rm24-card-icons .rm24-card-sale {
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: #dc2626;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.rm24-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    height: 32px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.rm24-card-stock .rm24-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rm24-card-stock.rm24-stock-in { border-color: #bbf7d0; color: #166534; }
.rm24-card-stock.rm24-stock-in .rm24-stock-dot { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); }
.rm24-card-stock.rm24-stock-low { border-color: #fde68a; color: #b45309; }
.rm24-card-stock.rm24-stock-low .rm24-stock-dot { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
.rm24-card-stock.rm24-stock-out { border-color: #fecaca; color: #b91c1c; }
.rm24-card-stock.rm24-stock-out .rm24-stock-dot { background: #ef4444; }

/* Ältere Snippet-Versionen: Symbole sitzen ohne eigene Gestaltung in der Leiste */
.rm24-card-icons .rm24-loop-tier-icon-btn,
.rm24-card-icons .rm24-loop-serie-icon-btn {
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #94a3b8;
}

/* Symbolleiste gegen fremde Snippet-Stile absichern (Kachel- und Zeilenansicht) */
ul.products li.product .rm24-card-icons > * {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none;
}

ul.products li.product .rm24-card-icons {
    position: relative;
    width: 100%;
}

ul.products li.product .rm24-card-icons .rm24-card-stock {
    width: auto !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 20px !important;
}

/* Zeilenansicht: Leiste über die ganze Zeile (die Bildspalte ist zu schmal für fünf Plätze) */
ul.products.rm24-list-view li.product .rm24-card-inner {
    grid-template-areas: "icons icons icons icons icons" "img title sku fees action";
}
ul.products.rm24-list-view li.product .rm24-col-img {
    display: contents;
}
ul.products.rm24-list-view li.product .rm24-card-icons {
    grid-area: icons;
    margin-bottom: 8px;
}
ul.products.rm24-list-view li.product .rm24-card-img-link {
    grid-area: img;
}


/* Erklärung eines Kachel-Symbols beim Antippen (Touch-Geräte) */
.rm24-card-icons [title],
.rm24-card-icons [data-rm24-tip] {
    cursor: help;
}

.rm24-icon-tip {
    position: absolute;
    z-index: 9999;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #1f2937;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

/* Seitenzahlen unter der Produktliste */
.woocommerce-pagination,
nav.woocommerce-pagination {
    margin: 30px 0 10px 0;
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.woocommerce-pagination .page-numbers a:hover {
    border-color: var(--rm24-accent-color, #0090bb);
    color: var(--rm24-accent-color, #0090bb);
}

.woocommerce-pagination .page-numbers span.current {
    background: var(--rm24-accent-color, #0090bb);
    border-color: var(--rm24-accent-color, #0090bb);
    color: #ffffff;
}

.rm24-badge-sale {
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.rm24-card-img-link img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 12px;
}

.rm24-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.rm24-card-title a {
    color: #0f2733;
    text-decoration: none;
}

.rm24-card-sku {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.rm24-card-fees {
    font-size: 12px;
    color: #475569;
    margin-bottom: 10px;
    line-height: 1.4;
}

.rm24-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rm24-price-display {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rm24-price-main {
    font-size: 19px;
    font-weight: 700;
    color: #0f2733;
}

.rm24-price-main small {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.rm24-price-sub {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* Netto-Zeile direkt unter dem Bruttopreis, Hinweise (Versand, Lieferzeit) darunter */
.rm24-price-main .rm24-price-sub {
    display: block;
    margin-top: 1px;
}

.rm24-price-main .rm24-sid-vat {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    opacity: 1;
}

.rm24-price-main .rm24-sid-notes {
    margin-top: 6px;
}

.rm24-price-free {
    color: #15803d;
    font-size: 20px;
    font-weight: 700;
}

.rm24-card-action {
    width: 100%;
}

.rm24-card-action .button {
    width: 100% !important;
    display: block !important;
}

/* Tabellarische Listenansicht: feste Spalten, Preis und Warenkorb immer rechts */
ul.products.rm24-list-view {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
}

ul.products.rm24-list-view li.product .rm24-card-inner {
    display: grid !important;
    grid-template-columns: 140px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) 230px;
    grid-template-areas: "img title sku fees action";
    align-items: center;
    column-gap: 24px;
    row-gap: 0;
    padding: 15px 20px;
}

ul.products.rm24-list-view li.product .rm24-col-img    { grid-area: img; }
ul.products.rm24-list-view li.product .rm24-col-title  { grid-area: title; }
ul.products.rm24-list-view li.product .rm24-col-sku    { grid-area: sku; text-align: left; }
ul.products.rm24-list-view li.product .rm24-fees       { grid-area: fees; text-align: left; margin: 0; }
ul.products.rm24-list-view li.product .rm24-col-action { grid-area: action; }

/* Zusätzliche Ausgaben anderer Plugins (z. B. Versandhinweise, Merkliste) unter Titel und Preis */
ul.products.rm24-list-view li.product .rm24-card-inner > :not(.rm24-col-img):not(.rm24-col-title):not(.rm24-col-sku):not(.rm24-fees):not(.rm24-col-action):not(.rm24-card-badges) {
    grid-column: 2 / 5;
    justify-self: start;
    margin: 0;
    font-size: 13px;
}

ul.products.rm24-list-view li.product .rm24-card-inner > table {
    width: auto !important;
    min-width: 260px;
}

ul.products.rm24-list-view li.product .rm24-card-inner > :empty {
    display: none;
}

ul.products.rm24-list-view li.product .rm24-col-img .rm24-card-img-link img {
    width: 140px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0;
}

ul.products.rm24-list-view li.product .rm24-col-title .rm24-card-title {
    margin: 0;
    text-align: left;
}

ul.products.rm24-list-view li.product .rm24-col-action {
    text-align: right;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    justify-self: stretch;
}

ul.products.rm24-list-view li.product .rm24-col-action .rm24-price-display {
    align-items: flex-end;
    margin-bottom: 8px;
}

/* Bewertung unter dem Produkttitel (Raster und Liste) */
.rm24-card-rating {
    margin-top: 6px;
}

/* Sterne ohne WooCommerce-Schriftart */
.star-rating {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 5.6em;
    height: 1.15em;
    line-height: 1;
    font-size: 15px;
    letter-spacing: 0.12em;
    vertical-align: middle;
}

.star-rating::before {
    content: "\2605\2605\2605\2605\2605";
    color: #d1d5db;
    position: absolute;
    top: 0;
    left: 0;
}

.star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    padding-top: 1.5em;
    overflow: hidden;
}

.star-rating span::before {
    content: "\2605\2605\2605\2605\2605";
    color: #f59e0b;
    position: absolute;
    top: 0;
    left: 0;
}

/* Universeller Anthrazit-Button (Produktkarten & Detailseite) */
.rm24-card-action .button,
.single_add_to_cart_button,
.woocommerce-Button.button,
.woocommerce-button.button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button,
.woocommerce .return-to-shop a.button,
.woocommerce-orders-table__cell-order-actions .button {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: inline-block !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
}

.rm24-card-action .button:hover,
.single_add_to_cart_button:hover,
.woocommerce-Button.button:hover,
.woocommerce .return-to-shop a.button:hover,
.woocommerce-orders-table__cell-order-actions .button:hover {
    background: #3a3e46 !important;
}

/* -------------------------------------------------------------------------
 * 7. Produktdetailseite & Lagerbestand
 * ------------------------------------------------------------------------- */
.rm24-single-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.rm24-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    gap: 30px;
    margin-bottom: 35px;
    align-items: start;
}

.rm24-single-gallery {
    min-width: 0;
    max-width: 100%;
}

.rm24-single-gallery .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.rm24-single-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    display: block;
    cursor: pointer;
}

.rm24-single-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 12px 0 0 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.rm24-single-gallery .flex-control-thumbs li {
    width: 75px !important;
    height: 75px !important;
    float: none !important;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.rm24-single-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.rm24-single-buybox {
    background: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03);
}

.rm24-stock-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #15803d;
}

.rm24-single-buybox form.cart p.stock,
.rm24-single-buybox .stock.in-stock,
.rm24-single-buybox .stock.out-of-stock,
.rm24-single-buybox .stock {
    display: none !important;
}

.woocommerce form.cart {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.woocommerce form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    width: fit-content !important;
}

.rm24-qty-btn {
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #0f2733;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm24-qty-btn:hover { background: #e2e8f0; }

.woocommerce form.cart .quantity input.qty {
    border: none !important;
    width: 48px !important;
    height: 38px !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rm24-single-meta-badges,
.rm24-tech-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.rm24-meta-btn {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.rm24-meta-btn strong { color: #cbd5e1; margin-right: 4px; }

.rm24-tipp-box {
    background: #f8fafc;
    border: 1px solid #dcdfe4;
    border-left: 5px solid #2b2e34;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.rm24-tipp-badge { font-size: 16px; font-weight: 700; color: #0f2733; margin-bottom: 8px; }
.rm24-tipp-content { font-size: 15px; line-height: 1.6; color: #334155; }

/* -------------------------------------------------------------------------
 * 8. Allgemeine Formulare & Fehlermeldungen (Basis)
 * ------------------------------------------------------------------------- */
.woocommerce-error {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #991b1b !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    list-style: none !important;
    margin-bottom: 20px !important;
}

/* =========================================================================
 * 9. MEIN KONTO (Account, Login, Adressen, Details & Dashboard)
 * ========================================================================= */

/* 1. Globaler Schutz gegen Passwort-Manager-Icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-caps-lock-indicator {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Passwort einblenden (WooCommerce-Augen-Button ohne WooCommerce-Schriftart) */
.woocommerce form .password-input,
.woocommerce-page form .password-input {
    position: relative;
    display: block;
}

.woocommerce form .password-input input[type="password"],
.woocommerce form .password-input input[type="text"] {
    padding-right: 48px !important;
    width: 100%;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    position: absolute !important;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 4px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #64748b;
}

.woocommerce form .show-password-input::before,
.woocommerce-page form .show-password-input::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 7px auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce form .show-password-input.display-password::before,
.woocommerce-page form .show-password-input.display-password::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.woocommerce form .show-password-input:hover,
.woocommerce form .show-password-input:focus-visible {
    color: var(--rm24-accent-color, #0090bb);
}

/* 2. Login-Formular */
.woocommerce form.login,
.woocommerce form.woocommerce-form-login {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 28px !important;
    max-width: 460px !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03) !important;
    margin: 20px 0 30px 0 !important;
}

.woocommerce form.login .form-row,
.woocommerce form.woocommerce-form-login .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.woocommerce form.login label,
.woocommerce form.woocommerce-form-login label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #0f2733 !important;
    margin-bottom: 6px !important;
}

.woocommerce form.login input.input-text,
.woocommerce form.woocommerce-form-login input.input-text {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.woocommerce form.login .woocommerce-form-login__submit {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    height: 40px !important;
    padding: 0 24px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.woocommerce form.login .woocommerce-form-login__submit:hover {
    background: #3a3e46 !important;
}

.woocommerce form.login .lost_password a {
    color: var(--rm24-accent-color, #0090bb) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 10px !important;
}

.woocommerce form.login .lost_password a:hover {
    text-decoration: underline !important;
}

/* 3. Navigation-Reiter */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: inline-block !important;
    background: #2b2e34 !important;
    color: #ffffff !important;
    padding: 9px 18px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: background 0.15s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: #3a3e46 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--rm24-accent-color, #0090bb) !important;
}

/* 4. Dashboard & Downloads Info-Kacheln */
.woocommerce-account .woocommerce-MyAccount-content > p {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 18px 20px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    margin-bottom: 20px !important;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--rm24-accent-color, #0090bb) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration: underline !important;
}

/* 5. Adressen: Zwei parallele Kacheln mit Action-Buttons */
.woocommerce-account .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
    margin-top: 20px !important;
}

.woocommerce-account .woocommerce-Address {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce-account .woocommerce-Address header.title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid #2b2e34 !important;
    padding-bottom: 8px !important;
}

.woocommerce-account .woocommerce-Address header.title h3 {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f2733 !important;
}

.woocommerce-account .woocommerce-Address header.title a.edit {
    background: #2b2e34 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
}

.woocommerce-account .woocommerce-Address header.title a.edit:hover {
    background: #3a3e46 !important;
}

.woocommerce-account .woocommerce-Address address {
    font-style: normal !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    font-size: 14px !important;
}

/* 6. Kontodetails (Formular & Passwort ändern) */
.woocommerce-account form.woocommerce-EditAccountForm {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 26px !important;
    max-width: 650px !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03) !important;
}

.woocommerce-account form.woocommerce-EditAccountForm .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

.woocommerce-account form.woocommerce-EditAccountForm label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #0f2733 !important;
    margin-bottom: 5px !important;
}

.woocommerce-account form.woocommerce-EditAccountForm input.input-text {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #0f2733 !important;
    box-sizing: border-box !important;
}

.woocommerce-account form.woocommerce-EditAccountForm span.description {
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 4px !important;
    display: block !important;
}

/* Fieldset "Passwort ändern" als saubere Innen-Kachel */
.woocommerce-account form.woocommerce-EditAccountForm fieldset {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #fafbfc !important;
    padding: 20px !important;
    margin: 25px 0 !important;
}

.woocommerce-account form.woocommerce-EditAccountForm fieldset legend {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f2733 !important;
    padding: 0 8px !important;
}

/* Speichern-Button */
.woocommerce-account form.woocommerce-EditAccountForm .woocommerce-Button.button {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.woocommerce-account form.woocommerce-EditAccountForm .woocommerce-Button.button:hover {
    background: #3a3e46 !important;
}

/* Responsive für Adress-Spalten */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================================
 * 7. MEIN KONTO: Bestellungen & Downloads
 * ========================================================================= */

/* Haupttabellen: Bestellungen & Downloads */
table.woocommerce-orders-table,
table.my_account_orders,
table.woocommerce-MyAccount-downloads,
table.woocommerce-table--order-downloads {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-top: 20px !important;
    margin-bottom: 30px !important;
}

/* Dunkle Tabellenkopf-Zeile */
table.woocommerce-orders-table thead th,
table.my_account_orders thead th,
table.woocommerce-MyAccount-downloads thead th,
table.woocommerce-table--order-downloads thead th {
    background: #2b2e34 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: left !important;
    border: none !important;
}

/* Tabellenzeilen Inhalt */
table.woocommerce-orders-table tbody th,
table.woocommerce-orders-table tbody td,
table.my_account_orders tbody th,
table.my_account_orders tbody td,
table.woocommerce-MyAccount-downloads tbody td,
table.woocommerce-table--order-downloads tbody td {
    background: #ffffff !important;
    color: #0f2733 !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    font-weight: normal !important;
}

/* Bestellnummer als blauer Link */
table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-number a,
table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number a {
    color: var(--rm24-accent-color, #0090bb) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-number a:hover,
table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number a:hover {
    text-decoration: underline !important;
}

/* Aktionen / Buttons rechtsbündig */
table.woocommerce-orders-table thead th.woocommerce-orders-table__header-order-actions,
table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions,
table.my_account_orders thead th.order-actions,
table.my_account_orders tbody td.order-actions {
    text-align: right !important;
}

/* Buttons in Tabellen (Anzeigen & Download) */
table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button,
table.my_account_orders td.order-actions a.button,
table.woocommerce-MyAccount-downloads td.download-file a.button,
table.woocommerce-table--order-downloads td.download-file a.button {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
}

table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button:hover,
table.my_account_orders td.order-actions a.button:hover,
table.woocommerce-MyAccount-downloads td.download-file a.button:hover,
table.woocommerce-table--order-downloads td.download-file a.button:hover {
    background: #3a3e46 !important;
}

/* =========================================================================
 * 8. BESTELLDETAILS (Nach "Anzeigen") & DANKE-SEITE (Bestellabschluss)
 * ========================================================================= */

.woocommerce-order,
.woocommerce-view-order {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 28px !important;
    margin-top: 20px !important;
}

/* Grüne Erfolgsmeldung Danke-Seite */
.woocommerce-thankyou-order-received {
    background: #dcfce7 !important;
    color: #15803d !important;
    padding: 14px 20px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin-bottom: 25px !important;
    border-left: 5px solid #22c55e !important;
}

/* Meta-Kacheln (Bestellnummer, Datum etc.) */
ul.woocommerce-thankyou-order-details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 15px !important;
}

ul.woocommerce-thankyou-order-details li {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 14px !important;
    font-size: 13px !important;
    color: #64748b !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

ul.woocommerce-thankyou-order-details li strong {
    font-size: 15px !important;
    color: #0f2733 !important;
}

/* =========================================================================
 * BESTELLDETAILS-TABELLE, BUTTON & ADRESS-KACHELN
 * ========================================================================= */

/* "Erneut bestellen" Button */
.woocommerce-view-order .order-again a.button,
.woocommerce-order .order-again a.button {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    text-decoration: none !important;
    margin-bottom: 25px !important;
    transition: background 0.15s ease !important;
}

.woocommerce-view-order .order-again a.button:hover,
.woocommerce-order .order-again a.button:hover {
    background: #3a3e46 !important;
}

/* Bestelldetails-Tabelle */
.woocommerce-order table.shop_table.order_details,
.woocommerce-view-order table.shop_table.order_details {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border-collapse: collapse !important;
    margin-bottom: 30px !important;
    background: #ffffff !important;
}

.woocommerce-order table.shop_table.order_details thead th,
.woocommerce-view-order table.shop_table.order_details thead th {
    background: #2b2e34 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    border: none !important;
}

.woocommerce-order table.shop_table.order_details tbody td,
.woocommerce-view-order table.shop_table.order_details tbody td {
    background: #ffffff !important;
    color: #0f2733 !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-order table.shop_table.order_details td.product-total,
.woocommerce-view-order table.shop_table.order_details td.product-total {
    text-align: right !important;
}

/* Fusszeilen ohne graue Balken */
.woocommerce-order table.shop_table.order_details tfoot th,
.woocommerce-view-order table.shop_table.order_details tfoot th {
    background: #ffffff !important;
    color: #0f2733 !important;
    padding: 12px 16px !important;
    text-align: right !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
}

.woocommerce-order table.shop_table.order_details tfoot td,
.woocommerce-view-order table.shop_table.order_details tfoot td {
    background: #ffffff !important;
    color: #0f2733 !important;
    padding: 12px 16px !important;
    text-align: right !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
}

/* Gesamtsumme hervorheben */
.woocommerce-order table.shop_table.order_details tfoot tr:last-child th,
.woocommerce-view-order table.shop_table.order_details tfoot tr:last-child th {
    font-weight: 700 !important;
    font-size: 15px !important;
}

.woocommerce-order table.shop_table.order_details tfoot tr:last-child td,
.woocommerce-view-order table.shop_table.order_details tfoot tr:last-child td {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #0f2733 !important;
}

/* Adressen-Container */
.woocommerce-order .woocommerce-customer-details,
.woocommerce-view-order .woocommerce-customer-details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    margin-top: 30px !important;
    border: none !important;
}

/* Adress-Kacheln: Greift bei 2 Spalten UND bei Ein-Spalten-Layout (Download ohne Versand) */
.woocommerce-order .woocommerce-customer-details .woocommerce-column,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-column,
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--1,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--1,
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--addresses,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--addresses,
.woocommerce-order section.woocommerce-customer-details > address,
.woocommerce-view-order section.woocommerce-customer-details > address {
    flex: 1 1 320px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 22px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

.woocommerce-order .woocommerce-customer-details h2,
.woocommerce-view-order .woocommerce-customer-details h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f2733 !important;
    margin: 0 0 12px 0 !important;
    border-bottom: 2px solid #2b2e34 !important;
    padding-bottom: 6px !important;
}

.woocommerce-order .woocommerce-customer-details address,
.woocommerce-view-order .woocommerce-customer-details address {
    font-style: normal !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* =========================================================================
 * 9. PopUp Toast & Standard-Link Ausblendung
 * ========================================================================= */

a.added_to_cart.wc-forward {
    display: none !important;
}

.rm24-cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #22c55e;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(15, 39, 51, 0.12);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rm24-cart-toast.rm24-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.rm24-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm24-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
}

.rm24-toast-text {
    font-weight: 600;
    color: #0f2733;
    font-size: 14px;
}

.rm24-toast-btn {
    background: #2b2e34;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.rm24-toast-btn:hover {
    background: #3a3e46;
}
/* -------------------------------------------------------------------------
 * 12. Footer
 * ------------------------------------------------------------------------- */
.rm24-site-footer {
    width: 100%;
    margin-top: 35px;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.rm24-footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.rm24-footer-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
}

.rm24-footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 13px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
    .rm24-single-grid { grid-template-columns: 1fr; }
    .woocommerce-order .woocommerce-customer-details { grid-template-columns: 1fr; }
    ul.products.rm24-list-view li.product .rm24-card-inner {
        grid-template-columns: 110px minmax(0, 1fr);
        grid-template-areas: "icons icons" "img title" "img sku" "fees fees" "action action";
        row-gap: 8px;
        column-gap: 16px;
    }
    ul.products.rm24-list-view li.product .rm24-col-img .rm24-card-img-link img { width: 110px; height: 80px; }
    ul.products.rm24-list-view li.product .rm24-col-action { text-align: left; }
    ul.products.rm24-list-view li.product .rm24-col-action .rm24-price-display { align-items: flex-start; }
}

/* =========================================================================
 * WARENKORB (Cart) - Isoliertes RM24 Karten-Design
 * ========================================================================= */

/* 1. Haupt-Tabelle */
.woocommerce-cart table.cart {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
}

.woocommerce-cart table.cart th {
    background: #2b2e34 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: left !important;
}

.woocommerce-cart table.cart td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: #0f2733 !important;
}

/* 2. Spalten-Breiten & Bild-Begrenzung (90px) */
.woocommerce-cart table.cart td.product-remove {
    width: 35px !important;
    text-align: center !important;
}

.woocommerce-cart table.cart td.product-remove a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 16px !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #e53e3e !important;
    color: #ffffff !important;
}

.woocommerce-cart table.cart td.product-thumbnail {
    width: 100px !important;
    max-width: 100px !important;
    padding: 10px !important;
    text-align: center !important;
}

.woocommerce-cart table.cart td.product-thumbnail img {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.woocommerce-cart table.cart td.product-name a {
    color: #0f2733 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 15px !important;
}

.woocommerce-cart table.cart td.product-name a:hover {
    color: var(--rm24-accent-color, #0090bb) !important;
}

/* 3. Zahlen & Preise rechtsbündig */
.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
    text-align: right !important;
}

.woocommerce-cart table.cart td.product-subtotal {
    font-weight: 700 !important;
}

/* 4. Mengenschalter horizontal [-] [1] [+] */
.woocommerce-cart table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.woocommerce-cart table.cart td.product-quantity .rm24-qty-btn {
    background: #f1f5f9 !important;
    border: none !important;
    width: 32px !important;
    height: 34px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: #0f2733 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.woocommerce-cart table.cart td.product-quantity .rm24-qty-btn:hover {
    background: #e2e8f0 !important;
}

.woocommerce-cart table.cart td.product-quantity input.qty {
    border: none !important;
    width: 44px !important;
    height: 34px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 5. Aktionszeile (Gutschein & Warenkorb aktualisieren) */
.woocommerce-cart table.cart td.actions {
    padding: 14px 16px !important;
    background: #fafbfc !important;
}

.woocommerce-cart table.cart td.actions .coupon {
    display: inline-flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.woocommerce-cart table.cart td.actions .coupon input.input-text {
    width: 200px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.woocommerce-cart table.cart td.actions .button {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.woocommerce-cart table.cart td.actions .button:hover {
    background: #3a3e46 !important;
}

/* 6. Warenkorb-Summe Kachel (rechts ausgerichtet) */
.woocommerce-cart .cart-collaterals {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 25px !important;
}

.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 480px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03) !important;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f2733 !important;
    margin: 0 0 18px 0 !important;
    border-bottom: 2px solid #2b2e34 !important;
    padding-bottom: 8px !important;
    text-align: left !important;
}

.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
    text-align: left !important;
    padding: 10px 0 !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f2733 !important;
}

.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #0f2733 !important;
}

/* 7. Aufzählungszeichen bei Versandarten restlos entfernen */
.woocommerce-cart ul#shipping_method,
.woocommerce-cart ul#shipping_method li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-cart ul#shipping_method {
    text-align: right !important;
}

.woocommerce-cart ul#shipping_method li {
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

.woocommerce-cart ul#shipping_method li input[type="radio"] {
    margin: 0 !important;
}

/* Hinweistext "Versandoptionen werden während des Bezahlvorgangs aktualisiert" ausblenden */
.woocommerce-cart .woocommerce-shipping-destination {
    display: none !important;
}

/* 8. Weiter zur Kasse Button (Volle Kachelbreite) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
    margin-top: 15px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #3a3e46 !important;
}

/* =========================================================================
 * KASSE (Checkout) - Isoliertes RM24 2-Spalten Karten-Design
 * ========================================================================= */

/* 1. Zweispaltiges Haupt-Layout (Kein horizontaler Überhang) */
.woocommerce-checkout form.checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 50px !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Linke Spalte: Adressdaten */
.woocommerce-checkout #customer_details {
    width: 44% !important;
    max-width: 44% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03) !important;
    box-sizing: border-box !important;
}

/* Rechte Spalte: Deine Bestellung */
.woocommerce-checkout #order_review {
    width: 54% !important;
    max-width: 54% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03) !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout #order_review_heading {
    display: none !important;
}

/* 2. Überschriften */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f2733 !important;
    margin: 0 0 18px 0 !important;
    border-bottom: 2px solid #2b2e34 !important;
    padding-bottom: 8px !important;
}

/* =========================================================================
 * 3. Formularfelder links (Bereinigt & Ausbruch-sicher)
 * ========================================================================= */

/* Container & Zeilen-Reset */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important; /* Kein Flexbox auf Wrapper-Ebene, verhindert Clearfix-Bugs */
}

.woocommerce-checkout .form-row {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Halbe Spalten (Vorname / Nachname & PLZ / Stadt) */
.woocommerce-checkout .form-row-first {
    width: 48% !important;
    float: left !important;
    clear: none !important;
}

.woocommerce-checkout .form-row-last {
    width: 48% !important;
    float: right !important;
    clear: none !important;
}

.woocommerce-checkout .form-row-wide {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Labels */
.woocommerce-checkout .form-row label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #0f2733 !important;
    margin-bottom: 5px !important;
}

/* Alle Eingabefelder strikt innerhalb ihrer Box halten */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #0f2733 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row input.input-text {
    height: 40px !important;
    padding: 0 12px !important;
}

/* Select2 Dropdown (Schweiz / Land) exakt auf 40px Höhe bringen */
.woocommerce-checkout .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 0 !important;
    color: #0f2733 !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 8px !important;
}

/* Bestellnotizfeld (Textarea) & Zusatzfelder */
.woocommerce-checkout #order_comments_field,
.woocommerce-checkout .woocommerce-additional-fields {
    width: 100% !important;
    clear: both !important;
}

.woocommerce-checkout textarea#order_comments {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 85px !important;
    padding: 10px 12px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* Lieferadresse Checkbox Trennung */
.woocommerce-checkout #ship-to-different-address {
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 20px 0 12px 0 !important;
    padding-top: 15px !important;
    border-top: 1px solid #f1f5f9 !important;
    clear: both !important;
}

.woocommerce-checkout #ship-to-different-address label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

/* 4. Bestellübersichts-Tabelle rechts verriegeln */
.woocommerce-checkout #order_review {
    overflow: hidden !important; /* Verhindert jedes Herausragen aus der Kachel */
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important; /* Zwingt die Tabelle strikt in 100% Kachelbreite */
    border-collapse: collapse !important;
    margin-bottom: 24px !important;
}

/* Linke Spalte: 65% für Produktnamen & Bezeichnungen */
.woocommerce-checkout table.woocommerce-checkout-review-order-table th:first-child,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th {
    width: 60% !important;
    text-align: left !important;
    padding: 10px 0 !important;
    word-break: break-word !important;
}

/* Rechte Spalte: 40% für Preise und Summen (sauber rechtsbündig) */
.woocommerce-checkout table.woocommerce-checkout-review-order-table th:last-child,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
    width: 40% !important;
    text-align: right !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    white-space: nowrap !important;
}

/* Versandarten innerhalb der rechten Spalte sauber ausrichten */
.woocommerce-checkout table.woocommerce-checkout-review-order-table ul#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table ul#shipping_method li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    white-space: normal !important;
    text-align: right !important;
    font-size: 13px !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table ul#shipping_method li input[type="radio"] {
    margin: 0 !important;
    order: 2 !important; /* Radio-Button dezent hinter oder vor das Label setzen */
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table ul#shipping_method li label {
    margin: 0 !important;
    cursor: pointer !important;
    order: 1 !important;
}

/* 5. Zahlungsarten im Kachel-Design */
.woocommerce-checkout #payment {
    background: transparent !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #f9f9f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin-bottom: 10px !important;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #0f2733 !important;
    cursor: pointer !important;
    margin-left: 8px !important;
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 12px !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #475569 !important;
}

/* 6. AGB Checkbox */
.woocommerce-checkout .rm24-terms-row,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 15px 0 !important;
    font-size: 14px !important;
}

/* 7. Kaufen-Button (Volle Kachelbreite, Anthrazit) */
.woocommerce-checkout #place_order {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
    margin-top: 15px !important;
}

.woocommerce-checkout #place_order:hover {
    background: #3a3e46 !important;
}

/* 8. Responsive Breakpoint */
@media (max-width: 992px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        max-width: 100% !important;
    }
    .woocommerce-checkout form.checkout {
        flex-direction: column !important;
    }
}

/* 9. Gutscheinfeld und Hinweistext an der Kasse restlos ausblenden */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon {
    display: none !important;
}

/* Horizontalen Überhang auf der Kassen-Seite rigoros sperren */
.woocommerce-checkout .rm24-main-wrapper {
    overflow-x: clip !important;
}

/* =========================================================================
 * ADRESSEN (Bestelldetails & Danke-Seite): Saubere Kacheln ohne Doppelrahmen
 * ========================================================================= */

/* Äusserer Hauptcontainer: rein transparent, keine eigenen Ränder */
.woocommerce-order .woocommerce-customer-details,
.woocommerce-view-order .woocommerce-customer-details {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-top: 30px !important;
    max-width: 100% !important;
}

/* 2 Spalten nebeneinander, wenn Rechnungs- und Lieferadresse existieren */
.woocommerce-order .woocommerce-columns--addresses,
.woocommerce-view-order .woocommerce-columns--addresses,
.woocommerce-order .woocommerce-columns--2,
.woocommerce-view-order .woocommerce-columns--2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Nur die eigentlichen Kacheln erhalten den Rahmen und weissen Hintergrund */
.woocommerce-order .woocommerce-column,
.woocommerce-view-order .woocommerce-column,
.woocommerce-order .woocommerce-customer-details > address,
.woocommerce-view-order .woocommerce-customer-details > address {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.03) !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

/* Überschrift mit durchgehender 2px-Trennlinie */
.woocommerce-order .woocommerce-column h2,
.woocommerce-view-order .woocommerce-column h2,
.woocommerce-order .woocommerce-column .woocommerce-column__title,
.woocommerce-view-order .woocommerce-column .woocommerce-column__title,
.woocommerce-order .woocommerce-customer-details h2,
.woocommerce-view-order .woocommerce-customer-details h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f2733 !important;
    text-align: left !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #2b2e34 !important;
    width: 100% !important;
    display: block !important;
}

/* Adresstext */
.woocommerce-order .woocommerce-column address,
.woocommerce-view-order .woocommerce-column address,
.woocommerce-order .woocommerce-customer-details address,
.woocommerce-view-order .woocommerce-customer-details address {
    font-style: normal !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Mobile-Ansicht: Untereinander anordnen */
@media (max-width: 768px) {
    .woocommerce-order .woocommerce-columns--addresses,
    .woocommerce-view-order .woocommerce-columns--addresses,
    .woocommerce-order .woocommerce-columns--2,
    .woocommerce-view-order .woocommerce-columns--2 {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================================
 * SHOP-ARCHIV: Attribut-Filter & Clear-Button
 * ========================================================================= */
.rm24-toolbar-filters {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.rm24-clear-filters-btn {
    display: inline-flex !important;
    align-items: center !important;
    background: #e2e8f0 !important;
    color: #0f2733 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    height: 38px !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
}

.rm24-clear-filters-btn:hover {
    background: #cbd5e1 !important;
}

/* =========================================================================
 * PRODUKTDETAILSEITE: Kompakter Akkordeon-Aufklappbalken für Rezensionen
 * ========================================================================= */

details.rm24-reviews-accordion {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    margin: 30px 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

details.rm24-reviews-accordion[open] {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 39, 51, 0.04) !important;
}

/* Der flache, klickbare Aufklappbalken */
summary.rm24-reviews-summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 18px !important;
    background: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f2733 !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none !important;
}

summary.rm24-reviews-summary::-webkit-details-marker {
    display: none !important;
}

summary.rm24-reviews-summary:hover {
    background: #f1f5f9 !important;
}

.rm24-summary-icon {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #64748b !important;
    transition: transform 0.2s ease !important;
}

details[open] .rm24-summary-icon {
    transform: rotate(45deg) !important; /* Wird beim Öffnen zum Schliessen-Kreuz */
}

/* Aufgeklappter Innenbereich */
.rm24-reviews-inner {
    padding: 20px 24px !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Bewertungen & Listen formatieren */
.rm24-reviews-inner ul,
.rm24-reviews-inner ol,
.rm24-reviews-inner .commentlist,
.rm24-reviews-inner .children {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rm24-reviews-inner .comment_container {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.rm24-reviews-inner img.avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
}

.rm24-reviews-inner .children {
    margin-left: 45px !important;
    padding-left: 14px !important;
    border-left: 2px solid #e2e8f0 !important;
}

/* Formular-Elemente */
.rm24-reviews-inner textarea {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    margin-top: 6px !important;
}

.rm24-reviews-inner input[type="submit"] {
    background: #2b2e34 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}

/* =========================================================================
 * BEWERTUNGS-STERNE IM FORMULAR: Echte Sterne statt "1 von 5 Sternen..."
 * ========================================================================= */

.comment-form-rating p.stars {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin: 8px 0 16px 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

/* Den Standard-Text "1 von 5 Sternen" komplett unsichtbar machen */
.comment-form-rating p.stars span a {
    position: relative !important;
    display: inline-block !important;
    text-indent: -9999px !important; /* Versteckt den hässlichen Text */
    width: 24px !important;
    height: 24px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* Anstelle des Texts einen echten goldenen Stern anzeigen */
.comment-form-rating p.stars span a::before {
    content: "★" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    text-indent: 0 !important;
    font-size: 22px !important;
    color: #cbd5e1 !important; /* Leerer Stern: Dezentes Grau */
    transition: color 0.15s ease !important;
}

/* Hover- & Klick-Zustand: Stern wird Goldgelb */
.comment-form-rating p.stars:hover span a::before {
    color: #eab308 !important; /* Goldgelb */
}

.comment-form-rating p.stars span a:hover ~ a::before {
    color: #cbd5e1 !important; /* Sterne rechts vom gehoverten bleiben grau */
}

.comment-form-rating p.stars span a.active::before {
    color: #eab308 !important;
}

/* =========================================================================
 * BESTELLBESTÄTIGUNG: 2 Adressen zwingend nebeneinander
 * ========================================================================= */
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--2,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
    width: 100% !important;
}

.woocommerce-order .woocommerce-customer-details .woocommerce-columns--2 .woocommerce-column,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--2 .woocommerce-column {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 22px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .woocommerce-order .woocommerce-customer-details .woocommerce-columns--2,
    .woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--2 {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================================
 * SEO-KATEGORIEBESCHREIBUNG UNTEN (Identisch zum oberen Infoblock)
 * ========================================================================= */

section.rm24-category-bottom-text {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #2b2e34 !important;
    border-radius: 6px !important;
    padding: 24px 28px !important;
    margin: 40px 0 25px 0 !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* Fettgedruckter Zwischentitel */
section.rm24-category-bottom-text strong {
    color: #0f2733 !important;
}

/* Bullet-Points sauber einrücken */
section.rm24-category-bottom-text ul {
    margin: 14px 0 16px 20px !important;
    padding: 0 !important;
    list-style-type: disc !important;
}

section.rm24-category-bottom-text ul li {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

section.rm24-category-bottom-text ul li strong {
    color: #0f2733 !important;
}
/* =========================================================================
 * Toolbar (moved from the template)
 * ========================================================================= */

    
    .rm24-toolbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        margin: 20px 0 30px 0;
        padding: 14px 18px;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        box-sizing: border-box;
        width: 100%;
    }
    .rm24-toolbar-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
    }
    .rm24-toolbar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }
    .rm24-toolbar-container .rm24-select {
        height: 40px;
        padding: 0 14px;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        background-color: #ffffff;
        color: #0f2733;
        font-size: 14px;
        cursor: pointer;
    }
    .rm24-clear-filters-btn {
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        background-color: #fee2e2;
        color: #991b1b;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: background-color 0.15s ease;
    }
    .rm24-clear-filters-btn:hover {
        background-color: #fecaca;
    }
    .rm24-view-switcher {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .rm24-view-btn {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        color: #475569;
        transition: all 0.15s ease;
    }
    .rm24-view-btn.rm24-active,
    .rm24-view-btn:hover {
        background-color: var(--rm24-toggle-color, var(--rm24-accent-color, #0090bb));
        color: #ffffff;
        border-color: var(--rm24-toggle-color, var(--rm24-accent-color, #0090bb));
    }

    /* Mobile Breakpoints: <= 768px & <= 480px */
    @media (max-width: 768px) {
        .rm24-toolbar-container {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 12px !important;
            padding: 12px !important;
            margin: 15px 0 25px 0 !important;
            border-radius: 0 !important;
        }
        .rm24-toolbar-filters {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            width: 100% !important;
            gap: 8px !important;
        }
        .rm24-toolbar-filters .rm24-clear-filters-btn {
            grid-column: 1 / -1;
        }
        .rm24-toolbar-filters .rm24-select {
            width: 100% !important;
            height: 44px !important;
            font-size: 16px !important;
            box-sizing: border-box !important;
        }
        .rm24-clear-filters-btn {
            width: 100% !important;
            justify-content: center !important;
            height: 44px !important;
            box-sizing: border-box !important;
        }
        .rm24-toolbar-actions {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            width: 100% !important;
            padding-top: 10px !important;
            border-top: 1px solid #e2e8f0 !important;
            box-sizing: border-box !important;
        }
        .rm24-toolbar-actions .rm24-limit-form {
            flex: 1 1 auto !important;
        }
        .rm24-toolbar-actions .rm24-limit-form .rm24-select {
            width: 100% !important;
            height: 44px !important;
            font-size: 16px !important;
            box-sizing: border-box !important;
        }
        .rm24-view-switcher {
            flex-shrink: 0 !important;
            margin-left: 10px !important;
        }
        .rm24-view-btn {
            width: 44px !important;
            height: 44px !important;
        }
    }
    

/* =========================================================================
 * Accessibility & WordPress core classes
 * ========================================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
    background-color: #ffffff;
    clip: auto !important;
    clip-path: none;
    color: #0f2733;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 8px;
    padding: 12px 20px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: #64748b; }
.sticky { position: relative; }
.bypostauthor { position: relative; }
img { max-width: 100%; height: auto; }

/* Titles */
.rm24-archive-title {
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 18px;
    color: #0f2733;
}
.rm24-section-title,
.rm24-product-section h2 {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    font-size: 18px;
    margin: 0 0 14px;
}
.rm24-product-section,
.rm24-tech-specs-box {
    margin-bottom: 30px;
}
.rm24-card-title {
    font-size: 15px;
    margin: 0;
}
.rm24-cat-card-title {
    font-size: 15px;
    margin: 10px 0 0;
}

/* Prices, fees, delivery time */
.rm24-price-display { display: flex; flex-direction: column; gap: 2px; }
.rm24-price-display del { opacity: .6; font-weight: 400; margin-right: 6px; }
.rm24-price-display ins { text-decoration: none; }
.rm24-price-sub { font-size: 12px; color: #64748b; }
.rm24-fees { font-size: 12px; color: #64748b; line-height: 1.5; }
.rm24-fees-single { margin: 8px 0 0; }
.rm24-delivery-time { font-size: 14px; color: #475569; }
.rm24-stock-box.out-of-stock { color: #b91c1c; }
.rm24-order-b2b-box { margin: 20px 0; padding: 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.rm24-order-b2b-box p { margin: 0 0 6px; }
.woocommerce-breadcrumb { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.woocommerce-breadcrumb a { color: inherit; }
.rm24-entry { margin-bottom: 30px; }
.rm24-page-links { margin: 20px 0; }

/* -------------------------------------------------------------------------
 * Varianten als Buttons, Meta-Badges, Staffelpreise
 * ------------------------------------------------------------------------- */
.rm24-has-swatches table.variations,
.rm24-has-swatches table.variations tbody,
.rm24-has-swatches table.variations tr,
.rm24-has-swatches table.variations th,
.rm24-has-swatches table.variations td {
    display: block;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.rm24-has-swatches table.variations {
    margin: 0 0 18px !important;
}

.rm24-has-swatches table.variations tr + tr {
    margin-top: 14px;
}

.rm24-has-swatches table.variations th.label {
    margin-bottom: 8px !important;
    font-weight: 600;
    text-align: left;
}

.rm24-swatch-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.rm24-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rm24-swatch {
    min-width: 44px;
    padding: 9px 14px;
    background: #ffffff;
    color: #2b2e34;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.rm24-swatch:hover {
    border-color: var(--rm24-accent-color, #0090bb);
}

.rm24-swatch.rm24-active {
    background: var(--rm24-accent-color, #0090bb);
    border-color: var(--rm24-accent-color, #0090bb);
    color: #ffffff;
}

.rm24-swatch.rm24-disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.rm24-has-swatches .reset_variations {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.rm24-single-meta-badges > :empty,
.rm24-single-meta-badges > p {
    display: none !important;
}

.rm24-meta-btn a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.rm24-tier-table th:not(:first-child),
.rm24-tier-table td.rm24-tier-price,
.rm24-tier-table td.rm24-tier-save {
    text-align: right !important;
}

.rm24-tier-table td.rm24-tier-price {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Unterkategorien: responsive Spalten */
@media (max-width: 1024px) {
    .rm24-subcategories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .rm24-subcategories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
    .rm24-subcategories-grid { grid-template-columns: 1fr; }
    .rm24-cat-img-box img { max-height: 260px; }
}
.rm24-subcategories-grid .rm24-cat-card-title {
    font-size: 16px !important;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Hinweise mit Button (z. B. Mein Konto: keine Downloads / Zahlungsarten) */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid var(--rm24-accent-color, #0090bb) !important;
    border-radius: 6px;
    padding: 16px 20px !important;
    margin: 0 0 20px !important;
    color: #0f2733 !important;
}

.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-message::before {
    display: none !important;
}

.woocommerce-MyAccount-content .woocommerce-info a.button,
.woocommerce-MyAccount-content .woocommerce-message a.button {
    order: 2;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content a.button,
.woocommerce-account .woocommerce-MyAccount-content a.button:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Kurzbeschreibung in der Produktübersicht */
.rm24-card-excerpt {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

/* Produktnotizen (RM24-Snippet) als Badge in der Meta-Zeile */
.rm24-single-meta-badges > .rm24-meta-kunden-hinweis,
.rm24-single-meta-badges > .rm24-meta-admin-notiz {
    margin: 0 !important;
    padding: 7px 13px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    clear: none !important;
    background: #2b2e34 !important;
    color: #ffffff !important;
}

.rm24-single-meta-badges > .rm24-meta-kunden-hinweis span,
.rm24-single-meta-badges > .rm24-meta-admin-notiz span {
    color: inherit !important;
    display: inline !important;
    margin: 0 !important;
}

.rm24-single-meta-badges > .rm24-meta-admin-notiz {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px dashed #d97706 !important;
}

.rm24-single-meta-badges > .rm24-meta-admin-notiz span:first-child {
    font-weight: 700 !important;
    margin-right: 4px !important;
}

/* Wish list button on the product page (RM24 wish list and similar) */
.single-product .rm24-single-wishlist-wrapper { margin: 14px 0 6px; }
.single-product .rm24-single-wishlist-btn {
    display: inline-flex !important; align-items: center; gap: 8px;
    padding: 9px 16px !important; min-height: 40px;
    background: #fff !important; color: #0f2733 !important;
    border: 1px solid #d5dee4 !important; border-radius: 8px !important;
    box-shadow: none !important; text-shadow: none !important;
    font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important;
    text-transform: none !important; letter-spacing: 0 !important;
    cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.single-product .rm24-single-wishlist-btn svg { flex: none; width: 18px; height: 18px; transition: fill .15s ease; }
.single-product .rm24-single-wishlist-btn:hover,
.single-product .rm24-single-wishlist-btn:focus-visible {
    border-color: var(--rm24-accent-color, #0090bb) !important;
    color: var(--rm24-accent-color, #0090bb) !important;
    background: #f5fbfd !important;
}
.single-product .rm24-single-wishlist-btn.rm24-is-active {
    color: #e11d48 !important; border-color: #fecdd3 !important; background: #fff1f2 !important;
}
.single-product .rm24-single-wishlist-btn.rm24-is-active svg { fill: currentColor; }
