/* =========================================================
   MCG — CJENIK 2026
   Poseban CSS samo za [cjenik_2026]
   ========================================================= */
.cjenik_objavljeni, .cjenik_objavljeni a{
        font-size: 12px;
    font-weight: 700;
    line-height: 1.35;

}
.popust > .cijenaa, .mcg-cjenik-2026 .cijenaa {
    color: #7a7a7a !important;
}

/* ---------- RESET / WRAPPER ---------- */

/* Keep Elementor's fixed-width shortcode host inside its available column. */
.e-con:has(> .elementor-widget-shortcode .mcg-cjenik-2026) {
    max-width: 100%;
    min-width: 0;
}

.mcg-cjenik-2026 .mcg-cjenik-heading {
    scroll-margin-top: 110px;
}
.mcg-cjenik-2026,
.mcg-cjenik-2026 *,
.mcg-cjenik-2026 *::before,
.mcg-cjenik-2026 *::after {
    box-sizing: border-box;
}

.mcg-cjenik-2026 {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.mcg-cjenik-2026 .mcg-cjenik-list {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- ACCORDION ---------- */

.mcg-cjenik-2026 .mcg-cjenik-group {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
}

.mcg-cjenik-2026 .mcg-cjenik-heading {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 30px;
    margin: 0;
    padding: 0 44px 0 0;
    color: #0079b5;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.mcg-cjenik-2026 .mcg-cjenik-heading::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    color: #0079b5;
    font-size: 29px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    transform-origin: center;
    transition: transform .35s ease;
}

.mcg-cjenik-2026 .mcg-cjenik-group.active > .mcg-cjenik-heading::after {
    transform: rotate(45deg);
}

.mcg-cjenik-2026 .mcg-cjenik-answer {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        height .38s cubic-bezier(.4, 0, .2, 1),
        margin-top .38s cubic-bezier(.4, 0, .2, 1),
        opacity .24s ease;
}

.mcg-cjenik-2026 .mcg-cjenik-answer[hidden] {
    display: none !important;
}

.mcg-cjenik-2026 .mcg-cjenik-group.active > .mcg-cjenik-answer {
    margin-top: 16px;
    opacity: 1;
}

/* ---------- UVOD / ACF / EDITOR ---------- */

.mcg-cjenik-2026 .prikazi-post-content,
.mcg-cjenik-2026 .cjenik-editor-opis,
.mcg-cjenik-2026 .cjenik-acf,
.mcg-cjenik-2026 .cjenik-dodatni-opis {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mcg-cjenik-2026 .prikazi-post-content p,
.mcg-cjenik-2026 .cjenik-editor-opis p,
.mcg-cjenik-2026 .cjenik-acf p {
    margin: 0 0 16px;
    line-height: 1.62;
}

.mcg-cjenik-2026 .prikazi-post-content > :last-child,
.mcg-cjenik-2026 .cjenik-editor-opis > :last-child,
.mcg-cjenik-2026 .cjenik-acf > :last-child {
    margin-bottom: 0;
}

/* ---------- REDOVI — DESKTOP ---------- */

.mcg-cjenik-2026 .mcg-cjenik-rows {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.mcg-cjenik-2026 .title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(115px, 20%) minmax(100px, 14%);
    align-items: center;
    column-gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #0079b5;
}

.mcg-cjenik-2026 .ime,
.mcg-cjenik-2026 .opaska,
.mcg-cjenik-2026 .cijenaa {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    overflow-wrap: anywhere;
    word-break: normal;
}

.mcg-cjenik-2026 .ime {
    grid-column: 1;
    line-height: 1.45;
}

.mcg-cjenik-2026 .ime a {
    color: inherit;
    overflow-wrap: anywhere;
}

.mcg-cjenik-2026 .opaska {
    grid-column: 2;
    line-height: 1.4;
}

.mcg-cjenik-2026 .cijenaa {
    grid-column: 4;
    justify-self: end;
    text-align: right;
    line-height: 1.35;
        color: #7a7a7a !important;
}

.mcg-cjenik-2026 .cijenaa > span {
    display: block;
    max-width: 100%;
}

.mcg-cjenik-2026 .mcg-sidrena-cijena {
    font-size: .7em;
    opacity: .72;
}

.mcg-cjenik-2026 .mcg-aktualna-cijena {
    font-weight: 700;
    white-space: nowrap;
}

.mcg-cjenik-2026 .mcg-action-row .cijenaa {
    min-width: 210px;
    max-width: 300px;
}

.mcg-cjenik-2026 .mcg-action-badge {
    display: inline-block;
    width: fit-content;
    margin: 0 0 4px auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #0079b5;
    color: #fff;
    font-size: .68em;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .04em;
}

.mcg-cjenik-2026 .mcg-action-name {
    margin-bottom: 2px;
    color: #333;
    font-size: .82em;
    font-weight: 700;
    line-height: 1.3;
}

.mcg-cjenik-2026 .mcg-action-price {
    color: #0079b5;
    font-size: 1.16em;
    line-height: 1.25;
}

.mcg-cjenik-2026 .mcg-action-regular-price,
.mcg-cjenik-2026 .mcg-action-lowest-30d {
    margin-top: 3px;
    color: #555;
    font-size: .72em;
    line-height: 1.35;
}

.mcg-cjenik-2026 .mcg-action-regular-value {
    text-decoration: line-through;
}

.mcg-cjenik-2026 .posebni-oblik,
.mcg-cjenik-2026 .naziv-posebnog-oblika {
    margin-top: 3px;
    font-size: .84em;
    line-height: 1.3;
}

.mcg-cjenik-2026 .mcg-popust {
    margin-top: 3px;
    font-size: .9em;
    line-height: 1.35;
}

.mcg-cjenik-2026 .boldano {
    font-weight: 700;
}

.mcg-cjenik-2026 .ime .boldano {
    display: block;
    margin-top: 4px;
}

.mcg-cjenik-2026 .podcrtano {
    text-decoration: line-through !important;
}

.mcg-cjenik-2026 .crveno {
    color: #d33033;
}

/* Podnaslovni red bez cijene koristi cijelu širinu. */
.mcg-cjenik-2026 .mcg-cjenik-naslov .ime {
    grid-column: 1 / -1;
}

/* Priced heading keeps its visual emphasis and the price column. */
.mcg-cjenik-2026 .mcg-cjenik-naslov.mcg-priced-heading .ime {
    grid-column: 1;
}

.mcg-cjenik-2026 .mcg-priced-heading .cijenaa {
    grid-column: 3;
}

/* ---------- ACF BOX ---------- */

.mcg-cjenik-2026 .cjenik-dodatni-opis {
    margin-top: 24px;
    padding: 20px;
    color: #333;
    background: #f5f8fb;
    border-radius: 8px;
}

.mcg-cjenik-2026 .cjenik-dodatni-opis a {
    color: #0079b5 !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* ---------- LISTE ---------- */

.mcg-cjenik-2026 .prikazi-post-content ul,
.mcg-cjenik-2026 .cjenik-editor-opis ul,
.mcg-cjenik-2026 .cjenik-acf ul,
.mcg-cjenik-2026 .cjenik-dodatni-opis ul {
    margin: 10px 0 18px;
    padding-left: 22px;
    list-style: disc;
}

.mcg-cjenik-2026 .prikazi-post-content ul li,
.mcg-cjenik-2026 .cjenik-editor-opis ul li,
.mcg-cjenik-2026 .cjenik-acf ul li,
.mcg-cjenik-2026 .cjenik-dodatni-opis ul li {
    display: list-item;
    margin: 0;
    padding: 3px 0;
    background: transparent;
    border: 0;
    list-style: disc;
}

.mcg-cjenik-2026 .prikazi-post-content ul li::marker,
.mcg-cjenik-2026 .cjenik-editor-opis ul li::marker,
.mcg-cjenik-2026 .cjenik-acf ul li::marker,
.mcg-cjenik-2026 .cjenik-dodatni-opis ul li::marker {
    color: #0079b5;
}

/* ---------- MEDIJI ---------- */

.mcg-cjenik-2026 img,
.mcg-cjenik-2026 video,
.mcg-cjenik-2026 iframe {
    max-width: 100%;
}

.mcg-cjenik-2026 img,
.mcg-cjenik-2026 video {
    height: auto;
}

.mcg-cjenik-2026 table {
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   TABLET 768–1024
   naziv + napomena lijevo / cijena desno
   ========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .mcg-cjenik-2026 .mcg-cjenik-group {
        padding: 18px;
    }

    .mcg-cjenik-2026 .title {
        grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 16px;
        row-gap: 3px;
        padding: 10px 0;
    }

    .mcg-cjenik-2026 .ime {
        grid-column: 1;
        grid-row: 1;
    }

    .mcg-cjenik-2026 .opaska {
        grid-column: 1;
        grid-row: 2;
        padding-top: 2px;
        font-size: .93em;
    }

    .mcg-cjenik-2026 .opaska:empty {
        display: none;
    }

    .mcg-cjenik-2026 .cijenaa {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: end;
        min-width: 82px;
        text-align: right;
    }

    .mcg-cjenik-2026 .mcg-action-row {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 32%);
    }

    .mcg-cjenik-2026 .mcg-action-row .cijenaa {
        width: 100%;
        min-width: 0;
        max-width: 240px;
    }

    .mcg-cjenik-2026 .mcg-cjenik-naslov .ime {
        grid-column: 1 / -1;
    }

    .mcg-cjenik-2026 .mcg-cjenik-naslov.mcg-priced-heading .ime {
        grid-column: 1;
    }

    .mcg-cjenik-2026 .mcg-priced-heading .cijenaa {
        grid-column: 2;
    }
}

/* =========================================================
   MOBITEL <= 767
   naziv lijevo / cijena desno
   napomena ide ispod naziva
   ========================================================= */

@media (max-width: 767px) {

    .mcg-cjenik-2026 {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .mcg-cjenik-2026 .mcg-cjenik-group {
        width: 100%;
        margin-bottom: 10px;
        padding: 14px;
        border-radius: 5px;
    }

    .mcg-cjenik-2026 .mcg-cjenik-heading {
        min-height: 27px;
        padding-right: 36px;
        font-size: 17px;
        line-height: 1.3;
    }

    .mcg-cjenik-2026 .mcg-cjenik-heading::after {
        right: -3px;
        width: 28px;
        height: 28px;
        margin-top: -14px;
        font-size: 26px;
        line-height: 28px;
    }

    .mcg-cjenik-2026 .mcg-cjenik-group.active > .mcg-cjenik-answer {
        margin-top: 12px;
    }

    .mcg-cjenik-2026 .title {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 10px;
        row-gap: 3px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px 0;
        font-size: 14px;
    }

    .mcg-cjenik-2026 .ime {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        min-width: 0;
        font-size: 1em;
        line-height: 1.38;
    }

    .mcg-cjenik-2026 .opaska {
        grid-column: 1;
        grid-row: 2;
        width: auto;
        min-width: 0;
        padding-top: 2px;
        color: #555;
        font-size: .91em;
        line-height: 1.35;
    }

    .mcg-cjenik-2026 .opaska:empty {
        display: none;
    }

    .mcg-cjenik-2026 .cijenaa {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: end;
        width: auto;
        min-width: 76px;
        padding: 0;
        text-align: right;
        font-size: 1em;
        line-height: 1.35;
    }

    .mcg-cjenik-2026 .cijenaa > span {
        width: auto;
        margin-left: auto;
    }

    .mcg-cjenik-2026 .mcg-action-row {
        grid-template-columns: minmax(0, 1fr) minmax(132px, 48%);
    }

    .mcg-cjenik-2026 .mcg-action-row .cijenaa {
        width: 100%;
        min-width: 0;
        max-width: 176px;
    }

    .mcg-cjenik-2026 .mcg-action-name,
    .mcg-cjenik-2026 .mcg-action-regular-price,
    .mcg-cjenik-2026 .mcg-action-lowest-30d,
    .mcg-cjenik-2026 .mcg-action-row .mcg-sidrena-cijena {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .mcg-cjenik-2026 .mcg-aktualna-cijena,
    .mcg-cjenik-2026 .mcg-sidrena-cijena {
        white-space: nowrap;
    }

    .mcg-cjenik-2026 .mcg-popust,
    .mcg-cjenik-2026 .posebni-oblik,
    .mcg-cjenik-2026 .naziv-posebnog-oblika {
        max-width: 105px;
        white-space: normal;
    }

    .mcg-cjenik-2026 .mcg-cjenik-naslov {
        grid-template-columns: minmax(0, 1fr);
    }

    .mcg-cjenik-2026 .mcg-cjenik-naslov.mcg-priced-heading {
        grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
    }

    .mcg-cjenik-2026 .mcg-cjenik-naslov .ime {
        grid-column: 1;
        grid-row: 1;
    }

    .mcg-cjenik-2026 .mcg-priced-heading .cijenaa {
        display: block;
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 76px;
    }

    .mcg-cjenik-2026 .mcg-cjenik-naslov .opaska,
    .mcg-cjenik-2026 .mcg-cjenik-naslov .cijenaa:empty {
        display: none;
    }

    .mcg-cjenik-2026 .prikazi-post-content,
    .mcg-cjenik-2026 .cjenik-editor-opis,
    .mcg-cjenik-2026 .cjenik-acf {
        font-size: 14px;
    }

    .mcg-cjenik-2026 .prikazi-post-content p,
    .mcg-cjenik-2026 .cjenik-editor-opis p,
    .mcg-cjenik-2026 .cjenik-acf p {
        margin-bottom: 13px;
        line-height: 1.55;
    }

    .mcg-cjenik-2026 .cjenik-dodatni-opis {
        margin-top: 17px;
        padding: 14px;
    }
}

/* ---------- VRLO USKI MOBITELI ---------- */

@media (max-width: 390px) {

    .mcg-cjenik-2026 .mcg-cjenik-group {
        padding: 12px;
    }

    .mcg-cjenik-2026 .title {
        grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
        column-gap: 8px;
        font-size: 13.5px;
    }

    .mcg-cjenik-2026 .cijenaa {
        min-width: 70px;
    }

    .mcg-cjenik-2026 .mcg-action-row {
        grid-template-columns: minmax(0, 1fr) minmax(128px, 48%);
    }

    .mcg-cjenik-2026 .mcg-action-row .cijenaa {
        min-width: 0;
    }

    .mcg-cjenik-2026 .mcg-cjenik-naslov.mcg-priced-heading {
        grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
    }

    .mcg-cjenik-2026 .mcg-priced-heading .cijenaa {
        min-width: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mcg-cjenik-2026 .mcg-cjenik-heading::after,
    .mcg-cjenik-2026 .mcg-cjenik-answer {
        transition: none !important;
    }
}
