#ron-dc-widget,
#ron-dc-widget * {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#ron-dc-widget {
    position: fixed;
    right: 20px;
    bottom: 95px;
    z-index: 99999;
}

#ron-dc-toggle {
    background: #1f5f8b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 12px 22px !important;
    cursor: pointer !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.25) !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
}

#ron-dc-window {
    width: 360px;
    height: 520px;
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.25) !important;
    margin-bottom: 10px !important;
}

#ron-dc-header {
    background: #1f5f8b !important;
    color: #ffffff !important;
    padding: 12px 14px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#ron-dc-header-actions {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

#ron-dc-minimize,
#ron-dc-close {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.12) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 24px !important;
    padding: 0 !important;
    font-weight: 700 !important;
}

#ron-dc-minimize:hover,
#ron-dc-close:hover {
    background: rgba(255,255,255,.24) !important;
}

#ron-dc-messages {
    height: 380px !important;
    padding: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f7f7f7 !important;
    color: #222222 !important;
    overscroll-behavior: contain !important;
}

.ron-msg,
.visitor-msg {
    display: block !important;
    width: fit-content !important;
    max-width: 88% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 8px 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    white-space: pre-wrap !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    clear: both !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-align: left !important;
}

.ron-msg {
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #dddddd !important;
    float: left !important;
}

.visitor-msg {
    background: #d9edf7 !important;
    color: #222222 !important;
    border: 1px solid #c7e5f3 !important;
    float: right !important;
}

.ron-choice-msg {
    clear: both !important;
    float: left !important;
    max-width: 92% !important;
    margin: 8px 0 !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 12px !important;
    color: #222222 !important;
}

.ron-choice-title {
    font-size: 13px !important;
    margin-bottom: 6px !important;
    color: #333333 !important;
}

.ron-choice-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.ron-dc-choice {
    padding: 7px 10px !important;
    border: 1px solid #1f5f8b !important;
    background: #ffffff !important;
    color: #1f5f8b !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
}

.ron-dc-choice:hover {
    background: #eef7fc !important;
}

#ron-dc-input-row {
    display: flex !important;
    height: 70px !important;
    border-top: 1px solid #dddddd !important;
    background: #ffffff !important;
    align-items: center !important;
    padding: 8px !important;
}

#ron-dc-input {
    flex: 1 !important;
    border: none !important;
    padding: 10px !important;
    color: #222222 !important;
    background: #ffffff !important;
    font-size: 14px !important;
    outline: none !important;
}

#ron-dc-input::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}

#ron-dc-send {
    border: none !important;
    background: #1f5f8b !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 24px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}


@media (max-width: 480px) {
    #ron-dc-widget {
        right: 12px !important;
        bottom: 85px !important;
    }

    #ron-dc-window {
        width: calc(100vw - 24px) !important;
        height: 520px !important;
    }
}


/* Responsive / keyboard-safe layout */
#ron-dc-window {
    max-height: calc(100vh - 120px) !important;
}

#ron-dc-messages {
    overscroll-behavior: contain !important;
}

@media (max-width: 768px) {
    #ron-dc-widget {
        right: 10px !important;
        left: 10px !important;
        bottom: 10px !important;
        width: auto !important;
        max-width: none !important;
    }

    #ron-dc-toggle {
        max-width: calc(100vw - 20px) !important;
        padding: 10px 18px !important;
    }

    #ron-dc-window {
        width: calc(100vw - 20px) !important;
        height: min(78vh, 620px) !important;
        max-height: calc(100dvh - 20px) !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
    }

    #ron-dc-header {
        min-height: 54px !important;
        padding: 10px 12px !important;
        font-size: 17px !important;
    }

    #ron-dc-messages {
        height: calc(78vh - 128px) !important;
        max-height: calc(100dvh - 148px) !important;
        padding: 10px !important;
    }

    #ron-dc-input-row {
        height: 68px !important;
        padding: 7px !important;
    }

    #ron-dc-input {
        font-size: 16px !important;
        min-width: 0 !important;
    }

    #ron-dc-send {
        min-width: 58px !important;
        padding: 12px 13px !important;
        border-radius: 22px !important;
        font-size: 13px !important;
    }

    .ron-msg,
    .visitor-msg,
    .ron-choice-msg {
        max-width: 92% !important;
        font-size: 14px !important;
    }

    .ron-dc-choice {
        font-size: 12px !important;
        padding: 7px 10px !important;
    }
}

@media (max-width: 380px) {
    #ron-dc-send {
        min-width: 50px !important;
        padding: 10px 11px !important;
        font-size: 12px !important;
    }

    #ron-dc-input::placeholder {
        font-size: 14px !important;
    }
}

#ron-dc-header-tools{display:flex!important;align-items:center!important;gap:8px!important}
@media(max-width:480px){#ron-dc-header-tools{gap:5px!important}}


#ron-dc-language-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.ron-dc-language-btn {
    width: 30px !important;
    height: 28px !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.10) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    line-height: 26px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.ron-dc-language-btn:hover,
.ron-dc-language-btn.active {
    background: #ffffff !important;
    color: #1f5f8b !important;
}

@media (max-width: 480px) {
    #ron-dc-header-tools {
        gap: 4px !important;
    }

    #ron-dc-language-buttons {
        gap: 2px !important;
    }

    .ron-dc-language-btn {
        width: 27px !important;
        height: 26px !important;
        line-height: 24px !important;
        font-size: 10px !important;
    }
}
