/* =====================================================
   VIP Contact Buttons — Public CSS  v3.2
   =====================================================
   ARCHITECTURE:
   - .vcb-container            → shared base (NO position here)
   - .vcb-container:not(.vcb-inline) → fixed floating buttons
   - .vcb-container.vcb-inline → inline pill buttons (shortcode)
   ===================================================== */

/* ── 1. SHARED BASE ─────────────────────────────────────────────────────── */
.vcb-container {
    display: flex;
    gap: 12px;
    /* NO position: fixed here — that lives only in :not(.vcb-inline) */
}

.vcb-buttons-wrapper {
    display: flex;
    gap: 12px;
}

/* ── 2. GLOBAL FLOATING (position:fixed) ────────────────────────────────── */
.vcb-container:not(.vcb-inline) {
    position: fixed;
    z-index: 999999;
    bottom: 24px;
    flex-direction: column;
    pointer-events: none;
}

.vcb-container:not(.vcb-inline) * {
    pointer-events: auto;
}

.vcb-container:not(.vcb-inline).vcb-pos-right {
    right: 22px;
    align-items: flex-end;
}

.vcb-container:not(.vcb-inline).vcb-pos-left {
    left: 22px;
    align-items: flex-start;
}

.vcb-container:not(.vcb-inline).vcb-pos-center {
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    padding: 10px 18px;
    background: rgba(15, 15, 15, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .3);
    flex-direction: row;
}

.vcb-container:not(.vcb-inline).vcb-pos-center .vcb-buttons-wrapper {
    flex-direction: row;
    gap: 14px;
}

.vcb-container:not(.vcb-inline) .vcb-buttons-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: inherit;
}

/* Floating button — circular, expand on hover */
.vcb-container:not(.vcb-inline) .vcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 54px;
    width: 54px;
    min-width: 54px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
    transition: width .32s cubic-bezier(.4, 0, .2, 1),
        padding .32s cubic-bezier(.4, 0, .2, 1),
        box-shadow .25s ease,
        transform .2s ease;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.vcb-container:not(.vcb-inline) .vcb-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.vcb-container:not(.vcb-inline) .vcb-btn:hover,
.vcb-container:not(.vcb-inline) .vcb-btn:focus-visible {
    width: auto;
    min-width: 54px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
    color: #fff;
    outline: none;
}

.vcb-container:not(.vcb-inline).vcb-pos-right .vcb-btn {
    flex-direction: row-reverse;
}

.vcb-container:not(.vcb-inline).vcb-pos-right .vcb-btn:hover {
    padding: 0 14px 0 18px;
}

.vcb-container:not(.vcb-inline).vcb-pos-left .vcb-btn:hover,
.vcb-container:not(.vcb-inline).vcb-pos-center .vcb-btn:hover {
    padding: 0 18px 0 14px;
}

.vcb-container:not(.vcb-inline) .vcb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.vcb-container:not(.vcb-inline) .vcb-btn:hover .vcb-icon {
    transform: scale(1.1) rotate(-4deg);
}

.vcb-container:not(.vcb-inline) .vcb-label {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity .28s ease, max-width .32s cubic-bezier(.4, 0, .2, 1), margin .28s ease;
    font-size: 14px;
    pointer-events: none;
}

.vcb-container:not(.vcb-inline) .vcb-btn:hover .vcb-label,
.vcb-container:not(.vcb-inline) .vcb-btn:focus-visible .vcb-label {
    opacity: 1;
    max-width: 200px;
    margin: 0 6px;
}

/* Fade-in for floating buttons */
@keyframes vcbSlideIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vcb-container:not(.vcb-inline) .vcb-btn:nth-child(1) {
    animation: vcbSlideIn .4s .05s ease both;
}

.vcb-container:not(.vcb-inline) .vcb-btn:nth-child(2) {
    animation: vcbSlideIn .4s .12s ease both;
}

.vcb-container:not(.vcb-inline) .vcb-btn:nth-child(3) {
    animation: vcbSlideIn .4s .19s ease both;
}

.vcb-container:not(.vcb-inline) .vcb-btn:nth-child(4) {
    animation: vcbSlideIn .4s .26s ease both;
}

/* ═══════════════════════════════════════════════════════════════════
   3. INLINE / SHORTCODE — Pill buttons, always show icon + text
   ═══════════════════════════════════════════════════════════════════ */
