/* Chat Icon */
.auction-chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.auction-chat-input-container {
    display: none; /* Initially hidden */
    margin-top: 10px;
}

.auction-chat-icon:hover {
    background: #005177;
}

.auction-chat-icon svg {
    width: 24px;
    height: 24px;
}

/* Chat Popup */
.auction-chat-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 380px;
    background: #f4f6f8;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', sans-serif;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}

.auction-chat-popup-header {
    background: #000;
    color: #c69d4d;
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auction-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.auction-chat-close:hover {
    color: #ccc;
}

.auction-chat-messages {
    flex: 1;
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
}

.auction-chat-message {
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
    word-wrap: break-word;
}

.auction-chat-container .auction-chat-message.sent {
    margin-left: 20%;
    margin-top: 20px;
    margin-right: 10px;
    text-align: right; 
    padding-right:20px;
    
}

.auction-chat-container .auction-chat-message.received {
    margin-right: 20%;
    margin-top: 20px;
    margin-left: 10px;
    padding-left:20px;
}

.auction-chat-message.sent {
    background-color: #fff;
    color: #000;
    margin-left: 25px;
    text-transform:capitalize;
}

.auction-chat-message.received {
   background-color: #fff;
    color: #000;
    margin-right: 25px;
    text-transform:capitalize;
}

/*.auction-chat-input {
    width: 100%;
    height: 60px;
    padding: 10px;
    border: none;
    border-top: 1px solid #ccc;
    resize: none;
}*/

.txt_with_btn{
    position: relative;

    display: flex;
    gap: 5px;
    align-items: flex-end;
}

.chat-delete {
    color: #ff0000 !important;
    margin-left: 10px;
}
.chat-delete:hover {
    text-decoration: underline;
}

/*.auction-chat-send {
    background: #0073aa;
    color: white;
    border: none;
    padding: 14px;
    cursor: pointer;
    display: inline-block;
    position: absolute;
    right: 0px;
    top: 0px;
}*/

.auction-chat-send:hover {
    background: #fff;
}



/* Shortcode Chat Interface */
#auction-chat-container {
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
}

#auction-chat-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

#auction-chat-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#auction-chat-list a {
    text-decoration: none;
    color: #0073aa;
}

#auction-chat-list a:hover {
    color: #005177;
}

#auction-chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    background: #f4f6f8;
}
.auction-chat-container #auction-chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    background: #f4f6f8;
    border-radius: 20px;
}

.auction-chat-container #auction-chat-input {
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
    padding: 10px;
}

#auction-chat-send {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#auction-chat-send:hover {
    background: #000;
    color: #fff;
}


.auction-chat-icon {
    cursor: pointer;
    margin: 10px;
    display: none;
}



.auction-chat-close {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
}

.auction-chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;

    position: relative;
    background: #f9f9f9;
}

.auction-chat-message {
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
}



.auction-chat-input {
/*    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
*/
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
}

button.auction-chat-send {
    padding: 8px 12px;
    background: #c69d4d;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
}
.auction-chat-error {
    color: #ff0000;
    background: #ffe6e6;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 3px;
    position: relative;
    z-index: 1000;
    display: block;
}

.chatgpt-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    background: #f4f6f8;
    max-height: 330px;
}

.auction-chat-popup-header span {
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .auction-chat-popup {
        width: 95%;
    }
}