/*=============================================
=            Contact Buttons            =
=============================================*/
.gpc-fcb {
    --fcb-width: 56px;
    --fcb-btn-width: 40px;
    --fcb-right: 20px;
    --fcb-bottom: 75px;

    position: fixed;
    right: var(--fcb-right);
    bottom: var(--fcb-bottom);
    width: var(--fcb-width);
    z-index: 9999;
}

/*---------- Buttons ---------- */
.gpc-fcb__buttons {
    position: absolute;
    bottom: 0;
    opacity: 0;
    transition: all 300ms ease-in-out;
}

.gpc-fcb__buttons.show {
    opacity: 1;
}

.gpc-fcb__btn {
    transition: all 300ms ease-in-out;
    position: absolute;
    bottom: 0;
    will-change: bottom;
}

.gpc-fcb__link {
    width: var(--fcb-width);
    height: var(--fcb-width);
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.16), 0px 3px 10px rgba(0, 0, 0, 0.16);
}

.gpc-fcb__link svg {
    min-width: 24px;
    max-width: 30px;
    height: auto;
    color: #fff;
}

.gpc-fcb__btn.is-shopee .gpc-fcb__link svg,
.gpc-fcb__link img {
    width: 28px;
}

.gpc-fcb__buttons .gpc-fcb__link {
    width: var(--fcb-btn-width);
    height: var(--fcb-btn-width);
}

.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(1) { --fcb-index: 1; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(2) { --fcb-index: 2; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(3) { --fcb-index: 3; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(4) { --fcb-index: 4; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(5) { --fcb-index: 5; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(6) { --fcb-index: 6; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(7) { --fcb-index: 7; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(8) { --fcb-index: 8; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(9) { --fcb-index: 9; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(10) { --fcb-index: 10; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(11) { --fcb-index: 11; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(12) { --fcb-index: 12; }
.gpc-fcb__buttons .gpc-fcb__btn:nth-last-child(13) { --fcb-index: 13; }

.gpc-fcb__buttons .gpc-fcb__btn {
    left: calc((var(--fcb-width) - var(--fcb-btn-width)) / 2);
}

.gpc-fcb__buttons.show .gpc-fcb__btn {
    bottom: calc(var(--fcb-index) * (var(--fcb-btn-width) + 8px) + 16px);
}

/* Tooltip */
.gpc-fcb__buttons .gpc-fcb__link:before {
    content: attr(data-tooltip);
    transition: opacity 550ms cubic-bezier(0.4, 0, 1, 1);
    transition-delay: 300ms;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 50px;
    color: #ececec;
    background-color: rgba(70, 70, 70, 0.9);
    font-size: 15px;
    line-height: 1em;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    border-radius: 4px;
    padding: 8px 16px;
}

.gpc-fcb.has-tooltip-on-hover .gpc-fcb__buttons .gpc-fcb__link:before {
    transition-delay: 0ms;
    transition-duration: 150ms;
}

.gpc-fcb:not(.has-tooltip-on-hover) .gpc-fcb__buttons.show .gpc-fcb__link:before,
.gpc-fcb.has-tooltip-on-hover .gpc-fcb__buttons.show .gpc-fcb__link:hover:before {
    visibility: visible;
    opacity: 1;
}

/*---------- Toggler ---------- */
.gpc-fcb__toggler {
    position: absolute;
    bottom: 0;
}

.gpc-fcb__toggler svg {
    max-width: 40px;
}

.gpc-fcb__toggler .gpc-fcb__link {
    background-color: #FF6D60;
}

.gpc-fcb.has-effect .gpc-fcb__toggler .gpc-fcb__link {
    animation: pulse 2s infinite;
    box-shadow: none;
}

/*---------- Effect ---------- */
@keyframes pulse{
    0%{
      box-shadow:#FF6D60 0 0 0 0;
    }
    75%{
      box-shadow:#FF6D6000 0 0 0 16px;
    }
    100%{
        box-shadow:#FF6D6000 0 0 0 0px;
    }
}

/*---------- Mobile ---------- */
@media (max-width: 767px) {
    .gpc-fcb {
        --fcb-width: 56px;
        --fcb-btn-width: 40px;
        --fcb-right: 20px;
        --fcb-bottom: 75px;
    }
    
    .gpc-fcb.hide-on-mobile {
        display: none;
    }

    .gpc-fcb .gpc-fcb__buttons .gpc-fcb__link:before {
        transition-delay: 300ms !important;
        transition-duration: 550ms !important;
    }

    .gpc-fcb .gpc-fcb__buttons.show .gpc-fcb__link:before {
        visibility: visible !important;
        opacity: 1 !important;
    }
}