/*
 * FinanceWay365 Premium Redesign CSS - v2.0
 * Fixed Ticker Spacing & Refinements
 */

/* 1. HIDE CONFLICTS */
#wp-custom-css, .ccpw-header-ticker-fixedbar {
    display: none !important;
}

/* 2. TICKER DIMENSIONS AND SPACING */
.ccpw-container, .tickercontainer, .ccpw-ticker-cont, .crypto-ticker-wrapper {
    display: block !important;
    position: relative !important;
    height: 50px !important;
    background: #101419 !important;
    border-bottom: 2px solid #00d2ff !important;
    margin: 0 !important; /* REMOVED MARGIN TOP - Let it naturally flow */
    overflow: hidden !important;
    white-space: nowrap !important;
    z-index: 10 !important;
}

.tickercontainer ul, #ccpw-ticker-widget-2920 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    animation: premiumTicker 60s linear infinite !important;
}

.tickercontainer li {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important; 
    height: 50px !important;
}

.coin-container {
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
    padding: 0 15px !important; 
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.coin-container img {
    margin-right: 8px !important;
    width: 24px !important;
    height: 24px !important;
}

/* 3. FIX GIANT MAIL ICON / SVG ISSUES */
.uagb-iconbox-icon-wrap svg, .uagb-ifb-icon-wrap svg, .uagb-icon-svg {
    width: 48px !important; 
    height: 48px !important;
    max-width: 100% !important;
    fill: #00d2ff !important;
    display: inline-block !important;
}

/* 4. BUTTON DIMENSIONS - Safe Normalization */
.ast-button, .wp-block-button__link, .uagb-buttons-repeater, .ast-custom-button, 
button.srfm-button, input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    max-width: 250px !important; 
    width: auto !important;
    background: linear-gradient(135deg, #00d2ff 0%, #9d50bb 100%) !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
}

.wp-block-button__link svg, .uagb-button__icon svg {
    width: 16px !important;
    height: 16px !important;
    margin-left: 8px !important;
}

/* 5. SEAMLESS ANIMATION */
@keyframes premiumTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Cards Fix */
.uagb-post__inner-wrap, .ast-article-post {
    max-width: 100% !important;
    padding: 20px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
