/* =========================================================
   WINSKOOP FLOATING BUTTONS
   ========================================================= */

.winskoop-floating-buttons {
    position: fixed;
    left: 0;
    top: 40%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.winskoop-floating-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 10px 10px 0;
    position: relative;
    overflow: visible !important;
    transition: width 0.25s ease;
}

/* Tooltip */
.winskoop-floating-button {
    position: relative;
    overflow: visible !important;
}

.winskoop-floating-button::after {
    content: attr(data-tooltip);
    position: absolute;

    left: calc(100% + 12px);
    top: 50%;
    transform: translate(-8px, -50%);

    background: #333;
    color: #fff;
    padding: 9px 14px;
    border-radius: 5px;

    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.25s ease;
    z-index: 999999;
}

.winskoop-floating-button:hover::after,
.winskoop-floating-button:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.winskoop-floating-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Button colours */

.winskoop-whatsapp {
    background: #08723b;
}

.winskoop-portal,
.winskoop-faq {
    background: #a91f23;
}

/* Hover */

.winskoop-floating-button:hover {
    width: 72px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .winskoop-floating-buttons {
        top: auto;
        bottom: 0;
        transform: none;
        display: block;
    }

    .winskoop-floating-button {
        width: 52px;
        height: 48px;
        margin-bottom: 5px;
    }

    .winskoop-floating-button img {
        width: 30px;
        height: 30px;
    }

    .winskoop-floating-button:hover {
        width: 52px;
    }
}
