/* --- Buy Now Button Frontend Styling --- */
.wsu-buy-now-button {
    display: inline-block;
    background-color: #008CBA;
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Fans Panel Auto-Inject Styling --- */
/* 
   STRUCTURAL FIXES:
   Removed width:100% and position:relative because the panel now controls layout.
   Using margin:0 allows the parent wad-single-purchase-panel to handle spacing.
   This ensures Fans matches other green blocks exactly.
*/
.wsu-fans-wrap {
    margin: 0;
}

/* 
   UPDATED FANS BUTTON STYLES
   Now matches WAD button typography scaling system
   Includes proper font-family, flex centering, and responsive breakpoints
*/
.wsu-fans-button {
    width: 100%;
    min-height: 92px;
    font-family: 'WADMontserrat', sans-serif !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    background-image: url('/wp-content/plugins/wc-artistdash/assets/images/WADBuy.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ==========================================
   FANS BUTTON - FORCE STATIC PNG STATES
   Prevents theme/WooCommerce from overriding
   the button background on hover/focus/active
========================================== */

.wsu-fans-button,
.wsu-fans-button:hover,
.wsu-fans-button:focus,
.wsu-fans-button:active,
.wsu-fans-button:visited {
    background-image: url('/wp-content/plugins/wc-artistdash/assets/images/WADBuy.png') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    opacity: 1 !important;
    transform: none !important;
    scale: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

/* Remove theme pseudo-elements that might appear */
.wsu-fans-button:before,
.wsu-fans-button:after,
.wsu-fans-button:hover:before,
.wsu-fans-button:hover:after {
    display: none !important;
    content: none !important;
}

/* ==========================================
   INFINITE SCROLL DROPDOWN STYLES - FIXED
   Forces scroll container to have guaranteed height and scrollbar
   Prevents page scrolling while interacting with fan list
========================================== */

.wsu-fans-dropdown {
    display: none;
    background: #111;
    margin-top: -10px;
    border-radius: 0 0 16px 16px;
    padding: 10px;
    z-index: 999;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Fans list container - FIXED to force scrollbar */
.wsu-fans-scroll {
    height: 260px !important;
    max-height: 260px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-right: 4px;
}

/* Custom scrollbar styling */
.wsu-fans-scroll::-webkit-scrollbar {
    width: 6px;
}

.wsu-fans-scroll::-webkit-scrollbar-track {
    background: #111;
    border-radius: 30px;
}

.wsu-fans-scroll::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 30px;
}

.wsu-fans-scroll::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Loading indicator */
.wsu-loading {
    display: none;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    color: #aaa;
}

/* Individual fan item */
.wsu-fan-item {
    padding: 10px;
    color: #fff;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.wsu-fan-item:last-child {
    border-bottom: none;
}

.wsu-fan-item:hover {
    background: #1a1a1a;
    border-radius: 8px;
}

.wsu-fan-icon {
    flex-shrink: 0;
    margin-right: 10px;
}

.wsu-fan-name {
    flex-grow: 1;
    text-align: left;
}

.wsu-fan-count {
    opacity: 0.7;
    font-weight: bold;
    background: #333;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

/* ==========================================
   TOTAL FANS HEADER ROW
   UPGRADED: Distinct styling for the header row
========================================== */

.wsu-total-fans {
    background: #0d0d0d;
    border-left: 4px solid #ffc107;
    margin-bottom: 8px;
    font-weight: 800;
}

.wsu-total-fans .wsu-fan-name {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.wsu-total-fans .wsu-fan-count {
    background: #444;
    color: #fff;
    font-weight: 900;
}

/* ======================================
   FANS BUTTON RESPONSIVE TYPOGRAPHY
   Matches WAD button scaling exactly
====================================== */

@media (max-width: 768px) {
    .wsu-fans-button {
        min-height: 78px !important;
        font-size: 1.55rem !important;
    }
}

@media (max-width: 480px) {
    .wsu-fans-button {
        min-height: 70px !important;
        font-size: 1.2rem !important;
        letter-spacing: -0.3px;
    }
}