﻿.wc-wrap {
    position: fixed;
    right: 5px;
    bottom: 5px;
    z-index: 9001;
}

.webchat__basic-transcript__filler {
    flex-grow: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-btn.close-control {
    display: none !important;
}

.header-buttons {
    position: relative;
    justify-content: right;
    right: 10px;
    display: flex;
    gap: 10px;
}

.header-btn {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .header-btn svg {
        width: 20px;
        height: 20px;
        fill: black;
    }

.wc-container {
    height: 85vh;
    width: 500px;
    border-radius: 20px;
    background: white;
    -webkit-box-shadow: 0px 5px 15px -5px rgba(87,87,87,1);
    -moz-box-shadow: 0px 5px 15px -5px rgba(87,87,87,1);
    box-shadow: 0px 5px 15px -5px rgba(87,87,87,1);
    box-sizing: border-box;
    /*display: flex !important;*/
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin: 0;

    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1), right 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /*opacity: 0;
    visibility: hidden;*/
    transform: scale(0.9);
}

    .wc-container.fullscreen {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        z-index: 9999;
        margin: 0 !important;
        padding: 0 !important;
    }

#webchat.fullscreen {
    height: calc(100vh - 80px) !important; 
    width: 100% !important;
    border-radius: 0 !important;
    padding: 0 10px !important; 
    box-sizing: border-box !important;
}

    .wc-container p {
        line-height: 150%;
        letter-spacing: 0;
        font-size: 13.5px;
        font-family: 'Open Sans', sans-serif;
    }

    .wc-container.chat.fullscreen {
        padding-bottom: 0px !important;
    }

.webchat__basic-transcript__filler,
.webchat__basic-transcript__transcript-terminator {
    flex: 0.1 0.1 0% !important;
}

.webchat__basic-transcript__scrollable {
    height: 100% !important;
    overflow-y: auto !important;
}

