.tmschatgpt-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    width: 100%;
//    max-width: 450px;
    margin: auto;
    display: flex;
    flex-direction: column;
    position: relative;

    margin-bottom: -45px !important;

}

#tmschatgpt-box {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    height: 320px;
    overflow-y: auto;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

#tmschatgpt-box div {
    margin-bottom: 10px;
}

#tmschatgpt-box div strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

#tmschatgpt-box div:nth-child(even) {
    background-color: #f1f1f1;
    border-radius: 8px;
    padding: 6px 10px;
}

#tmschatgpt-input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    margin-right: 8px;
}

.tmschatgpt-container button {
    padding: 10px 16px;
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.tmschatgpt-container button:hover {
    background-color: #357ABD;
}

/* Expand/Collapse Icon Button */
#tmschatgpt-expand-btn {
	margin: 0 0 8px 8px;
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Wrapper default (compact mode) */
.tmschatgpt-wrapper {
    position: relative;
//    max-width: 480px;
//    margin: 60px auto 0;
    transition: all 0.3s ease;
}

/* Fullscreen mode: 85% width and height of screen */
.tmschatgpt-wrapper.fullscreen {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vw !important;
    height: 80vh !important;
    z-index: 9999;
    background: #ffffff;
    padding: 24px;
    overflow: auto;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Full width/height inner layout */
.tmschatgpt-wrapper.fullscreen .tmschatgpt-container {
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Scaled chat area inside fullscreen */
.tmschatgpt-wrapper.fullscreen #tmschatgpt-box {
    height: calc(85vh - 260px);
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}
