/* Popup styling */
#chatbot-popup {
    display: none;  /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: 100%;
    min-height:70%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

.chatbot-header {
    background-color: #0073aa;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-footer {
    border-radius: 10px 10px 0 0;
    display: flex;
    position: absolute;
    bottom: 0;
    padding: 10px;
}

#chatbot-messages {
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 60px;
}

.chatbot-message {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
}

.user-message {
    background-color: #f1f1f1;
    text-align: right;
}

.bot-message {
    background-color: #e2f0d9;
    text-align: left;
}
.bot-message a {
    color: #cc0000 !important;
}

#chatbot-input {
    width: calc(100% - 60px);
    min-width: 280px;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#chatbot-send {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-width: 80px;
}

#chatbot-send:hover {
    background-color: #005d88;
}


#chatbot-open {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 999;
}

#chatbot-open:hover {
    background-color: #005d88;
}

.chatbot-delete-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.chatbot-close, .chatbot-delete {

    padding: 15px;
    border-radius: 15px;

}

.chatbot-close:hover, .chatbot-delete:hover {

    cursor: pointer;
    background-color: #cc0000;
    padding: 15px;
    border-radius: 15px;
}

.chatbot-delete-button img {
    display: block;
}

.chatbot-open-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

@media only screen and (max-width: 768px)  {
    #chatbot-popup {width: 300px;}
    #chatbot-input {
        width: calc(100% - 60px);
        min-width: unset !important;
    }
    .cue-card-image {
        height: 60px !important;
        width: unset !important; 
        max-height: unset  !important; 
        max-width: unset !important; 
        object-fit: cover;
        display: block;
        margin-bottom: 10px;
    }
    
}

.cue-card {
    background-color: #f1f1f1;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.cue-card:hover {
    background-color: #e1e1e1;
}

.cue-card-image {
    height: 60px ;
    width: 100px ;
    max-height: 60px ;
    max-width: 100px ;
    object-fit: cover; 
    display: block;
    margin-bottom: 10px;
}

.cue-card-content {
    display: flex;
    flex-direction: column;
}

.cue-card-text {
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.cue-card-link {
    margin-top: 5px;
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}

.cue-card-link:hover {
    text-decoration: underline;
}

#cue_card_image_preview img {
    margin-top: 10px;
}

#cue_card_link_preview a {
    display: inline-block;
    margin-top: 10px;
}

#link-picker-content ul {
    list-style: none;
    padding: 0;
}

#link-picker-content li {
    margin: 5px 0;
}

.cue-cards-container {
    width: 33%;
    display: -webkit-inline-box;
}

