/*     */
#gc-widget {
    position: fixed;
    bottom: 110px;
    right: 28px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (max-width: 1199.98px) {
    #gc-widget { left: 95%; }
}
@media (max-width : 767.98px) {
    #gc-widget { left: 90%; }
}
@media (max-width : 575.98px) {
    #gc-widget { left: 85%; }
}
/*   */
#gc-launcher {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ff6600; 
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#gc-launcher:hover {
    transform: scale(1.1);
}

/*   */
#gc-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: calc(100vh - 230px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/*  "" */
#gc-widget.gc-open #gc-window {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#gc-widget.gc-open #gc-launcher {
    transform: rotate(90deg); /*     */
    display: none; 
}

/* ? */
.gc-header {
    background: #333; /*    */
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gc-header-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.gc-header-title span {
    font-weight: 600;
    font-size: 16px;
}

.gc-header-title small {
    font-size: 12px;
    opacity: 0.8;
    color: #4caf50; /*    "" */
}

#gc-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/*  */
#gc-messages {
    flex: 1;
    padding: 15px;
    background: #f5f5f5;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gc-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.gc-bot {
    background: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gc-user {
    background: #ff6600; /*      */
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/*   */
.gc-input-area {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

#gc-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    resize: none;
    font-size: 14px;
    max-height: 100px;
}

#gc-send-btn {
    background: none;
    border: none;
    color: #ff6600;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

#gc-send-btn:hover {
    transform: scale(1.1);
}

/*    */
@media (max-width: 480px) {
    #gc-window {
        position: fixed; 
        top: 20px;       
        left: 15px;      
        right: 15px;     
        bottom: 20px;    
        width: auto;     
        height: auto;    
        z-index: 99999;
    }
}

/*     */
.gc-header-actions {
    display: flex;
    align-items: center;
    gap: 15px; 
}

/*   ( ) */
#gc-clear-btn {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
}

#gc-clear-btn:hover {
    opacity: 1;
    transform: scale(1.1); /*     */
    color: #ff6600; /*   */
}

/*       */
.gc-link {
    color: #0056b3; /*    */
    text-decoration: underline;
    font-weight: bold;
    word-break: break-word; /*        */
    transition: color 0.2s;
}

.gc-link:hover {
    color: #ff6600; /*      */
    text-decoration: none;
}

/*      (    ) */
.gc-user .gc-link {
    color: #ffffff;
}