/* Implixo Mobile Contact Bar — frontend */
.imcb-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998; /* below Elementor's popup overlay (9999), so the popup covers the bar while it is open */
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    /* Hidden on desktop by default — see media query below. */
    display: none;
}

/* Show when the bar is active. Mobile-only is the default (see body class). */
body.imcb-bar-active.imcb-mobile-only .imcb-bar {
    display: flex;
}
body.imcb-bar-active:not(.imcb-mobile-only) .imcb-bar {
    display: flex;
}
@media (min-width: 769px) {
    body.imcb-bar-active.imcb-mobile-only .imcb-bar {
        display: none;
    }
}

/* Keep page content from hiding behind the fixed bar. */
@media (max-width: 768px) {
    body.imcb-bar-active.imcb-mobile-only {
        padding-bottom: 68px;
    }
}
body.imcb-bar-active:not(.imcb-mobile-only) {
    padding-bottom: 68px;
}

.imcb-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
.imcb-btn:hover,
.imcb-btn:focus {
    color: #fff;
    opacity: .9;
    text-decoration: none;
}
.imcb-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    flex: 0 0 auto;
}

.imcb-top {
    position: absolute;
    right: 10px;
    top: -14px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}
.imcb-top svg {
    width: 28px;
    height: 28px;
    fill: #111;
}
