/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 5.0.0-public-beta.1.2.1783109000
Updated: 2026-07-03 22:16:40

*/

/* Divi ETmodules ikon font – dodan font-display: swap */
@font-face {
    font-family: 'ETmodules';
    src: url('/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Product page language-specific trust badges */
html[lang^="hr"] #langsi {
    display: none !important;
}

html[lang^="sl"] #langhr {
    display: none !important;
}

/* Product page premium/default trust badge switching */
#langhr .et_pb_image:has(img[title="hr-100-dana-sleep-trial"]),
#langhr .et_pb_image:has(img[title="hr-5-godina-jamstvo-na-proizvod"]),
#langsi .et_pb_image:has(img[title="si-100-dni-sleep-trial"]),
#langsi .et_pb_image:has(img[title="si-100-dni-preizkusa-spanja"]),
#langsi .et_pb_image:has(img[title="si-5-let-garancije-na-izdelek"]),
#langsi .et_pb_image:has(img[title="si-5-let-garancija-na-izdelek"]) {
    display: none !important;
}

.product_cat-premium-madraci #langhr .et_pb_image:has(img[title="hr-100-dana-sleep-trial"]),
.product_cat-premium-madraci #langhr .et_pb_image:has(img[title="hr-5-godina-jamstvo-na-proizvod"]),
.product_cat-premium-vzmetnice #langsi .et_pb_image:has(img[title="si-100-dni-sleep-trial"]),
.product_cat-premium-vzmetnice #langsi .et_pb_image:has(img[title="si-100-dni-preizkusa-spanja"]),
.product_cat-premium-vzmetnice #langsi .et_pb_image:has(img[title="si-5-let-garancije-na-izdelek"]),
.product_cat-premium-vzmetnice #langsi .et_pb_image:has(img[title="si-5-let-garancija-na-izdelek"]) {
    display: block !important;
}

.product_cat-premium-madraci #langhr .et_pb_image:has(img[title="hr-14-dana-povrat"]),
.product_cat-premium-madraci #langhr .et_pb_image:has(img[title="hr-2-godine-jamstvo-na-proizvod"]),
.product_cat-premium-vzmetnice #langsi .et_pb_image:has(img[title="si-14-dni-vracila"]),
.product_cat-premium-vzmetnice #langsi .et_pb_image:has(img[title="si-2-leti-garancije-na-izdelek"]) {
    display: none !important;
}

