/**
 * Price Marquee Styles - Exact Copy from Original CPP Implementation + Ad Styles
 */

/* EXACT COPY FROM ORIGINAL cpp-price-marquee.php */
.cp-price-marquee-container {
    display: block;
    border-top: 1px solid var(--wp--preset--color--neutral-50, #e5e5e5);
    border-bottom: 1px solid var(--wp--preset--color--neutral-50, #e5e5e5);
    height: 66px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 9999;
    font-family: "DM Sans", sans-serif !important;
}

.cp-price-marquee-scroll {
    display: flex;
    animation: none;
    will-change: transform;
}

.cp-pm-coin-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 66px;
    border-right: 1px solid var(--wp--preset--color--neutral-50, #e5e5e5);
    flex-shrink: 0;
}

.cp-pm-coin-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0 15px;
    width: 100%;
    height: 100%;
}

.cp-pm-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.cp-pm-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.cp-pm-coin-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cp-pm-data-holder {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.cp-pm-symbol {
    font-weight: 600;
    font-size: 12px;
    color: #333;
}

.cp-pm-trend {
    font-size: 11px;
    font-weight: 500;
}

.cp-pm-trend.positive {
    color: #16a34a;
}

.cp-pm-trend.negative {
    color: #dc2626;
}

.cp-pm-price {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

/* Responsive adjustments - EXACT COPY */
@media (max-width: 768px) {
    .cp-pm-coin-holder {
        width: 160px;
    }
    
    .cp-pm-icon img {
        width: 24px;
        height: 24px;
    }
    
    .cp-pm-symbol {
        font-size: 11px;
    }
    
    .cp-pm-trend {
        font-size: 10px;
    }
    
    .cp-pm-price {
        font-size: 12px;
    }
}

/* ADVERTISEMENT STYLES - Uses same classes as crypto but with overrides */
.cp-pm-ad-holder {
    width: 400px; /* Double width of crypto items */
}

.cp-pm-ad-holder .cp-pm-coin-link {
    justify-content: space-between; /* Space between content and arrow */
}

.cp-pm-ad-holder .cp-pm-icon img {
    border-radius: 0; /* No round corners for ad icons */
}

.cp-pm-ad-holder .cp-pm-coin-details {
    flex: 1; /* Take available space */
}

.cp-pm-ad-holder .cp-pm-symbol {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.cp-pm-ad-holder .cp-pm-trend {
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 0;
}

.cp-pm-ad-arrow {
    margin-left: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-pm-ad-arrow svg {
    width: 24px;
    height: 24px;
}

/* Auto contrast text colors based on background */
.cp-pm-ad-holder[data-light-bg="true"] .cp-pm-coin-link {
    color: #000 !important;
}

.cp-pm-ad-holder[data-light-bg="false"] .cp-pm-coin-link {
    color: #fff !important;
}

.cp-pm-ad-holder[data-light-bg="true"] .cp-pm-symbol {
    color: #000 !important;
}

.cp-pm-ad-holder[data-light-bg="false"] .cp-pm-symbol {
    color: #fff !important;
}

.cp-pm-ad-holder[data-light-bg="true"] .cp-pm-trend {
    color: #000 !important;
}

.cp-pm-ad-holder[data-light-bg="false"] .cp-pm-trend {
    color: #fff !important;
}

/* Responsive adjustments for ads */
@media (max-width: 768px) {
    .cp-pm-ad-holder {
        width: 320px; /* Double mobile width */
    }
    
    .cp-pm-ad-holder .cp-pm-symbol {
        font-size: 11px;
    }
    
    .cp-pm-ad-holder .cp-pm-trend {
        font-size: 10px;
    }
    
    .cp-pm-ad-arrow svg {
        width: 20px;
        height: 20px;
    }
}