.wc-header {
    width: 100vw;
    max-width: 100%;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    font-size: 15px;
    padding: 10px;
    box-sizing: border-box;
    background: linear-gradient(to right, #772025 0%, #EA2227 100%);
    color: white;
    z-index: 2;
    flex-shrink: 0 !important;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin 2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .wc-header img {
        max-width: 28%;
        margin: 40px 0 10px 0;
        display: block;
        position: relative;
        left: 50%;
        transition: max-width 0.5s cubic-bezier(0.2, 0, 0.2, 1), margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%); /* Center using transform */
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .wc-header.fullscreen {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 10px 20px !important;
    }

        .wc-header.fullscreen img {
            max-width: 20%;
            margin-top: 0px;
        }

        .wc-header.fullscreen .title {
            margin-left: 10px;
            margin-bottom: 10px;
        }

        .wc-header.fullscreen .subtitle {
            font-size: 14px;
            margin-left: 10px;
            margin-bottom: 10px;
        }

    .wc-header.compressed {
        padding: 10px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .wc-header.compressed img {
            max-width: 17%;
            margin: 0 10px 0 10px;
            left: 0;
            transform: translateX(0);
        }
        .wc-header.fullscreen.compressed img {
            max-width: 12%;
            margin: 0 10px 0 10px;
        }

    .wc-header.compressed .title {
        font-size: 19px;
        margin: 20px 0 10px 10px;
    }

        .wc-header.compressed .subtitle {
            font-size: 14px;
            margin-left: 10px;
        }

        .wc-header.compressed .beta {
            display: none;
        }

    .wc-header,
    .wc-header img,
    .wc-header .title,
    .wc-header .subtitle {
        will-change: transform, margin, padding, font-size, max-width;
    }

.wc-container.chat .wc-header {
    position: relative;
    left: 0;
    top: 0;
    display: block;
    align-items: center;
}

.wc-container.intro {
    text-align: center;
    height: auto;
    min-height: 290px;
}

    .wc-container.intro .wc-header img {
        width: 80px;
        max-width: 100%;
        position: absolute;
        top: -40px;
        left: calc(57% - 40px);
        background: radial-gradient(circle, rgb(160, 27, 30) 40%, rgba(255,255,255,0) 50%);
        height: 60px;
        border-radius: 45px;
    }

    .wc-container.intro .wc-header > div:first-child {
        height: 50px;
    }

    .wc-container.intro .wc-header > div {
        max-width: 250px;
        margin: auto;
    }

    .wc-container.intro .subtitle {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .wc-container.intro .title {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .wc-container.intro p {
        font-size: 13.5px;
        line-height: 160%;
        margin: 1rem 0;
    }

    .wc-container.intro > .button {
        margin-top: 25px;
        padding: .5rem 1rem !important;
        font-size: .7rem !important;
    } 

.wc-header .title {
    font-weight: bold;
    margin-bottom: 10px;
}

.wc-header .subtitle {
    font-size: 13.5px;
}

.wc-header .beta {
    position: absolute;
    right: 9px;
    bottom: 6px;
    font-size: 12px;
}

.inputTooltip {
    display: inline-block;
    cursor: pointer;
    font-weight: 400;
    border: 1px solid;
    border-radius: 50%;
    background-color: transparent;
    text-align: center;
    letter-spacing: 0;
    text-transform: lowercase !important;
    outline: 0;
    width: 20px;
    height: 20px;
    font-size: 11px;
    line-height: 20px;
}

    .inputTooltip:hover {
        background: white;
        color: rgb(64,64,65)
    }

.wc-btn {
    font-size: 30px;
    position: absolute;
    color: white;
    font-weight: 100;
    right: -10px;
    bottom: -90px;
    width: 80px;
    height: 80px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .wc-btn .bg {
        background: radial-gradient(circle, rgb(160, 27, 30) 40%, rgba(255,255,255,0) 60%);
        transform: scale(1);
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        z-index: 1;
        transition: all 1s ease-in-out;
    }

    .wc-btn.long .bg {
        transition: all 2s ease-in-out;
    }

    .wc-btn.animate .bg {
        transform: scale(1.1);
    }

    .wc-btn.animate2 .bg {
        transform: scale(1.3);
    }

    .wc-btn img {
        max-width: 100%;
        position: relative;
        z-index: 2;
    }

        .wc-btn img.open-control {
            bottom: 100px;
            right: 20px;
            display: block;
            animation: pulse 2s infinite;
            border: 1px solid #FBBFA5;
            border-radius: 40px;
            transition: border 0.3s, box-shadow 0.3s;
        }

@keyframes pulse {
    0% {
        transform: scale(1);
        border-color: transparent;
        box-shadow: none;
    }

    50% {
        transform: scale(1.1);
        border-color: red;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    }

    100% {
        transform: scale(1);
        border-color: transparent;
        box-shadow: none;
    }
}

.wc-btn img.close-control {
    display: none;
}

.webchat__basic-transcript {
    flex: 1;
    overflow: hidden;
}
#webchat {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    height: 67% !important;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), width 5s cubic-bezier(0.4, 0, 0.2, 1);
}
    #webchat.compressed {
        height: 72% !important;
    }

    #webchat.fullscreen {
        height: calc(100vh - 80px) !important; /* Oduzmi visinu headera */
        width: 100% !important;
        border-radius: 0 !important;
    }

    #webchat p {
        line-height: 150%;
        font-size: 13.5px;
    }

    #webchat .webchat__send-box__main {
        border-radius: 30px;
    }

        #webchat .webchat__send-box__main form.webchat__send-box-text-box {
            margin: 0;
            padding: 12px;
        }

    #webchat .webchat__send-box__button {
        border-radius: 50%;
        background: #C62828;
        background: linear-gradient(93.81deg, #E53935 20%, #8E0000 100%);
        text-align: center;
        line-height: 100%;
        height: 40px;
    }

        #webchat .webchat__send-box__button:hover .webchat__icon-button__shade {
            background: transparent;
        }

    #webchat .webchat__upload-button {
        background: white;
    }

        #webchat .webchat__upload-button svg {
            fill: #4B4B4B;
        }

    #webchat .webchat__send-box__button svg {
        width: 25px;
        height: 25px;
    }

    #webchat .webchat__bubble__content p.plain,
    #webchat .webchat__row.message .markdown {
        padding-left: 20px;
        padding-right: 20px;
    }

    #webchat .react-film__flipper__body {
        -webkit-box-shadow: 1px 4px 10px -4px rgba(87,87,87,1);
        -moz-box-shadow: 1px 4px 10px -4px rgba(87,87,87,1);
        box-shadow: 1px 4px 10px -4px rgba(87,87,87,1);
        font-size: 20px;
    }

    #webchat .webchat__-actions__carousel .react-film__flipper__body {
        font-size: 15px;
    }

    #webchat .react-film__filmstrip__item {
        margin-bottom: 0;
    }

