/* Overlay für die Bestell-Übersicht */
#fbm-overview-overlay.fbm-overview-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#fbm-overview-overlay.fbm-overview-overlay.is-visible {
    display: block !important;
}

.fbm-overview-box {
    background: #fff !important;
    border-radius: 12px !important;
    max-width: 650px !important;
    width: 100% !important;
    margin: 40px auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    font-family: Arial, sans-serif !important;
}

.fbm-overview-header {
    background: #bb1e10 !important;
    color: #fff !important;
    padding: 20px 25px !important;
}

.fbm-overview-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    color: #fff !important;
}

.fbm-overview-body {
    padding: 25px !important;
    color: #333 !important;
    line-height: 1.5 !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

/* 1. Normale Kategorie-Überschriften (innerhalb der Produkte) */
.fbm-overview-body h3 {
    color: #bb1e10 !important;
    font-size: 15px !important;
    border-bottom: none !important;
    margin: 15px 0 8px !important;
    font-weight: bold !important;
}

/* 2. Die Hauptüberschriften ("Ihre Daten" & "Gewählte Produkte") 
   Das greift automatisch auf das 1. und 2. h3-Element zu, ohne JS-Klassen! */
.fbm-overview-body > h3:nth-of-type(1),
.fbm-overview-body > h3:nth-of-type(2) {
    font-size: 20px !important;
    margin: 30px 0 12px !important;
    border-bottom: 2px solid #bb1e10 !important;
    padding-bottom: 5px !important;
}

.fbm-overview-body > h3:first-child {
    margin-top: 0 !important;
}

.fbm-overview-body table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 0 !important;
    font-size: 14px !important;
}

.fbm-overview-body table tr,
.fbm-overview-body table td {
    border: 0 !important;
}

.fbm-overview-body table td {
    background: #f9f9f9 !important;
    padding: 12px 15px !important;
    border-bottom: 1px dashed #cccccc !important;
}

.fbm-overview-body table td:first-child {
    border-left: 4px solid #bb1e10 !important;
}

.fbm-overview-body table td:last-child {
    text-align: right !important;
    white-space: nowrap !important;
}

.fbm-overview-remarks {
    background: #f9f9f9 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 12px 15px !important;
    border-left: 4px solid #bb1e10 !important;
    white-space: pre-line !important;
}

.fbm-overview-footer {
    padding: 20px 25px !important;
    border-top: 1px solid #eee !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.fbm-overview-footer button {
    cursor: pointer !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    border: none !important;
    font-weight: bold !important;
}

.fbm-overview-back {
    background: #eee !important;
    color: #333 !important;
}

.fbm-overview-back:hover {
    background: #e0e0e0 !important;
}

.fbm-overview-confirm {
    background: #bb1e10 !important;
    color: #fff !important;
}

.fbm-overview-confirm:hover {
    background: #9a180d !important;
}

.fbm-overview-empty {
    color: #999 !important;
    font-style: italic !important;
}