.vcb-container.vcb-inline {
    position: static !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 14px !important;
    margin: 20px 0 !important;
    z-index: auto !important;
}

.vcb-container.vcb-inline .vcb-buttons-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Pill button — icon + text ALWAYS visible */
.vcb-container.vcb-inline .vcb-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: var(--vcb-h, 54px) !important;
    padding: 0 var(--vcb-px, 30px) !important;
    width: auto !important;
    min-width: unset !important;
    border-radius: 50px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
    font-size: var(--vcb-fs, 16px) !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .22), 0 1px 4px rgba(0, 0, 0, .1) !important;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.vcb-container.vcb-inline .vcb-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
    border-radius: inherit;
}

.vcb-container.vcb-inline .vcb-btn:hover,
.vcb-container.vcb-inline .vcb-btn:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    filter: brightness(1.08);
    text-decoration: none;
    color: #fff;
    outline: none;
    /* Keep padding — do NOT change it on hover */
    padding: 0 var(--vcb-px, 30px);
}

.vcb-container.vcb-inline .vcb-btn:active {
    transform: translateY(0) scale(.98);
    filter: brightness(.94);
}

/* Icon inside pill */
.vcb-container.vcb-inline .vcb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: unset;
    flex-shrink: 0;
    line-height: 1;
}

.vcb-container.vcb-inline .vcb-icon svg {
    display: block;
}

/* Label — ALWAYS VISIBLE (no opacity tricks, no max-width tricks) */
.vcb-container.vcb-inline .vcb-label {
    display: inline !important;
    opacity: 1 !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    font-size: var(--vcb-fs, 16px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
    pointer-events: none !important;
    /* Override any inherited transition from floating style */
    transition: none !important;
}

/* Entrance animation for pill buttons */
@keyframes vcbPillIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vcb-container.vcb-inline .vcb-btn {
    animation: vcbPillIn .35s ease both;
}

.vcb-container.vcb-inline .vcb-btn:nth-child(1) {
    animation-delay: .04s;
}

.vcb-container.vcb-inline .vcb-btn:nth-child(2) {
    animation-delay: .10s;
}

.vcb-container.vcb-inline .vcb-btn:nth-child(3) {
    animation-delay: .16s;
}

.vcb-container.vcb-inline .vcb-btn:nth-child(4) {
    animation-delay: .22s;
}

.vcb-container.vcb-inline .vcb-btn:nth-child(5) {
    animation-delay: .28s;
}

/* ── 4. PLATFORM COLORS (shared by both modes) ────────────────────────── */
.vcb-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1aab53 100%);
}

.vcb-phone {
    background: linear-gradient(135deg, #1f3b73 0%, #0f1f40 100%);
}

.vcb-messenger {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

.vcb-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.vcb-instagram {
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}

/* ── 5. MOBILE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Floating: hide expand label, shrink icon */
    .vcb-container:not(.vcb-inline) {
        bottom: 16px;
    }

    .vcb-container:not(.vcb-inline).vcb-pos-right {
        right: 14px;
    }

    .vcb-container:not(.vcb-inline).vcb-pos-left {
        left: 14px;
    }

    .vcb-container:not(.vcb-inline) .vcb-btn {
        height: 48px;
        width: 48px;
        min-width: 48px;
    }

    .vcb-container:not(.vcb-inline) .vcb-icon {
        min-width: 48px;
        width: 48px;
        height: 48px;
    }

    .vcb-container:not(.vcb-inline) .vcb-btn:hover {
        width: 48px;
        min-width: 48px;
        padding: 0;
        transform: none;
    }

    .vcb-container:not(.vcb-inline) .vcb-btn:hover .vcb-label {
        opacity: 0;
        max-width: 0;
        margin: 0;
    }

    /* Inline: stack vertically, full width */
    .vcb-container.vcb-inline {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .vcb-container.vcb-inline .vcb-buttons-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .vcb-container.vcb-inline .vcb-btn {
        width: 100%;
        justify-content: center;
        border-radius: 16px;
        height: var(--vcb-h-mobile, 52px);
        font-size: var(--vcb-fs-mobile, 15px);
        padding: 0 20px;
        animation: none;
        /* prevent jitter on mobile */
    }

    .vcb-container.vcb-inline .vcb-label {
        font-size: var(--vcb-fs-mobile, 15px);
    }
}