/* Shortcode - Tabela Progów Cenowych */

.dpq-price-table-container {
    margin: 20px 0;
    padding: 20px;
    background: var(--dpq-bg-color, #f9f9f9);
    border: 1px solid var(--dpq-border-color, #ddd);
    border-radius: var(--dpq-radius, 8px);
}

.dpq-price-table-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.dpq-price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: var(--dpq-font-size, 16px);
}

/* Styl Klasyczny */
.dpq-style-classic .dpq-price-table {
    border: 1px solid var(--dpq-border-color, #ddd);
}

.dpq-style-classic .dpq-price-table thead {
    background: var(--dpq-header-bg, #f0f0f1);
}

.dpq-style-classic .dpq-price-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--dpq-border-color, #ddd);
}

.dpq-style-classic .dpq-price-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/* Styl Nowoczesny */
.dpq-style-modern .dpq-price-table {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.dpq-style-modern .dpq-price-table thead {
    background: var(--dpq-header-bg, #f0f0f1);
}

.dpq-style-modern .dpq-price-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: #333;
    border: none;
}

.dpq-style-modern .dpq-price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dpq-style-modern .dpq-price-table tbody tr {
    transition: all 0.2s ease;
}

/* Styl Minimalny */
.dpq-style-minimal .dpq-price-table {
    border: none;
    border-top: 2px solid var(--dpq-border-color, #ddd);
    border-bottom: 2px solid var(--dpq-border-color, #ddd);
}

.dpq-style-minimal .dpq-price-table thead {
    background: transparent;
}

.dpq-style-minimal .dpq-price-table th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--dpq-border-color, #ddd);
}

.dpq-style-minimal .dpq-price-table td {
    padding: 10px 15px;
    border: none;
}

.dpq-style-minimal .dpq-price-table tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

/* Styl Wyrazisty (Bold) */
.dpq-style-bold .dpq-price-table {
    background: #1e293b;
    color: #e2e8f0;
    border: 2px solid #334155;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.dpq-style-bold .dpq-price-table thead {
    background: #0f172a;
}

.dpq-style-bold .dpq-price-table th {
    padding: 18px 20px;
    text-align: center;
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.1em;
    border: none;
}

.dpq-style-bold .dpq-price-table td {
    padding: 18px 20px;
    text-align: center;
    color: #e2e8f0;
    border: none;
}

.dpq-style-bold .dpq-price-table tbody tr {
    transition: all 0.3s ease;
}

.dpq-style-bold .dpq-price-table tbody tr:hover {
    background: #475569 !important;
    transform: scale(1.02);
}

.dpq-style-bold .dpq-price-table .dpq-price {
    color: #fbbf24;
    font-size: 1.2em;
}

/* Styl Własny (Custom) */
.dpq-style-custom .dpq-price-table {
    /* Wszystkie style są dynamiczne z ustawień użytkownika */
}

/* Wspólne style */
.dpq-price-table .dpq-price {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--dpq-price-color, #2271b1);
}

.dpq-price-table .dpq-savings {
    color: #119e00;
    font-weight: 600;
}

.dpq-price-table .dpq-percent {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Hover - tylko gdy włączone */
.dpq-hover-enabled tr:hover {
    background: #f5f5f5 !important;
    transition: background 0.2s ease;
}

.dpq-style-modern .dpq-hover-enabled tr:hover {
    transform: scale(1.01);
}

/* Responsywność — ten sam układ tabelki, tylko mniejsze rozmiary */
@media (max-width: 768px) {
    .dpq-price-table {
        font-size: 13px;
    }

    .dpq-price-table th,
    .dpq-price-table td {
        padding: 8px 6px;
    }

    .dpq-price-table-container h3 {
        font-size: 16px;
    }
}