.ac-container {
    padding: 0 !important;
}
/* INFORMACIJSKI DUGMIĆI - SIVI (default za sve dugmiće) */
#webchat .ac-pushButton.style-default,
#webchat .webchat__suggested-action__button {
    background: #F2F2F2;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    color: #4D4D4D;
    height: 45px;
    font-size: 13px;
    font-weight: 500;
    width: 65%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    justify-content: left !important;
    margin-left: 4px;
    bottom: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    #webchat .ac-pushButton.style-default:hover,
    #webchat .webchat__suggested-action__button:hover {
        background: #E0E0E0;
        border-color: #003DA5;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 61, 165, 0.15);
    }

    #webchat .ac-pushButton.style-default:active,
    #webchat .webchat__suggested-action__button:active,
    #webchat .ac-pushButton.style-default:focus,
    #webchat .webchat__suggested-action__button:focus {
        background: #CCCCCC;
        border-color: #003DA5;
        transform: translateY(0);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    #webchat .ac-pushButton.style-default div {
        overflow: unset !important;
        text-overflow: unset !important;
        white-space: normal !important;
    }

/* AKCIJSKI DUGMIĆI - CRVENI (po tekstu dugmića) */
#webchat .ac-pushButton[title*="Naroči kurilno olje"],
#webchat .ac-pushButton[title*="Preklopi na Petrol"],
#webchat .ac-pushButton[title*="Oddaj števčno"],
#webchat .ac-pushButton[title*="Unovči Zlate"],
#webchat .ac-pushButton[title*="E-mobilnost"],
#webchat .ac-pushButton[title*="Preveri limit"],
#webchat .ac-pushButton[title*="Klepetaj z osebo"] {
    background: #E30613 !important;
    background-color: #E30613 !important;
    color: white !important;
    border: none !important;
    border-color: transparent !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(227, 6, 19, 0.15) !important;
}

    #webchat .ac-pushButton[title*="Naroči kurilno olje"]:hover,
    #webchat .ac-pushButton[title*="Preklopi na Petrol"]:hover,
    #webchat .ac-pushButton[title*="Oddaj števčno"]:hover,
    #webchat .ac-pushButton[title*="Unovči Zlate"]:hover,
    #webchat .ac-pushButton[title*="E-mobilnost"]:hover,
    #webchat .ac-pushButton[title*="Preveri limit"]:hover,
    #webchat .ac-pushButton[title*="Klepetaj z osebo"]:hover {
        background: #C1050F !important;
        background-color: #C1050F !important;
        box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3) !important;
        transform: translateY(-1px) !important;
    }

    #webchat .ac-pushButton[title*="Naroči kurilno olje"]:active,
    #webchat .ac-pushButton[title*="Naroči kurilno olje"]:focus,
    #webchat .ac-pushButton[title*="Preklopi na Petrol"]:active,
    #webchat .ac-pushButton[title*="Preklopi na Petrol"]:focus,
    #webchat .ac-pushButton[title*="Oddaj števčno"]:active,
    #webchat .ac-pushButton[title*="Oddaj števčno"]:focus,
    #webchat .ac-pushButton[title*="Unovči Zlate"]:active,
    #webchat .ac-pushButton[title*="Unovči Zlate"]:focus,
    #webchat .ac-pushButton[title*="E-mobilnost"]:active,
    #webchat .ac-pushButton[title*="E-mobilnost"]:focus,
    #webchat .ac-pushButton[title*="Preveri limit"]:active,
    #webchat .ac-pushButton[title*="Preveri limit"]:focus,
    #webchat .ac-pushButton[title*="Klepetaj z osebo"]:active,
    #webchat .ac-pushButton[title*="Klepetaj z osebo"]:focus {
        background: #A3040D !important;
        background-color: #A3040D !important;
        color: white !important;
        transform: translateY(0) !important;
        box-shadow: 0 1px 4px rgba(163, 4, 13, 0.4) !important;
    }

