/**
 * Erklaerfenster fuer Lieferkosten und Servicegebuehr.
 *
 * Lag bis zum 26.08.2026 inline in checkout-finalize.php und galt damit nur
 * fuer die Bestelluebersicht. Warenkorb und Kasse zeigten denselben Posten
 * ohne diese Auskunft. Jetzt eine Datei fuer alle drei.
 */

.fee-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 2147483640;
    display: none;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
             env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.fee-info-overlay:not(.hidden) { display: flex; }
.fee-info-overlay.hidden { display: none !important; }

.fee-info-card {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

@media (max-width: 640px) {
    .fee-info-card {
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }
}

.fee-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.fee-info-title { margin: 0; font-size: 1rem; font-weight: 600; color: #111827; }

.fee-info-close {
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
}

.fee-info-close:hover { background: #f3f4f6; color: #111827; }

.fee-info-body { padding: 1rem 1.25rem; overflow-y: auto; flex: 1; }
.fee-info-body p { color: #374151; line-height: 1.5; margin: 0 0 .75rem 0; font-size: .9rem; }

.fee-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .75rem;
    font-size: .85rem;
}

.fee-info-table th,
.fee-info-table td {
    padding: .5rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.fee-info-table th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    position: sticky;
    top: 0;
}

.fee-info-table td:nth-child(n+2),
.fee-info-table th:nth-child(n+2) { text-align: right; white-space: nowrap; }

.fee-info-empty,
.fee-info-leer { color: #9ca3af; text-align: center; padding: 1rem; font-size: .85rem; }
.fee-info-leer.hidden { display: none; }

/* ------------------------------------------------------ Suchen und Blaettern */

.fee-info-filter { margin-top: .75rem; }

.fee-info-suchfeld {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .875rem;
    color: #111827;
    background: #fff;
}

.fee-info-suchfeld:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.fee-info-blaettern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: .75rem;
}

.fee-info-blaettern[hidden] { display: none; }

.fee-info-blatt-btn {
    appearance: none;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.fee-info-blatt-btn:hover:not(:disabled) { background: #f3f4f6; }

.fee-info-blatt-btn:disabled {
    opacity: .4;
    cursor: default;
}

.fee-info-seitenstand {
    font-size: .8rem;
    color: #6b7280;
    min-width: 3.5rem;
    text-align: center;
}
