.wc-dde-data-dostawy {
    padding: 10px 15px;
    background: #f9f9fa;
    border-left: 3px solid #2c3e50;
    margin: 15px 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.wc-dde-delivery-icon {
    flex-shrink: 0;
}

.wc-dde-express-opcje {
    margin: 12px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.wc-dde-express-opcje h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.wc-dde-express-przyciski {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

/* PRZYCISKI EXPRESS - kompaktowe */
.wc-dde-express-przycisk {
    padding: 8px 6px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    min-height: 70px;
}

.wc-dde-express-przycisk:hover {
    background: #fff;
    border-color: #999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wc-dde-express-przycisk.aktywny {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

/* IKONA */
.wc-dde-express-przycisk .ikona {
    font-size: 18px;
    line-height: 1;
}

/* NAZWA */
.wc-dde-express-przycisk .nazwa {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

/* CENA - domyslnie ciemna */
.wc-dde-express-przycisk .cena {
    font-size: 10px;
    color: #333;
    font-weight: 500;
}

/* CENA - biala po zaznaczeniu */
.wc-dde-express-przycisk.aktywny .cena,
.wc-dde-express-przycisk.aktywny .cena * {
    color: #fff !important;
}

/* INFORMACJA O DNIACH */
.wc-dde-express-przycisk .dni-info {
    font-size: 9px;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 2px;
}

.wc-dde-express-przycisk.aktywny .dni-info {
    color: #90EE90;
    background: rgba(255, 255, 255, 0.15);
}

/* Przycisk anulowania wyboru express */
.wc-dde-express-anuluj {
    background: transparent;
    border: 1px dashed #bbb;
    color: #888;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.wc-dde-express-anuluj:hover {
    background: #fff0f0;
    border-color: #e74c3c;
    color: #e74c3c;
}
.wc-dde-express-anuluj .ikona {
    font-size: 12px;
}
.wc-dde-express-anuluj .nazwa {
    font-size: 12px;
}

/* SELECT */
.wc-dde-express-select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* RADIO */
.wc-dde-express-radio label {
    display: block;
    padding: 10px;
    margin: 5px 0;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.wc-dde-express-radio label:hover {
    background: #fff;
}

.wc-dde-express-radio input[type="radio"]:checked + * {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.wc-dde-express-radio .dni-info {
    color: #28a745;
    font-size: 11px;
    font-weight: 500;
}

/* =====================================================
   RESPONSYWNOSC
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .wc-dde-express-przyciski {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 6px;
    }
    
    .wc-dde-express-przycisk {
        padding: 6px 4px;
        min-height: 65px;
    }
    
    .wc-dde-express-przycisk .ikona {
        font-size: 16px;
    }
    
    .wc-dde-express-przycisk .nazwa {
        font-size: 10px;
    }
    
    .wc-dde-express-przycisk .cena {
        font-size: 9px;
    }
    
    .wc-dde-express-przycisk .dni-info {
        font-size: 8px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .wc-dde-express-przyciski {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .wc-dde-express-przycisk {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 10px 12px;
        min-height: auto;
        gap: 10px;
    }
    
    .wc-dde-express-przycisk .ikona {
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .wc-dde-express-przycisk .nazwa {
        flex: 1;
        text-align: left;
        font-size: 12px;
    }
    
    .wc-dde-express-przycisk .cena {
        font-size: 11px;
        font-weight: 600;
    }
    
    .wc-dde-express-przycisk .dni-info {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .wc-dde-data-dostawy {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .wc-dde-express-opcje {
        padding: 10px;
        margin: 12px 0;
    }
    
    .wc-dde-express-opcje h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Male telefony */
@media (max-width: 480px) {
    .wc-dde-express-przycisk {
        padding: 8px 10px;
    }
    
    .wc-dde-express-przycisk .ikona {
        font-size: 18px;
    }
    
    .wc-dde-express-przycisk .nazwa {
        font-size: 11px;
    }
    
    .wc-dde-express-przycisk .cena {
        font-size: 10px;
    }
}

/* =====================================================
   SHORTCODE [wc_dde_express_info]
   ===================================================== */

.wc-dde-express-info {
    margin: 15px 0;
    font-size: 14px;
}

.wc-dde-express-info__tytul {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

/* ---------- STYL: KARTY ---------- */

.wc-dde-express-info--karty .wc-dde-express-info__karty {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.wc-dde-express-info__karta {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    transition: box-shadow 0.2s ease;
}

.wc-dde-express-info__karta:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.wc-dde-express-info__karta--standard {
    border-color: #c3c3c3;
}

.wc-dde-express-info__karta--express {
    border-color: #f0ad00;
    background: #fffdf2;
}

.wc-dde-express-info__ikona {
    font-size: 22px;
    line-height: 1;
}

.wc-dde-express-info__nazwa {
    font-weight: 600;
    font-size: 13px;
    color: #222;
    line-height: 1.3;
}

.wc-dde-express-info__cena {
    font-size: 13px;
    font-weight: 700;
    color: #e67e00;
}

.wc-dde-express-info__cena--gratis {
    font-size: 12px;
    font-weight: 700;
    color: #28a745;
}

.wc-dde-express-info__redukcja {
    font-size: 11px;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 600;
}

.wc-dde-express-info__data {
    font-size: 11px;
    color: #555;
    line-height: 1.3;
}

/* ---------- STYL: TABELA ---------- */

.wc-dde-express-info--tabela .wc-dde-express-info__tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wc-dde-express-info--tabela .wc-dde-express-info__tabela thead tr {
    background: #2c3e50;
    color: #fff;
}

.wc-dde-express-info--tabela .wc-dde-express-info__tabela th,
.wc-dde-express-info--tabela .wc-dde-express-info__tabela td {
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}

.wc-dde-express-info--tabela .wc-dde-express-info__tabela tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.wc-dde-express-info--tabela .wc-dde-express-info__tabela tbody tr:hover {
    background: #fff8e8;
}

.wc-dde-express-info--tabela .wc-dde-express-info__wiersz--express td:first-child {
    font-size: 18px;
}

/* ---------- STYL: LISTA ---------- */

.wc-dde-express-info--lista .wc-dde-express-info__lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-dde-express-info__pozycja {
    padding: 10px 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.5;
}

.wc-dde-express-info__pozycja--standard {
    border-left: 3px solid #aaa;
}

.wc-dde-express-info__pozycja--express {
    border-left: 3px solid #f0ad00;
}

/* ---------- RESPONSYWNOSC ---------- */

@media (max-width: 768px) {
    .wc-dde-express-info--karty .wc-dde-express-info__karty {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wc-dde-express-info--karty .wc-dde-express-info__karty {
        grid-template-columns: 1fr;
    }

    .wc-dde-express-info--tabela .wc-dde-express-info__tabela {
        font-size: 12px;
    }

    .wc-dde-express-info--tabela .wc-dde-express-info__tabela th,
    .wc-dde-express-info--tabela .wc-dde-express-info__tabela td {
        padding: 6px 8px;
    }
}

/* =====================================================
   NOWY BLOK PODSUMOWANIA CENY (#vsb-price-summary)
   ===================================================== */

.vsb-price-summary {
    margin: 16px 0 20px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #1a1a2e;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.08);
}

/* Główna linia: "Łącznie  XX,XX zł" */
.vsb-price-summary__total {
    display:         flex;
    justify-content: space-between;
    align-items:     baseline;
    gap:             8px;
}

.vsb-price-summary__label {
    font-size:   0.85rem;
    font-weight: 500;
    color:       #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vsb-price-summary__amount {
    font-size:   1.5rem;
    font-weight: 700;
    color:       #1a1a2e;
    line-height: 1;
}

/* Separator między totalem a breakdownem */
.vsb-price-summary__breakdown {
    margin-top:  10px;
    padding-top: 10px;
    border-top:  1px solid #e5e7eb;
    display:     flex;
    flex-direction: column;
    gap:         5px;
}

/* Jedna linia breakdownu */
.vsb-price-summary__row {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    font-size:       0.85rem;
    color:           #4b5563;
}

.vsb-price-summary__row span:last-child {
    font-weight: 500;
    color:       #1a1a2e;
}

/* Wiersz express — wyróżniony */
.vsb-price-summary__row--express {
    color: #15803d;
}
.vsb-price-summary__row--express span:last-child {
    color:       #15803d;
    font-weight: 600;
}

/* Wiersz dodatku FPF */
.vsb-price-summary__row--addon {
    color: var(--vsps-breakdown, #4b5563);
}
.vsb-price-summary__row--addon span:last-child {
    color:       var(--vsps-breakdown, #4b5563);
    font-weight: 500;
}

/* Responsywność */
@media (max-width: 480px) {
    .vsb-price-summary {
        padding: 12px 14px;
    }
    .vsb-price-summary__amount {
        font-size: 1.3rem;
    }
}

/* =====================================================
   UKRYWANIE DUPLIKATÓW CEN
   ===================================================== */

/*
 * .wc-dde-express-info-container wyświetlał osobno komunikat
 * "Wybrano express – dopłata +XX zł". Informacja ta jest już
 * widoczna w breakdownie bloku vsb-price-summary — ukrywamy duplikat.
 */
.wc-dde-express-info-container {
    display: none !important;
}

/*
 * Natywna cena WooCommerce w .summary jest ukrywana gdy
 * blok vsb-price-summary jest aktywny (klasa dodawana przez JS).
 * Używamy visibility:hidden zamiast display:none — dzięki temu
 * textContent elementu .price pozostaje dostępny dla JS (MutationObserver,
 * odczyt ceny przez FPF delta), ale element nie jest widoczny dla użytkownika.
 */
.single-product .vsb-hide-native-price .product > .price,
.single-product .vsb-hide-native-price .summary > .price,
.single-product .vsb-hide-native-price .woocommerce-variation-price {
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
