/* MOT v1.3.5 – vrlo diskretan prikaz dodatnih i najnižih cijena */
.hl-mot-anchor-price,
.hl-mot-lowest-price{
    display:block !important;
    margin-top:2px !important;
    font-size:10px !important;
    line-height:1.18 !important;
    font-weight:400 !important;
    color:#555555 !important;
}

/* Tema često zasebno povećava WooCommerce amount/bdi elemente – prisilno nasljeđivanje veličine. */
.hl-mot-anchor-price *,
.hl-mot-lowest-price *,
.hl-mot-anchor-price__label,
.hl-mot-lowest-price__label,
.hl-mot-anchor-price__value,
.hl-mot-lowest-price__value,
.hl-mot-anchor-price .woocommerce-Price-amount,
.hl-mot-lowest-price .woocommerce-Price-amount,
.hl-mot-anchor-price .woocommerce-Price-amount bdi,
.hl-mot-lowest-price .woocommerce-Price-amount bdi,
.hl-mot-anchor-price .woocommerce-Price-currencySymbol,
.hl-mot-lowest-price .woocommerce-Price-currencySymbol{
    font-size:inherit !important;
    line-height:inherit !important;
    color:#555555 !important;
}

.hl-mot-anchor-price__label,
.hl-mot-lowest-price__label{
    font-weight:400 !important;
}

.hl-mot-anchor-price__value,
.hl-mot-lowest-price__value,
.hl-mot-anchor-price .woocommerce-Price-amount,
.hl-mot-lowest-price .woocommerce-Price-amount{
    font-weight:500 !important;
}

.hl-mot-anchor-fallback{
    margin:3px 0 8px !important;
    font-size:10px !important;
    line-height:1.18 !important;
    color:#555555 !important;
}
.hl-mot-anchor-fallback *{
    font-size:inherit !important;
    line-height:inherit !important;
    color:#555555 !important;
}

/* Shop, kategorije, Elementor i WooCommerce gridovi */
.products .hl-mot-anchor-price,
.products .hl-mot-lowest-price,
.woocommerce ul.products li.product .hl-mot-anchor-price,
.woocommerce ul.products li.product .hl-mot-lowest-price,
.elementor-widget-woocommerce-products .hl-mot-anchor-price,
.elementor-widget-woocommerce-products .hl-mot-lowest-price{
    font-size:10px !important;
    line-height:1.18 !important;
    margin-top:2px !important;
    color:#555555 !important;
}

/* Pojedinačni proizvod – čitljivo, ali manje od glavne cijene */
.single-product .hl-mot-anchor-price,
.single-product .hl-mot-lowest-price{
    font-size:12px !important;
    line-height:1.22 !important;
    margin-top:3px !important;
    color:#555555 !important;
}

@media (max-width:767px){
    .products .hl-mot-anchor-price,
    .products .hl-mot-lowest-price,
    .woocommerce ul.products li.product .hl-mot-anchor-price,
    .woocommerce ul.products li.product .hl-mot-lowest-price,
    .elementor-widget-woocommerce-products .hl-mot-anchor-price,
    .elementor-widget-woocommerce-products .hl-mot-lowest-price{
        font-size:9.5px !important;
        line-height:1.16 !important;
    }

    .single-product .hl-mot-anchor-price,
    .single-product .hl-mot-lowest-price{
        font-size:11px !important;
    }
}

