/* Definicja gradientu wielokolorowego */
:root {
    --bcenter-brand-gradient: linear-gradient(135deg, #0091AF, #4BAAAE, #90C8B8, #F2C061, #EE993B, #E74134);
    --bcenter-brand-gradient-light: linear-gradient(135deg, rgba(0,145,175,0.1), rgba(75,170,174,0.1), rgba(144,200,184,0.1), rgba(242,192,97,0.1), rgba(238,153,59,0.1), rgba(231,65,52,0.1));
}

.bcenter-cennik-wrapper {
    font-family: 'Inter', sans-serif;
    color: #334155;
    margin: 0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.bcenter-cennik-wrapper * {
    box-sizing: border-box;
}

.bcenter-pricing-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    position: relative;
}

/* Dekoracyjny pasek z pełnym gradientem na górze */
.bcenter-pricing-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--bcenter-brand-gradient);
    z-index: 10;
}

.bcenter-table-responsive {
    width: 100%;
    padding-top: 6px; /* Przestrzeń pod paskiem gradientu */
    overflow-x: auto;
}

.bcenter-table-responsive table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed; /* Wymusza równe trzymanie szerokości kolumn */
    margin: 0;
    border: none;
}

.bcenter-table-responsive th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 600 !important;
    font-size: 1.1rem !important; /* Pomniejszona czcionka wymuszona dla Elementora */
    text-transform: none !important; /* Wyłączone wielkie litery i wymuszone dla Elementora */
    letter-spacing: 0.02em !important;
    padding: 24px 12px;
    border-bottom: 2px solid #e2e8f0;
    vertical-align: middle;
    text-align: center!important;
    width: 20%;
    word-wrap: break-word;
    border-top: none;
    border-left: none;
    border-right: none;
}

.bcenter-table-responsive td {
    padding: 24px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background-color 0.2s ease;
    word-wrap: break-word;
    border-top: none;
    border-left: none;
    border-right: none;
}

.bcenter-table-responsive td:first-child {
    font-weight: 600;
    color: #0f172a;
    text-align: center !important; /* Wyśrodkowanie typów pojazdów na desktopie */
}

/* KONTENER DLA CENY I GRAFIKI */
.bcenter-price-cell-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Nowa reguła dla wstawionej grafiki - RESPONSYWNA */
.bcenter-inserted-price-graphic {
    display: block;
    width: 100%;
    max-width: 200px; /* Dopasowane optymalnie pod siatkę desktopową */
    height: auto; 
    max-height: 140px; 
    object-fit: contain; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px;
    background-color: #ffffff; 
    margin: 0 auto; 
    box-shadow: none;
}

/* Hover dla wersji desktopowej */
@media (min-width: 901px) {
    .bcenter-table-responsive tbody tr:hover {
        background-color: #f8fafc;
    }
}

.bcenter-price-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1; /* Wymuszenie idealnego wyśrodkowania w pionie */
    white-space: nowrap;
    color: #006075;
    background: #ffffff;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.bcenter-price-pill::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 9999px;
    padding: 2px;
    background: var(--bcenter-brand-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    /* Usunięto transform: scale aby uniknąć brzydkiego "skakania" elementów na hover */
    .bcenter-table-responsive tbody tr:hover .bcenter-price-pill {
        color: #1e293b;
        background: var(--bcenter-brand-gradient-light);
    }
}

.bcenter-footer-note {
    padding: 24px 32px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
    font-style: italic;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.bcenter-footer-note span {
    color: #E74134;
    font-weight: bold;
}

/* WERSJA MOBILNA - KARTY ZAMIAST TABELI (Ulepszona Siatka) */
@media (max-width: 900px) {
    .bcenter-cennik-wrapper {
        padding: 20px 0;
    }

    .bcenter-pricing-container {
        box-shadow: none;
        background: transparent;
    }
    
    .bcenter-pricing-container::before {
        display: none;
    }

    .bcenter-table-responsive table, 
    .bcenter-table-responsive thead, 
    .bcenter-table-responsive tbody, 
    .bcenter-table-responsive th, 
    .bcenter-table-responsive td, 
    .bcenter-table-responsive tr {
        display: block;
    }
    
    .bcenter-table-responsive thead tr {
        display: none; 
    }
    
    /* Każdy wiersz staje się kartą typu Grid */
    .bcenter-table-responsive tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0 0 32px 0;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.04);
        background-color: #fff;
        overflow: hidden;
    }
    
    .bcenter-table-responsive td {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    /* Pierwsza komórka (tytuł) zajmuje całą szerokość karty */
    .bcenter-table-responsive td:first-child {
        grid-column: 1 / -1;
        background-color: #f8fafc;
        justify-content: center;
        text-align: center !important;
        font-size: 1.2rem;
        border-bottom: 2px solid #e2e8f0;
        border-radius: 16px 16px 0 0;
        padding: 20px 16px;
    }
    
    /* Dodanie pionowej linii między pakietami w siatce (dla parzystych/nieparzystych elementów) */
    .bcenter-table-responsive td:nth-child(odd):not(:first-child) {
        border-right: 1px solid #f1f5f9;
    }

    /* Usunięcie dolnego obramowania z ostatnich elementów */
    .bcenter-table-responsive td:last-child,
    .bcenter-table-responsive td:nth-last-child(2):nth-child(even) {
        border-bottom: none;
    }

    /* Stylizacja etykiety w wersji mobilnej */
    .bcenter-table-responsive td::before {
        content: attr(data-label);
        display: block;
        width: 100%;
        font-weight: 700 !important;
        font-size: 0.65rem !important;
        color: #64748b;
        text-transform: none !important;
        letter-spacing: 0.02em !important;
        text-align: center;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px dashed #e2e8f0;
    }
    
    .bcenter-table-responsive td:first-child::before {
        display: none;
    }

    .bcenter-price-cell-wrapper {
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .bcenter-inserted-price-graphic {
        max-width: 100%; /* Obrazek dopasowuje się do komórki */
        max-height: 100px; /* Zmniejszone dla mniejszych komórek siatki */
    }

    .bcenter-price-pill {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .bcenter-footer-note {
        text-align: center;
        padding: 24px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background-color: #ffffff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    }
}
