/* Sajal Das Floating Contact Buttons */

.sdfb-floating-buttons {
    position: fixed;
    right: var(--sdfb-right);
    bottom: var(--sdfb-bottom);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sdfb-gap);
    pointer-events: none;
}

.sdfb-button {
    width: var(--sdfb-size);
    min-width: var(--sdfb-size);
    height: var(--sdfb-size);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 50%;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .20);
    transition: transform .2s ease, box-shadow .2s ease;
    pointer-events: auto;
    overflow: hidden;
}

.sdfb-button:hover,
.sdfb-button:focus {
    transform: scale(1.08);
    box-shadow: 0 7px 22px rgba(0, 0, 0, .28);
    text-decoration: none !important;
}

.sdfb-button svg {
    width: 58%;
    height: 58%;
    display: block;
    fill: #fff;
}

.sdfb-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
}

.sdfb-justdial {
    background: #ff7a00 !important;
    color: #fff !important;
}

.sdfb-jd-icon {
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.95);
    border-radius: 50%;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: calc(var(--sdfb-size) * .25);
    font-weight: 800;
    line-height: 1;
}

.sdfb-label {
    display: none;
    white-space: nowrap;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.sdfb-floating-buttons:has(.sdfb-label) .sdfb-button {
    width: auto;
    min-width: var(--sdfb-size);
    padding: 0 15px;
    border-radius: 999px;
}

.sdfb-floating-buttons:has(.sdfb-label) .sdfb-label {
    display: inline-block;
}

@media (max-width: 767px) {
    .sdfb-floating-buttons {
        right: max(12px, var(--sdfb-right));
        bottom: max(12px, var(--sdfb-bottom));
    }

    .sdfb-button {
        box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sdfb-button {
        transition: none;
    }

    .sdfb-button:hover,
    .sdfb-button:focus {
        transform: none;
    }
}
