/**
 * LifeLight Product Advisor - Persistent Badge Styles
 * 
 * Displays a fixed badge in the bottom-right corner above the Trustedshop widget
 * Responsive: 93x154px (desktop/tablet) → 68x111px (mobile)
 */

/* Badge Container - Fixed positioning */
.product-advisor-badge-container {
    position: fixed;
    bottom: 220px;
    /* Positioned above Trustedshop badge - adjust as needed */
    right: 12px;
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: none;
    /* Hidden by default, shown via JS if enabled */
}

/* Badge Link - Remove default link styles */
.product-advisor-badge-link {
    display: block;
    text-decoration: none;
    outline: none;
}

.product-advisor-badge-link:hover,
.product-advisor-badge-link:focus {
    text-decoration: none;
}

/* Badge itself - Desktop/Tablet dimensions */
.product-advisor-badge {
    width: 108px;
    height: auto;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Badge content */
.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: auto;
}

/* Badge text */
.badge-text {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hover effects */
.product-advisor-badge-link:hover .product-advisor-badge {
    transform: translateY(-4px);
}

.product-advisor-badge-link:active .product-advisor-badge {
    transform: translateY(-2px);
}

/* Focus state for accessibility */
.product-advisor-badge-link:focus .product-advisor-badge {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

.badge-icon-mobile {
    display: none;
}

/* Mobile breakpoint - Responsive sizing */
@media (max-width: 767px) {
    .product-advisor-badge-container {
        bottom: 220px;
        /* May need adjustment on mobile */
        right: 12px;
    }

    .product-advisor-badge {
        width: 108px;
        height: auto;
    }

    .badge-text {
        font-size: 11px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-advisor-badge-container {
        right: 20px;
    }
}

/* Handle very small screens */
@media (max-width: 648px) {
    .product-advisor-badge-container {
        bottom: 140px;
        right: 2px;
    }

    .product-advisor-badge {
        width: 82px;
        height: auto;
    }

    .badge-text {
        font-size: 10px;
    }

    .badge-icon-mobile {
        display: block;
    }

    .badge-icon-desktop {
        display: none;
    }
}

/* Print media - Hide badge when printing */
@media print {
    .product-advisor-badge-container {
        display: none !important;
    }
}