.rp-tiered-pricing-table-container {
    margin: 25px 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rp-tiered-pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    border: 1px solid #eee;
    font-size: 0.95em;
    border-radius: 8px;
    overflow: hidden;
}

.rp-tiered-pricing-table th, 
.rp-tiered-pricing-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.rp-tiered-pricing-table th {
    background-color: #fcfcfc;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.rp-tiered-pricing-table tr:last-child td {
    border-bottom: none;
}

.rp-tiered-pricing-table tr.rp-tiered-pricing-current {
    background-color: #fff5f5;
}

.rp-tiered-pricing-table tr.rp-tiered-pricing-current td {
    color: #d63638;
    font-weight: bold;
}

.rp-tiered-pricing-table tr td:last-child {
    color: #d63638;
    font-weight: 700;
}

.rp-tiered-price-label {
    display: block;
    margin: 10px 0;
    font-size: 1.4em;
    line-height: 1.2;
}

.rp-tiered-price-label .rp-label-text {
    font-weight: 400;
    color: #666;
    font-size: 0.7em;
    display: block;
    margin-bottom: 2px;
}

.rp-tiered-price-label .rp-price-value {
    font-weight: 800;
    color: #d63638; /* Red for the price */
}

.rp-tiered-price-label .rp-price-value bdi,
.rp-tiered-price-label .rp-price-value .woocommerce-Price-amount {
    color: #d63638;
}

/* Hide original price when our tiered label is present */
.price:has(.rp-tiered-price-label) > .woocommerce-Price-amount,
.price:has(.rp-tiered-price-label) > bdi,
.price:has(.rp-tiered-price-label) > ins,
.price:has(.rp-tiered-price-label) > del {
    display: none !important;
}

/* Fallback for themes that don't use .price or have different structures */
.rp-tiered-price-label ~ .woocommerce-Price-amount,
.rp-tiered-price-label ~ bdi,
.rp-tiered-price-label ~ ins,
.rp-tiered-price-label ~ del {
    display: none !important;
}

/* If the original price comes before our label as a sibling */
.woocommerce-Price-amount:has(+ .rp-tiered-price-label),
bdi:has(+ .rp-tiered-price-label),
ins:has(+ .rp-tiered-price-label),
del:has(+ .rp-tiered-price-label) {
    display: none !important;
}

.rp-tiered-qty-suffix {
    font-size: 0.6em;
    color: #777;
    font-weight: 400;
    margin-left: 5px;
}

.rp-tiered-minimum-notice {
    color: #d63638;
    font-size: 0.85em;
    margin-top: 5px;
    font-style: italic;
}

/* Add a red accent to the current row */
.rp-tiered-pricing-table tr.rp-tiered-pricing-current td:first-child {
    border-left: 4px solid #d63638;
}

@media screen and (max-width: 600px) {
    .rp-tiered-pricing-table th, 
    .rp-tiered-pricing-table td {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    .rp-tiered-price-label {
        font-size: 1.2em;
    }
}
