@charset "UTF-8";

/**
 * Wholesale Price List - Apple theme with glass effect
 * Used on PDP (add to cart) and Cart page
 */

.nx-wholesale {
    width: 100%;
    max-width: 100%;
}

.nx-wholesale__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

/* Glass container */
.nx-wholesale__glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.nx-wholesale__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nx-wholesale__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.875rem;
}

.nx-wholesale__table thead {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nx-wholesale__table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.nx-wholesale__table th:last-child,
.nx-wholesale__table td:last-child {
    text-align: right;
}

.nx-wholesale__table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.nx-wholesale__table tbody tr:last-child {
    border-bottom: none;
}

.nx-wholesale__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Highlight row when selected quantity falls within min-max */
.nx-wholesale__row--active {
    background: rgba(0, 113, 227, 0.12) !important;
    border-left: 3px solid #0071e3;
}

.nx-wholesale__row--active td {
    color: #1d1d1f;
}

.nx-wholesale__row--active td:last-child {
    color: #0071e3;
    font-weight: 700;
}

.nx-wholesale__table td {
    padding: 0.625rem 1rem;
    color: #1d1d1f;
    vertical-align: middle;
}

.nx-wholesale__table td:last-child {
    font-weight: 600;
    color: #0071e3;
}

@media (max-width: 575.98px) {
    .nx-wholesale__table th,
    .nx-wholesale__table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}
