/**
 * Agraf Omnibus - Frontend Styles
 */

/* === Omnibus Info Block === */

.omnibus-info {
    /* CU-869d9ym21 v3-2: bez wyróżnienia - tekst odróżnia się tylko rozmiarem i layoutem */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: inherit;
}

.omnibus-info--compact {
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-left-width: 2px;
}

.omnibus-label {
    color: inherit;
    font-weight: 400;
}

.omnibus-price {
    font-weight: 600;
    color: inherit;
}

.omnibus-date {
    color: #868e96;
    font-size: 0.8125em;
}

.omnibus-info--compact .omnibus-date {
    font-size: 0.75em;
}

/* === Price History Chart === */

.omnibus-chart-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.omnibus-chart-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.omnibus-chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 200px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
}

.omnibus-chart {
    width: 100% !important;
    height: 100% !important;
}

/* === Product List Adjustments === */

.product-miniature .omnibus-info {
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    background-color: transparent;
    border-left: none;
    border-radius: 0;
    justify-content: center;
}

.product-miniature .omnibus-label {
    display: block;
    width: 100%;
    text-align: center;
}

.product-miniature .omnibus-price {
    display: block;
    width: 100%;
    text-align: center;
}

/* === Responsive === */

@media (max-width: 767px) {
    .omnibus-info {
        font-size: 0.8125rem;
        padding: 0.375rem 0.625rem;
    }

    .omnibus-chart-container {
        height: 150px;
        padding: 0.5rem;
    }

    .omnibus-chart-title {
        font-size: 0.9375rem;
    }
}

@media (max-width: 479px) {
    .omnibus-info {
        flex-direction: column;
        gap: 0.125rem;
    }

    .omnibus-chart-container {
        height: 120px;
    }
}

/* === Dark Mode Support (if theme supports it) === */

/* dark mode override usunięty (v3-2) - tekst używa color: inherit */

/* === Print Styles === */

@media print {
    .omnibus-chart-section {
        display: none;
    }

    .omnibus-info {
        background-color: #fff;
        border: 1px solid #000;
        border-radius: 0;
    }
}