/* MOT v1.3.6 – uređeni javni digitalni cjenik */
.hl-mot-price-list{
    width:min(1160px, calc(100vw - 36px));
    max-width:none;
    margin:0 0 26px 50%;
    transform:translateX(-50%);
    color:#555555;
}
.hl-mot-price-list__intro{
    margin:0 0 18px;
    color:#666666;
    font-size:14px;
    line-height:1.55;
}
.hl-mot-price-list__intro p{margin:0}
.hl-mot-price-list__toolbar{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}
.hl-mot-price-list__search{
    flex:1 1 420px;
    min-width:0;
    height:44px;
    padding:0 14px !important;
    border:1px solid #d8d8d8 !important;
    border-radius:8px !important;
    background:#fff !important;
    color:#555555 !important;
    font-size:14px !important;
    box-shadow:none !important;
}
.hl-mot-price-list__search:focus{
    border-color:#555555 !important;
    outline:2px solid rgba(74,43,36,.08) !important;
}
.hl-mot-price-list__count{
    flex:0 0 auto;
    font-size:12px;
    color:#777777;
    white-space:nowrap;
}
.hl-mot-price-list__table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border:1px solid #e2e2e2;
    border-radius:10px;
    background:#fff;
}
.hl-mot-price-list__table{
    width:100% !important;
    margin:0 !important;
    border:0 !important;
    border-collapse:collapse !important;
    table-layout:auto !important;
    background:#fff;
    font-size:13px !important;
    line-height:1.35 !important;
}
.hl-mot-price-list__table th,
.hl-mot-price-list__table td{
    padding:13px 14px !important;
    border:0 !important;
    border-bottom:1px solid #eee5df !important;
    vertical-align:middle !important;
    color:#555555 !important;
}
.hl-mot-price-list__table thead th{
    background:#f5f7f3 !important;
    color:#555555 !important;
    font-size:12px !important;
    line-height:1.25 !important;
    font-weight:700 !important;
    text-transform:none !important;
    white-space:nowrap;
}
.hl-mot-price-list__table tbody tr:last-child td{border-bottom:0 !important}
.hl-mot-price-list__table tbody tr:hover td{background:#fafcf8 !important}
.hl-mot-price-list__product{min-width:250px;width:34%}
.hl-mot-price-list__product a{
    color:#555555 !important;
    font-weight:600 !important;
    text-decoration:none !important;
}
.hl-mot-price-list__product a:hover{text-decoration:underline !important}
.hl-mot-price-list__sku{min-width:120px;color:#666666 !important}
.hl-mot-price-list__price{min-width:128px;white-space:nowrap}
.hl-mot-price-list__price .woocommerce-Price-amount,
.hl-mot-price-list__price .woocommerce-Price-amount bdi,
.hl-mot-price-list__price .woocommerce-Price-currencySymbol{
    font-size:13px !important;
    line-height:1.2 !important;
    color:#555555 !important;
    font-weight:600 !important;
}
.hl-mot-price-list__anchor-value{display:block;white-space:nowrap}
.hl-mot-price-list__anchor-date{
    display:block;
    margin-top:3px;
    color:#777777 !important;
    font-size:10.5px !important;
    line-height:1.2 !important;
    font-weight:400 !important;
    white-space:nowrap;
}
.hl-mot-price-list__stock{
    display:inline-block;
    padding:4px 8px;
    border-radius:999px;
    background:#f2f2f2;
    color:#666666;
    font-size:11px;
    line-height:1.2;
    white-space:nowrap;
}
.hl-mot-price-list__stock.is-available{background:#edf4eb;color:#435d3b}
.hl-mot-price-list__stock.is-unavailable{background:#f5eeee;color:#74504c}
.hl-mot-price-list__footer{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 12px;
    margin-top:12px;
    font-size:11px;
    color:#777777;
}
.hl-mot-price-list__footer a{color:#555555 !important;font-weight:600;text-decoration:none !important}
.hl-mot-price-list__footer a:hover{text-decoration:underline !important}

@media (max-width:767px){
    .hl-mot-price-list{
        width:calc(100vw - 24px);
        margin-left:50%;
    }
    .hl-mot-price-list__toolbar{align-items:stretch;flex-direction:column;gap:7px}
    .hl-mot-price-list__search{flex:auto;width:100%}
    .hl-mot-price-list__count{padding-left:2px}
    .hl-mot-price-list__table-wrap{border:0;background:transparent;overflow:visible}
    .hl-mot-price-list__table,
    .hl-mot-price-list__table tbody,
    .hl-mot-price-list__table tr,
    .hl-mot-price-list__table td{display:block !important;width:100% !important}
    .hl-mot-price-list__table thead{display:none !important}
    .hl-mot-price-list__table tbody tr{
        margin:0 0 12px;
        padding:8px 12px;
        border:1px solid #e2e2e2;
        border-radius:10px;
        background:#fff;
    }
    .hl-mot-price-list__table td{
        display:grid !important;
        grid-template-columns:minmax(112px, 42%) 1fr;
        gap:10px;
        align-items:center;
        min-width:0 !important;
        padding:8px 0 !important;
        border-bottom:1px solid #f1e8e3 !important;
        white-space:normal !important;
        font-size:12px !important;
    }
    .hl-mot-price-list__table td:last-child{border-bottom:0 !important}
    .hl-mot-price-list__table td::before{
        content:attr(data-label);
        color:#777777;
        font-size:10.5px;
        line-height:1.25;
        font-weight:600;
    }
    .hl-mot-price-list__product a{font-size:13px !important}
    .hl-mot-price-list__price .woocommerce-Price-amount,
    .hl-mot-price-list__price .woocommerce-Price-amount bdi,
    .hl-mot-price-list__price .woocommerce-Price-currencySymbol{font-size:12px !important}
    .hl-mot-price-list__anchor-date{font-size:10px !important}
}


/* MOT v1.3.7 – uređeni obrazac za raskid ugovora */
.hl-mot-raskid-wrap{
    width:min(860px, calc(100vw - 36px));
    max-width:none;
    margin:0 0 26px 50%;
    transform:translateX(-50%);
    color:#555555;
}
.hl-mot-raskid-intro{
    margin:0 0 18px;
    padding:20px 22px;
    border:1px solid #e2e2e2;
    border-radius:14px;
    background:#f7faf5;
}
.hl-mot-raskid-intro__eyebrow{
    margin:0 0 8px;
    color:#777777;
    font-size:11px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.hl-mot-raskid-intro__lead{
    margin:0;
    color:#555555;
    font-size:15px;
    line-height:1.6;
}
.hl-mot-raskid-intro__list{
    margin:12px 0 0 18px;
    padding:0;
    color:#666666;
    font-size:13px;
    line-height:1.6;
}
.hl-mot-raskid-msg{
    margin:0 0 16px;
    padding:14px 16px;
    border-radius:10px;
    font-size:14px;
    line-height:1.55;
}
.hl-mot-raskid-msg--success{
    background:#eef6ed;
    border:1px solid #d7e7d3;
    color:#375036;
}
.hl-mot-raskid-msg--error{
    background:#fbefee;
    border:1px solid #f0d9d5;
    color:#7a4038;
}
.hl-mot-raskid-form{
    padding:22px 24px;
    border:1px solid #e2e2e2;
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 30px rgba(74,43,36,.04);
}
.hl-mot-raskid-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px 18px;
    margin-bottom:8px;
}
.hl-mot-raskid-grid > p,
.hl-mot-raskid-form > p{
    margin:0 0 14px;
}
.hl-mot-raskid-grid__full{
    grid-column:1 / -1;
}
.hl-mot-raskid-form label{
    display:block;
    color:#555555;
    font-size:13px;
    line-height:1.4;
    font-weight:600;
}
.hl-mot-raskid-form input[type="text"],
.hl-mot-raskid-form input[type="email"],
.hl-mot-raskid-form input[type="date"],
.hl-mot-raskid-form textarea{
    width:100% !important;
    margin-top:6px;
    padding:12px 14px !important;
    border:1px solid #d8d8d8 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#555555 !important;
    font-size:14px !important;
    line-height:1.4 !important;
    box-shadow:none !important;
}
.hl-mot-raskid-form input[type="text"]:focus,
.hl-mot-raskid-form input[type="email"]:focus,
.hl-mot-raskid-form input[type="date"]:focus,
.hl-mot-raskid-form textarea:focus{
    border-color:#555555 !important;
    outline:2px solid rgba(74,43,36,.08) !important;
}
.hl-mot-raskid-form textarea{
    min-height:120px;
    resize:vertical;
}
.hl-mot-raskid-hp{
    position:absolute !important;
    left:-9999px !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
}
.hl-mot-raskid-actions{
    margin-top:2px;
}
.hl-mot-raskid-submit,
.hl-mot-raskid-form .button.alt.hl-mot-raskid-submit{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 22px !important;
    border:0 !important;
    border-radius:999px !important;
    background:#555555 !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:700 !important;
    line-height:1 !important;
    text-decoration:none !important;
    box-shadow:none !important;
}
.hl-mot-raskid-submit:hover,
.hl-mot-raskid-submit:focus{
    background:#315c2b !important;
    color:#fff !important;
}
.hl-mot-raskid-small{
    margin-top:10px !important;
    color:#777777;
    font-size:12px;
    line-height:1.55;
}
@media (max-width:767px){
    .hl-mot-raskid-wrap{
        width:calc(100vw - 24px);
        margin-left:50%;
    }
    .hl-mot-raskid-intro,
    .hl-mot-raskid-form{
        padding:16px;
        border-radius:12px;
    }
    .hl-mot-raskid-grid{
        grid-template-columns:1fr;
        gap:12px;
    }
    .hl-mot-raskid-grid__full{
        grid-column:auto;
    }
    .hl-mot-raskid-form label{
        font-size:12.5px;
    }
    .hl-mot-raskid-form input[type="text"],
    .hl-mot-raskid-form input[type="email"],
    .hl-mot-raskid-form input[type="date"],
    .hl-mot-raskid-form textarea{
        font-size:13px !important;
    }
    .hl-mot-raskid-submit,
    .hl-mot-raskid-form .button.alt.hl-mot-raskid-submit{
        width:100%;
    }
}


/* MOT – pristup cjeniku i diskretni zeleni naglasci */
.hl-mot-price-list__product a,
.hl-mot-price-list__footer a{color:#4f7a36 !important;}
.hl-mot-raskid-submit,
.hl-mot-raskid-form .button.alt.hl-mot-raskid-submit{background:#4f7a36 !important;}
.hl-mot-raskid-submit:hover,
.hl-mot-raskid-submit:focus{background:#315c2b !important;}
.hl-mot-price-list-login{padding:12px 14px;border:1px solid #dfe7da;border-radius:8px;background:#f7faf5;color:#4c6041;font-size:13px;}

/* MOT v1.3.11 – bazna cijena mora ostati vidljiva i biti ispod retka jedinice + PDV-a.
   NEL tema može ispisati "/ kg + PDV 5%" unutar istog .price elementa, zato blok
   ne skrivamo dok ga JavaScript premješta. */
.woocommerce ul.products li.product .hl-mot-anchor-price,
.woocommerce ul.products li.product .hl-mot-lowest-price,
.products .hl-mot-anchor-price,
.products .hl-mot-lowest-price,
.product-grid-item .hl-mot-anchor-price,
.product-grid-item .hl-mot-lowest-price,
.wd-product .hl-mot-anchor-price,
.wd-product .hl-mot-lowest-price{
    display:block !important;
    width:100% !important;
    clear:both !important;
}

.hl-mot-price-after-vat{
    display:block !important;
    width:100% !important;
    clear:both !important;
    margin-top:3px !important;
    text-align:inherit !important;
}

/* HL Bazne cijene: grupiranje varijacija samo u javnom digitalnom cjeniku. */
.hl-mot-price-list__variants-row td{padding-top:0 !important; border-top:0 !important;}
.hl-mot-price-list__variations{font-size:12px; max-width:100%;}
.hl-mot-price-list__variations summary{cursor:pointer; display:list-item; color:inherit; font-weight:600; padding:3px 0 8px 2px;}
.hl-mot-price-list__variation-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:9px; margin-bottom:12px;}
.hl-mot-price-list__variation-item{display:flex; flex-direction:column; gap:3px; background:rgba(127,127,127,.055); border:1px solid rgba(127,127,127,.15); border-radius:8px; padding:10px; min-width:0; overflow-wrap:anywhere;}
.hl-mot-price-list__variation-item strong{font-size:inherit;}
.hl-mot-price-list__variation-item span{font-size:inherit; line-height:1.4;}
@media(max-width:640px){ .hl-mot-price-list__variation-grid{grid-template-columns:1fr;} }

/* MOT v1.4.6: kartice proizvoda prikazuju samo naziv "Bazna cijena".
   Na pojedinačnom proizvodu datum ostaje vidljiv; WooCommerce povezani
   proizvodi i Woodmart/Elementor gridovi nemaju datum uz cijenu. */
.products .hl-mot-anchor-price__date,
.woocommerce ul.products li.product .hl-mot-anchor-price__date,
.woocommerce .product-grid-item .hl-mot-anchor-price__date,
.wd-products .hl-mot-anchor-price__date,
.wd-product .hl-mot-anchor-price__date,
.elementor-widget-woocommerce-products .hl-mot-anchor-price__date,
.elementor-widget-loop-grid .hl-mot-anchor-price__date,
.related.products .hl-mot-anchor-price__date,
.upsells.products .hl-mot-anchor-price__date,
.cross-sells .hl-mot-anchor-price__date {
    display:none !important;
}

/* v1.5.3 – samo tanki HL crveni lijevi rub uz najnižu cijenu.
   Bez pozadine, okvira, podebljanja ili promjene boje teksta. */
.hl-mot-lowest-price,
.woocommerce ul.products li.product .hl-mot-lowest-price,
.products .hl-mot-lowest-price,
.product-grid-item .hl-mot-lowest-price,
.wd-product .hl-mot-lowest-price,
.single-product .hl-mot-lowest-price {
    border-left:2px solid #FED700 !important;
    padding-left:5px !important;
    background:transparent !important;
    border-radius:0 !important;
}


/* MOT v1.5.15 – zuti hoveri samo u digitalnom cjeniku (#FED700).
   Frontend: odabir poslovnice/usluga, PDF/XML/CSV poveznice, pretraga,
   paginacija i retci cjenika. Ne mijenja WooCommerce cijene ni admin. */
.hl-dxc-wrap .hl-mot-store-tabs a,
.hl-dxc-wrap .hl-mot-catalog-tabs a,
.hl-dxc-wrap .hl-mot-store-pages a,
.hl-dxc-wrap .hl-dxc-btn,
.hl-dxc-wrap .hl-mot-store-search button {
    transition: background-color .18s ease, border-color .18s ease,
                color .18s ease, box-shadow .18s ease;
}

.hl-dxc-wrap .hl-mot-store-tabs a:hover,
.hl-dxc-wrap .hl-mot-store-tabs a:focus-visible,
.hl-dxc-wrap .hl-mot-catalog-tabs a:hover,
.hl-dxc-wrap .hl-mot-catalog-tabs a:focus-visible,
.hl-dxc-wrap .hl-mot-store-pages a:hover,
.hl-dxc-wrap .hl-mot-store-pages a:focus-visible,
.hl-dxc-wrap .hl-dxc-btn:hover,
.hl-dxc-wrap .hl-dxc-btn:focus-visible,
.hl-dxc-wrap .hl-mot-store-search button:hover,
.hl-dxc-wrap .hl-mot-store-search button:focus-visible {
    background-color: #FED700 !important;
    border-color: #D5B500 !important;
    color: #161616 !important;
}

/* Cjenik robe/usluga: zuta samo kada mis prijede preko retka. */
.hl-dxc-wrap .hl-mot-store-table tbody tr:hover td,
.hl-dxc-wrap .hl-dxc-table tbody tr:hover td {
    background-color: #FFF9D9;
}
/* WooCommerce cjenik: zamjena ranijeg zelenkastog hovere retka. */
.hl-mot-price-list .hl-mot-price-list__table tbody tr:not(.hl-mot-price-list__variants-row):hover td {
    background-color: #FFF9D9 !important;
}

/* Linkovi prema XML/CSV datotekama, arhivi i povrat na cjenik. */
.hl-dxc-wrap p > a:hover,
.hl-dxc-wrap details a:hover,
.hl-dxc-wrap p > a:focus-visible,
.hl-dxc-wrap details a:focus-visible,
.hl-mot-price-list .hl-mot-price-list__product a:hover,
.hl-mot-price-list .hl-mot-price-list__product a:focus-visible,
.hl-mot-price-list .hl-mot-price-list__footer a:hover,
.hl-mot-price-list .hl-mot-price-list__footer a:focus-visible {
    color: #957700 !important;
    text-decoration: underline !important;
}

.hl-dxc-wrap .hl-mot-store-search input:focus-visible,
.hl-mot-price-list .hl-mot-price-list__search:focus-visible {
    border-color: #D5B500 !important;
    outline: 2px solid #FED700;
    outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .hl-dxc-wrap .hl-mot-store-tabs a,
    .hl-dxc-wrap .hl-mot-catalog-tabs a,
    .hl-dxc-wrap .hl-mot-store-pages a,
    .hl-dxc-wrap .hl-dxc-btn,
    .hl-dxc-wrap .hl-mot-store-search button { transition: none; }
}
