/* TechReady Standalone Live Chat - Brand Color Corrected */
.tr-chat-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Chat Bubble Matched with TechReady Premium Theme Blue & Green Glow */
.tr-chat-trigger-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF5F1F, #FF4433);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.tr-chat-trigger-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.tr-chat-window-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: trFadePop 0.25s ease-out;
}

@keyframes trFadePop {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header Matched with Your Website Admin Dark Theme */
.tr-chat-top-header {
    background: #CCCCFF;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tr-chat-header-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr-chat-header-branding img {
    height: 24px;
    width: auto;
}

.tr-chat-top-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.tr-chat-close-x {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tr-chat-close-x:hover { opacity: 1; }

.tr-chat-main-container {
    padding: 20px;
    background: #f8fafc;
}

.tr-chat-form-grid .tr-form-row {
    margin-bottom: 12px;
}

.tr-chat-form-grid label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.tr-chat-form-grid input, .tr-chat-form-grid textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.tr-chat-form-grid input:focus, .tr-chat-form-grid textarea:focus {
    border-color: #1d4ed8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Action Button Shifted from Orange to Branded TechReady Blue & Green */
.tr-chat-action-button {
    width: 100%;
    background: linear-gradient(90deg, #1d4ed8, #059669);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s, transform 0.1s;
}

.tr-chat-action-button:hover {
    opacity: 0.95;
}
.tr-chat-action-button:active {
    transform: scale(0.98);
}

.tr-chat-success-feedback {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}