/* Energienerds Batterijprijzen — frontend (ERE-kleuren, Safari-safe) */

.ebp-wrap {
    display: block;
    max-width: 960px;
    margin: 40px auto;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: linear-gradient(145deg, #070b14, #0c1220);
    border-radius: 28px;
    padding: 30px 25px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9);
    border: 1px solid #2a3a5a;
    color: #e8f1ff;
    box-sizing: border-box;
    line-height: 1.4;
}

.ebp-wrap *,
.ebp-wrap *::before,
.ebp-wrap *::after {
    box-sizing: border-box;
}

.ebp-product {
    margin-bottom: 1.75rem;
}

.ebp-product:last-child {
    margin-bottom: 0.75rem;
}

.ebp-product__title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #f8fafc;
}

.ebp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    background: #1e293b;
    border: 1px solid #3d4f66;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ebp-table {
    display: block;
    width: 100%;
    min-width: 44rem;
}

.ebp-table__head,
.ebp-table__row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
}

.ebp-table__head {
    background: #0f172a;
    border-bottom: 2px solid #5b6f8a;
}

.ebp-table__row {
    border-bottom: 2px solid #4a5d78;
}

.ebp-table__row:last-child {
    border-bottom: none;
}

.ebp-table__row.is-odd {
    background: #2a3a52;
}

.ebp-table__row.is-even {
    background: #172033;
}

.ebp-table__row.is-best {
    background: #1a3d34;
    border-bottom-color: #3d6b5c;
}

.ebp-table__row.is-clickable {
    cursor: pointer;
}

.ebp-table__row.is-odd:hover,
.ebp-table__row.is-even:hover {
    background: #334860;
}

.ebp-table__row.is-best:hover {
    background: #214a3f;
}

.ebp-table__cell {
    padding: 14px 16px;
    min-width: 0;
}

.ebp-table__head .ebp-table__cell {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ebp-shop {
    -webkit-box-flex: 1.1;
    -webkit-flex: 1.1 1 0%;
    flex: 1.1 1 0%;
}

.ebp-price {
    -webkit-box-flex: 0.95;
    -webkit-flex: 0.95 1 0%;
    flex: 0.95 1 0%;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}

.ebp-table__head .ebp-price {
    font-weight: 700;
    color: #94a3b8;
}

.ebp-korting {
    -webkit-box-flex: 0.9;
    -webkit-flex: 0.9 1 0%;
    flex: 0.9 1 0%;
    font-weight: 700;
    color: #00e5a0;
    text-align: center;
    line-height: 1.25;
    font-size: 0.95rem;
}

.ebp-table__head .ebp-korting {
    font-size: 0.75rem;
    color: #94a3b8;
}

.ebp-opmerkingen {
    -webkit-box-flex: 1.4;
    -webkit-flex: 1.4 1 0%;
    flex: 1.4 1 0%;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ebp-action {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

.ebp-shop a {
    color: #e2e8f0;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    -webkit-transition: color 0.15s ease, border-color 0.15s ease;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.ebp-shop a:hover,
.ebp-shop a:focus {
    color: #00e5a0;
    border-bottom-color: #00e5a0;
}

.ebp-price.is-best,
.ebp-price.is-best .ebp-price__now {
    color: #00e5a0;
}

.ebp-price__now {
    white-space: nowrap;
}

.ebp-price__was {
    margin-top: 0.25rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.85em;
    white-space: nowrap;
    line-height: 1.2;
}

.ebp-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #04120d;
    background: #00e5a0;
    vertical-align: middle;
    text-decoration: none;
}

.ebp-bekijk {
    margin-left: 0;
    -webkit-transition: filter 0.15s ease, -webkit-transform 0.15s ease;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.ebp-bekijk:hover,
.ebp-bekijk:focus {
    color: #04120d;
    filter: brightness(1.08);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

.ebp-empty,
.ebp-meta {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

.ebp-error {
    color: #fecaca;
    font-size: 0.9rem;
}

.ebp-wrap .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .ebp-table {
        min-width: 0;
    }

    .ebp-table__head {
        display: none;
    }

    .ebp-table__row {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .ebp-table__row .ebp-table__cell {
        padding: 4px 0;
    }

    .ebp-table__row .ebp-shop {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 calc(100% - 7rem);
        flex: 1 1 calc(100% - 7rem);
    }

    .ebp-table__row .ebp-action {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 auto;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .ebp-table__row .ebp-price,
    .ebp-table__row .ebp-korting,
    .ebp-table__row .ebp-opmerkingen {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;
        text-align: left;
    }
}
