.chat-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 450px;
    max-width: 95vw;
    max-height: 80vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.18), 0 2px 8px rgba(118, 75, 162, 0.10);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border: 2px solid #764ba2;
    overflow: hidden;
    transition: box-shadow 0.3s, width 0.3s, height 0.3s;
}

.chat-widget ul {
    padding-left: 10px;
}

.chat-widget.minimized {
    display: none !important;
}

.chat-widget.dragging {
    user-select: none;
    pointer-events: none;
}

.chat-widget.dragging .drag-handle {
    cursor: grabbing;
}

.chat-header {
    background: linear-gradient(90deg, #263d88 0%, #703684 33%, #863282 66%, #a62980 100%) !important;
    color: #fff;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Changed from space-between to flex-start */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    gap: 10px;
}

.drag-handle {
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: rgba(255, 255, 255, 0.8);
}

.drag-handle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.chat-title {
    display: flex;
    text-align: left;
    gap: 8px;
    font-size: 1.1rem;
    margin-right: auto;
    /* Add margin-right: auto to push controls to the right */
}

.chat-controls {
    display: flex;
    gap: 6px;
}

.chat-btn, .minimize-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #764ba2 !important;
    border: 0px !important;
    border-radius: 5px !important;
    padding: 10px 10px 10px 10px !important;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.20);
}

.chat-btn:hover, .minimize-btn:hover {
    background-color: #764ba2 !important;
    color: #fff !important;
}

/* Update chat content to expand to fill the space */
.chat-content {
    flex: 1 1 auto;
    background: #f9fafd !important;
    padding: 14px 10px 10px 10px !important;
    overflow-y: auto;
}

#webchat {
    height: 620px;
    /* Increased height since voice control is removed */
    min-height: 200px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 14px !important;
    font-family: 'Montserrat', Arial, sans-serif !important;
}

.chat-minimized-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 75px;
    /* Increased from 60px */
    height: 75px;
    /* Increased from 60px */
    background: #273c88 !important;
    /* changed from red to white */
    color: white;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s, transform 0.3s !important;
    padding: 0px !important;
}

.chat-minimized-btn:hover {
    background: #667eea;
    transform: scale(1.05);
}

.tab-text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

/* Hero section needs relative positioning for the absolute tab */
.hero {
    position: relative;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tab-text {
        font-size: 0.6rem;
    }
}


@media (max-width: 768px) {
    .chat-widget {
    right: 10px;
    bottom: 10px;
    width: 400px;
    max-width: 80vw;
    max-height: 60vh;}
}

@media (max-width: 600px) {
    .tts-settings-panel {
        width: 240px;
        max-width: 85vw;
    }

    .tab-text {
        font-size: 0.55rem;
    }
}

.actionbutton {
    margin-right: 10px;
    margin-top: 3px;
    margin-bottom: 3px;
    border: 1px solid;
    border-color: rgb(82, 82, 82) !important;
    background-color: transparent !important;
    color: white;
    padding: 3px;
    cursor: pointer;
    font-size: 14px;
}

.webchat__send-box-text-box__input {
    background-color: #ffffff !important ;
      border: none !important;
    font-size: 14px !important;
}

.webchat__send-box__button {
  background: none !important;
  color: #2596be !important;
border: none !important;
}

.webchat__send-box__main {
    border-radius: 6px !important;
}

.ac-pushButton[aria-pressed="true"] {
    background-color: #263d88 !important;  /* Blue background */
    border-color: #263d88 !important;      /* Blue border */
              /* White text */
}