/*

01. Ball content

02. wp Chat bot Message container

    -A Link Item

    -B Loading

03. wp Chat bot Message Editor

04. wp Chat bottom Tab Nav Editor
05. Tab Feature Product

06. Tab Cart

07. Product Details

*/

/*********************

01. ball content wrapper

**********************/
/* ========================
   WP-Bot Chat CSS - ILYDANCE
   Colori: Bianco, Nero, Arancione
   ======================== */

/*********************
01. Ball content
**********************/
.wp-chatbot-board-container {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
}
.wp-chatbot-board-container:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -26px;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-top: 30px solid #ffffff;
}
.wp-chatbot-header h3 {
    color: #333;
    font-size: 18px !important;
    letter-spacing: 1px;
}
ul.wp-chatbot-messages-container li {
    font-size: 14px;
}
ul.wp-chatbot-messages-container > li.wp-chatbot-msg {
    padding-left: 50px;
}
ul.wp-chatbot-messages-container > li.wp-chat-user-msg {
    padding-right: 50px;
}
ul li .wp-chatbot-avatar {
    margin-top: 0 !important;
}
ul.wp-chatbot-messages-container > li .wp-chatbot-avatar,
.wp-chatbot-agent-profile .wp-chatbot-widget-avatar {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
}
ul.wp-chatbot-messages-container > li.wp-chatbot-msg .wp-chatbot-avatar,
.wp-chatbot-agent-profile .wp-chatbot-widget-avatar {
    left: 0;
}
ul.wp-chatbot-messages-container > li.wp-chat-user-msg .wp-chatbot-avatar {
    right: 0;
}
ul.wp-chatbot-messages-container > li > .wp-chatbot-paragraph,
.wp-chatbot-agent-profile .wp-chatbot-bubble {
    padding: 8px 15px;
    max-width: 90%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    line-height: 150%;
    display: table;
}
ul.wp-chatbot-messages-container > li.wp-chat-user-msg .wp-chatbot-paragraph {
    text-align: right;
    float: right;
    background-color: #333;
    color: #fff;
    margin-left: 10%;
    border-radius: 10px 10px 0 10px;
}
ul.wp-chatbot-messages-container > li.wp-chatbot-msg .wp-chatbot-paragraph,
.wp-chatbot-agent-profile .wp-chatbot-bubble {
    background-color: #ff7f00;
    color: #fff;
    border-radius: 0 10px 10px 10px;
    width: 100%;
}
ul.wp-chatbot-messages-container li:first-child.wp-chatbot-msg .wp-chatbot-paragraph {
    background-color: rgba(255,255,255,0.3);
    color: #333;
}
span.qcld-chatbot-product-category,
span.qcld-chatbot-support-items,
span.qcld-chatbot-wildcard,
span.qcld-chatbot-suggest-email,
span.qcld-chatbot-reset-btn,
#wp-chatbot-loadmore,
.wp-chatbot-loadmore,
span.qcld-chatbot-suggest-phone {
    color: #fff;
    background: #ff7f00;
    border: 1px solid #ffffff;
    display: inline-block;
    margin: 3px auto;
    padding: 6px 11px;
}
span.qcld-chatbot-product-category:hover,
span.qcld-chatbot-support-items:hover,
span.qcld-chatbot-wildcard:hover,
span.qcld-chatbot-suggest-email:hover,
span.qcld-chatbot-reset-btn:hover,
#wp-chatbot-loadmore:hover,
.wp-chatbot-loadmore:hover {
    transform: scale(1.05);
}
ul.wp-chatbot-messages-container > li .wp-chatbot-paragraph img.wp-chatbot-comment-loader {
    background-color: #fff;
    padding: 1px;
    border-radius: 5px;
    margin: 0 auto;
    display: block;
}
.wp-chatbot-footer {
    padding: 0;
}
.wp-chatbot-tab-nav ul li a[data-option="recent"] { background-position: -7px -47px; }
.wp-chatbot-tab-nav ul li a[data-option="cart"] { background-position: -47px -47px; }
.wp-chatbot-tab-nav ul li a[data-option="chat"] { background-position: -82px -42px; }
.wp-chatbot-tab-nav ul li a[data-option="help"] { background-position: -129px -47px; }
.wp-chatbot-tab-nav ul li a[data-option="chat"]:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 3px solid #ff7f00;
    left: -9px;
    right: -9px;
    bottom: -9px;
    top: -9px;
}
.wp-chatbot-tab-nav ul li.wp-chatbot-operation-active a:before,
.wp-chatbot-tab-nav ul li:hover a:before {
    border: 2px solid #ff7f00;
}
.wp-chatbot-agent-profile {
    position: relative;
    padding-left: 50px;
    display: block;
    clear: both;
    line-height: 150%;
    min-height: 50px;
    margin: 0 0 10px 0;
}
.wp-chatbot-widget-title {
    color: #333;
    text-align: center;
    padding-bottom: 10px;
}
.wp-chatbot-cart-header { background-color: #f5f5f5; }
.wp-chatbot-cart-single {
    background-color: rgba(245, 245, 245, 0.1);
    border-bottom: 1px solid #ddd;
}
.wp-chatbot-cart-single:nth-child(2n+1) { background-color: rgba(245, 245, 245, 0.5); }
.wp-chatbot-cart-footer div a {
    text-decoration: none;
    background: #ff7f00;
    color: #fff;
}
.wp-chatbot-cart-footer div a:hover { background: #e76e00; }
.wp-chatbot-product-details { box-shadow: 0 0 10px #ccc; background-color: #fff; }
.wp-chatbot-product-cart-button input[type="button"] {
    border: 1px solid #e4e5e7;
    background: #ff7f00;
    color: #fff;
    box-shadow: 0 0 2px #999;
}
.wp-chatbot-product-cart-button input[type="button"]:hover {
    background: #e76e00;
    color: #fff;
}
.wp-chatbot-ball {
    background: #00FFFFFF !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.wp-chatbot-ball:hover { transform: scale(1.05); }
.wp-chatbot-editor-container {
    display: flex;
    align-items: center;
    padding: 5px;
}

/* Input messaggi */
.wp-chatbot-editor-container input {
    flex: 1;
    background-color: #fff;      /* sfondo bianco */
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    color: #000;                 /* testo in nero */
    font-weight: 600;            /* testo in grassetto */
    margin-right: 8px;
}
.wp-chatbot-editor-container input:focus {
    background-color: #fff !important;  /* rimane bianco anche selezionato */
    outline: none;                       /* rimuove contorno blu di default */
}

/* Placeholder in arancione scuro e grassetto */
.wp-chatbot-editor-container input::-webkit-input-placeholder { color: #cc6600 !important; font-weight: 700; }
.wp-chatbot-editor-container input::-moz-placeholder { color: #cc6600 !important; font-weight: 700; }
.wp-chatbot-editor-container input:-ms-input-placeholder { color: #cc6600 !important; font-weight: 700; }
.wp-chatbot-editor-container input::-ms-input-placeholder { color: #cc6600 !important; font-weight: 700; }
.wp-chatbot-editor-container input::placeholder { color: #cc6600 !important; font-weight: 700; }

/* Pulsante invio solo con freccia arancione */
.wp-chatbot-editor-container button {
    position: relative;
    background: #ff7f00 !important;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    color: transparent !important; /* rimuove completamente il testo */
    font-size: 0 !important;      /* nessuna dimensione del testo */
    padding: 0;
}

/* Freccia arancione scura */
.wp-chatbot-editor-container button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 45%; /* spostata leggermente a sinistra */
    width: 12px;
    height: 12px;
    border-top: 2px solid #e76e00;
    border-right: 2px solid #e76e00;
    transform: translate(-50%, -50%) rotate(45deg);
}

.wp-chatbot-editor-container button:hover {
    transform: scale(1.1);
}

.wp-chatbot-header-welcome-text, ul.wp-chatbot-messages-container li {
    font-family: 'Poppins', sans-serif;
}
.wp-chatbot-header-welcome-text { font-weight: 600; font-size: 16px; color: #333; }

/* Pulsante chiusura chat mobile più evidente */
@media screen and (max-width: 768px) {
    #wp-chatbot-desktop-close {
        display: block !important;
        width: 40px;
        height: 40px;
        font-size: 20px;
        color: #fff !important;
        background-color: #ff6600 !important; /* arancione evidente */
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        top: 25px !important;
        right: 10px !important;
        z-index: 9999;
    }

    #wp-chatbot-desktop-close:hover {
        background-color: #ff9900 !important;
        transform: scale(1.1);
    }
}
/* Testo sopra il pulsante della chat */
.wp-chatbot-ball::before {
    content: "ASSISTENTE ILYDANCE";   /* il testo da mostrare */
    position: absolute;
    bottom: 100%;                     /* posiziona sopra il cerchio */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;               /* distanza dal pulsante */
    background: #ff7f00;              /* sfondo arancione */
    color: #fff;                       /* testo bianco */
    font-weight: 600;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 9999;
    pointer-events: none;             /* non interferisce col click */
}
.wp-chatbot-board-container {
    top: 90px !important; /* leggermente più in alto rispetto a prima */
    bottom: auto !important;
    max-height: calc(100vh - 60px); /* lascia spazio alla chat completa */
    padding-bottom: 60px; /* spazio per pulsante e scritta “Assistente Ilydance” */
}
