/* DISCOUNT TILES CHATBOT CSS */

#dt-ai-chat,
#dt-ai-chat *{
    box-sizing:border-box;
    font-family:Inter, Arial, sans-serif;
}

#dt-ai-chat{
    position:fixed !important;
    right:22px !important;
    bottom:22px !important;
    z-index:999999999 !important;
}

#dt-chat-bubble{
    width:74px;
    height:74px;
    border:0;
    border-radius:50%;
    overflow:hidden;
    background:#fff;
    padding:4px;
    cursor:pointer;
    box-shadow:0 18px 45px rgba(0,0,0,.22);
}

#dt-chat-bubble img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

#dt-chat-panel{
    width:400px;
    max-width:calc(100vw - 24px);
    height:650px;
    max-height:calc(100vh - 44px);
    display:none;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    border-radius:28px;
    box-shadow:0 30px 90px rgba(0,0,0,.22);
}

#dt-ai-chat.dt-chat-open #dt-chat-panel{
    display:flex !important;
}

#dt-ai-chat.dt-chat-open #dt-chat-bubble{
    display:none !important;
}

.dt-chat-head{
    min-height:86px;
    padding:16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#222;
    color:#fff;
}

.dt-chat-head-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.dt-chat-head-left img{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:cover;
}

.dt-chat-head strong{
    display:block;
    font-size:20px;
    line-height:1.1;
}

.dt-chat-head small{
    display:block;
    font-size:12px;
    opacity:.8;
}

#dt-chat-close{
    width:40px;
    height:40px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

#dt-chat-body{
    flex:1;
    overflow-y:auto;
    padding:14px;
    background:#f4f4f5;
}

.dt-msg{
    margin-bottom:14px;
}

.dt-msg.user{
    text-align:right;
}

.dt-msg-bubble{
    display:inline-block;
    max-width:94%;
    padding:12px 15px;
    border-radius:20px;
    line-height:1.5;
    font-size:14px;
    background:#fff;
    color:#111;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.dt-msg.user .dt-msg-bubble{
    background:#111;
    color:#fff;
}

.dt-suggest-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:10px 0 16px;
}

.dt-suggest-btn{
    border:1px solid #e5e7eb;
    background:#fff;
    color:#111;
    padding:10px 14px;
    border-radius:999px;
    cursor:pointer;
    font-size:13px;
    font-weight:700;
}

.dt-suggest-btn:hover{
    background:#111;
    color:#fff;
}

/* PRODUCT CARDS */

.dt-products{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.dt-product-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.dt-product-img{
    width:100% !important;
    height:130px !important;
    object-fit:contain !important;
    background:#fafafa;
    border-radius:12px;
    padding:8px;
    margin-bottom:10px;
}

.dt-product-info{
    padding:0;
}

.dt-product-info strong{
    display:block;
    font-size:14px;
    line-height:1.35;
    margin-bottom:4px;
}

.dt-product-info span{
    display:block;
    font-size:13px;
    color:#555;
    margin-bottom:2px;
}

/* IMPORTANT BUTTON FIX */

.dt-product-actions{
    display:grid !important;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin-top:10px;
}

.dt-view-btn,
.dt-calc-btn,
.dt-sample-btn{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:38px;
    padding:0 8px;
    border-radius:10px;
    font-size:12px;
    font-weight:800;
    line-height:1.1;
    text-align:center;
    text-decoration:none !important;
    border:0 !important;
    cursor:pointer;
    white-space:normal;
}

.dt-view-btn{
    background:#111 !important;
    color:#fff !important;
}

.dt-calc-btn{
    background:#e5e7eb !important;
    color:#111 !important;
}

.dt-sample-btn{
    background:#facc15 !important;
    color:#111 !important;
}

.dt-loading{
    color:#666;
    font-size:13px;
}

/* INPUT */

#dt-chat-form{
    display:flex;
    gap:10px;
    padding:12px;
    background:#fff;
    border-top:1px solid #e5e7eb;
}

#dt-chat-input{
    flex:1;
    height:52px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:0 16px;
    font-size:15px;
    outline:0;
}

#dt-chat-form button{
    height:52px;
    border:0;
    background:#111;
    color:#fff;
    border-radius:18px;
    padding:0 22px;
    font-weight:800;
    cursor:pointer;
}

/* MOBILE */

@media(max-width:640px){
    #dt-ai-chat{
        right:8px !important;
        left:8px !important;
        bottom:8px !important;
    }

    #dt-chat-panel{
        width:100% !important;
        max-width:100% !important;
        height:85vh !important;
        max-height:85vh !important;
        border-radius:24px !important;
    }

    .dt-chat-head{
        min-height:76px;
        padding:14px;
    }

    .dt-chat-head strong{
        font-size:17px;
    }

    .dt-chat-head-left img{
        width:40px;
        height:40px;
    }

    .dt-product-img{
        height:120px !important;
    }

    .dt-product-actions{
        grid-template-columns:1fr 1fr 1fr;
        gap:6px;
    }

    .dt-view-btn,
    .dt-calc-btn,
    .dt-sample-btn{
        font-size:11px;
        min-height:36px;
        padding:0 5px;
    }

    #dt-chat-form{
        padding:10px;
        gap:8px;
    }

    #dt-chat-input{
        height:48px;
        min-width:0;
    }

    #dt-chat-form button{
        height:48px;
        padding:0 14px;
    }
}

.dt-chat-calc-box{
    margin-top:8px;
}

.dt-chat-calc-box h4{
    margin:0 0 12px;
    font-size:18px;
}

.dt-chat-calc-box label{
    display:block;
    margin:10px 0 5px;
    font-size:13px;
    font-weight:700;
}

.dt-chat-calc-box input,
.dt-chat-calc-box select{
    width:100%;
    height:42px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    padding:0 12px;
    font-size:14px;
}

.dt-or-divider{
    text-align:center;
    margin:12px 0;
    font-weight:800;
    color:#555;
}

.dt-chat-submit-calc{
    width:100%;
    height:46px;
    margin-top:14px;
    border:0;
    border-radius:12px;
    background:#111;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}

.dt-chat-sample-box{
    margin-top:8px;
}

.dt-chat-sample-box strong{
    display:block;
    font-size:16px;
    margin-bottom:4px;
}

.dt-chat-sample-box input,
.dt-chat-sample-box textarea,
.dt-chat-sample-box select{
    width:100%;
    min-height:42px;
    margin:6px 0;
    padding:10px 12px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    font-size:14px;
    background:#fff;
}

.dt-chat-sample-box textarea{
    min-height:80px;
    resize:vertical;
}

.dt-chat-submit-sample{
    width:100%;
    height:46px;
    margin-top:10px;
    border:0;
    border-radius:12px;
    background:#111;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}




#dt-chat-input{
    pointer-events:auto !important;
    user-select:text !important;
    -webkit-user-select:text !important;
    cursor:text !important;
    z-index:999999999 !important;
    position:relative !important;
}

#dt-chat-form{
    pointer-events:auto !important;
    z-index:999999999 !important;
    position:relative !important;
}