/* Font Awesome Solid – dodan font-display: swap */
@font-face {
    font-family: 'Font Awesome 5 Free';
    src: url('/wp-content/themes/Divi/core/admin/fonts/fontawesome/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Product quantity plus/minus controls */
.single-product .et_pb_wc_add_to_cart form.cart div.quantity,
.single-product .quantity {
    display: inline-flex !important;
    align-items: stretch;
    width: auto !important;
    margin-right: 20px !important;
    overflow: hidden;
    border-radius: 3px;
}

.single-product .quantity input.qty {
    appearance: textfield;
    -moz-appearance: textfield;
    width: 56px !important;
    min-height: 56px;
    margin: 0 !important;
    border-radius: 0 !important;
    text-align: center;
}

.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product .mh-quantity-button {
    width: 44px;
    min-height: 56px;
    padding: 0;
    border: 0;
    background: rgba(0, 68, 139, 0.1);
    color: #00448b;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.single-product .mh-quantity-button:hover,
.single-product .mh-quantity-button:focus-visible {
    background: #00448b;
    color: #ffffff;
}

.single-product .mh-quantity-button:focus-visible {
    outline: 2px solid #00448b;
    outline-offset: 2px;
}

/* Tighter spacing between single product variation choices. */
.single-product .et_pb_wc_add_to_cart form.variations_form table.variations {
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    margin-bottom: 12px !important;
}

.single-product .et_pb_wc_add_to_cart form.variations_form table.variations th.label,
.single-product .et_pb_wc_add_to_cart form.variations_form table.variations td.value {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.single-product .et_pb_wc_add_to_cart form.variations_form table.variations .variable-items-wrapper {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

/* Stronger compact spacing for single product variation choices. */
body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 0 6px !important;
}

body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations tr {
    margin: 0 !important;
}

body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations th.label,
body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations td.value {
    padding-top: 0 !important;
    padding-bottom: 3px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations th.label {
    padding-right: 12px !important;
}

body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations th.label label {
    margin: 0 !important;
    line-height: 1.2 !important;
}

body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations .variable-items-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .et-db #et-boc .et-l .et_pb_wc_add_to_cart_0_tb_body form.variations_form table.variations .variable-item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Keep the single product add-to-cart hover size consistent across variation states. */
.single-product .et_pb_wc_add_to_cart_0_tb_body,
.single-product .et_pb_wc_add_to_cart_0_tb_body form.cart,
.single-product .et_pb_wc_add_to_cart_0_tb_body .woocommerce-variation-add-to-cart {
    text-align: left !important;
}

.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button {
    box-sizing: border-box !important;
    display: inline-block !important;
    position: relative !important;
    width: auto !important;
    white-space: nowrap !important;
    transform: none !important;
}

.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button:hover,
.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button.disabled:hover,
.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button:disabled:hover {
    padding-top: 0.9em !important;
    padding-right: 4.25em !important;
    padding-bottom: 0.9em !important;
    padding-left: 2em !important;
    transform: none !important;
}

.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button:after {
    left: auto !important;
    right: 1.35em !important;
    top: 50% !important;
    margin-left: 0 !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
}

.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button:hover:after,
.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button.disabled:hover:after,
.single-product .et_pb_wc_add_to_cart_0_tb_body button.single_add_to_cart_button.button:disabled:hover:after {
    left: auto !important;
    right: 1.35em !important;
    margin-left: 0 !important;
    opacity: 1 !important;
}

/* Mobile topbar alignment */
@media (max-width: 980px) {
    header.et-l--header .et_pb_section_0_tb_header .et_pb_column_0_tb_header {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center !important;
        column-gap: 12px;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    header.et-l--header .et_pb_icon_0_tb_header {
        justify-self: start !important;
        margin: 0 !important;
    }

    header.et-l--header .et_pb_code_0_tb_header {
        justify-self: center !important;
        margin: 0 !important;
    }

    header.et-l--header .et_pb_code_1_tb_header {
        justify-self: end !important;
        margin: 0 !important;
    }

    header.et-l--header .et_pb_code_1_tb_header .wpml-ls,
    header.et-l--header .et_pb_code_1_tb_header .wpml-ls ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header.et-l--header .et_pb_code_1_tb_header .wpml-ls li {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Consistent topbar icon layout */
#id-medico-topbar,
#id-medico-topbar .et_pb_row,
#id-medico-topbar .et_pb_column {
    box-sizing: border-box;
}

#id-medico-topbar .et_pb_row,
#id-medico-topbar .et_pb_column {
    display: flex !important;
    align-items: center !important;
}

#id-medico-topbar .et_pb_row {
    justify-content: flex-end !important;
}

#id-medico-topbar .et_pb_column {
    flex-direction: row !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100% !important;
}

#id-medico-topbar .et_pb_module,
#id-medico-topbar .mh-account-topbar,
#id-medico-topbar .mwl-mini-link,
#id-medico-topbar .mpc-mini-link,
#id-medico-topbar .fkcart-shortcode-container,
#id-medico-topbar .wpml-ls,
#id-medico-topbar .wpml-ls ul,
#id-medico-topbar .wpml-ls li,
#id-medico-topbar .wpml-ls a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

#id-medico-topbar .wpml-ls ul {
    gap: 6px !important;
    padding-left: 0 !important;
}

#id-medico-topbar .wpml-ls-flag {
    display: block !important;
    width: 18px !important;
    height: 12px !important;
    object-fit: cover !important;
}

@media (max-width: 980px) {
    #id-medico-topbar .et_pb_row,
    #id-medico-topbar .et_pb_column {
        justify-content: center !important;
    }

    #id-medico-topbar .et_pb_column {
        gap: 13px !important;
        min-width: 0 !important;
    }

    #id-medico-topbar .fkcart-shortcode-price {
        display: inline-flex !important;
        align-items: center !important;
        min-width: 0 !important;
        color: #ffffff !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}

/* Product gallery sale badge */
.et_pb_text:has(.mh-sale-badge-empty) {
    display: none !important;
}

.mh-sale-badge-empty {
    display: none !important;
}

.single-product .et_pb_wc_images .onsale,
.single-product .woocommerce-product-gallery .onsale {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 8 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #8b0100 !important;
    color: #ffffff !important;
    font-family: "Nunito Sans", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 7px 9px !important;
}

.single-product .woocommerce-product-gallery__trigger {
    top: 10px !important;
    right: 84px !important;
    left: auto !important;
    z-index: 9 !important;
}

/* Homepage partner carousel: Nord Mobil has a taller optical logo than the rest. */
body.home .dsm_image_carousel_0 img[src*="Nord-Mobil-Logo"] {
    display: block !important;
    width: auto !important;
    max-height: 38px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}
