/* === Currency Marquee Widget Specific Styles === */
.cme-currency-section {
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Wrapper for scrolling effect */
.cme-currency-wrap {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Scrolling currency container */
.cme-currency-content {
    display: flex;
    gap: 20px;
    flex: 0 0 auto;
    min-width: 100%;
}

/* Individual currency items */
.cme-currency-item {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 8px;
    line-height: 1;
}

/* Rate information styling */
.cme-rate-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cme-pair {
    font-weight: bold;
    color: #333;
}

.cme-rate {
    font-weight: normal;
    color: #666;
}

.cme-change {
    font-size: 14px;
    font-weight: bold;
}

.cme-change.up {
    color: #28a745;
}

.cme-change.down {
    color: #dc3545;
}

.cme-change.neutral {
    color: #6c757d;
}

/* No data message */
.cme-no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Reset padding and margin for all child elements */
.cme-currency-item * {
    padding: 0 !important;
    margin: 0 !important;
}

/* Separator icon styling */
.cme_separator__icon {
    display: flex;
}

/* ticker label */
.cme-ticker-label {
    position: absolute;
    background: rgb(33, 9, 50);
    line-height: 0;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cme-ticker-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 8px;
    gap: 8px;
}

.cme-ticker-label p {
    margin: 0;
    padding: 0;
    color: #fff;
}

/* Left to Right Currency Marquee */
.cme-currency-content.currency-marquee-left-to-right {
    animation: currency-marquee-left-to-right linear infinite;
}

@keyframes currency-marquee-left-to-right {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Right to Left Currency Marquee */
.cme-currency-content.currency-marquee-right-to-left {
    animation: currency-marquee-right-to-left linear infinite;
}

/* Right to Left */
@keyframes currency-marquee-right-to-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.cme-currency-wrap:hover .cme-pause-on-hover {
    animation-play-state: paused;
}

/* Responsive design */
@media (max-width: 768px) {
    .cme-currency-item {
        padding: 8px 15px;
        font-size: 14px;
        gap: 24px;
    }

    .cme-rate-info {
        gap: 6px;
    }

    .cme-change {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cme-currency-section {
        padding: 10px;
    }

    .cme-currency-item {
        padding: 6px 10px;
        font-size: 12px;
        gap: 16px;
    }

    .cme-rate-info {
        gap: 4px;
    }
}