/* Floating Contact Buttons Container */
.tav-floating-contact {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    font-family: inherit;
}

/* RTL Support */
[dir="rtl"] .tav-floating-contact {
    direction: rtl;
}

[dir="ltr"] .tav-floating-contact {
    direction: ltr;
}

/* Collapsible Container */
.tav-fc-collapsible .tav-fc-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: visible;
}

.tav-fc-collapsible.tav-fc-collapsed .tav-fc-buttons {
    height: 0;
    opacity: 0;
    margin: 0;
}

/* Toggle Button */
.tav-fc-toggle {
    cursor: pointer;
    position: relative;
    width: 50px !important;
    height: 50px !important;
    min-width: auto !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--button-color, #ff0000);
    color: var(--text-color, #000000);
}

.tav-fc-toggle:hover {
    background-color: var(--hover-color, #ff0000);
    color: var(--hover-text-color, #000000);
}

.tav-fc-toggle .tav-fc-icon {
    width: 24px;
    height: 24px;
    margin: 0;
    transition: transform 0.3s ease;
}

.tav-fc-collapsed .tav-fc-toggle .tav-fc-icon {
    transform: rotate(180deg);
}

/* Toggle Text Tooltip */
.tav-fc-tooltip {
    position: absolute;
    background: white;
    color: #333;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tav-fc-right .tav-fc-tooltip {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

.tav-fc-left .tav-fc-tooltip {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

.tav-fc-toggle:hover .tav-fc-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Button Styles */
.tav-fc-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background-color: var(--button-color, #ff0000);
    color: var(--text-color, #000000);
}

.tav-fc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: var(--hover-color, #ff0000);
    color: var(--hover-text-color, #000000);
}

.tav-fc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tav-fc-icon i {
    font-size: 1.2em;
    color: var(--icon-color, #000000);
    transition: color 0.3s ease;
}

.tav-fc-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--icon-filter, none);
    transition: filter 0.3s ease;
}

.tav-fc-button:hover .tav-fc-icon i {
    color: var(--hover-icon-color, #ff0000);
}

.tav-fc-button:hover .tav-fc-icon img {
    filter: var(--hover-icon-filter, none);
}

/* Circle Style */
.tav-fc-circle .tav-fc-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    position: relative;
    background-color: var(--button-color, #ff0000);
    color: var(--text-color, #000000);
}

.tav-fc-circle .tav-fc-button:hover {
    background-color: var(--hover-color, #ff0000);
    color: var(--hover-text-color, #000000);
}

.tav-fc-circle .tav-fc-icon {
    width: 28px;
    height: 28px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.tav-fc-circle .tav-fc-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tav-fc-circle .tav-fc-icon i {
    font-size: 18px;
}

.tav-fc-circle .tav-fc-label {
    position: absolute;
    background: white;
    color: #333;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    font-family: inherit;
    pointer-events: none;
}

.tav-fc-circle.tav-fc-right .tav-fc-label {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

.tav-fc-circle.tav-fc-left .tav-fc-label {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

/* Ensure labels are always visible; hover rule not needed */
.tav-fc-circle .tav-fc-button:hover .tav-fc-label {
    opacity: 1;
    visibility: visible;
}

/* Circle Style - Toggle Button Exception */
.tav-fc-circle .tav-fc-toggle {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

.tav-fc-circle .tav-fc-toggle .tav-fc-icon {
    width: 28px;
    height: 28px;
    margin: 0;
}

.tav-fc-circle .tav-fc-toggle .tav-fc-label {
    display: inline-block;
}

/* Box Style */
.tav-fc-rounded .tav-fc-button {
    padding: 8px 20px;
    border-radius: 10px;
    background-color: var(--button-color, #ff0000);
    min-width: 200px;
    color: var(--text-color, #000000);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

[dir="rtl"] .tav-fc-rounded .tav-fc-button {
    flex-direction: row;
    justify-content: flex-start;
}

.tav-fc-rounded .tav-fc-button:hover {
    background-color: var(--hover-color, #ff0000);
    color: var(--hover-text-color, #000000);
}

.tav-fc-rounded .tav-fc-icon {
    width: 35px;
    height: 35px;
    background: var(--icon-bg-color, #f8f8f8);
    border-radius: 8px;
    padding: 8px;
}

[dir="rtl"] .tav-fc-rounded .tav-fc-icon {
    margin-left: 12px;
    margin-right: 10px;
}

[dir="ltr"] .tav-fc-rounded .tav-fc-icon {
    margin-right: 12px;
    margin-left: 10px;
}

.tav-fc-rounded .tav-fc-label {
    font-size: 14px;
    font-weight: 500;
    text-align: inherit;
    padding: 12px;
}

/* Box Style - Toggle Button */
.tav-fc-rounded .tav-fc-toggle {
    width: auto !important;
    height: auto !important;
    min-width: 200px !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

[dir="rtl"] .tav-fc-rounded .tav-fc-toggle {
    flex-direction: row;
    justify-content: flex-start;
}

.tav-fc-rounded .tav-fc-toggle:hover {
    background-color: var(--hover-color, #ff0000);
    color: var(--hover-text-color, #000000);
}

.tav-fc-rounded .tav-fc-toggle .tav-fc-icon {
    width: 35px;
    height: 35px;
    background: var(--icon-bg-color, #f8f8f8);
    border-radius: 8px;
    padding: 8px;
}

[dir="rtl"] .tav-fc-rounded .tav-fc-toggle .tav-fc-icon {
    margin-right: 12px;
    margin-left: 10px;
}

[dir="ltr"] .tav-fc-rounded .tav-fc-toggle .tav-fc-icon {
    margin-right: 12px;
    margin-left: 10px;
}

.tav-fc-rounded .tav-fc-toggle.no-text {
    width: 50px !important;
    height: 50px !important;
    min-width: auto !important;
    padding: 8px !important;
}

.tav-fc-rounded .tav-fc-toggle.no-text .tav-fc-icon {
    margin: 0;
}

/* Position Classes */
[dir="rtl"] .tav-fc-right {
    right: 20px;
    align-items: flex-start;
}

[dir="rtl"] .tav-fc-left {
    left: 20px;
    align-items: flex-end;
}

[dir="ltr"] .tav-fc-right {
    right: 20px;
    align-items: flex-end;
}

[dir="ltr"] .tav-fc-left {
    left: 20px;
    align-items: flex-start;
}

/* Tooltip Positions */
[dir="rtl"] .tav-fc-right .tav-fc-tooltip {
    right: calc(100% + 10px);
    left: auto;
}

[dir="rtl"] .tav-fc-left .tav-fc-tooltip {
    left: calc(100% + 10px);
    right: auto;
}

[dir="ltr"] .tav-fc-right .tav-fc-tooltip {
    right: calc(100% + 10px);
    left: auto;
}

[dir="ltr"] .tav-fc-left .tav-fc-tooltip {
    left: calc(100% + 10px);
    right: auto;
}

/* Circle Label Positions */
[dir="rtl"] .tav-fc-circle.tav-fc-right .tav-fc-label {
    right: calc(100% + 10px);
    left: auto;
}

[dir="rtl"] .tav-fc-circle.tav-fc-left .tav-fc-label {
    left: calc(100% + 10px);
    right: auto;
}

[dir="ltr"] .tav-fc-circle.tav-fc-right .tav-fc-label {
    right: calc(100% + 10px);
    left: auto;
}

[dir="ltr"] .tav-fc-circle.tav-fc-left .tav-fc-label {
    left: calc(100% + 10px);
    right: auto;
}

/* Animation Types */
.tav-fc-animation-fade .tav-fc-button {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.tav-fc-animation-fade .tav-fc-button:hover {
    opacity: 1;
}

/* Slide Animation */
.tav-fc-animation-slide.tav-fc-left .tav-fc-button {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.tav-fc-animation-slide.tav-fc-left .tav-fc-button:hover {
    transform: translateX(0);
}

.tav-fc-animation-slide.tav-fc-right .tav-fc-button {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.tav-fc-animation-slide.tav-fc-right .tav-fc-button:hover {
    transform: translateX(0);
}

/* RTL Slide Animation */
[dir="rtl"] .tav-fc-animation-slide.tav-fc-left .tav-fc-button {
    transform: translateX(0);
}

[dir="rtl"] .tav-fc-animation-slide.tav-fc-left .tav-fc-button:hover {
    transform: translateX(0);
}

[dir="rtl"] .tav-fc-animation-slide.tav-fc-right .tav-fc-button {
    transform: translateX(0);
}

[dir="rtl"] .tav-fc-animation-slide.tav-fc-right .tav-fc-button:hover {
    transform: translateX(0);
}

/* Bounce Animation */
.tav-fc-animation-bounce .tav-fc-button {
    transition: transform 0.3s ease;
}

.tav-fc-animation-bounce .tav-fc-button:hover {
    animation: tav-fc-bounce 0.5s ease;
}

/* Rotate Animation */
.tav-fc-animation-rotate .tav-fc-button {
    transition: transform 0.3s ease;
}

.tav-fc-animation-rotate .tav-fc-button:hover {
    transform: rotate(5deg);
}

/* Scale Animation */
.tav-fc-animation-scale .tav-fc-button {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.tav-fc-animation-scale .tav-fc-button:hover {
    transform: scale(1);
}

/* Bounce Animation Keyframes */
@keyframes tav-fc-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .tav-floating-contact {
        flex-direction: column;
        gap: 8px;
    }

    .tav-fc-collapsible .tav-fc-buttons {
        flex-direction: column;
    }

    .tav-fc-collapsible.tav-fc-collapsed .tav-fc-buttons {
        height: 0;
        width: auto;
    }

    .tav-fc-toggle {
        min-width: 140px !important;
    }

    .tav-fc-toggle.no-text {
        min-width: auto !important;
    }

    .tav-fc-circle .tav-fc-toggle {
        padding: 6px 15px;
    }

    .tav-fc-circle .tav-fc-toggle.no-text {
        padding: 0;
    }

    .tav-fc-circle .tav-fc-toggle .tav-fc-icon {
        width: 18px;
        height: 18px;
        margin-left: 6px;
    }

    .tav-fc-circle .tav-fc-toggle.no-text .tav-fc-icon {
        margin: 0;
    }

    .tav-fc-circle .tav-fc-toggle .tav-fc-label {
        font-size: 12px;
        padding: 4px 10px;
    }

    .tav-fc-tooltip {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media screen and (max-width: 480px) {
    .tav-floating-contact {
        gap: 6px;
    }

    .tav-fc-toggle {
        min-width: 120px !important;
    }

    .tav-fc-toggle.no-text {
        min-width: auto !important;
    }

    .tav-fc-circle .tav-fc-toggle {
        padding: 5px 12px;
    }

    .tav-fc-circle .tav-fc-toggle.no-text {
        padding: 0;
    }

    .tav-fc-circle .tav-fc-toggle .tav-fc-icon {
        width: 16px;
        height: 16px;
        margin-left: 5px;
    }

    .tav-fc-circle .tav-fc-toggle.no-text .tav-fc-icon {
        margin: 0;
    }

    .tav-fc-circle .tav-fc-toggle .tav-fc-label {
        font-size: 11px;
        padding: 3px 8px;
    }

    .tav-fc-tooltip {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Circle Style */
.tav-fc-circle .tav-fc-button .tav-fc-icon i {
    color: var(--icon-color, #000000);
}

.tav-fc-circle .tav-fc-button .tav-fc-icon img {
    filter: var(--circle-icon-filter);
}

.tav-fc-circle .tav-fc-button:hover .tav-fc-icon i {
    color: var(--hover-icon-color, #ff0000);
}

.tav-fc-circle .tav-fc-button:hover .tav-fc-icon img {
    filter: var(--circle-hover-icon-filter);
}

/* Box Style */
.tav-fc-rounded .tav-fc-button .tav-fc-icon i {
    color: var(--icon-color, #000000);
}

.tav-fc-rounded .tav-fc-button .tav-fc-icon img {
    filter: var(--rounded-icon-filter);
}

.tav-fc-rounded .tav-fc-button:hover .tav-fc-icon i {
    color: var(--hover-icon-color, #ff0000);
}

.tav-fc-rounded .tav-fc-button:hover .tav-fc-icon img {
    filter: var(--rounded-icon-filter);
}

/* Toggle Button */
.tav-fc-toggle .tav-fc-icon i {
    color: var(--icon-color, #000000);
}

.tav-fc-toggle .tav-fc-icon img {
    filter: var(--circle-icon-filter);
}

.tav-fc-toggle:hover .tav-fc-icon i {
    color: var(--hover-icon-color, #ff0000);
}

.tav-fc-toggle:hover .tav-fc-icon img {
    filter: var(--circle-hover-icon-filter);
} 

/* Circle label display modes */
.tav-fc-circle.tav-fc-label-hover .tav-fc-label {
    opacity: 0;
    visibility: hidden;
}

.tav-fc-circle.tav-fc-label-hover .tav-fc-button:hover .tav-fc-label,
.tav-fc-circle.tav-fc-label-hover .tav-fc-toggle:hover .tav-fc-label {
    opacity: 1;
    visibility: visible;
}

.tav-fc-circle.tav-fc-label-always .tav-fc-label {
    opacity: 1;
    visibility: visible;
}

.tav-fc-circle.tav-fc-label-off .tav-fc-label {
    display: none !important;
} 