/* WC Chat Assistant - Black & White Design | Penta Expert */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#wcca-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Toggle Button ── */
#wcca-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #111111;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
    outline: none;
}

#wcca-toggle:hover {
    transform: scale(1.07);
    background: #222;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

#wcca-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

/* ── Panel ── */
#wcca-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 348px;
    max-width: calc(100vw - 28px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 48px rgba(0,0,0,0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    animation: wcca-in 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes wcca-in {
    from { opacity:0; transform: translateY(14px) scale(0.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
#wcca-header {
    background: #111111;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#wcca-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#wcca-avatar {
    font-size: 24px;
    line-height: 1;
}

#wcca-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

#wcca-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    margin-top: 1px;
}

#wcca-online {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.wcca-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: wcca-pulse 2s infinite;
}

@keyframes wcca-pulse {
    0%,100% { opacity:1; }
    50% { opacity:0.45; }
}

/* ── Messages ── */
#wcca-messages {
    padding: 14px;
    overflow-y: auto;
    max-height: 300px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
    scroll-behavior: smooth;
}

.wcca-msg {
    display: flex;
    max-width: 88%;
}

.wcca-msg--bot { align-self: flex-start; }
.wcca-msg--user { align-self: flex-end; }

.wcca-bubble {
    padding: 9px 13px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.wcca-msg--bot .wcca-bubble {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 3px;
    color: #111111;
    font-weight: 400;
}

.wcca-msg--user .wcca-bubble {
    background: #111111;
    color: #ffffff;
    border-bottom-right-radius: 3px;
    font-weight: 500;
}

/* ── Quick buttons ── */
#wcca-quick {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
}

.wcca-qbtn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 4px 11px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.14s;
    white-space: nowrap;
}

.wcca-qbtn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ── Input row ── */
#wcca-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

#wcca-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 11px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    outline: none;
    color: #111111;
    background: #f9fafb;
    transition: border-color 0.14s, background 0.14s;
}

#wcca-input:focus {
    border-color: #111111;
    background: #ffffff;
}

#wcca-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

#wcca-send {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #111111;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s, transform 0.1s;
    outline: none;
}

#wcca-send:hover { background: #333; }
#wcca-send:active { transform: scale(0.94); }

#wcca-send svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

/* ── Footer ── */
#wcca-footer {
    background: #111111;
    text-align: center;
    padding: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 0.01em;
}

#wcca-footer strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

/* ── Mobile ── */
@media (max-width: 420px) {
    #wcca-panel {
        width: calc(100vw - 20px);
        right: -10px;
    }
}
