.acp-msg.bot {
    width: fit-content;
    overflow: auto;
}

.acp-msg.bot table {
    margin-bottom: 0;
}

.acp-msg.bot table thead tr th {
    padding: 7px;
}

/* ----------------------------
   General widget container
---------------------------- */
#acp-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ----------------------------
   Chat toggle button
---------------------------- */
#acp-toggle {
    background-color: #0073aa;
    /* WordPress blue by default, can be branded */
    color: #fff;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#acp-toggle:hover {
    background-color: #005177;
}

/* ----------------------------
   Chat window
---------------------------- */
#acp-window {
    width: 372px;
    max-height: 372px;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: rgba(0, 18, 46, 0.16) 0px 8px 18px 0px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

/* Header */
#acp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0073aa;
    color: #fff;
    padding: 15px 24px;
}

#acp-header .acp-title {
    font-weight: bold;
    font-size: 24px;
}

#acp-header .acp-actions button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s ease;
	padding: .5rem;
}

button#acp-refresh, button#acp-minimize {
    vertical-align: middle;
}

.input-with-btn {
    display: flex;
    border: 1px solid #e2e8ef;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 12px 16px;
}

#acp-header .acp-actions button:hover {
    color: #ffdd57;
}

/* Messages container */
#acp-messages {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

/* Message styles */
.acp-msg {
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
}

/* User messages */
.acp-msg.user {
    background-color: #0073aa;
    color: #fff;
    align-self: flex-end;
}
.user-container{
    display: flex;
    justify-content: end;
}
/* Bot messages */
.acp-msg.bot {
    background-color: #e1e1e1;
    color: #333;
    align-self: flex-start;
}

/* Quick reply buttons */
.acp-quick-replies {
    margin-top: 6px;
}

.acp-quick-replies button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 6px 12px;
    margin: 3px 3px 0 0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.acp-quick-replies button:hover {
    background-color: #005177;
}

.acp-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid #eee;
}

#acp-window button {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
}

#acp-window .acp-suggestions button:hover {
    background: #005177;
}
/* Input area */
#acp-input-area {
    border-top: 1px solid #ddd;
    padding: 10px 24px;
    background-color: #fff;
}

#acp-input-area input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 14px;
    padding: 0;
    border-radius: 0;
}

#acp-input-area button svg, #acp-header .acp-actions button#acp-pause img {
    width: 20px;
    height: 20px;
}

#acp-input-area button {
    margin-left: 6px;
    padding: 0;
    background-color: transparent !important;
    border: none;
    border-radius: 30px;
    color: #0740f9 !important;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
	width:24px;
	height:24px;
}

#acp-header .acp-actions button#acp-minimize svg {
    fill: #fff;
}

#acp-header .acp-actions button#acp-refresh svg path {
    stroke: #fff;
}

/* Typing indicator */
#acp-typing {
    font-style: italic;
    opacity: 0.8;
}

/* Scrollbar styling for chat */
#acp-messages::-webkit-scrollbar {
    width: 6px;
}

#acp-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* ----------------------------
   Responsive adjustments
---------------------------- */
@media screen and (max-width: 480px) {
    #acp-window {
        width: 100%;
        right: 5%;
        bottom: 10px;
        max-height: 400px;
    }
	div#acp-chat-widget {
    right: 10px !important;
}
	#acp-header, #acp-messages, #acp-input-area {
    padding: 12px 16px;
}

#acp-header .acp-title {
    font-size: 20px;
}	
#acp-header .acp-actions button {
    padding: .5rem;
}
}