/**
 * Public styles for WP Financial Ticker
 */

 .wp-financial-ticker-container {
    width: 100%;
    
    overflow: hidden;
    position: relative;
    padding: 4px;
}

.wp-financial-ticker-inner {
    width: 100%;
    overflow: hidden;
    height: 50px;
}

.wp-financial-ticker-track {
    width: 100%;
    overflow: hidden;
    height: 50px;
    position: relative;
}

.wp-financial-ticker-content {
    display: flex;
    position: absolute;
    height: 100%;
    will-change: transform;
}

/* Each ticker item - main container */
.wp-financial-ticker-item {
    display: flex;
    align-items: center;
    height: 50px;
    background-color: #1A1A1A;
    color: #fff;
    width: 290px;
    margin-right: 10px;
    border-radius: 50px;
    overflow: hidden;
    padding: 10px;
}

/* Direction indicator (left side) */
.wp-financial-ticker-direction {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 0;
}

.wp-financial-ticker-direction .wp-financial-ticker-arrow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.wp-financial-ticker-direction .wp-financial-ticker-arrow:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    transform: translate(-50%, -50%);
}

.wp-financial-ticker-direction .wp-financial-ticker-arrow.up {
    background-color: rgb(76 175 80 / 10%);
}

.wp-financial-ticker-direction .wp-financial-ticker-arrow.up:before {
    border-bottom: 6px solid #09B720;
    border-top: 0;
}

.wp-financial-ticker-direction .wp-financial-ticker-arrow.down {
    background-color: #5D1E1B;
}

.wp-financial-ticker-direction .wp-financial-ticker-arrow.down:before {
    border-top: 6px solid #F41212;
    border-bottom: 0;
}

/* Symbol and price information (middle) */
.wp-financial-ticker-symbol {
    flex: 1;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wp-financial-ticker-name {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
}

.wp-financial-ticker-prices {
    font-size: 12px;
    color: #7B7B7B;
    line-height: 1.2;
}

.wp-financial-ticker-prices.flash {
    color: #E6E6E6;
    transition: color 0.5s ease;
}

/* Trade button (right side) */
.wp-financial-ticker-trade {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    height: 100%;
   
}

.wp-financial-ticker-trade-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    background-color: #172C5F;
    color: #A2BBED;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 20px;
}

.wp-financial-ticker-trade-button:hover {
    background-color: #34495e;
    color: #fff;
    text-decoration: none;
}

.wp-financial-ticker-no-data {
    padding: 10px;
    text-align: center;
    width: 100%;
    color: #fff;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .wp-financial-ticker-item {
        min-width: 220px;
    }
    
    .wp-financial-ticker-direction {
        width: 36px;
        height: 36px;
    }
    
    .wp-financial-ticker-trade-button {
        padding: 0 15px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .wp-financial-ticker-item {
        min-width: 200px;
    }
    
    .wp-financial-ticker-name {
        font-size: 12px;
    }
    
    .wp-financial-ticker-prices {
        font-size: 10px;
    }
    
    .wp-financial-ticker-trade-button {
        padding: 0 10px;
        font-size: 12px;
    }
}

/* Special styles for indices arrows to make sure they're visible */
.wp-financial-ticker-item[data-type="indices"] .wp-financial-ticker-arrow.up {
    background-color: rgb(76 175 80 / 10%);
    border: none !important;
}

.wp-financial-ticker-item[data-type="indices"] .wp-financial-ticker-arrow.up:before {
    border-bottom: 6px solid #09B720 !important;
    border-top: 0 !important;
}

.wp-financial-ticker-item[data-type="indices"] .wp-financial-ticker-arrow.down {
    background-color: #5D1E1B !important;
    border: none !important;
}

.wp-financial-ticker-item[data-type="indices"] .wp-financial-ticker-arrow.down:before {
    border-top: 6px solid #F41212 !important;
    border-bottom: 0 !important;
}