/* DODATNI SELEKTORI ZA ARIA-LABEL (fallback) */
#webchat .ac-pushButton[aria-label*="Naroči kurilno olje"],
#webchat .ac-pushButton[aria-label*="Preklopi na Petrol"],
#webchat .ac-pushButton[aria-label*="Oddaj števčno"],
#webchat .ac-pushButton[aria-label*="Unovči Zlate"],
#webchat .ac-pushButton[aria-label*="E-mobilnost"],
#webchat .ac-pushButton[aria-label*="Preveri limit"],
#webchat .ac-pushButton[aria-label*="Klepetaj z osebo"] {
    background: #E30613 !important;
    color: white !important;
    border: none !important;
}

    #webchat .ac-pushButton[aria-label*="Naroči kurilno olje"]:hover,
    #webchat .ac-pushButton[aria-label*="Preklopi na Petrol"]:hover,
    #webchat .ac-pushButton[aria-label*="Oddaj števčno"]:hover,
    #webchat .ac-pushButton[aria-label*="Unovči Zlate"]:hover,
    #webchat .ac-pushButton[aria-label*="E-mobilnost"]:hover,
    #webchat .ac-pushButton[aria-label*="Preveri limit"]:hover,
    #webchat .ac-pushButton[aria-label*="Klepetaj z osebo"]:hover {
        background: #C1050F !important;
        box-shadow: 0 2px 8px rgba(227, 6, 19, 0.3) !important;
        transform: translateY(-1px) !important;
    }

    #webchat .ac-pushButton[aria-label*="Naroči kurilno olje"]:active,
    #webchat .ac-pushButton[aria-label*="Naroči kurilno olje"]:focus,
    #webchat .ac-pushButton[aria-label*="Preklopi na Petrol"]:active,
    #webchat .ac-pushButton[aria-label*="Preklopi na Petrol"]:focus,
    #webchat .ac-pushButton[aria-label*="Oddaj števčno"]:active,
    #webchat .ac-pushButton[aria-label*="Oddaj števčno"]:focus,
    #webchat .ac-pushButton[aria-label*="Unovči Zlate"]:active,
    #webchat .ac-pushButton[aria-label*="Unovči Zlate"]:focus,
    #webchat .ac-pushButton[aria-label*="E-mobilnost"]:active,
    #webchat .ac-pushButton[aria-label*="E-mobilnost"]:focus,
    #webchat .ac-pushButton[aria-label*="Preveri limit"]:active,
    #webchat .ac-pushButton[aria-label*="Preveri limit"]:focus,
    #webchat .ac-pushButton[aria-label*="Klepetaj z osebo"]:active,
    #webchat .ac-pushButton[aria-label*="Klepetaj z osebo"]:focus {
        background: #A3040D !important;
        color: white !important;
        transform: translateY(0) !important;
    }

#webchat .webchat__bubble__content ul {
    list-style-type: disc;
}

