/* vn4u-coffee-price frontend css - VIBRANT PREMIUM VERSION */

.vn4u-cp-wrapper {
    margin-bottom: 40px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Beautiful Title Badge */
.vn4u-cp-wrapper h4 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    padding: 12px 24px;
    border-radius: 30px;
    /* Pill shape */
    line-height: 1.4;
    display: inline-block;
    box-shadow: 0 6px 15px rgba(245, 124, 0, 0.25);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-left: none !important;
    /* Override old inline style */
}

/* Table Container with soft floating shadow */
.vn4u-cp-table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Deep premium shadow */
    position: relative;
    padding: 5px;
    /* Slight inner spacing */
}

.vn4u-cp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    background: white;
}

/* Elegant Header */
.vn4u-cp-table th {
    background-color: transparent;
    font-weight: 700;
    color: #9E9E9E;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 20px 25px;
    border-bottom: 2px solid #F0F0F0;
}

/* Table Cells */
.vn4u-cp-table td {
    padding: 20px 25px;
    text-align: left;
    border-bottom: 1px solid #F5F5F5;
    vertical-align: middle;
    font-size: 15px;
    color: #424242;
}

.vn4u-cp-table tbody tr:last-child td {
    border-bottom: none;
}

/* Smooth hover effect */
.vn4u-cp-table tbody tr {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vn4u-cp-table tbody tr:hover {
    background-color: #FFF8E1;
    transform: translateY(-2px);
    /* Slight lift */
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.08);
    border-radius: 8px;
    /* Rounding the row on hover */
    display: table-row;
    position: relative;
    z-index: 10;
}

/* Vibrant Price Styling */
.vn4u-cp-price {
    font-weight: 800;
    color: #E65100;
    /* Dark Orange */
    font-size: 20px;
    letter-spacing: -0.5px;
}

/* Badge-style Changes */
.vn4u-cp-change {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.vn4u-cp-change.up {
    color: #007E33;
    background-color: #E8F5E9;
    border: 1px solid #C8E6C9;
}

.vn4u-cp-change.down {
    color: #CC0000;
    background-color: #FFEBEE;
    border: 1px solid #FFCDD2;
}

.vn4u-cp-change.none {
    color: #757575;
    background-color: #F5F5F5;
    border: 1px solid #EEEEEE;
}

/* Premium Ticker */
.vn4u-cp-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #3E2723 0%, #4E342E 100%);
    /* Deep Coffee Background */
    color: #fff;
    padding: 14px 0;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(62, 39, 35, 0.35);
    position: relative;
    display: flex;
    align-items: center;
}

.vn4u-cp-ticker-title {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    padding: 14px 24px;
    font-weight: 800;
    text-transform: uppercase;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.vn4u-cp-ticker {
    display: flex;
    white-space: nowrap;
    animation: vn4u-ticker 25s linear infinite;
    padding-left: 200px;
    /* space for title */
}

.vn4u-cp-ticker:hover {
    animation-play-state: paused;
}

.vn4u-cp-ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 45px;
    font-size: 16px;
}

.vn4u-cp-ticker-region {
    font-weight: 700;
    margin-right: 8px;
    color: #FFF3E0;
    text-transform: uppercase;
    font-size: 14px;
}

.vn4u-cp-ticker-price {
    font-weight: 800;
    color: #FFCA28;
    /* Golden Yellow */
    margin-right: 8px;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@keyframes vn4u-ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .vn4u-cp-ticker-title {
        display: none;
    }

    .vn4u-cp-ticker {
        padding-left: 10px;
    }
}