#pde-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: linear-gradient(135deg, #0f766e, #134e4a);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 99999;
    font-size: 14px;
    font-weight: 600;
}

.pde-hidden {
    display: none !important;
}

#pde-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: min(680px, calc(100vh - 40px));
    background: #fffdf9;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 118, 110, 0.10);
}

.pde-chat-header {
    position: relative;
    flex: 0 0 auto;
    padding: 16px 18px 14px;
    background: linear-gradient(180deg, #f5f1e8 0%, #f8f7f3 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pde-chat-logo {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 42px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
}

.pde-chat-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pde-chat-header-text {
    min-width: 0;
    padding-right: 40px;
}

.pde-chat-header-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
    line-height: 1.2;
}

.pde-chat-header-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

/*#pde-chat-close {*/
/*    position: absolute;*/
/*    top: 12px;*/
/*    right: 14px;*/
/*    width: 36px;*/
/*    height: 36px;*/
/*    border-radius: 999px;*/
/*    border: none;*/
/*    background: rgba(255,255,255,0.72);*/
/*    font-size: 24px;*/
/*    line-height: 1;*/
/*    cursor: pointer;*/
/*    color: #4b5563;*/
/*}*/

#pde-chat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #4b5563;
    padding: 0;
}

#pde-chat-close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.pde-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.05), transparent 35%),
        radial-gradient(circle at bottom right, rgba(180, 140, 60, 0.05), transparent 30%),
        #fffdf9;
    overflow: hidden;
}

.pde-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.pde-message {
    max-width: 84%;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.pde-user-message {
    align-self: flex-end;
    background: #115e59;
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.pde-bot-message {
    align-self: flex-start;
    background: #f3efe6;
    color: #1f2937;
    border-bottom-left-radius: 6px;
}

.pde-chat-quick-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 14px;
}

.pde-quick-action {
    background: #ffffff;
    border: 1px solid rgba(17, 94, 89, 0.15);
    color: #115e59;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pde-quick-action:hover {
    background: #ecfdf5;
    border-color: rgba(17, 94, 89, 0.28);
}

.pde-chat-input-wrap {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#pde-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    color: #111827;
}

#pde-chat-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}

#pde-chat-send {
    border: none;
    background: #0f766e;
    color: #ffffff;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

#pde-chat-send:hover {
    background: #115e59;
}

@media (max-width: 768px) {
    #pde-chat-widget {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        max-width: none;
        border-radius: 18px;
    }

    #pde-chat-launcher {
        right: 12px;
        bottom: 12px;
    }

    .pde-chat-header-title {
        font-size: 15px;
    }

    .pde-chat-header-subtitle {
        font-size: 11px;
    }
}

.pde-chat-lead-form {
    padding: 0 18px 14px;
}

.pde-chat-lead-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f7f3;
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-radius: 16px;
    padding: 14px;
}

.pde-chat-lead-form input {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.pde-chat-lead-form input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.pde-chat-lead-form button {
    border: none;
    background: #0f766e;
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}