/* GynoLife Live Coordinator Chat Widget */
.gyno-chat-widget {
    max-width: 480px;
    margin: 0 auto;
    font-family: 'Poppins', -apple-system, sans-serif;
}
.gyno-chat-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    background: #fff;
}

/* Header */
.gyno-chat-header {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #e6007e 0%, #2d2c7e 100%);
    color: #fff;
}
.gyno-chat-header-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(230,0,126,0.9), rgba(45,44,126,0.95));
}
.gyno-chat-avatar-header {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: url('/wp-content/uploads/2025/04/dr-hayat-izel-200x200.jpg') center/cover;
    border: 2px solid rgba(255,255,255,0.4);
    position: relative; z-index: 1;
    flex-shrink: 0;
}
.gyno-chat-header-info { position: relative; z-index: 1; }
.gyno-chat-header-name { font-size: 16px; font-weight: 600; }
.gyno-chat-header-status { font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.gyno-chat-status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2ecc71;
    animation: gyno-pulse 2s infinite;
}
@keyframes gyno-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Messages */
.gyno-chat-messages-container {
    padding: 20px;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
}
.gyno-chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.gyno-chat-message-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gyno-chat-bot-avatar {
    background: url('/wp-content/uploads/2025/04/dr-hayat-izel-200x200.jpg') center/cover;
}
.gyno-chat-user-avatar {
    background: linear-gradient(135deg, #e6007e, #2d2c7e);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 600;
}
.gyno-chat-message-bubble {
    background: #fff;
    padding: 10px 14px;
    border-radius: 0 12px 12px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 85%;
}
.gyno-chat-message.user .gyno-chat-message-bubble {
    background: linear-gradient(135deg, #e6007e, #2d2c7e);
    color: #fff;
    border-radius: 12px 0 12px 12px;
    margin-left: auto;
}
.gyno-chat-message.user {
    flex-direction: row-reverse;
}

/* Quick Replies */
.gyno-chat-quick-replies {
    padding: 0 20px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8f9fa;
}
.gyno-chat-quick-reply {
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2d2c7e;
    font-weight: 500;
}
.gyno-chat-quick-reply:hover {
    background: #e6007e;
    color: #fff;
    border-color: #e6007e;
    transform: translateY(-1px);
}

/* Input */
.gyno-chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}
.gyno-chat-input-wrapper { flex: 1; }
.gyno-chat-message-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.gyno-chat-message-input:focus {
    border-color: #e6007e;
}
.gyno-chat-send-button {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6007e, #2d2c7e);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.gyno-chat-send-button:hover { transform: scale(1.05); }
.gyno-chat-send-icon {
    width: 20px; height: 20px;
    fill: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .gyno-chat-widget { max-width: 100%; margin: 0 10px; }
    .gyno-chat-header { padding: 15px; }
    .gyno-chat-messages-container { padding: 15px; }
    .gyno-chat-input-container { padding: 10px 15px; }
    .gyno-chat-quick-reply { font-size: 12px; padding: 6px 12px; }
}

/* ---- Live Coordinator: CF7-wired chat (overrides) ---- */
.gyno-chat-input-wrapper .wpcf7-form-control-wrap { display:block; width:100%; margin:0; }
#gynoChatMessageInput.gyno-chat-message-input { height:44px !important; min-height:44px !important; max-height:120px; box-sizing:border-box; }
.gyno-chat-cf7-tail { display:flex; justify-content:center; align-items:center; }
.gyno-chat-cf7-tail .wpcf7-submit, .gyno-chat-input-container .gyno-chat-cf7-submit { display:none !important; }
.wpcf7-form .wpcf7-response-output { display:none !important; }
.gyno-chat-widget .wpcf7-spinner, .gyno-chat-container .wpcf7-spinner { display:none !important; }
