/* Custom DMME Widget Styling */

/* Hide the default DMME widget button if it exists */
#dmme-widget-launcher,
.dmme-widget-button,
[class*="dmme-"] button[class*="launcher"] {
    display: none !important;
}

/* Custom widget launcher button */
.gari-widget-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

.gari-widget-launcher:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Circular image container */
.gari-widget-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFD54F;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    position: relative;
}

.gari-widget-launcher:hover .gari-widget-circle {
    border-color: #5B8FDB;
    box-shadow: 0 12px 30px rgba(91, 143, 219, 0.4);
}

.gari-widget-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Text underneath */
.gari-widget-text {
    background: #FFD54F;
    color: #2d3436;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    transition: background 0.3s ease;
    max-width: 150px;
    line-height: 1.3;
}

.gari-widget-launcher:hover .gari-widget-text {
    background: #5B8FDB;
    color: #ffffff;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Attention pulse effect */
.gari-widget-circle::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #FFD54F;
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gari-widget-launcher {
        bottom: 20px;
        right: 20px;
    }

    .gari-widget-circle {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .gari-widget-text {
        font-size: 11px;
        padding: 6px 12px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .gari-widget-launcher {
        bottom: 15px;
        right: 15px;
    }

    .gari-widget-circle {
        width: 70px;
        height: 70px;
    }

    .gari-widget-text {
        font-size: 10px;
        padding: 5px 10px;
        max-width: 100px;
    }
}

/* Ensure DMME modal appears on top */
[class*="dmme-modal"],
[class*="dmme-overlay"] {
    z-index: 10000 !important;
}
