#ghf-lc-gdpr {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    background: #111;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

.ghf-lc-gdpr__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.ghf-lc-gdpr__message {
    flex: 1 1 60%;
    font-size: 14px;
}

.ghf-lc-gdpr__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ghf-lc-btn {
    border: none;
    background: #4f46e5;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.ghf-lc-btn.ghf-lc-reject {
    background: #444;
}

.ghf-lc-policy {
    color: #9fd4ff;
    text-decoration: underline;
    font-size: 13px;
}

#ghf-lc-chat {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 99998;
    font-family: Arial, sans-serif;
}

.ghf-lc-chat-left {
    left: 18px;
    right: auto;
}

.ghf-lc-chat__button {
    background: #4f46e5;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ghf-lc-chat__logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.ghf-lc-chat__badge {
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
}

.ghf-lc-chat__panel {
    position: absolute;
    right: 0;
    bottom: 56px;
    width: 320px;
    max-height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.ghf-lc-chat-left .ghf-lc-chat__panel {
    right: auto;
    left: 0;
}

.ghf-lc-chat__panel.is-open {
    display: flex;
}

.ghf-lc-chat__header {
    background: #4f46e5;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ghf-lc-chat__title {
    font-size: 14px;
    font-weight: bold;
}

.ghf-lc-chat__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.ghf-lc-chat__messages {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    background: #f8f8fb;
}

#ghf-lc-chat .ghf-lc-chat__fallback {
    padding: 10px 14px 0;
    background: #fff;
}

#ghf-lc-chat .ghf-lc-contact-toggle {
    width: 100% !important;
    margin: 0 auto !important;
    border: 1px solid #d9e0f5 !important;
    background: linear-gradient(180deg, #f9faff 0%, #f2f5ff 100%) !important;
    color: #222a44 !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(64, 88, 210, 0.14) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

#ghf-lc-chat .ghf-lc-contact-toggle:hover {
    background: linear-gradient(180deg, #eef2ff 0%, #e7edff 100%) !important;
    box-shadow: 0 6px 14px rgba(64, 88, 210, 0.2) !important;
    transform: translateY(-1px);
}

#ghf-lc-chat .ghf-lc-contact {
    padding: 12px 14px 14px;
    background: #fff;
    border-top: 1px solid #eef2fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 48vh;
    overflow-y: auto;
}

#ghf-lc-chat .ghf-lc-contact input,
#ghf-lc-chat .ghf-lc-contact textarea {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 0 9px 0 !important;
    border: 1px solid #dbe3f5 !important;
    border-radius: 12px !important;
    padding: 10px 11px !important;
    font-size: 13px !important;
    box-sizing: border-box;
    background: #fbfcff !important;
    color: #1f2437 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
}

#ghf-lc-chat .ghf-lc-contact input:focus,
#ghf-lc-chat .ghf-lc-contact textarea:focus {
    border-color: #7b87ff !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14) !important;
}

#ghf-lc-chat .ghf-lc-contact-send {
    width: 100% !important;
    max-width: 280px !important;
    border: none !important;
    background: linear-gradient(135deg, #4f46e5, #5f7bff) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.25) !important;
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 2px 0 8px 0 !important;
    text-align: center !important;
}

#ghf-lc-chat .ghf-lc-contact textarea {
    min-height: 96px;
    resize: vertical;
}

.ghf-lc-msg {
    margin-bottom: 8px;
}

.ghf-lc-msg__bubble {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.4;
}

.ghf-lc-msg-visitor .ghf-lc-msg__bubble {
    background: #e0e7ff;
    color: #111;
}

.ghf-lc-msg-agent .ghf-lc-msg__bubble {
    background: #4f46e5;
    color: #fff;
}

.ghf-lc-msg__time {
    font-size: 10px;
    color: #777;
    margin-top: 2px;
}

.ghf-lc-chat__input {
    display: flex;
    border-top: 1px solid #eee;
}

.ghf-lc-chat__input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 13px;
}

.ghf-lc-chat__input button {
    border: none;
    background: #4f46e5;
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
    font-size: 13px;
}

@media (max-width: 768px) {
    #ghf-lc-chat {
        bottom: calc(14px + env(safe-area-inset-bottom));
        right: 12px;
    }

    .ghf-lc-chat-left {
        left: 12px;
        right: auto;
    }

    .ghf-lc-chat__button {
        padding: 6px 8px !important;
        font-size: 10px !important;
        max-width: 130px !important;
        height: 36px !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    .ghf-lc-chat__icon {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }

    .ghf-lc-chat__panel {
        width: min(90vw, 320px);
        max-height: 55vh;
    }

    .ghf-lc-chat__fallback {
        padding: 8px 10px 0;
    }

    .ghf-lc-contact {
        padding: 8px 10px 10px;
        max-height: 44vh;
    }

    #ghf-lc-chat .ghf-lc-contact input,
    #ghf-lc-chat .ghf-lc-contact textarea {
        font-size: 12px !important;
        padding: 8px 9px !important;
        max-width: 100% !important;
    }

    #ghf-lc-chat .ghf-lc-contact-send {
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

@supports (-webkit-touch-callout: none) {
    #ghf-lc-chat {
        bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .ghf-lc-chat__button {
        padding: 4px 8px !important;
        font-size: 10px !important;
        max-width: 110px !important;
        height: 32px !important;
        gap: 4px !important;
        overflow: hidden !important;
    }

    .ghf-lc-chat__logo {
        display: none !important;
    }

    .ghf-lc-chat__panel {
        width: min(86vw, 290px);
        max-height: 50vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .ghf-lc-chat__logo {
        width: 14px !important;
        height: 14px !important;
    }
}
