/* =========================================================================
   4. QUANTITY BREAKS UI
   ========================================================================= */
.noom-qb-container {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: inherit;
}
.noom-qb-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: #333;
}
.noom-qb-title::before, .noom-qb-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: #ddd;
}
.noom-qb-title::before { left: 0; }
.noom-qb-title::after { right: 0; }

.noom-qb-option {
    display: block;
    background: #fff;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.noom-qb-option.noom-qb-active {
    border-color: #5A3A7C;
    box-shadow: 0 4px 12px rgba(90,58,124,0.08);
}

.noom-qb-popular-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: #5A3A7C;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.noom-qb-header {
    display: flex;
    align-items: center;
    padding: 15px;
}
.noom-qb-radio {
    margin-right: 15px;
}
.noom-qb-radio input {
    display: none;
}
.noom-qb-radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
}
.noom-qb-active .noom-qb-radio-custom {
    border-color: #5A3A7C;
}
.noom-qb-active .noom-qb-radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #5A3A7C;
    border-radius: 50%;
}

.noom-qb-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.noom-qb-qty-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}
.noom-qb-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 4px;
    width: fit-content;
}
.noom-qb-badge-gray {
    background: #eee;
    color: #666;
}
.noom-qb-badge-red {
    background: #5A3A7C;
    color: #fff;
}

.noom-qb-price-wrap {
    text-align: right;
    display: flex;
    flex-direction: column;
}
.noom-qb-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
}
.noom-qb-price-old {
    color: #999;
    font-size: 0.9rem;
}

.noom-qb-body {
    padding: 0 15px 15px 15px;
    border-top: 1px solid #f0f0f0;
}

.noom-qb-item-label {
    font-weight: bold;
    font-size: 12px;
    margin: 15px 0 5px 0;
    color: #666;
}
.noom-qb-item-variations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.noom-qb-attr-row {
    display: flex;
    flex-direction: column;
}
.noom-qb-attr-label {
    font-size: 12px;
    margin-bottom: 5px;
    color: #555;
}
.noom-qb-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    height: 40px;
}

.noom-qb-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.noom-qb-actions button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-align: center;
}
.noom-qb-add-btn {
    background: #fff;
    color: #5A3A7C;
    border: 2px solid #5A3A7C;
}
.noom-qb-add-btn:hover {
    background: #5A3A7C;
    color: #fff !important;
}
.noom-qb-buy-btn {
    background: #8A1C5B;
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(138, 28, 91, 0.25);
}
.noom-qb-buy-btn:hover {
    background: #73144a;
    transform: translateY(-2px);
}

/* Hide native elements on bundle products */
.noom-has-bundle-form .single_add_to_cart_button,
.noom-has-bundle-form .quantity {
    display: none !important;
}
