/* =====================================
   LUNATIKA EPO DESIGN SYSTEM
===================================== */

.tm-extra-product-options {
    font-family: "Manrope", Arial, sans-serif;
    color: var(--lun-text);
}

.lun-epo {
    font-family: "Manrope", sans-serif;
    color: var(--lun-text);
    background: var(--lun-background);
}

:root {
    /* Background */
    --lun-background: #F6F1E8;
    --lun-surface: #FCFAF7;
    --lun-image-surface: #FCFAF7;
    --lun-card-background-hover: #FCFAF7;

    /* Text */
    --lun-text: #292724;
    --lun-muted: #776E64;

    /* Borders */
    --lun-border: #D8CEC1;
    --lun-border-strong: #C8BBAA;

    /* Brand */
    --lun-accent: #B89B67;
    --lun-accent-hover: #96784C;

    /* States */
    --lun-selected: #F8F1E7;
    --lun-error: #B4233F;
    --lun-success: #456653;

    /* Radius */
    --lun-section-radius: 18px;
    --lun-card-radius: 14px;
    --lun-input-radius: 12px;

    /* Shadows */
    --lun-shadow: 0 10px 30px rgba(41, 39, 36, 0.08);
}

/* =====================================
   FIELD LABEL SYSTEM
===================================== */

.tm-extra-product-options .tc-epo-element-label,
.tm-extra-product-options .tc-epo-element-label-text {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--lun-text);
}

.tm-extra-product-options .tc-epo-element-label {
    margin-bottom: 8px;
}

/* =====================================
   IMAGE CARDS
===================================== */

.lun-epo-card-div {
    margin-top: 8px;
}

