/* Product Fixed Bar Custom Styles */

/* Smooth animations */
#product-fixed-bar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for buttons */
#product-fixed-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
/* .bar-content {
    gap: 50px;
} */


#product-fixed-bar .flex-col {
    align-items: center;
    text-align: center;    
}



/* CSS Custom Properties for fluid design */
:root {
    --bar-gap: clamp(1rem, 2vw, 3rem);
    --bar-padding: clamp(0.5rem, 1.5vw, 1.5rem);
    --bar-content-gap: clamp(1.25rem, 3vw, 3.125rem);
    --bar-section-gap: clamp(1rem, 2.5vw, 2.5rem);
}

/* Apply fluid properties */
/* #product-fixed-bar {
    padding: var(--bar-padding) 0;
} */

/* #product-fixed-bar .bar-content {
    gap: var(--bar-content-gap) !important;
} */

/* Fluid spacing between main sections */
#product-fixed-bar > div > div > div {
    gap: var(--bar-section-gap);
}

/* Responsive flex behavior */
@media (min-width: 1024px) {
    #product-fixed-bar .lg\:flex-shrink-0 {
        flex-shrink: 0;
    }
}

@media (max-width: 1023px) {
    #product-fixed-bar .lg\:flex-shrink-0 {
        flex-shrink: 1;
    }
}

/* Badge animations */
#product-fixed-bar + div[class*="fixed"] {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Glassmorphism effect */
#product-fixed-bar {
    background: #F8F9F5;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Mobile First - Radio buttons base styles */
#product-fixed-bar .flex.flex-row.justify-center.items-center.gap-3 {
    margin-left: 1rem;  /* ml-4 */
    margin-right: 1rem; /* mr-4 */
}

/* Desktop and up - remove margins */
@media (min-width: 1024px) {
    #product-fixed-bar .flex.flex-row.justify-center.items-center.gap-3 {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Enhanced shadows */
#product-fixed-bar {
    box-shadow: 
        0 -4px 6px -1px rgba(0, 0, 0, 0.1),
        0 -2px 4px -1px rgba(0, 0, 0, 0.06),
        0 -1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Radio button natural alignment */
#product-fixed-bar .rg-option-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1rem !important; /* p-4 */
}

/* Ensure content flows naturally */
#product-fixed-bar .rg-option-container > div {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

/* Price highlighting */
#product-fixed-bar .text-primary {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Early bird badge enhancement */
#product-fixed-bar .bg-green-50 {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

/* Hover states for interactive elements */
#product-fixed-bar a:hover,
#product-fixed-bar button:hover {
    transition: all 0.3s ease;
}

/* Loading state for buy button */
#product-fixed-bar button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
#product-fixed-bar button:focus,
#product-fixed-bar a:focus {
    outline: 2px solid #557255;
    outline-offset: 2px;
}

/* Trustpilot Rating Sophistication */
#product-fixed-bar .flex.items-center.space-x-2 {
    letter-spacing: 0.025em;
}

#product-fixed-bar .text-xs.font-medium {
    font-weight: 500;
    letter-spacing: 0.05em;
}

#product-fixed-bar .text-xs.text-gray-500 {
    letter-spacing: 0.03em;
    opacity: 0.8;
}

/* Enhanced star styling */
#product-fixed-bar .fa-star {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.2s ease;
}

/* Trustpilot responsive layout for small screens */
@media (max-width: 1300px) {
    #product-fixed-bar #fixed-bar-trustpilot {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    #product-fixed-bar #fixed-bar-trustpilot .flex {
        justify-content: center !important;
    }
}

/* Force radio buttons in column on smaller screens (≤ 1200px) */
@media (max-width: 1200px) {
    #product-fixed-bar .section-pricing {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    #product-fixed-bar .rg-option-container {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
    }
}

/* Force radio buttons in row on larger screens (≥ 1200px) */
@media (min-width: 1200px) {
    #product-fixed-bar .section-pricing {
        flex-direction: row !important;
        gap: 1.5rem !important;
    }
    
    #product-fixed-bar .rg-option-container {
        width: auto !important;
        max-width: none !important;
    }
}



#product-fixed-bar .fa-star:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Hover effects for Trustpilot link */
#product-fixed-bar a:hover .fa-star {
    color: #059669;
}

#product-fixed-bar a:hover span {
    color: #1f2937;
}

