/* JCNSYSTEM Volume Pricing Frontend Stylesheet */
.jcn-volume-pricing-container {
    margin: 1.5rem 0;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
}

.jcn-volume-pricing-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.jcn-volume-pricing-title svg {
    color: #15d3d3;
    fill: currentColor;
    width: 18px;
    height: 18px;
}

.jcn-volume-pricing-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(21, 211, 211, 0.2);
    background: #ffffff;
}

.jcn-volume-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
}

.jcn-volume-pricing-table th {
    background: #1e3a8a;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
}

.jcn-volume-pricing-table th:first-child {
    border-top-left-radius: 11px;
}

.jcn-volume-pricing-table th:last-child {
    border-top-right-radius: 11px;
    text-align: right;
}

.jcn-volume-pricing-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    transition: all 0.2s ease;
}

.jcn-volume-pricing-table tr:last-child td {
    border-bottom: none;
}

.jcn-volume-pricing-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: #1e3a8a;
}

.jcn-volume-pricing-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* Hover effects */
.jcn-volume-pricing-table tr:hover td {
    background-color: rgba(21, 211, 211, 0.08) !important;
    color: #1e3a8a;
}

/* Highlight badge */
.jcn-discount-badge {
    background-color: #e0fcfc;
    color: #0e7490;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(21, 211, 211, 0.3);
}

/* Highlight row for the current active range based on quantity input (will be dynamically handled with JS) */
.jcn-volume-pricing-table tr.active-discount-range td {
    background-color: rgba(21, 211, 211, 0.12) !important;
    font-weight: 600;
    border-left: 4px solid #15d3d3;
}

.jcn-volume-pricing-table tr.active-discount-range td:first-child {
    padding-left: 12px; /* Adjust for border */
}