#webchat .webchat__send-box {
    position: relative !important;
    flex-shrink: 0; 
    padding: 10px !important;
    background: white;
    z-index: 1000; 
    width: 100% !important;
    box-sizing: border-box !important;
}

#webchat .webchat__suggested-actions__carousel {
    padding: 0 !important;
}

#webchat .webchat__suggested-actions {
    order: 2;
}

.webchat__suggested-actions__carousel ul li {
    padding-left: 0 !important;
}

.webchat__suggested-actions__carousel .react-film__flipper {
    display: none !important;
}

input.ac-input,
textarea.ac-input {
    border: 1px solid var(--input-border);
    border-radius: 25px;
    background: var(--input-bg);
    padding: 6px 18px 6px 14px;
    color: var(--input-color);
    font-size: 14px;
    line-height: 25px;
    outline: none !important;
}

    input.ac-input::placeholder,
    textarea.ac-input::placeholder {
        color: var(--input-placeholder-color);
        font-size: 14px;
    }

.ac-input label {
    margin-bottom: 0;
}

label.ac-richTextBlock {
    margin-left: 19px;
}

.ac-selectable {
    cursor: pointer;
}

.ac-adaptiveCard > .ac-container:not(:first-child) .ac-columnSet .ac-selectable,
.ac-adaptiveCard > .ac-container:not(:first-child).ac-selectable {
    background-color: var(--cardbutton-bg) !important;
    border-radius: 20px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    margin-bottom: 8px !important;
}

.ac-textBlock {
    color: var(--primary-color) !important;
}

.ac-adaptiveCard > .ac-container:not(:first-child) .ac-columnSet .ac-selectable:hover,
.ac-adaptiveCard > .ac-container:not(:first-child).ac-selectable:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

label.attacherLabel {
    background-color: #4C4C4C;
    color: white;
    border-color: #4C4C4C;
    transition: all 0.15s ease-in-out;
}

    label.attacherLabel:hover {
        background-color: #222222;
    }

.ac-container[style*="background-image"] {
    background-repeat: no-repeat !important;
}

@media (max-height: 600px) {
    .wc-container.chat {
        height: calc(100vh - 40px);
    }

    .wc-header {
        padding: 5px 10px;
    }

        .wc-header img {
            max-width: 30px;
        }
    #webchat{
        height: 68% !important;
    }
}


@media (max-width: 767px) {
    .wc-wrap {
        bottom: 10px; 
        right: 10px;
    }

    .wc-container {
        height: calc(100vh - 200px);
        max-height: none;
        position: relative;
    }

    .wc-btn {
        width: 60px;
        height: 60px;
        line-height: 40px;
        right: -8px;
        bottom: -70px;
    }

        .wc-btn.close-control {
            width: 40px;
            height: 40px;
            right: 3px;
            bottom: -46px;
        }

    .wc-container.chat .wc-header {
        padding-bottom: 17px;
    }

    .webchat__send-box-text-box__input {
        font-size: 16px !important;
    }
}

.button {
    border-radius: 25px;
    transition: all .15s ease-in-out;
    background: none;
    color: #4b4b4b;
    display: inline-block;
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 100%;
    position: relative;
    border: solid 1px;
}

    .button:hover:not(.btn-invert):not(.btn-link):not(.btn-red):not(.btn-gold):not(.btn-disabled):not([disabled]) {
        color: #fff;
        background: #222;
        text-decoration: none;
    }

    .button.btn-transparent.btn-transparent-inverse:hover:not([disabled]):not(.btn-disabled) {
        color: #4b4b4b !important;
        background: none !important;
    }

    .button.btn-small {
        font-size: 13px;
        letter-spacing: 4px;
        padding: .7rem 1.5rem;
    }

.webchat__send-box__main {
    -moz-box-align: stretch;
    align-items: stretch;
    background-color: white;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(190, 190, 190);
    min-height: 40px;
}

