/* ═══════════════════════════════════════════
   QUANTITY OFFERS — CLASSIC LAYOUT (rows)
═══════════════════════════════════════════ */
.ostore-quantity-offers-container.layout-classic {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ostore-quantity-offers-container.layout-classic .ostore-quantity-offer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease;
    position: relative;
}

.ostore-quantity-offers-container.layout-classic .ostore-quantity-offer-item.active {
    border-color: var(--ostore-confirm-btn-bg);
    background: color-mix(in srgb, var(--ostore-confirm-btn-bg) 6%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ostore-confirm-btn-bg) 15%, transparent);
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-details {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-label {
    font-weight: 800;
    font-size: 0.9rem;
    color: #111;
    line-height: 1.2;
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-price {
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--ostore-brand, #016b61);
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-compare {
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.ostore-quantity-offers-container.layout-classic .ostore-offer-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--ostore-brand, #016b61);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   QUANTITY OFFERS — VERTICAL LAYOUT (cards)
═══════════════════════════════════════════ */
.ostore-quantity-offers-container.layout-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.ostore-quantity-offers-container.layout-vertical .ostore-quantity-offer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease;
    position: relative;
    gap: 8px;
}

.ostore-quantity-offers-container.layout-vertical .ostore-quantity-offer-item.active {
    border-color: var(--ostore-confirm-btn-bg);
    background: color-mix(in srgb, var(--ostore-confirm-btn-bg) 6%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ostore-confirm-btn-bg) 15%, transparent);
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-img {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-details {
    width: 100%;
    text-align: center; /* offers.css's base .ostore-offer-details forces text-align:left for the horizontal layout */
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-label {
    font-weight: 800;
    font-size: 0.8rem;
    color: #111;
    line-height: 1.2;
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-subtitle {
    font-size: 0.68rem;
    color: #6b7280;
    margin-top: 2px;
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-price {
    font-weight: 900;
    font-size: 1rem;
    color: var(--ostore-brand, #016b61);
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-compare {
    font-size: 0.72rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.ostore-quantity-offers-container.layout-vertical .ostore-offer-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ostore-brand, #016b61);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

