﻿.search-bar {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
    gap: 10px;
}

.list-container {
    /*min-height: 80vh;*/
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    /*width: 95%;*/
    /*overflow-x: hidden; psuje przyklejony dolny pasek akcji (sticky) */
}

.single-list-group {
    /*margin-bottom: var(--spacing-md, 0.8rem);*/
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 var(--spacing-sm, 0.6rem) 0;
    padding: 3px 10px;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

    .section-header .capitalized {
        text-transform: capitalize;
    }

.section-title {
    font-size: 1.0rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.section-right-side {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottom-action-bar {
    position: sticky;
    margin-top: auto;
    margin-bottom: 0;
    bottom: 0;
    background: var(--color-background);
    padding: 10px 8px;
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    z-index: 100;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    /*width: 100%;*/
}

    .bottom-action-bar button {
        flex: 1 1 auto; /* rośnie i maleje naturalnie */
        max-width: 160px; /* preferowana szerokość */
        min-width: 0; /* pozwala się zmniejszać poniżej naturalnej szerokości */
        white-space: nowrap; /* nie łamie tekstu */
    }


.bottom-info {
    padding: 6px 12px;
    margin-top: 4px;
    margin-bottom: 16px;
    text-align: left;
}

.content .bottom-action-bar {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.count-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: white; /* light grey */
    /*background-color: #e9ecef;*/
    color: #343a40; /* dark grey text */
    min-width: 32px;
    text-align: center;
}

.count-badge--alert {
    background-color: #ff6b6b; /* soft red */
    color: white;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
}


.count-badge.pending {
    background: #f1c40f33;
    color: #b7950b;
}

.count-badge.approved {
    background: #2ecc7133;
    color: #27ae60;
}

.utility-bar {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.75rem;
    align-items: center;
    margin: 0.5rem 0 0.75rem 0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.mode-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space between label and switch */
    margin-left: auto;
}

/*.cart-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    width: 100%;
    gap: 2px;
}*/

.cart-summary {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}


    .cart-summary .cart-line {
        font-size: var(--font-size-sm)
        /*color: var(--color-text-secondary);*/
    }

    .cart-summary .cart-total {
        font-size: var(--font-size-md);
        font-weight: 600;
        /*color: var(--color-text-primary);*/
    }



    .cart-summary .cart-total-new {
        font-size: var(--font-size-md);
        font-weight: 600;
        /*color: var(--color-text-primary);*/
    }

    .cart-total-row {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .cart-old-price
    {
        text-decoration: line-through;
        opacity: 0.5;
    }

    .cart-new-price {
        color: var(--color-primary);
    }

@media (max-width: 600px) {
    .utility-bar {
        flex-direction: column;
        align-items: stretch;
    }
}