#pdfViewer {
    width: 65%;
    height: 0;
    margin-top: 80px;
    position: absolute;
    left: 5vw;
    top: -10vh;
    transition: all 1s;
    display: flex;
    flex-direction: column;
}

    #pdfViewer.show.fullscreen {
        left: 0;
        top: 0;
        margin-top: 40px;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        z-index: 9000;
    }

    #pdfViewer.show {
        top: 0;
        height: calc(100% - 80px);
    }

    #pdfViewer.mobile {
        z-index: 9000;
        width: 50vw;
        left: 50vw;
        height: calc(100% - 80px);
        margin-top: 80px;
    }

    #pdfViewer > .pdfIframe > iframe {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        border: none;
    }

.pdfIframe {
    height: 95%
}

.pdfToolbar {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: 20px;
}

    .pdfToolbar > p {
        margin: 0.5rem 0.5rem;
        cursor: pointer;
    }

.half {
    width: 50% !important;
}

.customLink {
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    color: brown;
    display: inline
}

.wc-header .beta {
    bottom: unset;
    cursor: pointer;
}

@media (max-width: 991px) {
    #pdfViewer {
        right: auto;
        left: 50%;
        width: 48%;
        bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .button.btn-transparent {
        margin-top: 0.7rem !important;
    }
}

.webchat__stacked-layout__message {
    max-width: 90% !important;
}

.wc-container.intro > .button {
    margin-top: 22px;
}

@media (prefers-color-scheme: dark) {
    .pdfToolbar > p > svg {
        fill: white;
    }

    .pdfToolbar {
        background: black;
    }
}

.ac-actionSet {
    background: white;
}

.ac-horizontal-separator {
    background: white;
}

.wc-container.chat {
    background: url('../img/backgroundWhite.png');
    background-size: cover;
    flex-direction: column !important;
    position: relative;
    /*display: none;*/
    /*opacity: 0;
    visibility: hidden;*/
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1), right 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .wc-container.chat.is-open {
       /* opacity: 1 !important;*/
        /*visibility: visible !important;*/
        transform: scale(1);
        display: flex !important
    }


    .wc-container.chat.is-opening {
        animation: chatOpen 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

@keyframes chatOpen {
    0% {
        opacity: 0;
        transform: translateY(400px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatClose {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(400px);
    }
}

.wc-container.chat.is-closing {
    /*opacity: 0;
    visibility: visible !important;*/
    animation: chatClose 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.wc-btn {
    transition: transform 0.3s ease;
}

    .wc-btn:hover {
        transform: scale(1.1);
    }

    .wc-btn.close-control {
        transform: rotate(180deg);
    }

#webchat > div:first-child {
    background: unset;
}

.webchat__bubble__content {
    border-width: 1px !important;
    border: 0 !important;
}

[role="complementary"] {
    background: unset !important;
}

.linkNotif {
    font-size: 11px;
    font-style: italic;
}

#webchat li > p, #webchat ul {
    line-height: 15px !important;
}

/* ===== ENHANCED PDF VIEWER STYLES ===== */

/* PDF Viewer Modal */
#pdfViewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #pdfViewer.show {
        opacity: 1;
        visibility: visible;
    }

    #pdfViewer.fullscreen {
        z-index: 10001;
    }