.lun-epo-card-div .tmcp-field-wrap {
    background: var(--lun-image-surface);
    border: 1px solid #E8DED2;
    border-radius: var(--lun-card-radius);
    height: auto;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.lun-epo-card-div li:hover .tmcp-field-wrap {
    background: var(--lun-card-background-hover);
}

/* selected image card */
.lun-epo-card-div li.tc-active {
    background: var(--lun-selected);
    border: 1.5px solid var(--lun-accent);
    border-radius: var(--lun-card-radius);
    box-shadow: var(--lun-shadow);
}

/* ukloni EPO default select border */
.lun-epo-card-div li.tc-active .tc-image {
    border-color: transparent !important;
}

/* card image clipping */
.lun-epo-card-div li {
    overflow: visible;
}

.lun-epo-card-div li img {
    max-width: 100%;
    height: auto;
}

.lun-epo-card-div .tmhexcolorimage-li-now {
    overflow: hidden;
    border-radius: var(--lun-card-radius);
    padding: 8px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}

.lun-epo-card-div .tmhexcolorimage-li-now img {
    width: auto;
    height: auto;
    max-width: min(135px, 100%);
    max-height: 105px;
    object-fit: contain;
    margin: 0 auto;
}

.lun-epo-card-div .tc-label-wrap {
    padding: 4px 10px 10px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

/* =====================================
   STANDARDNE RADIO KARTICE
===================================== */

.lun-epo-radio .tmcp-field-wrap {
    background: var(--lun-surface);
    border: 1px solid #E8DED2;
    border-radius: var(--lun-card-radius);
    min-height: 60px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.lun-epo-radio .tc-label-wrap {
    font-size: 16px;
    font-weight: 500;
    color: var(--lun-text);
}

.lun-epo-radio li.tc-active .tmcp-field-wrap {
    background: var(--lun-selected);
    border-color: var(--lun-accent);
    box-shadow: var(--lun-shadow);
}

.lun-epo-radio li:hover .tmcp-field-wrap {
    background: var(--lun-card-background-hover);
}

/* =====================================
   NASLOVI SEKCIJA
===================================== */

.lun-epo-heading-div {
    margin-top: 56px;
    margin-bottom: 32px;
}

.lun-epo-heading-div .tc-epo-element-label-text {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.6px;
    color: var(--lun-text);
}

.lun-epo-heading-div .tm-description {
    margin-top: 12px;
    max-width: 600px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--lun-muted);
}

/* =====================================
   RAZMAK POLJA
===================================== */

.tm-extra-product-options .tc-element-container {
    margin-bottom: 22px;
}

/* =====================================
   PREMIUM ODABIR KOLIČINE (select)
===================================== */

.lun-epo-select-div select {
    box-sizing: border-box;

    width: 100% !important;
    max-width: 320px;
    height: 56px;
    min-height: 56px;

    padding: 0 64px 0 20px !important;

    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: normal;
    color: var(--lun-text);

    border: 1px solid var(--lun-border-strong);
    border-radius: var(--lun-card-radius);

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: var(--lun-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23F2EADD'/%3E%3Cpath d='m11 14 5 5 5-5' fill='none' stroke='%2396784C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 32px 32px;

    box-shadow:
        0 3px 10px rgba(41, 39, 36, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    cursor: pointer;

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .lun-epo-select-div select:not(:disabled):hover {
        border-color: var(--lun-accent);
        background-color: #FFFCF8;
        box-shadow:
            0 5px 16px rgba(41, 39, 36, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
}

.lun-epo-select-div select:focus {
    border-color: var(--lun-accent-hover);
    outline: 2px solid var(--lun-accent-hover);
    outline-offset: 3px;
    box-shadow: 0 4px 14px rgba(41, 39, 36, 0.06);
}

.lun-epo-select-div select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* =====================================
   RESPONSIVE BASE
===================================== */

.tm-extra-product-options,
.tm-extra-product-options *,
.tm-extra-product-options *::before,
.tm-extra-product-options *::after {
    box-sizing: border-box;
}

/* Dopusti elementima da se smanje unutar flex/grid layouta */
.tm-extra-product-options .tc-element-container,
.lun-epo-card-div .tmcp-field-wrap,
.lun-epo-radio .tmcp-field-wrap,
.lun-epo-card-div .tc-label-wrap,
.lun-epo-radio .tc-label-wrap {
    min-width: 0;
}

.lun-epo-card-div .tc-label-wrap,
.lun-epo-radio .tc-label-wrap {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* =====================================
   TABLET — DO 1024px
===================================== */

@media (max-width: 1024px) {

    .lun-epo-heading-div {
        margin-top: 40px;
        margin-bottom: 24px;
    }

    .lun-epo-heading-div .tc-epo-element-label-text {
        font-size: 25px;
        letter-spacing: -0.4px;
    }

    .lun-epo-radio .tmcp-field-wrap {
        padding: 16px;
    }

    /* Broj stupaca ovisi o dostupnoj širini forme */
    .tm-extra-product-options .lun-epo-card-div ul {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
        gap: 12px;
        width: 100% !important;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }

    /* Ukloni širine stupaca koje postavlja plugin */
    .tm-extra-product-options .lun-epo-card-div ul > li {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex-basis: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: stretch;
        box-sizing: border-box;
    }

    /* Ukloni eventualne clearfix pseudo-elemente iz grida */
    .tm-extra-product-options .lun-epo-card-div ul::before,
    .tm-extra-product-options .lun-epo-card-div ul::after {
        content: none !important;
    }

    .lun-epo-card-div .tmcp-field-wrap {
        width: 100%;
        height: 100%;
        min-height: 170px;
        box-sizing: border-box;
    }

    .lun-epo-card-div .tmhexcolorimage-li-now {
        width: 100%;
        min-width: 0;
        padding: 12px;
    }

    .lun-epo-card-div .tmhexcolorimage-li-now img {
        width: auto;
        height: auto;
        max-width: min(135px, 100%);
        max-height: 105px;
        object-fit: contain;
    }

    .lun-epo-card-div .tc-label-wrap {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 8px 10px 12px;
        font-size: 15px;
        line-height: 1.4;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }
}

/* =====================================
   MOBITEL — DO 767px
===================================== */

@media (max-width: 767px) {

    .tm-extra-product-options .tc-epo-element-label,
    .tm-extra-product-options .tc-epo-element-label-text {
        font-size: 16px;
    }

    .tm-extra-product-options .tc-epo-element-label {
        margin-bottom: 10px;
    }

    .tm-extra-product-options .tc-element-container {
        margin-bottom: 20px;
    }

    .lun-epo-heading-div {
        margin-top: 32px;
        margin-bottom: 20px;
    }

    .lun-epo-heading-div .tc-epo-element-label-text {
        font-size: 23px;
        line-height: 1.25;
        letter-spacing: -0.3px;
    }

    .lun-epo-heading-div .tm-description {
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.5;
    }

    /* dvije kartice u redu */
    .tm-extra-product-options .lun-epo-card-div ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .lun-epo-card-div .tmcp-field-wrap {
        min-height: 165px;
    }

    .lun-epo-card-div .tmhexcolorimage-li-now {
        padding: 8px;
    }

    .lun-epo-card-div .tmhexcolorimage-li-now img {
        max-width: min(120px, 100%);
        max-height: 95px;
    }

    .lun-epo-card-div .tc-label-wrap {
        min-height: 44px;
        padding: 6px 8px 10px;
        font-size: 14px;
        line-height: 1.35;
    }

    .lun-epo-radio .tmcp-field-wrap {
        min-height: 52px;
        padding: 14px;
    }

    .lun-epo-radio .tc-label-wrap {
        font-size: 16px;
        line-height: 1.4;
    }

    .lun-epo-select-div select {
        max-width: 100%;
        min-height: 48px;
        font-size: 16px;
    }
}

/* =====================================
   PRISTUPAČNOST — SMANJENO KRETANJE
===================================== */

@media (prefers-reduced-motion: reduce) {
    .lun-epo-card-div .tmcp-field-wrap,
    .lun-epo-radio .tmcp-field-wrap,
    .lun-epo-select-div select {
        transition: none;
    }
}

/* =====================================
   UKUPNA CIJENA
===================================== */

#tm-epo-totals dt.tm-final-totals {
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4;
    color: var(--lun-muted) !important;
}

#tm-epo-totals dd.tm-final-totals {
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    color: var(--lun-accent) !important;
}

/* Uskladi WooCommerce elemente unutar iznosa */
#tm-epo-totals dd.tm-final-totals .amount,
#tm-epo-totals dd.tm-final-totals bdi,
#tm-epo-totals dd.tm-final-totals .woocommerce-Price-currencySymbol {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit;
    color: inherit !important;
}

/* =====================================
   TEXT INPUTS + TEXTAREA
===================================== */

.tm-extra-product-options input.tmcp-textfield,
.tm-extra-product-options input[type="text"],
.tm-extra-product-options textarea {
    width: 100% !important;
    min-height: 56px;
    padding: 0 20px !important;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--lun-text);
    background: #FFFCF8;
    border: 1px solid var(--lun-border);
    border-radius: var(--lun-input-radius);
    box-shadow: 0 2px 8px rgba(41, 39, 36, .04);
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.tm-extra-product-options input::placeholder,
.tm-extra-product-options textarea::placeholder {
    color: #A49A8D;
}

.tm-extra-product-options input:hover,
.tm-extra-product-options textarea:hover {
    border-color: var(--lun-border-strong);
}

.tm-extra-product-options input:focus,
.tm-extra-product-options textarea:focus {
    outline: none;
    border-color: var(--lun-accent);
    box-shadow: 0 0 0 4px rgba(184, 155, 103, .14);
}

.tm-extra-product-options textarea {
    min-height: 120px;
    padding-top: 18px !important;
}

/* ukloni brojač znakova */
.tm-extra-product-options .tc-chars {
    display: none !important;
}

/* =====================================
   EPO DATE FIELD
   (EPO koristi input.lun-epo-date)
===================================== */

.tm-extra-product-options .tc-epo-datepicker-label-container {
    position: relative;
}

.tm-extra-product-options input.lun-epo-date {
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 55px 0 20px !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 16px !important;
    color: var(--lun-text);
    background: #FFFCF8;
    border: 1px solid var(--lun-border);
    border-radius: var(--lun-input-radius);
}

/* gumb kalendara — finalni stil i pozicija ikone */
.tm-extra-product-options .ui-tm-datepicker-trigger {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
    border: none !important;

    background: transparent !important;
    color: var(--lun-accent) !important;

    cursor: pointer !important;
    box-shadow: none !important;
    transition: none !important;
}

/* potpuno uklanjanje hover pomaka i starih hover/focus efekata */
.tm-extra-product-options .ui-tm-datepicker-trigger:hover,
.tm-extra-product-options .ui-tm-datepicker-trigger:focus,
.tm-extra-product-options .ui-tm-datepicker-trigger:active {
    transform: translateY(-50%) !important;
    top: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* sama ikona ako je font/icon element */
.tm-extra-product-options .ui-tm-datepicker-trigger svg,
.tm-extra-product-options .ui-tm-datepicker-trigger i,
.tm-extra-product-options .ui-tm-datepicker-trigger:before {
    color: #96784C !important;
    stroke: #96784C !important;
}

/* separator */
.tm-extra-product-options .tc-epo-datepicker-label-container::after {
    background: #B89B67 !important;
}

/* =====================================
   SAKRIJ INTERNO POLJE KOREKCIJE CIJENE
===================================== */

.lunatika-price-correction-section {
    display: none !important;
}

/* =====================================
   LUNATIKA PREMIUM RADIO v2
===================================== */

.lun-epo-radio-div .tmcp-field-wrap {
    background: var(--lun-surface);
    border: 1px solid #E8DED2;
    border-radius: 14px;
    min-height: 54px;
    padding: 0 20px;
    padding-left: 28px !important;
    display: flex;
    align-items: center;
    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.lun-epo-radio-div .tc-label-wrap {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--lun-text);
}

.lun-epo-radio-div li:hover .tmcp-field-wrap {
    border-color: var(--lun-border-strong);
}

.lun-epo-radio-div li.tc-active .tmcp-field-wrap {
    background: var(--lun-selected);
    border-color: var(--lun-accent);
    box-shadow: var(--lun-shadow);
}

/* razmak između opcija */
.lun-epo-radio-div li {
    margin-bottom: 12px;
}

/* pozicija radio inputa + uklanjanje default plave boje */
.lun-epo-radio-div input[type="radio"] {
    margin-left: 0 !important;
    margin-right: 12px !important;
    accent-color: #96784C !important;
}

/* =====================================
   LUNATIKA PREMIUM FILE UPLOAD
===================================== */

.lun-epo-upload {
    width: 100% !important;
    height: 52px !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 10px !important;
    color: var(--lun-muted) !important;
}

.lun-epo-upload::file-selector-button {
    height: 42px;
    padding: 0 16px;
    margin-right: 10px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--lun-text);
    background: #F8F1E7;
    border: 1px solid var(--lun-accent);
    border-radius: 12px;
    cursor: pointer;
    transition:
        background .25s ease,
        border-color .25s ease;
}

.lun-epo-upload::file-selector-button:hover {
    background: #EFE2CF;
    border-color: #96784C;
}

.cpf-upload-wrap {
    display: flex;
    align-items: center;
}

/* max file size tekst */
.tm-max-file-size {
    margin-top: 8px !important;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 13px;
    color: var(--lun-muted);
}

/* =====================================
   LUNATIKA EPO — CHECKBOX POTVRDA
===================================== */

.lun-epo-checkbox-div .tmcp-field-wrap {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 44px;
    padding: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.lun-epo-checkbox-div input[type="checkbox"] {
    accent-color: var(--lun-accent-hover);
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.lun-epo-checkbox-div .tc-label-wrap {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--lun-text);
    cursor: pointer;
}

/* ==========================================
   LUNATIKA — MOBILE CART PRODUCTS
   PAGE 933
========================================== */

@media (max-width: 767px) {

    /* Svaki proizvod kao kompaktna cjelina */

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item {
        display: grid !important;
        grid-template-columns: 60px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 4px;

        position: relative;

        padding: 14px 4px !important;
        margin: 0 !important;

        border-bottom: 1px solid var(--lun-border);
    }


    /* Fotografija proizvoda */

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item > .product-thumbnail {
        display: block !important;

        grid-column: 1;
        grid-row: 1;

        padding: 0 !important;
        margin: 0 !important;

        text-align: left !important;
    }

    body.page-id-933 .lun-cart
    .woocommerce-cart-form .product-thumbnail::before {
        display: none !important;
        content: none !important;
    }

    body.page-id-933 .lun-cart
    .woocommerce-cart-form .product-thumbnail img {
        width: 60px !important;
        height: 60px !important;
        object-fit: contain;
    }


    /* Naziv proizvoda */

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item > .product-name {
        grid-column: 2;
        grid-row: 1;

        padding: 0 32px 0 0 !important;
        margin: 0 !important;

        text-align: left !important;

        font-size: 16px;
        line-height: 1.5;
    }

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item > .product-name::before {
        display: none !important;
        content: none !important;
    }


    /* Ikona za uklanjanje proizvoda */

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item > .product-remove {
        position: absolute !important;

        top: 18px;
        right: 4px;

        padding: 0 !important;
        margin: 0 !important;

        width: auto !important;
        border: 0 !important;
    }


    /* Količina i međuzbroj */

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item > .product-quantity,

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item > .product-subtotal {
        grid-column: 1 / -1;

        display: flex !important;
        align-items: center;
        justify-content: space-between;

        padding: 4px 0 !important;
        margin: 0 !important;

        border: 0 !important;

        text-align: right !important;

        font-size: 14px;
        line-height: 1.5;
    }


    /* Nazivi Količina i Međuzbroj */

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item
    > .product-quantity::before,

    body.page-id-933 .lun-cart
    .woocommerce-cart-form tr.cart_item
    > .product-subtotal::before {
        content: attr(data-title) ":";

        float: none !important;

        margin: 0 12px 0 0;

        font-family: "Manrope", sans-serif;
        font-weight: 500;

        color: var(--lun-muted);
    }

}

/* =====================================
   LUNATIKA — PREMIUM CART
===================================== */

/* =====================================
   UKUPNA CIJENA NARUDŽBE
===================================== */

/* Tekst "Ukupno" */
.lun-cart .cart_totals .order-total th {
    font-family: "Manrope", sans-serif;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #292724 !important;
}

/* Konačni iznos */
.lun-cart .cart_totals .order-total .woocommerce-Price-amount,
.lun-cart .cart_totals .order-total .woocommerce-Price-amount bdi,
.lun-cart .cart_totals .order-total .woocommerce-Price-currencySymbol {
    font-family: "Manrope", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--lun-accent) !important;
}

/* =====================================
   LUNATIKA — CART
   NAZIVI PROIZVODA I PERSONALIZACIJA
===================================== */

/* Naziv proizvoda */
.lun-cart .woocommerce-cart-form td.product-name {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: #292724;
}

/* EPO personalizacija */
.lun-cart .woocommerce-cart-form td.product-name dl.tc-epo-metadata,
.lun-cart .woocommerce-cart-form td.product-name dl.tc-epo-metadata dt,
.lun-cart .woocommerce-cart-form td.product-name dl.tc-epo-metadata dd,
.lun-cart .woocommerce-cart-form td.product-name dl.tc-epo-metadata p {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #776E64;
}

/* Razmak između naziva i personalizacije */
.lun-cart .woocommerce-cart-form td.product-name dl.tc-epo-metadata {
    margin-top: 8px;
}

/* =====================================
   LUNATIKA — CART
   PREMIUM PERSONALIZATION LINK
===================================== */

body.page-id-933 .lun-cart a.tm-cart-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    color: var(--lun-accent) !important;

    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;

    transition: color 0.2s ease;
}

/* Ikona strelice */

body.page-id-933 .lun-cart a.tm-cart-link::after {
    content: "›";

    display: inline-block;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.2s ease;
}

/* Hover */

body.page-id-933 .lun-cart a.tm-cart-link:hover {
    color: var(--lun-accent-hover) !important;
    text-decoration: none !important;
}

/* Lagani pomak strelice */

body.page-id-933 .lun-cart a.tm-cart-link:hover::after {
    transform: translateX(3px);
}

/* =====================================
   LUNATIKA — EPO CART POPUP v1
===================================== */

/* GLAVNI POPUP */

.floatbox.fl-overlay .flasho.cart-popup {
    width: min(900px, calc(100vw - 32px)) !important;
    max-width: 100%;

    background: var(--lun-surface, #FCFAF7);

    border: 1px solid var(--lun-border, #D8CEC1);
    border-radius: 18px;

    box-shadow: 0 20px 60px rgba(41, 39, 36, 0.16);

    font-family: "Manrope", Arial, sans-serif;
    color: var(--lun-text, #292724);

    /* Umjesto EPO inline height: 80% – visina prati sadržaj. */
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* NASLOV POPUPA */

.floatbox.fl-overlay .flasho.cart-popup .header {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;

    color: var(--lun-text, #292724);
    background: var(--lun-surface, #FCFAF7);

    padding: 24px 28px 20px !important;
    box-sizing: border-box;
    flex: 0 0 auto;

    border-bottom: 1px solid #E5DEDC;
}

/* Diskretan zlatni detalj iznad naslova */
body.page-id-933 .flasho.cart-popup .header::before {
    content: "";
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 12px;
    background: var(--lun-accent, #B89B67);
}

/* Naziv proizvoda upisuje postojeći JavaScript */
body.page-id-933 .flasho.cart-popup .lun-popup-product-name {
    display: block;
    margin-top: 7px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--lun-muted, #776E64);
}


/* SADRŽAJ POPUPA */

.floatbox.fl-overlay .flasho.cart-popup .float-editbox {
    background: var(--lun-surface, #FCFAF7);

    /* Scroll samo kad je sadržaj dug, bez praznog prostora. */
    flex: 0 1 auto;
    min-height: 0 !important;
    height: auto !important;
    max-height: min(66dvh, 660px) !important;
    overflow-y: auto !important;
}


/* REDCI PERSONALIZACIJE */

.floatbox.fl-overlay .flasho.cart-popup .tc-row.tm-cart-row {
    border-bottom: 1px solid #E5DEDC;
}


/* NAZIVI POLJA */

.floatbox.fl-overlay .flasho.cart-popup .cpf-name {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    color: var(--lun-text, #292724);
}


/* UNESENE VRIJEDNOSTI */

.floatbox.fl-overlay .flasho.cart-popup .cpf-value {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    color: var(--lun-muted, #776E64);
}



/* DONJI DIO POPUPA */

.floatbox.fl-overlay .flasho.cart-popup .footer {
    background: var(--lun-surface, #FCFAF7);
    border-top: 1px solid #E5DEDC;
    flex: 0 0 auto;
}

body.page-id-933 .flasho.cart-popup .footer .inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}


/* MOBITEL */

@media (max-width: 767px) {

    .floatbox.fl-overlay .flasho.cart-popup {
        width: calc(100vw - 20px) !important;
        max-width: 100%;
        border-radius: 14px;
    }

}

/* =====================================
   LUNATIKA — EPO CART POPUP
   PREMIUM CLOSE BUTTON
===================================== */

/* Gumb Zatvori */

.floatbox.fl-overlay
.flasho.cart-popup
.footer .tm-button.floatbox-cancel {

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 24px !important;

    background: #292724 !important;
    color: #FFFFFF !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4;

    border: 1px solid #292724 !important;
    border-radius: 10px !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


/* Hover */

.floatbox.fl-overlay
.flasho.cart-popup
.footer .tm-button.floatbox-cancel:hover {

    background: #96784C !important;
    border-color: #96784C !important;
    color: #FFFFFF !important;
}

/* =====================================
   LUNATIKA — EPO CART POPUP
   PERSONALIZATION LAYOUT v2
   TEST PAGE: 933
===================================== */

/* 1. Sakrij zaglavlje Cijena / Količina / Ukupno */

body.page-id-933
.flasho.cart-popup
.tm-cart-row.tm-cart-row-header {
    display: none !important;
}


/* 2. Raspored podataka u dva stupca */

body.page-id-933
.flasho.cart-popup
.tm-cart-row:not(.tm-cart-row-header) {
    display: grid !important;
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;

    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}


/* 3. Sakrij stupce s dodatnim cijenama */

body.page-id-933
.flasho.cart-popup
.tm-cart-row > .cpf-price,

body.page-id-933
.flasho.cart-popup
.tm-cart-row > .cpf-quantity,

body.page-id-933
.flasho.cart-popup
.tm-cart-row > .cpf-total-price {
    display: none !important;
}


/* 4. Ukloni izvorna EPO ograničenja širine */

body.page-id-933
.flasho.cart-popup
.tm-cart-row > .cpf-name,

body.page-id-933
.flasho.cart-popup
.tm-cart-row > .cpf-value {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    float: none !important;
    padding: 12px 24px !important;
    margin: 0 !important;
}


/* 5. Omogući prijelom dugih podataka */

body.page-id-933
.flasho.cart-popup
.tm-cart-row > .cpf-value {
    overflow-wrap: anywhere;
}


/* =====================================
   MOBILE — DO 767px
===================================== */

@media (max-width: 767px) {

    /* Jedan stupac */
    body.page-id-933
    .flasho.cart-popup
    .tm-cart-row:not(.tm-cart-row-header) {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 4px;
    }

    /* Naziv polja */
    body.page-id-933
    .flasho.cart-popup
    .tm-cart-row > .cpf-name {
        padding: 10px 24px 0 !important;
    }

    /* Vrijednost polja */
    body.page-id-933
    .flasho.cart-popup
    .tm-cart-row > .cpf-value {
        padding: 2px 24px 10px !important;
    }
	
    /* Naslov i skrolanje na mobitelu */
    .floatbox.fl-overlay .flasho.cart-popup .header {
        font-size: 20px;
        padding: 18px 20px 16px !important;
    }

    .floatbox.fl-overlay .flasho.cart-popup .float-editbox {
        max-height: calc(100dvh - 195px) !important;
    }

}

@media (max-width: 480px) {
    body.page-id-933 .flasho.cart-popup .footer .inner {
        gap: 8px;
    }

    body.page-id-933 .flasho.cart-popup .lun-popup-edit {
        flex: 1 1 180px;
        text-align: center;
    }

    body.page-id-933 .flasho.cart-popup .footer .floatbox-cancel {
        flex: 1 1 90px;
    }
}

/* =====================================
   LUNATIKA — CART
   HIDE DUPLICATE PRODUCT PRICE
===================================== */

/* Sakrij stupac Cijena */
.lun-cart .woocommerce-cart-form
table.shop_table th.product-price,

.lun-cart .woocommerce-cart-form
table.shop_table td.product-price {
    display: none !important;
}

/* ==========================================
   LUNATIKA — POPUP EDIT PERSONALIZATION
========================================== */

.flasho.cart-popup .lun-popup-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 20px;
    margin-right: 0;

    background: #F6F1E8;
    color: #292724;

    border: 1px solid #D8CEC1;
    border-radius: 10px;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.flasho.cart-popup .lun-popup-edit:hover {
    background: #F8F1E7;
    border-color: #C8BBAA;
    color: #292724;

    text-decoration: none;
}

.flasho.cart-popup .lun-popup-edit:focus-visible {
    outline: 2px solid #96784C;
    outline-offset: 3px;
}

/* ==========================================
   LUNATIKA — CART: HIDE EPO EDIT OPTIONS
========================================== */

body.page-id-933 .lun-cart a.tm-cart-edit-options {
    display: none !important;
}

/* ==========================================
   LUNATIKA — PREMIUM WOOCOMMERCE NOTICES
   Košarica i stranice proizvoda
========================================== */

/* Zajednički izgled uspješnih obavijesti */

body.page-id-933 .woocommerce-message,
body.single-product .woocommerce-message {

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;

    position: relative;

    padding: 18px 24px 18px 54px !important;
    margin-bottom: 14px !important;

    background: #FCFAF7 !important;

    border: 1px solid #E5DEDC !important;
    border-left: 3px solid #B89B67 !important;

    border-radius: 14px !important;

    box-shadow: none !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    color: #292724 !important;
}


/* Fokus obavijesti */

body.page-id-933 .woocommerce-message:focus,
body.page-id-933 .woocommerce-message:focus-visible,
body.single-product .woocommerce-message:focus,
body.single-product .woocommerce-message:focus-visible {

    outline: 1px solid #C8BBAA !important;
    outline-offset: 0 !important;
}


/* Ikona uspjeha */

body.page-id-933 .woocommerce-message::before,
body.single-product .woocommerce-message::before {

    color: #456653 !important;

    position: absolute !important;
    top: 50% !important;
    left: 20px !important;

    transform: translateY(-50%);
}


/* ==========================================
   KOŠARICA — TEST PAGE 933
========================================== */

/* Sakrij gumb unutar obavijesti košarice */

body.page-id-933 .woocommerce-message .button {
    display: none !important;
}


/* Poveznica Poništi */

body.page-id-933 .woocommerce-message a:not(.button) {

    color: #B89B67 !important;
    text-decoration: none;
}

body.page-id-933 .woocommerce-message a:not(.button):hover {

    color: #927748 !important;
    text-decoration: underline;
}


/* ==========================================
   STRANICA PROIZVODA
========================================== */

/* Širina obavijesti */

body.single-product .woocommerce-message {

    box-sizing: border-box;

    width: calc(100% - 32px);
    max-width: 1200px;

    margin: 20px auto 24px !important;
}


/* Gumb Prikaži košaricu */

body.single-product .woocommerce-message .button {

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    order: 2;
    flex: 0 0 auto;

    float: none !important;
    margin-left: auto !important;

    min-height: 44px;
    padding: 10px 18px !important;

    background: #F6F1E8 !important;
    color: #292724 !important;

    border: 1px solid #D8CEC1 !important;
    border-radius: 10px !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-decoration: none !important;
    box-shadow: none !important;
}


/* Hover gumba */

body.single-product .woocommerce-message .button:hover {

    background: #F8F1E7 !important;
    color: #292724 !important;

    border-color: #B89B67 !important;
    box-shadow: none !important;
}


/* Fokus tipkovnicom */

body.single-product .woocommerce-message .button:focus-visible {

    outline: 2px solid #B89B67 !important;
    outline-offset: 2px;
}


/* ==========================================
   MOBILNE OBAVIJESTI
========================================== */

@media (max-width: 767px) {

    body.page-id-933 .woocommerce-message,
    body.single-product .woocommerce-message {

        padding: 16px 18px 16px 46px !important;

        font-size: 14px !important;
        border-radius: 12px !important;
    }

    /* Ikona u košarici */

body.page-id-933 .woocommerce-message::before {

    left: 16px !important;
}


/* Ikona na stranici proizvoda */

body.single-product .woocommerce-message::before {

    left: 16px !important;
    top: 22px !important;
    transform: none !important;
}
    }

    /* Gumb na stranici proizvoda */

    body.single-product .woocommerce-message .button {

        width: 100% !important;
        margin-left: 0 !important;

        justify-content: center;
    }

}

/* ==========================================
   LUNATIKA — CHECKOUT NOTICES
   Uspješne obavijesti i pogreške
========================================== */


/* Zajednički dizajn obavijesti */

.lun-checkout ul.woocommerce-error,
.lun-checkout .woocommerce-message {

    position: relative;

    color: var(--lun-text) !important;

    border-radius: 12px !important;

    padding: 18px 24px 18px 54px !important;
    margin: 0 0 24px !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;

    box-shadow: none !important;
    list-style: none !important;
}


/* ==========================================
   ERROR — POGREŠKE
========================================== */

.lun-checkout ul.woocommerce-error {

    background: #FFF8F6 !important;

    border: 1px solid #E8D4CF !important;
    border-left: 3px solid var(--lun-error) !important;
}


/* Ikona pogreške */

.lun-checkout ul.woocommerce-error::before {

    color: var(--lun-error) !important;

    left: 20px !important;
    top: 18px !important;
}


/* Tekst pogrešaka */

.lun-checkout ul.woocommerce-error li,
.lun-checkout ul.woocommerce-error li * {

    color: var(--lun-text) !important;
}

.lun-checkout ul.woocommerce-error li {

    padding: 0 !important;
    margin: 0 0 4px !important;

    list-style: none !important;
}

.lun-checkout ul.woocommerce-error li:last-child {

    margin-bottom: 0 !important;
}


/* ==========================================
   SUCCESS — USPJEŠNE OBAVIJESTI
========================================== */

.lun-checkout .woocommerce-message {

    background: #F7FAF7 !important;

    border: 1px solid #D8E4DA !important;
    border-left: 3px solid #476B59 !important;
}


/* Ikona uspješne obavijesti */

.lun-checkout .woocommerce-message::before {

    color: #476B59 !important;

    left: 20px !important;
    top: 18px !important;
}

/* ==========================================
   LUNATIKA — COUPON HOVER & FOCUS
   TEST CART PAGE: 933
========================================== */

/* Hover / focus / active za gumb kupona */

body.page-id-933 .woocommerce-cart-form .coupon .button:hover,
body.page-id-933 .woocommerce-cart-form .coupon .button:focus,
body.page-id-933 .woocommerce-cart-form .coupon .button:active {
    background: #F8F1E7 !important;
    border-color: #B89B67 !important;
    color: #292724 !important;

    outline: none !important;
    box-shadow: none !important;
}

/* Focus za polje za unos kupona */

body.page-id-933 .woocommerce-cart-form .coupon .input-text:focus,
body.page-id-933 .woocommerce-cart-form .coupon input[name="coupon_code"]:focus {
    border-color: #B89B67 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================
   LUNATIKA — CHECKOUT TOTAL
========================================== */

.lun-checkout
.woocommerce-checkout-review-order-table
tr.order-total td .woocommerce-Price-amount {

    color: #B89B67 !important;

    font-family: "Manrope", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* ==========================================
   LUNATIKA — CHECKOUT PRODUCT LINKS
   Sakrij poveznice za uređivanje i pregled
========================================== */

.lun-checkout
.woocommerce-checkout-review-order-table
a.tm-cart-edit-options,

.lun-checkout
.woocommerce-checkout-review-order-table
a.tm-cart-link {

    display: none !important;
}

/* LUNATIKA — CHECKOUT QUANTITY */

.lun-checkout .lun-checkout-epo-qty {
    display: block;
    margin-top: 4px;

    color: #776E64;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}


/* ==========================================
   LUNATIKA — CHECKOUT RESPONSIVE
========================================== */


/* ŽUPANIJA — jednaka visina na svim uređajima */

.lun-checkout #billing_state_field .select2-container {
    display: block !important;
    height: 44px !important;
}

.lun-checkout #billing_state_field .select2-selection--single {
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
	position: relative !important;
}

.lun-checkout #billing_state_field .select2-selection__rendered {
    line-height: normal !important;
}

/* ŽUPANIJA — STRELICA PADAJUĆEG IZBORNIKA */

/* Sakrij postojeću Select2 ikonu */

.lun-checkout #billing_state_field .select2-selection__arrow {
    display: none !important;
}

/* LUNATIKA strelica */

.lun-checkout #billing_state_field .select2-selection--single::after {
    content: "" !important;

    position: absolute;
    right: 20px;
    top: 50%;

    width: 8px;
    height: 8px;

    border-right: 2px solid #292724;
    border-bottom: 2px solid #292724;

    transform: translateY(-70%) rotate(45deg);

    pointer-events: none;
}

/* ==========================================
   ŽUPANIJA — DIZAJN PADAJUĆEG IZBORNIKA
========================================== */

/* Opcije županija */

#select2-billing_state-results .select2-results__option {
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;

    padding: 10px 12px;

    background: #FCFAF7;
    color: #292724;
}


/* Trenutačno odabrana županija */

#select2-billing_state-results
.select2-results__option[aria-selected="true"],

#select2-billing_state-results
.select2-results__option[data-selected="true"] {
    background: #F6F1E8 !important;
    color: #292724 !important;
}


/* Hover i označavanje tipkovnicom */

#select2-billing_state-results
.select2-results__option--highlighted {
    background: #E8DECE !important;
    color: #292724 !important;
}


/* Okvir otvorenog izbornika */

.select2-container--open:has(#select2-billing_state-results)
.select2-dropdown {
    background: #FCFAF7 !important;

    border: 1px solid #D8CEC1 !important;
    border-radius: 10px !important;

    overflow: hidden;
}


/* Polje za pretraživanje županija */

.select2-container--open:has(#select2-billing_state-results)
.select2-search__field {
    background: #FFFFFF !important;
    color: #292724 !important;

    border: 1px solid #D8CEC1 !important;
    border-radius: 8px !important;

    box-shadow: none !important;
}


/* Fokus polja za pretraživanje */

.select2-container--open:has(#select2-billing_state-results)
.select2-search__field:focus {
    border-color: #B89B67 !important;
    outline: none !important;
}

/* TABLET I MOBITEL — poravnanje imena i prezimena */

@media (max-width: 1024px) {

    .lun-checkout #billing_first_name_field,
    .lun-checkout #billing_last_name_field {

        float: none !important;
        clear: both !important;

        width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

}

/* ==========================================
   LUNATIKA — CHECKOUT SUMMARY ALIGNMENT
========================================== */

.lun-checkout .woocommerce-checkout-review-order-table
tr > th:last-child,

.lun-checkout .woocommerce-checkout-review-order-table
tr > td:last-child {

    text-align: right !important;

}

/* ==========================================
   LUNATIKA — CHECKOUT COUNTRY
   Sakrij polje Država / Regija
========================================== */

.lun-checkout #billing_country_field {
    display: none !important;
}

/* ==========================================
   LUNATIKA — CHECKOUT COUPON
========================================== */


/* Sakrij nepotrebni opis kupona vizualno */

.lun-checkout .e-coupon-anchor-description {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}


/* Gumb Primijeni kupon */

.lun-checkout .e-apply-coupon {

    min-height: 48px !important;
    padding: 10px 20px !important;

    background: #F6F1E8 !important;
    color: #292724 !important;

    border: 1px solid #D8CEC1 !important;
    border-radius: 10px !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}


/* Hover i fokus gumba */

.lun-checkout .e-apply-coupon:hover,
.lun-checkout .e-apply-coupon:focus {

    background: #F8F1E7 !important;
    color: #292724 !important;

    border-color: #B89B67 !important;
    box-shadow: none !important;
}


/* Fokus tipkovnicom */

.lun-checkout .e-apply-coupon:focus-visible {
    outline: 2px solid #B89B67 !important;
    outline-offset: 2px;
}


/* Tablet i mobilna verzija */

@media (max-width: 1024px) {

    .lun-checkout .coupon-col-2 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
    }

    .lun-checkout .e-apply-coupon {
        width: 100% !important;
        box-sizing: border-box;
    }

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   PURCHASE SUMMARY — ORDER DETAILS
   Desktop raspored proizvoda i cijena
========================================== */

@media (min-width: 1025px) {

    /* Tablica pregleda narudžbe */

    .lun-thankyou
    .woocommerce-order-details
    table.woocommerce-table--order-details {
        width: 100%;
        table-layout: fixed;
    }


    /* Lijevi stupac — proizvodi i EPO personalizacije */

    .lun-thankyou
    .woocommerce-order-details
    table.woocommerce-table--order-details th.product-name,

    .lun-thankyou
    .woocommerce-order-details
    table.woocommerce-table--order-details td.product-name {
        width: 75% !important;
        overflow-wrap: anywhere;
    }


    /* Desni stupac — cijene proizvoda */

    .lun-thankyou
    .woocommerce-order-details
    table.woocommerce-table--order-details th.product-total,

    .lun-thankyou
    .woocommerce-order-details
    table.woocommerce-table--order-details td.product-total {
        width: 25% !important;
        text-align: right !important;
    }


    /* Međuzbroj, popust, dostava i ukupni iznosi */

    .lun-thankyou
    .woocommerce-order-details
    table.woocommerce-table--order-details tfoot td {
        text-align: right !important;
    }

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   CUSTOMER NOTE
========================================== */

@media (min-width: 1025px) {

    /* Bilješka je zadnji red u footeru tablice */
    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-note-row {
        position: relative;
    }

    /* puna linija iznad bilješke */
    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-note-row::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border-top: 1px solid var(--lun-border);
    }

    /* makni standardni border samo u retku bilješke
       jer crtamo vlastitu punu liniju */
    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-note-row > th,

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-note-row > td {
        border-top: none !important;
    }

    /* naslov bilješke */
    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-note-row > th {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        padding-bottom: 8px;
        text-align: left !important;
    }

    /* sadržaj bilješke */
    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-note-row > td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        text-align: left !important;

        font-family: "Manrope", Arial, sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.6;
        color: var(--lun-muted);

        overflow-wrap: anywhere;
        padding-top: 0;
    }

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   PROIZVOD / KOLIČINA / UKUPNO + DETALJI
   TEST v1 — aktivno tek nakon uspješnog JS prikaza
========================================== */

/* Tipografski stil kontrole detalja. */
.lun-thankyou .lun-detail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 7px 0 0;
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--lun-accent);
    cursor: pointer;
    text-decoration: none;
}

.lun-thankyou .lun-detail-toggle:hover,
.lun-thankyou .lun-detail-toggle:focus-visible {
    color: var(--lun-accent-hover);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.lun-thankyou .lun-detail-toggle:focus-visible {
    outline: 2px solid var(--lun-accent-hover);
    outline-offset: 3px;
}

.lun-thankyou .lun-detail-toggle::after {
    content: "⌄";
    display: inline-block;
    transform: translateY(-2px);
    transition: transform 180ms ease;
}

.lun-thankyou .lun-detail-toggle[aria-expanded="true"]::after {
    transform: translateY(0) rotate(180deg);
}

.lun-thankyou .lun-detail-content {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--lun-surface);
    border: 1px solid var(--lun-border);
    border-radius: 10px;
    overflow-wrap: anywhere;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--lun-muted);
}

/* Sakrij samo JS-om uspješno pripremljene detalje. */
.lun-thankyou .lun-detail-content[hidden] {
    display: none !important;
}

/* Bez JavaScripta ostaju izvorna tablica i svi EPO podaci. */
.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details table.woocommerce-table--order-details {
    width: 100%;
    table-layout: fixed;
}

.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details table.woocommerce-table--order-details th.product-name,
.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details table.woocommerce-table--order-details td.product-name {
    width: 62% !important;
    text-align: left !important;
    overflow-wrap: anywhere;
}

.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details table.woocommerce-table--order-details .lun-quantity-col {
    width: 16% !important;
    text-align: center !important;
    white-space: nowrap;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--lun-text);
}

.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details table.woocommerce-table--order-details th.product-total,
.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details table.woocommerce-table--order-details td.product-total {
    width: 22% !important;
    text-align: right !important;
}

/* Umjesto zbunjujućeg "× 1" prikazuje se sažeta količina u svom stupcu. */
.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details tbody td.product-name > .product-quantity {
    display: none !important;
}

.lun-thankyou.lun-thankyou--enhanced
.woocommerce-order-details table.woocommerce-table--order-details tfoot td {
    text-align: right !important;
}

/* Posebno: kupčeva bilješka uvijek je čitljiva i lijevo poravnata. */
.lun-thankyou .woocommerce-table--order-details tfoot tr.lun-note-row > td {
    text-align: left !important;
}

@media (max-width: 1024px) {
    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details th.product-name,
    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details td.product-name {
        width: 57% !important;
    }

    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details .lun-quantity-col {
        width: 18% !important;
    }

    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details th.product-total,
    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details td.product-total {
        width: 25% !important;
    }
}

@media (max-width: 767px) {
    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details th.product-name,
    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details td.product-name {
        width: 48% !important;
    }

    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details .lun-quantity-col {
        width: 19% !important;
        font-size: 13px;
    }

    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details th.product-total,
    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details td.product-total {
        width: 33% !important;
    }

    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details th,
    .lun-thankyou.lun-thankyou--enhanced
    .woocommerce-order-details table.woocommerce-table--order-details td {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .lun-thankyou .lun-detail-toggle,
    .lun-thankyou .lun-detail-content {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lun-thankyou .lun-detail-toggle::after {
        transition: none;
    }
}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   DETAIL TOGGLE — FOCUS FIX
========================================== */

/* Osnovni izgled gumba */

.lun-thankyou button.lun-detail-toggle {

    display: flex !important;
    align-items: center;
    width: fit-content;

    gap: 6px;
    margin: 6px 0 0 !important;
    padding: 3px 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: var(--lun-accent) !important;
}


/* Hover, Focus i Active */

.lun-thankyou button.lun-detail-toggle:hover,
.lun-thankyou button.lun-detail-toggle:focus,
.lun-thankyou button.lun-detail-toggle:active {

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    box-shadow: none !important;

    color: var(--lun-accent-hover) !important;
}


/* Bez dodatnog obruba nakon klika mišem */

.lun-thankyou button.lun-detail-toggle:focus:not(:focus-visible) {

    outline: none !important;
}


/* Pristupačnost — fokus tipkovnicom */

.lun-thankyou button.lun-detail-toggle:focus-visible {

    outline: 2px solid var(--lun-accent-hover) !important;
    outline-offset: 3px;
}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   KORAK 20: Detalji preko cijele sirine, bez okvira
   DODATI NA KRAJ lunatika-epo.css
========================================== */

/* Red detalja koristi sva tri stupca (proizvod, kolicina, ukupno). */
.lun-thankyou table.woocommerce-table--order-details
tr.lun-detail-row > td {
    width: auto !important;
    display: table-cell !important;
    padding: 0 12px 18px !important;
    border-top: 0 !important;
    text-align: left !important;
    vertical-align: top !important;
}

.lun-thankyou table.woocommerce-table--order-details
tr.lun-detail-row[hidden] {
    display: none !important;
}

/* Bez dodatne kartice, pozadine ili obruba oko EPO podataka. */
.lun-thankyou .lun-detail-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--lun-muted);
}

@media (max-width: 767px) {
    .lun-thankyou table.woocommerce-table--order-details
    tr.lun-detail-row > td {
        padding: 0 5px 15px !important;
    }
    .lun-thankyou .lun-detail-content {
        font-size: 13px;
    }
}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   EPO DETAILS — CLEAN LIST
========================================== */

/* Uklanjanje točkica i nepotrebnog uvlačenja */

.lun-thankyou
.woocommerce-table--order-details
.lun-detail-row
.lun-detail-content ul.wc-item-meta {

    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;

}


/* Pojedinačna EPO polja */

.lun-thankyou
.woocommerce-table--order-details
.lun-detail-row
.lun-detail-content ul.wc-item-meta > li {

    list-style: none !important;

    margin: 0 0 4px !important;
    padding: 0 !important;

}


/* Uklanjanje oznaka liste */

.lun-thankyou
.woocommerce-table--order-details
.lun-detail-row
.lun-detail-content li::marker {

    content: "" !important;

}


/* Razmak cijelog bloka detalja */

.lun-thankyou
.woocommerce-table--order-details
.lun-detail-row
.lun-detail-content {

    margin: 0 !important;
    padding: 4px 0 8px 16px !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   FINAL ORDER TOTAL
========================================== */

/* Naslov UKUPNO */

.lun-thankyou
.woocommerce-table--order-details
tfoot tr.lun-order-total-row > th {

    font-family: "Manrope", Arial, sans-serif !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;

    color: var(--lun-text) !important;
}


/* Završni iznos narudžbe */

.lun-thankyou
.woocommerce-table--order-details
tfoot tr.lun-order-total-row > td,

.lun-thankyou
.woocommerce-table--order-details
tfoot tr.lun-order-total-row .woocommerce-Price-amount,

.lun-thankyou
.woocommerce-table--order-details
tfoot tr.lun-order-total-row .woocommerce-Price-amount bdi,

.lun-thankyou
.woocommerce-table--order-details
tfoot tr.lun-order-total-row .woocommerce-Price-currencySymbol {

    font-family: "Manrope", Arial, sans-serif !important;

    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    color: var(--lun-accent) !important;
}


/* TABLET */

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

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row > td,

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row .woocommerce-Price-amount,

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row .woocommerce-Price-amount bdi,

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row .woocommerce-Price-currencySymbol {

        font-size: 22px !important;
    }

}


/* MOBITEL */

@media (max-width: 767px) {

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row > td,

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row .woocommerce-Price-amount,

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row .woocommerce-Price-amount bdi,

    .lun-thankyou
    .woocommerce-table--order-details
    tfoot tr.lun-order-total-row .woocommerce-Price-currencySymbol {

        font-size: 20px !important;
    }

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   FINAL ORDER TOTAL — DESIGN
========================================== */

/* Desktop veličina */

.lun-thankyou {
    --lun-thankyou-total-size: 24px;
}


/* Završni iznos i njegovi WooCommerce elementi */

.lun-thankyou
.woocommerce-table--order-details
tfoot .lun-thankyou-final-amount,

.lun-thankyou
.woocommerce-table--order-details
tfoot .lun-thankyou-final-amount
.woocommerce-Price-amount,

.lun-thankyou
.woocommerce-table--order-details
tfoot .lun-thankyou-final-amount bdi,

.lun-thankyou
.woocommerce-table--order-details
tfoot .lun-thankyou-final-amount
.woocommerce-Price-currencySymbol {

    font-family: "Manrope", Arial, sans-serif !important;

    font-size: var(--lun-thankyou-total-size) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    color: var(--lun-accent) !important;

    font-variant-numeric: tabular-nums;
}


/* TABLET */

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

    .lun-thankyou {
        --lun-thankyou-total-size: 22px;
    }

}


/* MOBITEL */

@media (max-width: 767px) {

    .lun-thankyou {
        --lun-thankyou-total-size: 20px;
    }

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   BANK DETAILS CARD
========================================== */

.lun-thankyou
section.woocommerce-bacs-bank-details {

    box-sizing: border-box;
    width: 100%;

    background: var(--lun-surface);

    border: 1px solid var(--lun-border);
    border-radius: 12px;

    padding: 28px 32px;
    margin-bottom: 32px;

    box-shadow: none;
}

/* Tablet */

@media (max-width: 1024px) {

    .lun-thankyou
    section.woocommerce-bacs-bank-details {
        padding: 24px;
    }

}

/* Mobitel */

@media (max-width: 767px) {

    .lun-thankyou
    section.woocommerce-bacs-bank-details {
        padding: 20px;
    }

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   BANK DETAILS — GRID LAYOUT
========================================== */

/* Ravnomjeran raspored bankovnih podataka */

.lun-thankyou
.woocommerce-bacs-bank-details
ul.wc-bacs-bank-details {

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    width: 100% !important;
    max-width: none !important;

    gap: 24px !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Pojedinačni stupci */

.lun-thankyou
.woocommerce-bacs-bank-details
ul.wc-bacs-bank-details > li {

    float: none !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;

    box-sizing: border-box;
    overflow-wrap: anywhere;
}

/* Tablet i mobitel */

@media (max-width: 1024px) {

    .lun-thankyou
    .woocommerce-bacs-bank-details
    ul.wc-bacs-bank-details {

        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
    }

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   BANK DETAILS — GRID FIX
========================================== */

/* Ukloni WooCommerce pseudo-elemente
   koji mogu zauzimati mjesta u CSS Gridu */

.lun-thankyou
.woocommerce-bacs-bank-details
ul.wc-bacs-bank-details::before,

.lun-thankyou
.woocommerce-bacs-bank-details
ul.wc-bacs-bank-details::after {

    content: none !important;
    display: none !important;

}

/* ==========================================
   LUNATIKA — THANK YOU PAGE
   BANK DETAILS — IBAN HIGHLIGHT
========================================== */

.lun-thankyou
.woocommerce-bacs-bank-details
.wc-bacs-bank-details li.iban strong {

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;

    color: var(--lun-text) !important;

    overflow-wrap: anywhere;
}

/* MOBITEL */

@media (max-width: 767px) {

    .lun-thankyou
    .woocommerce-bacs-bank-details
    .wc-bacs-bank-details li.iban strong {

        font-size: 15px !important;
    }

}