.cloudio-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    background-color: #00abc7;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cloudio-chat-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.cloudio-launcher-label {
    display: none;
}

.cloudio-launcher-icon {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.cloudio-chat-wrapper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    top: 130px;
    width: 480px;
    max-width: calc(100% - 48px);
    background-color: #0e283b;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cloudio-chat-wrapper.cloudio-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cloudio-chat-header {
    background-color: #0e283b;
    color: #ffffff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.cloudio-chat-title {
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.2;
}

.cloudio-chat-close {
    background: transparent !important;
    border: 0px solid rgba(255,255,255,0.75) !important;
    color: #ffffff !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    box-shadow: none !important;
}

.cloudio-chat-close-icon {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
    transform: translateY(-1px);
    font-family: inherit;
}

.cloudio-chat-close:hover,
.cloudio-chat-close:focus,
.cloudio-chat-close:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}

.cloudio-chat-body {
    flex: 1;
    background-color: #f5f7f9;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
}

.cloudio-chat-warning {
    background-color: #0e283b;
    color: #ffffff;
    font-size: 0.875rem;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-family: inherit;
}

.cloudio-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.cloudio-message-row {
    margin-bottom: 6px;
    display: flex;
}

.cloudio-message-row.cloudio-from-user {
    justify-content: flex-end;
}

.cloudio-message-row.cloudio-from-bot {
    justify-content: flex-start;
}

.cloudio-message-bubble {
    max-width: 80%;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

.cloudio-from-user .cloudio-message-bubble {
    background-color: #009ba4;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.cloudio-from-bot .cloudio-message-bubble {
    background-color: #ffffff;
    color: #313131;
    border-bottom-left-radius: 2px;
    border: 1px solid #dde2e7;
}

.cloudio-chat-form {
    border-top: 1px solid #dde2e7;
    padding: 6px 8px;
    background-color: #ffffff;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    font-family: inherit;
}

.cloudio-chat-input {
    flex: 1;
    resize: none;
    font-size: 1rem;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #c4ccd4;
    font-family: inherit;
}

.cloudio-chat-input:focus {
    outline: none;
    border-color: #c4ccd4;
    box-shadow: none;
}

.cloudio-chat-send {
    background-color: #009ba4 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: none !important;
    font-family: inherit;
}

.cloudio-chat-send:hover {
    background-color: #007e86 !important;
    box-shadow: none !important;
}

.cloudio-chat-send:focus,
.cloudio-chat-send:active {
    outline: none;
    box-shadow: none !important;
    background-color: #007e86 !important;
}

.cloudio-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cloudio-loading {
    opacity: 0.7;
    font-style: italic;
}

.cloudio-md-heading {
    font-weight: 600;
    margin: 8px 0 4px 0;
}

.cloudio-md-h1 {
    font-size: 1.2rem;
    line-height: 1.25;
}

.cloudio-md-h2 {
    font-size: 1.1rem;
    line-height: 1.25;
}

.cloudio-md-h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.cloudio-char-counter {
    display: none;
    font-size: 0.85rem;
    line-height: 1.2;
    color: #7a7a7a;
    padding: 0 4px 2px 4px;
    white-space: nowrap;
}

.cloudio-char-counter.cloudio-over {
    color: #b00020;
    font-weight: 600;
}