/* PDF Container */
.pdfContainer {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* PDF Header */
.pdfHeader {
    background: #0d45a5;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 60px;
}

.pdfHeaderLeft {
    display: flex;
    flex-direction: column;
}

.pdfTitle {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.pageInfo {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* PDF Controls */
.pdfControls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

    .pdfControls button {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 36px;
        justify-content: center;
    }

        .pdfControls button:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .pdfControls button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

.closeBtn {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 18px !important;
}

.zoomLevel {
    min-width: 50px;
    text-align: center;
    font-size: 13px;
}

/* PDF Content Area */
.pdfContent {
    flex: 1;
    overflow: auto;
    background: #f8f9fa;
    position: relative;
    padding: 20px;
}

.pdfPage {
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 4px;
}

/* Loading and Error States */
.pdfLoading, .pdfError {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    color: #666;
}

.pdfError {
    color: #e74c3c;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

    .pdfError button {
        background: #0d45a5;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: background 0.2s;
    }

        .pdfError button:hover {
            background: #0a3d94;
        }

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d45a5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom Link Styling */
.customLink {
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    color: #0d45a5 !important;
    display: inline;
    transition: color 0.2s;
}

    .customLink:hover {
        color: #0a3d94 !important;
        text-decoration: none;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pdfContainer {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }

    .pdfHeader {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pdfHeaderLeft {
        align-items: center;
    }

    .pdfTitle {
        max-width: none;
        text-align: center;
        font-size: 16px;
    }

    .pdfControls {
        justify-content: center;
        gap: 6px;
    }

        .pdfControls button {
            padding: 8px 10px;
            font-size: 12px;
            min-width: 32px;
        }

    .pdfContent {
        padding: 10px;
    }
}

/* Half screen mode for mobile */
.half {
    width: 50% !important;
}

/* ===== LEGACY PDF VIEWER COMPATIBILITY ===== */
/* Zadržava postojeći CSS za stari viewer kao fallback */
.pdfIframe {
    height: 95%;
}

    .pdfIframe > iframe {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        border: none;
    }

.pdfToolbar {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: 20px;
}

    .pdfToolbar > p {
        margin: 0.5rem 0.5rem;
        cursor: pointer;
    }

/* Prefers dark mode support */
@media (prefers-color-scheme: dark) {
    .pdfToolbar > p > svg {
        fill: white;
    }

    .pdfToolbar {
        background: black;
    }
}

/* ===== END PDF VIEWER STYLES ===== */
#webchat .webchat__send-box-text-box__input:not([placeholder="Vnesite svoje vprašanje tukaj …"])::placeholder {
    opacity: 0 !important;
    transition: opacity 0.1s ease !important;
}

/* Prikaži placeholder kada je pravi tekst */
#webchat .webchat__send-box-text-box__input[placeholder="Vnesite svoje vprašanje tukaj …"]::placeholder {
    opacity: 1 !important;
    transition: opacity 0.1s ease !important;
}


/* CSS za WebChat suggested action dugmad - dodaj ovo u appendStyle() */
.webchat__suggested-action.webchat__suggested-actions__button,
button.webchat__suggested-action {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
}

.webchat__suggested-action__text,
.webchat__suggested-actions__button-text {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Confirmation Popup Styles */
.confirmation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

    .confirmation-overlay.show {
        display: flex;
    }

.confirmation-popup {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirmation-popup h3 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: #333;
}

.confirmation-popup p {
    margin: 0 0 25px 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirmation-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.confirmation-btn-yes {
    background-color: #d32f2f;
    color: white;
}

    .confirmation-btn-yes:hover {
        background-color: #b71c1c;
    }

.confirmation-btn-no {
    background-color: #f5f5f5;
    color: #333;
}

    .confirmation-btn-no:hover {
        background-color: #e0e0e0;
    }

/* DIREKTNO CILJANJE POPOVER ELEMENTA */
span.inputTooltip.small.popover-white.popover-shadow {
    max-width: 350px !important;
    max-height: 400px !important;
}

/* Ako koristi Tippy.js */
.tippy-box[data-theme~="light"] {
    max-width: 350px !important;
    max-height: 400px !important;
}

.tippy-content {
    max-height: 300px !important;
    overflow-y: auto !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding: 15px !important;
}

    /* Stilizuj scrollbar za tippy */
    .tippy-content::-webkit-scrollbar {
        width: 8px !important;
    }

    .tippy-content::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 10px !important;
    }

    .tippy-content::-webkit-scrollbar-thumb {
        background: #888 !important;
        border-radius: 10px !important;
    }

        .tippy-content::-webkit-scrollbar-thumb:hover {
            background: #555 !important;
        }


