/* =========================================================================
   Eviprinting Quantity & Delivery Pricing Table
   ========================================================================= */

#evip-pricing-wrapper {
    margin: 24px 0;
    clear: both;
}

.evip-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e91e63;
}

/* Prompt / loading / error messages */
.evip-select-prompt,
.evip-loading,
.evip-error {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.evip-error {
    color: #c62828;
}

/* ---- Table ---- */

.evip-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 12px;
}

.evip-pricing-table thead th {
    background: #263238;
    color: #fff;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.evip-pricing-table thead th.evip-qty-header {
    text-align: left;
    width: 80px;
}

.evip-pricing-table tbody tr {
    transition: background-color 0.15s;
}

.evip-pricing-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.evip-pricing-table tbody tr:hover {
    background: #e3f2fd;
}

/* Qty cell (first column) */
.evip-qty-cell {
    padding: 8px 10px;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

/* Price cells */
.evip-price-cell {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.evip-price-cell:hover {
    background: #bbdefb;
    transform: scale(1.02);
}

.evip-price-cell.evip-selected {
    background: #1565c0;
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
}

.evip-price-cell.evip-selected .evip-price-value {
    color: #fff;
}

.evip-price-cell.evip-loading-cell {
    opacity: 0.6;
    pointer-events: none;
}

.evip-price-value {
    font-weight: 600;
    color: #1565c0;
}

.evip-price-cell:hover .evip-price-value {
    color: #0d47a1;
}

/* ---- Cart status messages ---- */

#evip-cart-status {
    padding: 12px 16px;
    margin-top: 8px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

#evip-cart-status.evip-status-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

#evip-cart-status.evip-status-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

#evip-cart-status a {
    font-weight: 700;
    text-decoration: underline;
    margin-left: 8px;
}

.evip-check {
    font-size: 18px;
    vertical-align: middle;
}

/* ---- Hide default WooCommerce add-to-cart for eviprinting products ---- */

#evip-pricing-wrapper ~ .single_add_to_cart_button,
.evip-has-pricing .single_add_to_cart_button,
.evip-has-pricing .woocommerce-variation-add-to-cart .quantity {
    display: none !important;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .evip-pricing-table {
        font-size: 12px;
    }

    .evip-pricing-table thead th {
        padding: 8px 4px;
        font-size: 11px;
    }

    .evip-price-cell,
    .evip-qty-cell {
        padding: 6px 4px;
    }
}
