/* Wrapper general */
#wcw-wrapper,
.wcw-wrapper {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Buton principal */
.wcw-btn {
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcw-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Icon */
.wcw-icon {
    width: 60%;
    height: 60%;
    fill: #fff;
}

/* Tooltip */
.wcw-tooltip {
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #111827;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wcw-wrapper.wcw-left .wcw-tooltip {
    left: 110%;
    right: auto;
}

.wcw-btn:hover .wcw-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-2px);
}

/* ANIMAȚII */
.wcw-anim-pulse .wcw-btn {
    animation: wcwPulse 2s infinite ease-in-out;
}

@keyframes wcwPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.wcw-anim-bounce .wcw-btn {
    animation: wcwBounce 1.6s infinite;
}

@keyframes wcwBounce {
    0%,20%,50%,80%,100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* ----------------------------------------------------------
   CHAT BUBBLE - DESCHIDERE ÎN SUS (IMPORTANT)
---------------------------------------------------------- */
.wcw-bubble {
    position: absolute;
    bottom: 100%;
    margin-bottom: 14px;
    width: 280px;
    max-width: 80vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.wcw-bubble.wcw-bubble-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header bubble */
.wcw-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #25D366;
    color: #fff;
}

.wcw-bubble-title {
    font-weight: 600;
    font-size: 15px;
}

/* Buton închidere – X MARE */
.wcw-bubble-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
}

/* Body bubble */
.wcw-bubble-body {
    padding: 12px;
    font-size: 14px;
    color: #111827;
}

.wcw-bubble-body p {
    margin: 0;
}

/* ----------------------------------------------------------
   MENIURI EXTRA (ÎNAINTE DE "Deschide WhatsApp")
---------------------------------------------------------- */

/* Separator gri subțire */
.wcw-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 10px 0 14px;
}

/* Container EXTRA MENIU */
.wcw-extra-menu {
    padding: 0 12px;
    margin-bottom: 10px;
}

/* Butoane extra – IDENTICE cu wcw-bubble-button */
.wcw-extra-button {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff !important;          /* text alb */
    margin-bottom: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wcw-extra-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ----------------------------------------------------------
   FOOTER + Buton principal WhatsApp
---------------------------------------------------------- */
.wcw-bubble-footer {
    padding: 10px 12px 14px;
}

.wcw-bubble-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wcw-bubble-button:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* DOAR link direct */
.wcw-direct-link {
    position: absolute;
    inset: 0;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .wcw-bubble {
        width: 240px;
    }
    .wcw-tooltip {
        display: none;
    }
}
