body, #profitbuyz-widget { font-family: Tahoma, Arial, sans-serif; }

/* Chat Bubble - Base Styles */
#profitbuyz-bubble {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #030C18;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Bubble Position Variants - Applied by JavaScript */
#profitbuyz-bubble.position-top {
    top: 20px;
    bottom: auto;
}

#profitbuyz-bubble.position-middle {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

#profitbuyz-bubble.position-bottom {
    bottom: 20px;
    top: auto;
}

#profitbuyz-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

/* Middle position needs special hover */
#profitbuyz-bubble.position-middle:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Widget Container - Base Styles */
#profitbuyz-widget {
    position: fixed;
    right: 20px;
    width: 320px;
    height: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    font-family: Arial, sans-serif;
}

/* Widget Position Variants - Applied by JavaScript */
#profitbuyz-widget.position-top {
    top: 90px;
    bottom: auto;
}

#profitbuyz-widget.position-middle {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

#profitbuyz-widget.position-bottom {
    bottom: 20px;
    top: auto;
}

/* Hidden state */
#profitbuyz-widget.hidden {
    display: none;
}

/* Header */
#profitbuyz-header {
    background: #030C18;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

#profitbuyz-close {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

#profitbuyz-close:hover {
    opacity: 1;
}

/* Messages */
#profitbuyz-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

#profitbuyz-messages::-webkit-scrollbar {
    width: 6px;
}

#profitbuyz-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#profitbuyz-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#profitbuyz-messages::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Input */
#profitbuyz-input {
    display: flex;
    border-top: 1px solid #ddd;
}

#profitbuyz-text {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 14px;
}

#profitbuyz-send {
    background: #030C18;
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

#profitbuyz-send:hover {
    opacity: 0.9;
}

#profitbuyz-send:active {
    opacity: 0.8;
}


/* ---------- WhatsApp-style message bubbles ---------- */
#profitbuyz-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.phixtra-label{
    font-size: 11px;
    font-weight: 900;
    opacity: 0.65;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.phixtra-user .phixtra-label{
    text-align: right;
}
.phixtra-agent .phixtra-label{
    text-align: left;
}
.phixtra-body{
    white-space: normal;
}

.phixtra-msg {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.phixtra-user {
    align-self: flex-end;
    background: rgba(3, 12, 24, 0.08);
    border-top-right-radius: 6px;
}

.phixtra-agent {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.04);
    border-top-left-radius: 6px;
}

.phixtra-agent strong {
    font-weight: 900;
}

.phixtra-typing {
    background: rgba(0, 0, 0, 0.03);
}
