.cost-summary-total {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 20px 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.cost-summary-total__block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cost-summary-total__block--notes {
    flex: 1;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 10px 16px;
}

.cost-summary-total__label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.cost-summary-total__value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cost-summary-total__notes {
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
    opacity: 0.95;
    margin-top: 2px;
}

/* ====== Table ====== */
.cost-table-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cost-table thead {
    background: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
}

.cost-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cost-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.cost-table__right {
    text-align: right;
}

.cost-table__th-total {
    color: #1565C0;
}

/* ====== Main row ====== */
.cost-table__row-main {
    cursor: pointer;
    transition: background 0.15s ease;
}

.cost-table__row-main:hover {
    background: #f5f9ff;
}

.cost-table__row-main--expanded {
    background: #f0f6ff;
}

.cost-table__chevron {
    text-align: center;
    color: #999;
}

.cost-table__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 14px;
}

.cost-table__arrow--open {
    transform: rotate(90deg);
}

.cost-table__date {
    font-weight: 600;
}

.cost-table__td-total {
    font-weight: 700;
    color: #1565C0;
}

/* ====== Detail row ====== */
.cost-table__row-detail {
    background: #fafbfc;
}

.cost-table__row-detail td {
    padding: 6px 16px 6px 56px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.cost-table__detail-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

.cost-table__detail-name {
    font-weight: 500;
    margin-right: 8px;
}

.cost-table__detail-time {
    color: #999;
    font-size: 12px;
}

.cost-table__detail-cost {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* ====== Reuse badge colors ====== */
.badge--attraction {
    background: #fdecea;
    color: #c62828;
}

.badge--accomodation {
    background: #e3f2fd;
    color: #1565C0;
}

.badge--transit {
    background: #f5f5f5;
    color: #424242;
}

.badge--food {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge--generic {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* ====== Notes rows ====== */
.cost-table__row-notes td {
    padding: 2px 16px 6px 56px;
    background: #fafbfc;
}

.cost-table__notes-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
    white-space: pre-line;
    line-height: 1.4;
}

.cost-table__row-daynotes td {
    padding: 8px 16px 10px 56px;
    background: #f5f7fa;
    border-top: 1px dashed #ddd;
}

.cost-table__daynotes-label {
    font-size: 11px;
    font-weight: 600;
    color: #5c636a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.cost-table__daynotes-text {
    font-size: 12px;
    color: #555;
    white-space: pre-line;
    line-height: 1.4;
}

/* Ograniczenie ruchu (propozycja UX6): bez obrotu strzałek i przejść tła. */
@media (prefers-reduced-motion: reduce) {
    .cost-table__row-main,
    .cost-table__arrow {
        transition: none !important;
    }
}

/* Przycisk rozwijania dnia: cel co najmniej 24×24 px (WCAG 2.5.8; było 23×27). */
.cost-table button {
    min-width: 24px;
    min-height: 24px;
}
