/**
 * Cjenik+
 *
 * WordPress sustav za upravljanje cjenicima usluga.
 *
 * @author    Alen Kulenović
 * @copyright 2026 Alen Kulenović
 * @license   GPL-3.0-or-later
 * @link      https://alfa-bit.hr
 *
 * This file is part of Cjenik+.
 * Copyright and author attribution notices must be preserved
 * in copies and modified versions of this software.
 */
.cjp-price-list {
    font-family: inherit;
    color: inherit;
    width: 100%;
}

.cjp-price-category + .cjp-price-category {
    margin-top: 2.5rem;
}

.cjp-price-category__title {
    margin: 0 0 1rem;
    font: inherit;
    font-size: 1.25em;
    font-weight: 600;
    color: inherit;
}

.cjp-price-category__items {
    width: 100%;
}

.cjp-price-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.3);
}

.cjp-price-item:first-child {
    border-top: 1px solid rgba(127, 127, 127, 0.3);
}

.cjp-price-item__main {
    min-width: 0;
    flex: 1 1 auto;
}

.cjp-price-item__name {
    font-weight: inherit;
}

.cjp-price-item__description {
    margin-top: 0.25rem;
    font-size: 0.85em;
    overflow-wrap: anywhere;
}

.cjp-price-item__prices {
    flex: 0 0 auto;
    text-align: right;
}

.cjp-prices-only {
    text-align: left;
}

.cjp-price-item__regular {
    display: inline-block;
    margin-right: 0.5rem;
    opacity: 0.65;
}

.cjp-price-item__current {
    font-weight: 600;
}

.cjp-price-item__anchor {
    margin-top: 0.25rem;
    font-size: 0.85em;
    opacity: 0.7;
}

.cjp-price-list__empty {
    margin: 0;
}

@media (max-width: 600px) {

    .cjp-price-item {
        display: block;
    }

    .cjp-price-item__prices {
        margin-top: 0.5rem;
        text-align: left;
    }
}

.cjp-price-file-link {
    color: inherit;
}

.cjp-price-archive__list {
    margin: 0;
    padding-left: 1.25em;
}

.cjp-price-archive__item + .cjp-price-archive__item {
    margin-top: 0.35em;
}
